.store-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.store-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f9f9f9;
}
.store-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.store-card:hover .store-img-wrapper img {
    transform: scale(1.05);
}
.store-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.store-info h3 {
    font-size: 1.25rem;
    color: var(--dark-text);
    margin-bottom: 10px;
    font-weight: 600;
}
.store-price {
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 80px;
}
.buy-btn {
    margin-top: auto;
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
}
.buy-btn:hover {
    background-color: #4a98d6;
}


/* --- Header Cart Icon --- */
.cart-icon-btn {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    padding: 5px;
    margin-left: 5px;
}
.navbar.scrolled .cart-icon-btn {
    color: var(--light-blue);
}
.cart-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 350px;
    max-width: 100%;
    bottom: 0; height: auto;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    transform: translateX(0);
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 {
    font-size: 1.2rem;
    color: var(--dark-text);
}
.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--dark-text);
}
.cart-item-price {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-item-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    text-decoration: underline;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 80px;
    color: var(--dark-text);
}
.btn-checkout {
    background-color: var(--accent-gold);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-checkout:hover {
    background-color: #e59400;
}

/* --- Store Page Enhancements --- */
.store-rating {
    color: #f5b301;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.store-rating span {
    color: var(--light-text);
    font-size: 0.8rem;
    margin-left: 5px;
}
.store-short-desc {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Product Detail Page --- */
.product-detail-section {
    padding: 60px 0;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.product-image-large img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    object-fit: cover;
}
.product-detail-info h1 {
    font-size: 2.2rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}
.product-price-large {
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 80px;
}
.product-full-desc {
    color: var(--dark-text);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 30px;
}
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.btn-add-cart {
    background-color: var(--white);
    color: var(--light-blue);
    border: 2px solid var(--light-blue);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-add-cart:hover {
    background-color: var(--light-blue);
    color: var(--white);
}

/* --- Reviews Section --- */
.product-reviews-section {
    margin-top: 50px;
}
.product-reviews-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-text);
}
.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 80px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f5f5f5;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.review-author {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark-text);
}
.review-rating {
    color: #f5b301;
    font-size: 0.9rem;
}
.review-text {
    color: var(--light-text);
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 768px) {
    .cart-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        height: auto !important;
        width: 85%;
        max-width: 350px;
        background: rgba(255, 255, 255, 0.75) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.2) !important;
        border-left: none;
        z-index: 2000 !important;
    }
}
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) {
    .cart-item-subtotal {
        width: 100%;
        text-align: right;
    }
}
@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}
@media (max-width: 768px) {
    .store-card .store-info h3 {
        font-size: 0.95rem; /* Smaller title on mobile */
        margin-bottom: 5px;
    }
}
@media (max-width: 768px) {
    .store-card .store-info .price {
        font-size: 0.9rem;
    }
}
@media (max-width: 768px) {
    .store-img-wrapper {
        height: 160px; /* Keep image proportional, not massive */
    }
}
/* Sidebar cart strictly contained */


@media (max-width: 768px) {
    /* Main Pill Container */
    .mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 25px !important; /* Floating above bottom edge */
        left: 20px !important;
        width: calc(100% - 40px) !important;
        height: 75px !important;
        background: rgba(255, 255, 255, 0.25) !important; /* Frosted white glass */
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        border-radius: 40px !important; /* Pill shape */
        padding: 0 15px !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 1000 !important;
        box-sizing: border-box !important;
    }

    /* Links inside main pill */
    .mobile-nav-link {
        color: var(--dark-text) !important; 
        opacity: 0.7 !important;
        text-decoration: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-nav-link i {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }
    
    .mobile-nav-link span {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
    }

    .mobile-nav-link.active, .mobile-nav-link:hover {
        color: var(--light-blue) !important;
        opacity: 1 !important;
        transform: translateY(-2px) !important;
    }

    /* Stacked Floating Buttons (WhatsApp and Cart) */
    .mobile-nav-center { display: none !important;
        position: fixed !important;
        top: auto !important;
        bottom: 180px !important; /* Adjusted gap */
        left: auto !important;
        right: 0 !important;
        transform: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        /* display: flex removed */ width: 45px !important; height: 50px !important; box-sizing: border-box !important; justify-content: center !important; align-items: center !important; margin: 0 !important;
        z-index: 1001 !important;
    }

    .mobile-nav-center-btn {
        width: 45px !important;
        height: 45px !important; box-sizing: border-box !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        color: #25D366 !important;
        font-size: 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        gap: 0 !important; margin: 0 !important;
    }
    
    .mobile-nav-center-btn::after {
        content: none !important;
    }
    
    /* Convert Floating Cart Button to Liquid Glass on mobile */
    

} 
/* --- Modern E-commerce Grid (Shopee Style) --- */
.store-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
}

@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px !important;
    }
}

.store-card {
    background-color: var(--white) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #ebebeb !important;
    position: relative !important;
}

.store-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.store-img-wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    overflow: hidden !important;
    background-color: #f9f9f9 !important;
}

.store-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.store-info {
    padding: 10px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.store-title-link {
    text-decoration: none !important;
    color: var(--dark-text) !important;
}

.store-info h3 {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.6em !important; 
}

.store-price-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
}

.price-current {
    color: var(--accent-gold) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.price-old {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 0.7rem !important;
}

.price-discount {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: var(--accent-gold) !important;
    font-size: 0.65rem !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
    font-weight: 600 !important;
}

.store-tags {
    margin-bottom: 8px !important;
}

.outline-tag {
    border: 1px solid var(--light-blue) !important;
    color: var(--light-blue) !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    display: inline-block !important;
}

.store-meta {
    font-size: 0.65rem !important;
    color: #757575 !important;
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.store-rating-sales {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.star-icon {
    color: #ffc107 !important;
    font-size: 0.7rem !important;
}

.store-location {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.truck-icon {
    color: #20c997 !important;
}

.pin-icon {
    color: #999 !important;
}

.buy-icon-btn {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background-color: var(--light-blue) !important;
    color: var(--white) !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.buy-icon-btn i {
    font-size: 0.8rem !important;
}

.buy-icon-btn:hover {
    transform: scale(1.1) !important;
    background-color: var(--accent-gold) !important;
}


/* FIX: Prevent Header Overlap on Mobile and Tablet */
@media (max-width: 992px) {
    .product-detail-section,
    .checkout-section {
        padding-top: 140px !important;
    }
    
    .view-more-btn {
        margin-top: 20px !important;
        position: relative !important;
        z-index: 10 !important;
    }
}



/* Force original price to always be under current price */
.store-price-row .price-current {
    width: 100% !important;
    display: block !important;
}

/* Floating Orders Button */



@media (max-width: 768px) {
    

.back-btn-orders {
    display: inline-block !important;
    background: var(--light-blue) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}
.back-btn-orders:hover {
    background: var(--dark-text) !important;
    color: var(--white) !important;
}




 





}

/* =========================================
   FLOATING ACTION BUTTONS (DESKTOP & MOBILE)
   ========================================= */
.floating-cart-btn,
.floating-orders-btn,
.floating-wa-btn {
    position: fixed !important;
    right: 30px !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Liquid Glass */
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    color: var(--light-blue, #1976D2) !important;
    font-size: 1.15rem !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

/* Slot 1 (Bottom): Cart */
.floating-cart-btn { bottom: 30px !important; }

/* Slot 2 (Top): Orders or WA in orders page */
.floating-orders-btn,
.floating-wa-btn.orders-slot { 
    bottom: 90px !important; 
}

/* Hover States */
.floating-cart-btn:hover,
.floating-orders-btn:hover,
.floating-wa-btn:hover {
    transform: scale(1.08) !important;
    background: var(--light-blue, #1976D2) !important;
    color: white !important;
}

.floating-cart-btn .cart-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #ff4757 !important;
    color: white !important;
    font-size: 0.75rem !important;
    min-width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    border: 2px solid white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    line-height: 1 !important;
}

@media (max-width: 992px) {
    .floating-cart-btn,
    .floating-orders-btn,
    .floating-wa-btn {
        right: 20px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1.05rem !important;
    }
    .floating-cart-btn { bottom: 110px !important; }
    .floating-orders-btn,
    .floating-wa-btn.orders-slot { 
        bottom: 165px !important; 
    }

    .floating-cart-btn .cart-badge {
        font-size: 0.7rem !important;
        min-width: 20px !important;
        height: 20px !important;
        top: -4px !important;
        right: -4px !important;
    }
}

