
/* OFFER BADGE */
.offer-badge{
    position:absolute;
    top:8px;
    left:8px; /* right हवं असेल तर right:8px */
    background:#3a0443;
    color:#fff;
    font-size:11px;
    padding:4px 6px;
    border-radius:6px;
    font-weight:600;
}
.search-bars
{
	padding-right: 10rem !important;
}
/* Quantity Box */
.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #3a0443;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
}

.qty-btn {
    background: #f7fff9;
    color: #3a0443;
    border: none;
    width: 26px;
    height: 100%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.qty-value {
    width: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #000;
}
.qty-loader {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Overlay */
#cartOverlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:none;
    z-index:9998;
}

/* Drawer */
#cartDrawer{
    position:fixed;
    top:0;
    right:-400px;
    width:380px;
    height:100%;
    background:#f5f6fa;
    z-index:9999;
    transition:0.3s;
    display:flex;
    flex-direction:column;
}

#cartDrawer.active{
    right:0;
}

#cartOverlay.active{
    display:block;
}

/* Cart Items Container - Add scrollbar for many items */
#cartItemsContainer {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding: 0 10px;
}

#cartItemsContainer::-webkit-scrollbar {
    width: 6px;
}

#cartItemsContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#cartItemsContainer::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#cartItemsContainer::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.cart-header{
    background:#fff;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #eee;
}

.cart-box{
    background:#fff;
    margin:10px;
    padding:15px;
    border-radius:10px;
}

.cart-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.cart-product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-details {
    flex: 1;
    min-width: 0;
}

.cart-product-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-product-weight {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    display: block;
}

.cart-product-price {
    font-weight: 700;
    font-size: 15px;
    color: #198754;
}

.cart-qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #3a0443;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-qty-btn:hover {
    background: #3a0443;
    transform: scale(1.05);
}

.cart-qty-value {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    min-width: 20px;
    text-align: center;
}

.qty-box button{
    background:#3a0443;
    color:#fff;
    border:none;
    width:30px;
    height:30px;
    border-radius:6px;
}

.cart-bottom{
    margin-top:auto;
    background:#3a0443;
    padding:15px;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.product-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.product-card {
    flex: 0 0 240px; /* fixed width for all cards */
    /*height: 320px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}

/* Image box same size */
.plp-img-box {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Fix text overflow */
.plp-name {
    font-size: 14px;
    line-height: 1.3;
    height: 38px;           /* fixed height */
    overflow: hidden;
}

.plp-weight {
    font-size: 13px;
    color: #666;
    height: 18px;           /* fixed */
}

/* Price row always aligned */
.plp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}