:root {
    --main-bg: #ffffff;
    /* Changed to White for cleaner look */
    --main-text: #333333;
    /* Dark Text */
    --secondary: #004494;
    /* Dark Blue */
    --success: #28a745;
    /* Green */
    --light: #f8f9fa;
    /* Light Gray */
    --dark: #343a40;
    /* Dark Gray */
    --gray: #dee2e6;
    /* Light Gray */
    --danger: #dc3545;
    /* Red */
    --warning: #ffc107;
    /* Yellow */
    --beige: #f1f8ff;
    /* Light Blue-ish White */
    --primary: #0056b3;
    /* Main Blue */
    --primary-light: #007bff;
    /* Lighter Blue */
    --gray-dark: #6c757d;
    --white: #fff;
    --transition: all 0.3s;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-fluid {
    padding: 0 15px;
    margin: 0 auto;
    max-width: 1350px;
}

/* Top info bar */
.top-info {
    background-color: var(--main-bg);

    padding: 12px 5%;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid var(--gray);
    color: var(--main-text);
    font-weight: 500;
}

.top-info h3 {
    color: var(--main-text) !important;
}

/* Main header */
.main-header {
    background: var(--main-text);
    color: var(--main-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.08);
    /* subtle gold shadow */
    position: sticky;
    /* <-- Make header sticky */
    top: 0;
    /* <-- Stick to top */
    z-index: 10002;
    /* <-- Ensure above other elements */
}


.main-header.scrolled {
    background: var(--white) !important;
    color: #000000 !important;
    transition: background 0.5s, color 0.5s;
}


.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    /* Higher than mobile menu */
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: var(--main-bg);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 5px;
    transition: color 0.3s;
    position: relative;
    text-decoration: none;
}

.nav-menu li a.active,
.nav-menu li a:hover {
    color: var(--gray) !important;
}

.nav-menu li a::after {
    background-color: var(--primary);
}




/* Navigation link animation */
@keyframes navPop {
    0% {
        transform: scale(1);
        color: #34495e;
        background: transparent;
    }

    40% {
        transform: scale(1.15);
        color: #4a6bdf;
        background: #eaf0ff;
    }

    100% {
        transform: scale(1);
        color: #4a6bdf;
        background: transparent;
    }
}

.nav-menu li a:hover,
.nav-menu li a.active {
    animation: navPop 0.4s;
    color: #4a6bdf;
    background: transparent;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    font-size: 18px;
    color: var(--main-text);
    cursor: pointer;
    transition: color 0.3s;
}

.search-icon:hover {
    color: var(--primary);
}

.cart-icon,
.account-icon {
    font-size: 18px;
    color: var(--main-text);
    cursor: pointer;
    transition: color 0.3s;
    margin-right: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    /* background-color: var(--gray); */
    border-radius: 50%;
}

.cart-icon:hover,
.account-icon:hover {
    color: var(--primary);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
    z-index: 1001;
    /* Higher than mobile menu */
}

/* Animation keyframes */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Icon hover animations */
.search-icon:hover i {
    animation: bounce 0.5s;
}

.cart-icon:hover i {
    animation: shake 0.5s;
}

.account-icon:hover i {
    animation: spin 0.7s linear;
}

/* Mobile Side Menu Styles */
.mobile-nav-container {
    display: none;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

/* Responsive styles */
@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-info {
        padding: 10px 5%;
        font-size: 13px;
    }

    /* Hide desktop navigation */
    .nav-menu {
        display: none;
    }

    /* Mobile menu button */
    .mobile-menu-btn {
        display: block;
        order: 0;
        /* First item on left */
    }

    /* Center logo */
    .logo {
        order: 1;
        /* Middle item */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 40px;
        /* Slightly smaller on mobile */
    }

    .header-actions {
        order: 2;
        gap: 15px;
        display: flex !important;
        /* Ensure flex on mobile */
    }

    .account-icon {
        display: none;
    }

    .cart-icon {
        display: none;
    }

    /* Header actions on right */
    .header-actions {
        order: 2;
        /* Last item on right */
        gap: 15px;
    }

    /* Mobile side menu */
    .mobile-nav-container {
        display: block;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--beige);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
        z-index: 100000;
        transition: left 0.4s ease;
        overflow-y: auto;
        padding-top: 70px;
    }

    .mobile-nav-container.active {
        left: 0;
        animation: slideIn 0.4s ease;
    }

    @keyframes slideIn {
        from {
            left: -280px;
        }

        to {
            left: 0;
        }
    }

    .mobile-nav-menu {
        list-style: none;
        padding: 0 20px;
    }

    .mobile-nav-menu li {
        margin-bottom: 15px;
    }

    .mobile-nav-menu li a {
        text-decoration: none;
        color: var(--main-text);
        font-weight: 500;
        font-size: 16px;
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        transition: color 0.3s;
    }

    .mobile-nav-menu li a:hover {
        color: var(--primary);
    }

    .mobile-nav-menu li a.active {
        color: var(--primary);
    }

    /* Overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* Adjust cart badge position for mobile */
    .cart-icon span {
        top: -5px;
        right: -5px;
        font-size: 10px;
        padding: 1px 5px;
    }

    #userDropdownDesktop {
        display: none !important;
    }

    /* Change mobile navbar background */
    .mobile-nav-container {
        background: var(--main-bg) !important;
    }

    /* Change mobile bottom navigation background */
    .mobile-bottom-nav {
        background: var(--secondary) !important;
    }

    /* Change icon color in mobile bottom nav */
    .mobile-bottom-nav .mbnav-item i {
        color: var(--main-bg) !important;
        /* background: var(--dark); */
        border-radius: 50%;
        padding: 8px;
        font-size: 22px;
        transition: background 0.3s, color 0.3s;
    }

    /* Optional: Highlight active icon */
    .mobile-bottom-nav .mbnav-item.active i,
    .mobile-bottom-nav .mbnav-item:hover i {
        /* background: var(--primary); */
        color: var(--gray) !important;
    }
}

/* Mobile Bottom Navigation */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--secondary);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 10001;
        justify-content: space-around;
        align-items: center;
        padding: 6px 0 2px 0;
        border-top: 1px solid var(--gray);
    }

    .mbnav-item {
        flex: 1;
        text-align: center;
        color: var(--primary);
        font-size: 13px;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2px 0;
        transition: color 0.3s;
    }

    .mbnav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .mbnav-item.active,
    .mbnav-item:hover {
        color: var(--secondary);
    }
}

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7e5f, #feb47b, #6a82fb, #fc5c7d);
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-right: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

@keyframes wishlist-bounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.wishlist-icon span {
    animation: wishlist-bounce 0.5s;
}

/* Icon base color */
.header-actions i,
.wishlist-icon i,
.cart-icon i,
.search-icon i,
.account-icon i,
.mbnav-item i {
    color: var(--main-bg);
    transition: color 0.3s;
}

/* Icon hover/active color */
.header-actions i:hover,
.wishlist-icon i:hover,
.cart-icon i:hover,
.search-icon i:hover,
.account-icon i:hover,
.mbnav-item:hover i {
    color: var(--primary);
}

/* Make dropdown menu icons black */
.dropdown-menu i {
    color: #000 !important;
}

/* Profile user name in white */
#userDropdownDesktop .ms-1 {
    color: var(--main-bg) !important;
}

.main-header.scrolled,
.main-header.scrolled .nav-menu li a,
.main-header.scrolled .header-actions i,
.main-header.scrolled .header-actions,
.main-header.scrolled .logo,
.main-header.scrolled .wishlist-icon,
.main-header.scrolled .cart-icon,
.main-header.scrolled .search-icon,
.main-header.scrolled #userDropdownDesktop .ms-1 {
    color: var(--main-text) !important;
}



/* index */
.carousel-container {
    margin: 0 auto;
    max-width: 1850px;
    /* padding: 0 20px; */
}

.carousel {
    /* margin-top: 20px; */
    box-shadow: 0 2px 12px rgba(0, 86, 179, 0.08);
    /* Use --primary for shadow */
    /* border-radius: 16px; */
    background: var(--beige);
    overflow: hidden;
    height: 100vh;
    max-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-inner,
.carousel-item,
.carousel-inner img {
    height: 100%;
    /* border-radius: 16px; */
}

.carousel-inner img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.carousel-inner .carousel-item.active img {
    transform: scale(1.03);
}

.carousel-caption {
    /* background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%); */
    border-radius: 12px;
    padding: 24px 32px;
    color: var(--light);
    /* background: linear-gradient(to right, rgba(75,46,30,0.8) 0%, rgba(75,46,30,0.4) 100%); */
    left: 5%;
    right: auto;
    bottom: 15%;
    text-align: center;
    max-width: 480px;
}

.carousel-caption h5 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.carousel-caption .btn {
    background: #444 !important;
    color: #fff !important;
    border-radius: 24px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(74, 107, 223, 0.15);
    transition: all 0.3s;
    border: none;
}

.carousel-caption .btn:hover {
    background: #222 !important;
}

.carousel-indicators {
    bottom: 20px;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    background-color: #444;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin: 0 6px;
    opacity: 0.7;
    transition: opacity 0.3s;
    border: none;
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(245, 245, 220, 0.2);
    /* --beige */
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 10px;
    }

    .carousel {
        height: 50vh;
        max-height: 400px;
        margin-top: 10px;
        border-radius: 12px;
    }

    .carousel-inner,
    .carousel-item,
    .carousel-inner img {
        border-radius: 12px;
    }

    .carousel-caption {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10%;
        padding: 15px;
        max-width: 90%;
        text-align: center;
    }

    .carousel-caption h5 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 12px;
        display: none;
        /* Hide description on mobile for cleaner look */
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }
}

.product-card {
    width: 320px;
    /* background: var(--light); */
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(75, 46, 30, 0.08); --primary */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.15);
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--danger);
    color: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

.discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--warning);
    /* Use discount base color */
    color: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.15);
    /* --warning shadow */
    text-align: center;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    position: relative;
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the container fully */
    object-position: center;
    border-radius: 0;
    display: block;
}

.product-image .main-img {
    transition: opacity 0.5s;
}

.product-image .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.product-card:hover .product-image .main-img {
    opacity: 0;
}

.product-card:hover .product-image .hover-img {
    opacity: 1;
}

.product-info {
    padding: 24px;
}

.product-title {
    font-size: 16px;
    /* font-weight: 700; */
    margin-bottom: 10px;
    color: var(--main-text);
}

.product-description {
    font-size: 12px;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: start;
    /* margin-bottom: 20px; */
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-bg);
}

.old-price {
    font-size: 12px;
    color: var(--danger);
    /* Change from var(--gray) to var(--danger) */
    text-decoration: line-through;
    font-weight: 600;
    margin-left: 8px;
}

.rating {
    display: flex;
    align-items: center;
}

.rating i {
    color: var(--warning);
    margin-right: 2px;
    font-size: 14px;
}

.rating-count {
    font-size: 14px;
    color: var(--dark);
    margin-left: 8px;
}



.add-to-cart {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s;
    background: var(--secondary);
    color: var(--light);
    border: none;
    padding: 12px;
    border-radius: 10px 10px 0 0;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.add-to-cart:hover {
    background: var(--primary);
}

.product-card:hover .add-to-cart {
    transform: translate(-50%, 0);
    opacity: 1;

}

.wishlist {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--gray);
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist:hover {
    background: var(--warning);
    border-color: var(--warning);
}

.wishlist.active {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--light);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.cart-notification {
    position: absolute;
    top: 20px;
    right: -100%;
    background: var(--success);
    color: var(--light);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-notification.show {
    right: 20px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    justify-content: center;
}

@media (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        border-radius: 10px;
    }

    .product-info {
        padding: 8px;
    }

    .product-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .product-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .product-price {
        flex-wrap: wrap;
        gap: 4px;
    }

    .product-price .price {
        font-size: 1.2rem;

    }

    .old-price {
        font-size: 0.95rem;
    }

    .rating-count {
        font-size: 0.9rem;
    }

    .add-to-cart {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .wishlist {
        width: 36px;
        height: 36px;
    }

    .product-image {
        height: 110px;
    }
}

.rating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    /* background: var(--warning); */
    color: var(--warning);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    /* box-shadow: 0 2px 8px rgba(210, 105, 30, 0.15); */
}

.rating-badge i {
    color: #fff700;
    font-size: 16px;
    margin-right: 4px;
}

.horizontal-scroll-carousel {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    scroll-behavior: smooth;
    padding-bottom: 16px;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.horizontal-scroll-carousel::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: calc(50% - 32px);
    /* 2 items per row */
    max-width: calc(50% - 32px);
}


/* Add below your .product-card styles */
.product-badges {
    position: absolute;
    top: 50px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
}

.wishlist-badge,
.share-badge {
    background: var(--light);
    border: 1px solid var(--gray);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.08);
    font-size: 18px;
}

.wishlist-badge:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--light);
}

.wishlist-badge.active {
    background: var(--danger);
    border-color: var(--danger);

}

.wishlist-badge.active i {
    color: var(--light);
    /* Make the heart icon red when active */
}

.share-badge:hover {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--light);
}

@media (max-width: 600px) {
    .product-badges {
        top: 8px;
        left: 8px;
        gap: 6px;
    }

    .wishlist-badge,
    .share-badge {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
}

/* Testimonial Section */
.member-testimonial-section {
    max-width: 1350px;
    margin: 80px auto;
    padding: 0 20px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.member-testimonial-left {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 300px;
}

.member-testimonial-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--primary);
}

.member-testimonial-btn {
    background: #444 !important;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    margin-bottom: 32px;
    transition: background 0.3s;
    border: none;
    display: inline-block;
}

.member-testimonial-btn:hover {
    background: #222 !important;
}

.member-testimonial-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.member-testimonial-card {
    border-radius: 16px;
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-testimonial-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.member-testimonial-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .member-testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .member-testimonial-section {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .member-testimonial-left {
        margin-top: 0;
        align-items: center;
        text-align: center;
    }

    .member-testimonial-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
    }
}


.tagda-section {
    max-width: 1350px;
    margin: 60px auto;
    padding: 0 20px;
}

.tagda-title {
    font-size: 2.7rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.tagda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.tagda-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.08);
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.3s, transform 0.3s;
}

.tagda-card:hover {
    box-shadow: 0 16px 48px rgba(44, 62, 80, 0.15);
    transform: translateY(-6px) scale(1.02);
}

.tagda-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
}

.tagda-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
}

.tagda-card ul {
    margin-bottom: 24px;
    padding-left: 18px;
    font-size: 1rem;
    color: #444;
}

.tagda-btn {
    background: #444 !important;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: auto;
    display: inline-block;
}

.tagda-btn:hover {
    background: #222 !important;
}

@media (max-width: 900px) {
    .tagda-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tagda-title {
        font-size: 1.7rem;

    }

    .tagda-card {
        padding: 18px;
    }

    .tagda-img {
        height: 180px;
    }
}

/* Add this to your <style> section */


/* Remove gold color references and replace with neutral/dark tones */

/* ...existing code... */

/* Replace --secondary (Wooden Brown) and gold-like colors with a neutral/dark color */

/* ...existing code... */

/* Remove gold color from headings and notes in details-section */
.details-section h3,
.details-section .details-note,
.details-section h2 {
    color: #222 !important;
    /* Use dark gray/black */
    border-left-color: #444 !important;
    /* For notes */
}

/* Remove gold background/border from quick overview and notes */
.details-section .details-note,
.details-section .quick-overview {
    background: #f5f5f5 !important;
    color: #444 !important;
    border-left: 4px solid #444 !important;
}

/* Remove gold from product details headings */
.details-section h3 {
    color: #222 !important;
}

/* Remove gold from product card hover, badges, and buttons */
.product-card:hover {
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.15);
}

.badge,
.discount-badge {
    background: var(--danger);
    color: var(--light);
}

.discount-badge {
    background: var(--warning);
    color: var(--light);
}

.product-badges .wishlist-badge:hover,
.product-badges .share-badge:hover {
    background: #444;
    border-color: #444;
    color: #fff;
}

.product-badges .wishlist-badge.active {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* Remove gold from carousel indicators and controls */
.carousel-indicators [data-bs-target] {
    background-color: #444;
}

.carousel-caption .btn,
.member-testimonial-btn,
.tagda-btn {
    background: var(--secondary) !important;
    color: #fff !important;
}

.carousel-caption .btn:hover,
.member-testimonial-btn:hover,
.tagda-btn:hover {
    background: #222 !important;
}

/* Remove gold from tagda-card hover */
.tagda-card:hover {
    box-shadow: 0 16px 48px rgba(44, 62, 80, 0.15);
    transform: translateY(-6px) scale(1.02);
}

/* Remove gold from share/wishlist badges */
.wishlist-badge,
.share-badge {
    background: var(--light);
    border: 1px solid var(--gray);
    color: #444;
}

.wishlist-badge:hover,
.share-badge:hover {
    background: #444;
    border-color: #444;
    color: #fff;
}

/* Remove gold from rating badge */
.rating-badge {
    color: #444;
}

.rating-badge i {
    color: #ffe066;
    /* Keep star yellow for clarity, or change to #444 if you want all neutral */
}

.horizontal-scroll-carousel {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    scroll-behavior: smooth;
    padding-bottom: 16px;
    scrollbar-width: none;
}

.horizontal-scroll-carousel::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: calc(25% - 32px);
    max-width: calc(25% - 32px);
}

.carousel-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px #ccc;
    cursor: pointer;
}

.carousel-arrow-btn.left {
    left: -40px;
}

.carousel-arrow-btn.right {
    right: -40px;
}

.section-container {
    max-width: 1350px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--primary);
    text-align: left;
}

.free-delivery-badge {
    color: var(--success);
    padding: 5px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 600px) {
    .free-delivery-badge {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 12px;
        gap: 4px;
        display: block;
    }
}

/* Tablet: 3 per row */
@media (max-width: 1000px) {
    .horizontal-scroll-carousel .product-card {
        min-width: calc(33.333% - 24px);
        max-width: calc(33.333% - 24px);
        width: calc(33.333% - 24px);
    }
}

/* Small Tablet: 2 per row */
@media (max-width: 800px) {
    .horizontal-scroll-carousel .product-card {
        min-width: calc(50% - 16px);
        max-width: calc(50% - 16px);
        width: calc(50% - 16px);
    }
}

/* Mobile: 2 per row, grid layout */
@media (max-width: 700px) {
    .horizontal-scroll-carousel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        overflow-x: unset;
        padding-bottom: 0;
    }

    .horizontal-scroll-carousel .product-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
}

/* foooter */



footer {
    background: var(--main-bg);
    color: var(--main-text);
    padding: 50px 0 20px;
    border-radius: 10px 10px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--main-text);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary);
    margin-top: 4px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    /* background: var(--primary-light); */
    color: var(--main-text);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary);
    color: var(--main-text);
}

.newsletter form {
    display: flex;
    margin-top: 15px;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter button:hover {
    background: #2980b9;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.payment-methods div {
    /* background: var(--); */
    color: var(--main-text);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.payment-methods div:hover {
    background: var(--secondary);
}

.map-container {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    background: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary);
    font-size: 0.9rem;
    color: var(--light);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter button {
        border-radius: 4px;
        padding: 12px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: wa-pulse 1.2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    background: #128c7e;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #128c7e;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 80px;
    }
}


/* shop */


/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--gray-dark);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

/* Filters */
.filters {
    flex: 0 0 200px;
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-title button {
    margin-top: 30px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-title button:hover {
    color: var(--secondary);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 0;
}

.filter-options label:hover {
    color: var(--primary);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.price-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.price-inputs input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.price-inputs input:focus {
    border-color: var(--primary);
    outline: none;
}

.filter-btn {
    background: var(--primary) !important;
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    margin-top: 10px;
}

.filter-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .price-inputs {
        display: block;
        gap: 0;
    }

    .price-inputs input {
        width: 100%;
        margin-bottom: 10px;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* Products */
.products {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    /* background: var(--white); */
    padding: 15px 20px;
    border-radius: 12px;
    /* box-shadow: var(--shadow); */
}

.products-count {
    font-size: 16px;
    color: var(--gray-dark);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    border-color: var(--primary);
    outline: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    /* background: var(--light); */
    border-radius: 24px;
    overflow: hidden;
    /* box-shadow: 0 8px 32px rgba(75, 46, 30, 0.10); */
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 420px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.15);
}

.product-image {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.product-image .main-img,
.product-image .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-image .main-img {
    opacity: 1;
    z-index: 1;
}

.product-image .hover-img {
    opacity: 0;
    z-index: 2;
    transform: scale(0.98);
    pointer-events: none;
}

.product-card:hover .product-image .main-img {
    opacity: 0;
    transform: scale(1.02);
}

.product-card:hover .product-image .hover-img {
    opacity: 1;
    transform: scale(1.05);
}


.product-badges {
    position: absolute;
    top: 20px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
}

.wishlist-badge,
.share-badge {
    background: var(--light);
    border: 1px solid var(--gray);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.08);
    font-size: 18px;
}

.wishlist-badge:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--light);
}

.wishlist-badge.active {
    background: var(--danger);
    border-color: var(--danger);

}

.wishlist-badge.active i {
    color: var(--light);
    /* Make the heart icon red when active */
}

.share-badge:hover {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--light);
}

.product-info {
    padding: 24px 18px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.product-category {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--secondary);
    /* Changed to Dark Blue from Dark Gray */
    line-height: 1.4;
    min-height: 44px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    /* margin-bottom: 18px; */
}

/* Explicit style for .price used in index.php */
.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    /* Blue */
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    /* Changed from var(--main-bg) which was White (invisible) */
}

.old-price {
    font-size: 15px;
    color: var(--danger);
    text-decoration: line-through;
}

.discount {
    font-size: 14px;
    color: var(--danger);
    font-weight: 600;
    background: rgba(139, 0, 0, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-to-cart {
    flex: 1;
    background: var(--secondary);
    color: var(--light);
    border: none;
    padding: 10px 0;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.08);
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary);
}

.wishlist-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--beige);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 22px;
    color: var(--primary);
}

.wishlist-btn:hover {
    background: var(--danger);
    color: var(--white);
    transform: scale(1.08);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.no-products i {
    font-size: 60px;
    color: var(--gray);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.no-products p {
    color: var(--gray-dark);
    margin-bottom: 25px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination-link {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 16px;
    border-radius: 6px;
    background: #eee;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.pagination-link.active {
    background: var(--primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .filters {
        width: 100%;
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .sort-select {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .main-content {
        margin: 0;
        padding: 0;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 0;
        box-shadow: none;
        background: transparent;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
    }

    .product-card {
        min-height: 370px;
        /* Adjust as needed for your content */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 16px;
        padding: 0;
    }

    .shop-card {
        min-height: 200px !important;
        /* Smaller height for 2 rows */

        width: 100%;
        border-radius: 12px;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-image {
        height: 220px;
        border-radius: 16px 16px 0 0;
    }

    .product-info {
        padding: 12px 8px 10px 8px;
    }

    .product-name {
        font-size: 14px;
        min-height: 36px;
        margin-bottom: 8px;
    }

    .product-category {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 13px;
        gap: 6px;
        margin-bottom: 10px;
    }

    .add-to-cart {
        font-size: 13px;
        padding: 7px 0;
        border-radius: 12px;
    }

    .wishlist-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 8px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .filter-toggle-btn {
        position: fixed;
        left: 50%;
        bottom: 80px;
        transform: translateX(-50%);
        background: #222;
        color: #fff;
        border-radius: 24px;
        font-size: 16px;
        padding: 10px 24px;
        z-index: 9999;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #filters-sidebar {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
        top: 0;
        border-radius: 0;
        padding: 16px 8px;
    }

    .close-filters {
        top: 10px;
        right: 10px;
        font-size: 22px;
    }
}

/* Loading animation for product cards */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }

    100% {
        background-color: hsl(200, 20%, 95%);
    }
}

.skeleton-text {
    width: 100%;
    height: 0.7rem;
    margin-bottom: 0.5rem;
}

.skeleton-price {
    width: 50%;
    height: 1.2rem;
    margin-bottom: 1rem;
}

/* Filter toggle button */
.filter-toggle-btn {
    display: inline;
    /* Change this from 'none' to 'block' */
    /* position: fixed; */
    /* Change 'right: 20px;' to 'left: 20px;' for left side */
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.filter-toggle-btn:hover {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray);
}

/* Filters sidebar (initially hidden) */
#filters-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 500px;
    height: 100%;
    background: var(--white);
    border-left: 1px solid var(--gray);
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    z-index: 99999;
}

#filters-sidebar.active {
    display: block;
    transform: translateX(0);
}

/* Close button for filters sidebar */
.close-filters {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

.free-delivery-label {
    margin-left: auto;
    color: #6B8E23;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 4px 10px;
    display: flex;
    /* align-items: center; */
    gap: 5px;
}

.free-delivery-label i {
    color: #6B8E23;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-image {
    position: relative;
}

.product-image .main-img {
    display: block;
    transition: opacity 0.3s;
}

.product-image .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.product-image:hover .main-img {
    opacity: 0;
}

.product-image:hover .hover-img {
    opacity: 1;
}

.shop-card {
    position: relative;
    /* ...other styles... */
}

.shop-card .choose-options-btn {
    display: none;
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--main-text);
    border: none;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 28px;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.shop-card:hover .choose-options-btn {
    display: block;
}

.choose-options-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 68, 148, 0.3);
}

@media (max-width: 576px) {
    .shop-card .choose-options-btn {
        display: block;
        /* Always show on mobile */
        position: static;
        width: 100%;
        margin: 10px 0 0 0;
        left: auto;
        top: auto;
        transform: none;
        font-size: 14px;
        padding: 10px 0;
        border-radius: 12px;
        box-shadow: none;
    }
}

/* Modal styles */
/* Popup Modal Overlay */
.product-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 20, 10, 0.45);
    /* Slightly darker for focus */
    z-index: 99999;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.product-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        background: rgba(30, 20, 10, 0);
    }

    to {
        background: rgba(30, 20, 10, 0.45);
    }
}

/* Popup Modal Window */
.product-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 900px;
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    padding: 0;
    position: relative;
    animation: modalIn 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: row;
    gap: 0;
}

@keyframes modalIn {
    from {
        transform: translateY(40px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modal Image Section */
.product-modal-img {
    flex: 1;
    min-width: 320px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px 0 0 18px;
    overflow: hidden;
    padding: 24px 0 0 0;
}

.product-modal-img img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 86, 179, 0.08);
}

/* Modal Dots */
.modal-img-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0 0;
    position: absolute;
    bottom: 16px;
    width: 100%;
}

.modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
    border: 2px solid transparent;
}

.modal-dot.active {
    background: var(--main-bg);
    border: var(--gray);
}

/* Modal Details Section */
.product-modal-details {
    flex: 2;
    padding: 36px 32px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    /* overflow-y: auto; */
}

.product-modal-details h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.1;
}

.product-modal-details .modal-option-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}

.product-modal-details .modal-option-btn.selected,
.product-modal-details .modal-option-btn:hover {
    background: var(--primary-light);
    color: #fff;
    border-color: var(--gray);
}

.product-modal-details .modal-qty-btn {
    background: #eee;
    border: none;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-modal-details .modal-qty-btn:hover {
    background: var(--main-bg);
    color: #fff;
}

.product-modal-details .modal-add-cart-btn {
    background: #222;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 16px;
    transition: background 0.2s;
    cursor: pointer;
}

.product-modal-details .modal-add-cart-btn:hover {
    background: var(--gray);
    color: #000000;
}

/* Modal Close Button */
.product-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #fff;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
}

.product-modal-close:hover {
    background: #eee;
}

/* Responsive for Modal */
@media (max-width: 700px) {
    .product-modal {
        flex-direction: column;
    }

    .product-modal-img {
        border-radius: 18px 18px 0 0;
        min-width: 0;
    }

    .product-modal-details {
        padding: 18px 12px;
    }
}

.modal-store-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.1;
}

.modal-rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.modal-rating-star {
    color: #FFA500;
    font-size: 1.2rem;
}

.modal-rating-reviews {
    color: #222;
    font-size: 1rem;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.modal-grip-label {
    margin-bottom: 10px;
    font-weight: bold;
}

.modal-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.modal-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.modal-share-row {
    display: flex;
    margin-bottom: 18px;
}

.modal-view-details {
    margin-bottom: 18px;
    color: #222;
    text-decoration: underline;
    font-size: 1rem;
    display: inline-block;
}

#productModal>div {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

#modalImgContainer {
    flex: 1;
    min-width: 260px;
    text-align: center;
    margin-bottom: 0;
}

#modalDetailsContainer {
    flex: 1;
    min-width: 260px;
}

@media (max-width: 700px) {
    #productModal>div {
        flex-direction: column;
        gap: 16px;
    }
}