:root {
            --primary: #0d8af0; /* babycare Orange */
            --secondary: #00AEEF; /* Sky Blue */
            --bg-light: #F8F9FA;
            --text-dark: #333;
            --shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Quicksand', sans-serif;
            background-color: #fff;
            color: var(--text-dark);
            line-height: 1.6;
        }

        #promo-products-grid-section{width:100%; border:1px solid #ff0000;}


        a:link{text-decoration: none;}
        a:link:visited{ text-decoration: none;     }

        /* Announcement Bar */
        .promo-bar {
            background: var(--primary);
            color: white;
            text-align: center;
            padding: 8px;
            font-size: 14px;
            font-weight: 600;
        }

        /* Header */
        header {
            position: sticky;
            top: 0;
            background: white;
            padding: 5px 2%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            z-index: 1000;
        }
        
        .submenu{position:relative; left:100px;}
        /* CAROUSEL CONTAINER */
    .carousel-container {
        width: 100%;
        height: 450px; /* Standard hero height */
        overflow: hidden;
        position: relative;
        background: #fdfdfd;
    }

    .carousel-track {
        display: flex;
        width: 300%; /* 100% per slide (3 slides total) */
        height: 100%;
        animation: slideTransition 15s infinite alternate ease-in-out;
    }

    .slide {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0;
    }

    /* Individual Slide Backgrounds */
    .slide-1 { background-color: #FFF5E6; } /* Soft Orange */
    .slide-2 { background-color: #E6F7FF; } /* Soft Blue */
    .slide-3 { background-color: #F0FFF4; } /* Soft Green */

    .slide-content h2 {
        font-size: 3.5rem;
        color: var(--text-dark);
        margin-bottom: 10px;
        line-height: 1.1;
    }

    .slide-content p {
        font-size: 1.2rem;
        margin-bottom: 25px;
        color: #666;
    }

    .slide-image {
        width: 400px;
        height: 300px;
        background: #fff;
        border-radius: 20px;
        box-shadow: var(--shadow);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 50px;
    }

    /* Animation for the Auto-Slider */
    @keyframes slideTransition {
        0%, 25% { transform: translateX(0); }
        35%, 65% { transform: translateX(-33.33%); }
        75%, 100% { transform: translateX(-66.66%); }
    }

    /* Navigation Dots */
    .carousel-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
    }

    .dot {
        width: 12px;
        height: 12px;
        background: rgba(0,0,0,0.1);
        border-radius: 50%;
        cursor: pointer;
    }

    .dot.active {
        background: var(--primary);
        width: 30px; /* Elongated active dot like modern UI */
        border-radius: 10px;
    }


    #gift_btn{ display:none; }

    @media (max-width: 768px) {
        .carousel-container { height: 260px; }
        .slide-content h2 { font-size: 2rem; }
        .slide-image { display: none; } /* Hide images on small mobile to save space */
    }
    /******************** */

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
        }

        nav a {
            margin: 0 15px;
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 600;
        }
        /************new */

        nav {
        display: flex;
        align-items: center;
    }

    /* Dropdown Container */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropbtn {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* The actual Dropdown Content (Accordion) */
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: white;
        min-width: 200px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
        border-radius: 8px;
        overflow: hidden;
        z-index: 1;
        top: 100%;
        border-top: 3px solid var(--primary);
    }

    /* Dropdown Links */
    .dropdown-content a {
        color: var(--text-dark);
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid #f1f1f1;
        transition: 0.2s;
        margin: 0; /* Override previous margin */
    }

    .dropdown-content a:hover {
        background-color: #fff5e6;
        color: var(--primary);
        padding-left: 20px; /* Slight slide effect */
    }

    /* Show dropdown on hover */
    .dropdown:hover .dropdown-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Caret icon */
    .caret {
        font-size: 10px;
        transition: 0.3s;
    }

    .dropdown:hover .caret {
        transform: rotate(180deg);
    }

        .search-bar {
            background: var(--bg-light);
            border-radius: 20px;
            padding: 8px 20px;
            display: flex;
            align-items: center;
        }

        .search-bar input {
            border: none;
            background: transparent;
            outline: none;
            margin-left: 10px;
        }

        /* Hero Section */
        .hero {
            background: #FFF5E6;
            padding: 60px 5%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 400px;
        }

        .hero-text h1 {
            font-size: 3rem;
            color: var(--text-dark);
            margin-bottom: 20px;
        }

        .btn {
            background: var(--primary);
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            display: inline-block;
            font-weight: 700;
            transition: 0.3s;
        }

        .btn:hover {
            transform: scale(1.05);
            background: #e67e00;
        }

        /* Categories */
        .categories {
            padding: 40px 5%;
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }

        .cat-item {
            text-align: center;
            cursor: pointer;
        }

        .cat-circle {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: var(--bg-light);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid transparent;
            transition: 0.3s;
        }

        .cat-item:hover .cat-circle {
            border-color: var(--primary);
            box-shadow: var(--shadow);
        }

        /* Product Grid */
        .section-title {
            padding: 20px 5%;
            font-size: 24px;
        }

        .product-gridxx {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
            padding: 0 5% 50px;
        }

        .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 5px 5%;
}

  .popular-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 5px 5%;
}

        .product-cardxx {
            background: white;
            border: 1px solid #eee;
            border-radius: 15px;
            padding: 15px;
            position: relative;
            transition: 0.3s;
        }

        .product-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    overflow: hidden; /* Crucial for the slide-up button */
    display: flex;
    flex-direction: column;
}

.product-cardxx:hover {
                box-shadow: var(--shadow);
        }


.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

        .product-card img {
            width: 100%;
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex 1;
    align-items: center;
    justify-content: center;
    max-height:150px;
    overflow:hidden;
			margin-left:20px;
}

.product-image-container img {
    max-width: 80%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.1); /* Subtle zoom on hover */
}

/* Age Badge */
.age-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 174, 239, 0.1); /* Light Blue Tint */
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

/* Quick Add Button - Slides up from bottom */
.quick-add-btn {
    position: absolute;
    bottom: -50px; /* Hidden initially */
    left: 0;
    width: 100%;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: bottom 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card:hover .quick-add-btn {
    bottom: 0; /* Slides up on hover */
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.product-info .brand {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
}

        .badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--secondary);
            color: white;
            padding: 4px 10px;
            border-radius: 5px;
            font-size: 12px;
        }

        .price {
            color: var(--primary);
            font-weight: 700;
            font-size: 1.1rem;
        }

        .old-price {
            text-decoration: line-through;
            color: #999;
            font-size: 0.9rem;
            margin-left: 5px;
        }

        /* WhatsApp Button */
        .whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: transparent;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
            text-decoration: none;
            z-index: 2000;
        }

        @media (max-width: 768px) {
            .hero { flex-direction: column; text-align: center; }
            nav { display: none; }
        }

/* ... (previous styles) ... */

    /* Container for Search and Icons */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    /* Icon Styles */
    .icon-link {
        text-decoration: none;
        color: var(--text-dark);
        position: relative;
        display: flex;
        align-items: center;
        font-size: 22px; /* Adjust icon size */
        transition: color 0.3s;
    }

    .icon-link:hover {
        color: var(--primary);
    }

    /* Cart Badge (The little red number) */
    .cart-count {
        position: absolute;
        top: -8px;
        right: -10px;
        background: #ff4757; /* Red badge */
        color: white;
        font-size: 11px;
        font-weight: 700;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
    }

    /* Responsive adjustment: Hide nav on smaller screens but keep icons */
    @media (max-width: 992px) {
        nav { display: none; }
        .search-bar { display: none; } /* On very small screens, usually replaced by a search icon */
    }

    /* REEL CONTAINER */
    .brand-reel {
        background: #fdfdfd;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        overflow: hidden; /* Hides the scrollbar */
        white-space: nowrap;
        position: relative;
    }

    /* THE MOVING TRACK */
    .reel-track {
        display: inline-flex;
        align-items: center;
        gap: 60px; /* Space between items */
        animation: scrollReel 25s linear infinite;
    }

    .reel-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        color: #888;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* BRAND LOGO PLACEHOLDER */
    .brand-logo {
        height: 30px;
        opacity: 0.6;
        filter: grayscale(100%);
        transition: 0.3s;
    }

    .reel-item:hover .brand-logo {
        opacity: 1;
        filter: grayscale(0%);
    }

    /* SEAMLESS ANIMATION */
    @keyframes scrollReel {
        from { transform: translateX(0); }
        to { transform: translateX(-50%); } /* Moves halfway to loop perfectly */
    }

    /* PAUSE ON HOVER */
    .brand-reel:hover .reel-track {
        animation-play-state: paused;
    }

/* --- FOOTER STYLES --- */
    footer {
        background: #fdfdfd;
        border-top: 1px solid #eee;
        padding: 60px 5% 20px;
        margin-top: 50px;
        font-family: 'Quicksand', sans-serif;
    }

    .footer-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-column h3 {
        color: var(--text-dark);
        font-size: 18px;
        margin-bottom: 20px;
        position: relative;
    }

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 30px;
        height: 2px;
        background: var(--primary);
    }

    .footer-column ul {
        list-style: none;
    }

    .footer-column ul li {
        margin-bottom: 12px;
    }

    .footer-column ul li a {
        text-decoration: none;
        color: #666;
        font-size: 14px;
        transition: 0.3s;
    }

    .footer-column ul li a:hover {
        color: var(--primary);
        padding-left: 5px;
    }

    /* Newsletter Box */
    .newsletter-input {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }

    .newsletter-input input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        outline: none;
    }

    /* Bottom Bar */
    .footer-bottom {
        border-top: 1px solid #eee;
        padding-top: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .payment-icons {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .payment-badge {
        height: 30px;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: 0.3s;
    }

    .payment-badge:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

    .copyright {
        color: #999;
        font-size: 13px;
    }

    @media (max-width: 768px) {
        .footer-bottom { flex-direction: column; text-align: center; }
    }

    
    /* --- WIDE ADVERT SECTION --- */
    .promo-banner-wide {
        width: 100%;
        margin: 40px auto;
        background: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%); /* Deep Blue Gradient */
        border-radius: 0px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 60px 8%;
        color: white;
        overflow: hidden;
        position: relative;
    }

   

    .promo-content h2 {
        font-size: 2.8rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .promo-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        opacity: 0.9;
    }

     .promo-contentx {
        border:1px solid #ffff00;
        float:left;
        z-index: 2;
        float:left;
        width:40%;

    }

    .promo-image-areax{
         float:right;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 2;
        border:1px solid #00ff00;
        width:40%;
    }


    /* Container - Default for Mobile */
.promo-container {
    display: flex;
    flex-direction: column; /* Stacks them top-to-bottom */
    gap: 20px;              /* Adds space between the two divs */
    padding: 20px;
}

/* Children - Ensure they take full width on mobile */
.promo-content, 
.promo-image-area {
    flex: 1;
}



    /* Floating Circle Decoration */
    .promo-banner-wide::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        z-index: 1;
    }

    /* White Button for Blue Background */
    .btn-white {
        background: white;
        color: var(--secondary);
        padding: 15px 40px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        transition: 0.3s;
        display: inline-block;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .btn-white:hover {
        transform: scale(1.05);
        background: #f8f8f8;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }

    /* Product Feature Box in the Advert */
    .featured-offer-box {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        text-align: center;
        width: 250px;
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }

    @media (max-width: 992px) {
        .promo-banner-wide {
            flex-direction: column;
            text-align: center;
            padding: 40px 5%;
        }
        .promo-content h2 { font-size: 2rem; }
        .promo-image-area { margin-top: 40px; }
    }


    /* --- TOAST NOTIFICATION --- */
#cart-toast {
    position: fixed;
    top: -100px; /* Hidden above screen */
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71; /* Success Green */
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
}

#cart-toast.show {
    top: 20px; /* Slide down into view */
}

/* Add a little "pop" animation to the cart count */
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.bump {
    animation: bump 0.3s ease-out;
}

/* --- MAP SECTION --- */
.map-section {
    width: 90%;
    margin: 40px auto;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- PRODUCT DETAILS PAGE STYLES --- */
.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 40px 8%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Left Side: Images */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-display {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid #eee;
}

.main-image-display span {
    font-size: 150px; /* Placeholder for real img */
}

/* Right Side: Info */
.product-info-column h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stock-status {
    color: #2ecc71;
    font-weight: 700;
    font-size: 14px;
}

.product-description {
    color: #666;
    margin: 20px 0;
    line-height: 1.8;
}

.price-large {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
}

/* Quantity & Buttons */
.purchase-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
}

.btn-buy-now {
    flex: 1;
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

/* Trust Bar (Kampala Specific) */
.trust-bar-mini {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    display: grid;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

@media (max-width: 992px) {
    .product-details-container {
        grid-template-columns: 1fr;
    }
}

/* --- PRODUCT DETAILS PAGE STYLES --- */
.product-details-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    padding: 40px 8%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Left Side: Images */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-display {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.main-image-display span {
    font-size: 150px; /* Placeholder for real img */
}

/* Right Side: Info */
.product-info-column h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stock-status {
    color: #2ecc71;
    font-weight: 700;
    font-size: 14px;
}

.product-description {
    color: #666;
    margin: 20px 0;
    line-height: 1.8;
}

.price-large {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
}

/* Quantity & Buttons */
.purchase-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
}

.btn-buy-now {
    flex: 1;
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

/* Trust Bar (Kampala Specific) */
.trust-bar-mini {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    display: grid;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

@media (max-width: 992px) {
    .product-details-container {
        grid-template-columns: 1fr;
    }
}


/* --- RELATED PRODUCTS SLIDER --- */
.related-products-section {
    padding: 20px 5px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.related-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Enables horizontal scroll */
    padding-bottom: 20px;
    scroll-snap-type: x mandatory; /* Smooth snapping on mobile */
    scrollbar-width: thin; /* Clean scrollbar for Firefox */
}

/* Hide scrollbar for Chrome/Safari but keep functionality */
.related-grid::-webkit-scrollbar {
    height: 6px;
}
.related-grid::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

.related-item {
    min-width: 250px; /* Ensures items don't shrink */
    scroll-snap-align: start;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 15px;
    transition: 0.3s;
}

.related-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.related-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f9f9f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 15px;
}

/* --- MOBILE NAVIGATION STYLES --- */

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 5px;
    transition: 0.3s;
}

/* Side Drawer Overlay */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden off-screen to the left */
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-drawer.active {
    left: 0; /* Slide in */
}

/* Background Dimmer when menu is open */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

/* Mobile Link Styles */
.mobile-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* RESPONSIVE TRICKS */
@media (max-width: 992px) {
    #gift_btn{ display:block; }
    #gift_finder{ display:none; }

    .menu-toggle { display: flex; }
    nav { display: none !important; } /* Hide desktop nav */
    .search-bar { display: none; } /* Hide search to save space, or move to drawer */
}

/* --- CHECKOUT PAGE STYLES --- */
.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding: 40px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-section {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.checkout-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

/* Payment Options */
.payment-method {
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.payment-method.active {
    border-color: var(--primary);
    background: #fff9f0;
}

/* Summary Box */
.summary-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.total-row {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .checkout-container { grid-template-columns: 1fr; }
}

/* --- CART MODAL STYLES --- */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.cart-modal-overlay.active {
    display: flex;
}

.cart-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-cart {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: #f9f9f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cart-item-info h4 {
    font-size: 14px;
    margin-bottom: 3px;
}

.cart-item-info p {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
}

.cart-total-section {
    border-top: 2px solid #f9f9f9;
    padding-top: 15px;
    text-align: right;
}

.btn-checkout-full {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-checkout-full:hover {
    background: #3c68ef;
}

/* --- ADMIN LOGIN MODAL --- */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Darker backdrop for Admin */
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 4000;
}

.admin-modal-overlay.active {
    display: flex;
}

.admin-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.admin-card h2 {
    margin-bottom: 10px;
    color: #1e293b;
}

.admin-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
}

.admin-form .form-group {
    text-align: left;
}

.admin-input {
    width: 100%;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    outline: none;
    transition: 0.3s;
}

.admin-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}

.btn-admin-login {
    width: 100%;
    background: #1e293b; /* Professional Dark Navy */
    color: white;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-admin-login:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

.close-admin {
    margin-top: 20px;
    display: inline-block;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: underline;
}

/* --- ADMIN DASHBOARD PANEL --- */
#admin-dashboard {
    display: block; /* Hidden until login */
    padding: 40px 8%;
    background: #f1f5f9;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* Form to Add/Edit */
.admin-card-form {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* Inventory Table */
.inventory-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.inventory-table th {
    background: #1e293b;
    color: white;
    text-align: left;
    padding: 15px;
}

.inventory-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.btn-delete {
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-edit {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

/* --- MINIMALIST HORIZONTAL SCROLL --- */
.minimal-scroll-section {
    padding: 60px 5%;
    background: #fff;
}

.minimal-scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide for Firefox */
}

.minimal-scroll-container::-webkit-scrollbar {
    display: none; /* Hide for Chrome/Safari */
}

.minimal-card {
    min-width: 220px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: none; /* No borders as requested */
    background: transparent;
}

.minimal-card:hover {
    transform: translateY(-10px);
}

.minimal-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fdfdfd; /* Very subtle off-white */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin-bottom: 15px;
}

.minimal-info {
    text-align: center;
}

.minimal-info h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.minimal-info .price {
    color: var(--secondary);
    font-weight: 700;
}

/* --- MOBILE-SPECIFIC GRID (2-COLUMN) --- */
@media only screen and (min-width: 160px) and (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr 1fr; /* Force 2 columns */
        gap: 2px; /* Smaller gap to save space */
        padding: 20px 3%; /* Reduced side padding */
    }
#gift_finder{ display:none; }
}



    @media only screen and (min-width: 360px) and (max-width: 700px) {

        #gift_finder{ display:none; }
    .product-grid {
        grid-template-columns: 1fr 1fr; /* Force 2 columns */
        gap: 5px; /* Smaller gap to save space */
        padding: 20px 3%; /* Reduced side padding */
    }

     .popular-product-grid {
        grid-template-columns: 1fr 1fr; /* Force 2 columns */
        gap: 12px; /* Smaller gap to save space */
        padding: 20px 3%; /* Reduced side padding */
    }


    .product-card {
        padding: 10px; /* Slimmer padding inside the card */
    }

    .product-info h4 {
        font-size: 13px; /* Slightly smaller font for long titles */
        line-height: 1.2;
        height: 32px; /* Fixed height to keep cards aligned */
        overflow: hidden;
    }

    .product-info .price {
        font-size: 12px;
    }

    .age-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    /* Adjust the Quick Add button for smaller width */
    .quick-add-btn {
        padding: 8px 5px;
        font-size: 11px;
    }
}

@media (max-width: 800px) {
    .minimal-card {
        min-width: 180px; /* Makes 3 items visible + a peek of the 3rd */
    }
    
    .minimal-img-wrapper {
        font-size: 30px; /* Scales down the emoji */
    }
}

@media (max-width: 370px) {
    .minimal-card {
        min-width: 100px; /* Makes 2 items visible + a peek of the 3rd */
    }
    
    .minimal-img-wrapper {
        font-size: 30px; /* Scales down the emoji */
    }
}

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.checkout-summary {
    background: #fdf2f4; /* Light Peekaboo pink */
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}
.place-order-btn {
    width: 100%;
    padding: 15px;
    background: #ff4d6d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Container for all related products */
#related-product-content {
   /* Container: Now horizontal and wrapping */
    display: flex;
    flex-direction: row; /* Horizontal alignment */
    flex-wrap: wrap;     /* Allows items to go to the next line */
    gap: 20px;           /* Space between the thumbs */
    padding: 20px 0;
}

/* The individual thumb: Now vertical and compact */


.otherview-thumb {
    display: flex;
    flex-direction: column; /* Stack image on top of text */
    align-items: center;    /* Center the content */
    width: 160px;           /* Fixed width for each thumb "card" */
    /**width:calc(25% - 20px);  only 4 images **/
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.otherview-thumb-img-wrapper {
    width: 140px;           /* Increased from 80px */
    height: 140px;          /* Increased from 80px */
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px; 
    background: #fdfdfd;
}

.otherview-thumb-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




.related-thumb {
    display: flex;
    flex-direction: column; /* Stack image on top of text */
    align-items: center;    /* Center the content */
    width: 160px;           /* Fixed width for each thumb "card" */
    /**width:calc(25% - 20px);  only 4 images **/
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.related-thumb:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: #ccc;
}

/* Image wrapper: Square and centered */
.thumb-img-wrapper {
    width: 140px;           /* Increased from 80px */
    height: 140px;          /* Increased from 80px */
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px; 
    background: #fdfdfd;
}

.thumb-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text info: Centered and small */
.thumb-info {
    width: 100%;
}

.thumb-name {
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    height: 2.4em; /* Limits to exactly 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Shows "..." after 2nd line */
    -webkit-box-orient: vertical;
}

.thumb-price {
    font-size: 13px;
    color: #e91e63;
    margin-top: 4px;
    font-weight: bold;
}


.mini-img{ width: 80px;
        height: 80px;}

@media (max-width: 480px) {
    .related-thumb {
        width: 45%; /* Shows 2 items side-by-side on mobile */
    }
    .thumb-img-wrapper {
        width: 100%;
        height: 120px;
    }
}

.shop-container {
  display: grid;
  grid-template-columns: 280px 1fr; /* Fixed sidebar, flexible content */
  gap: 30px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
}

.popular-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 5px;
}

.product-card {
  border: 1px solid #eee;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .shop-container {
    grid-template-columns: 1fr;
  }
    .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
}
  
  .filter-sidebar {
    position: static;
    margin-bottom: 20px;
  }
}

.gift-finder-section {
  background-color: #f9f6ff; /* A soft lavender or blue tint */
  padding: 15px;
  border-radius: 12px;
  border: 1px dashed #d1c4e9;
  margin-bottom: 25px;
}

.gift-finder-section h3 {
  color: #6200ea;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: white;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover, .filter-pill.active {
  border-color: #6200ea;
  color: #6200ea;
  background: #f3e5f5;
}

.budget-list {
  list-style: none;
  padding: 0;
}

.budget-list li a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
}

.budget-list li a:hover {
  color: #6200ea;
  text-decoration: underline;
}

/** select ***/

/* Container to handle the custom arrow positioning */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.filter-select {
  appearance: none; /* Removes default browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  
  width: 100%;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #444;
  background-color: #ffffff;
  border: 1px solid #dcdde1;
  border-radius: 8px; /* Rounded corners for a friendly feel */
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Custom Arrow Icon using a Data URI SVG */
.custom-select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236200ea'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none; /* Allows clicks to pass through to the select */
}

/* Hover & Focus States */
.filter-select:hover {
  border-color: #6200ea;
}

.filter-select:focus {
  outline: none;
  border-color: #6200ea;
  box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.1);
}

/* Styling the option list (Limited browser support, but keeps it clean) */
.filter-select option {
  padding: 10px;
  background-color: #fff;
}


/* Desktop View (Screens wider than 768px) */
@media (min-width: 400px) {
    .promo-container2 {
        flex-direction: column-reverse;    /* Switches to side-by-side */
        align-items: center;    /* Vertically centers the content */
        justify-content: space-between;
        border:1px solid #ff00ff;

        flex-wrap: nowrap; /* Prevents them from dropping to the next line */
        
    }
    
    .promo-content {
        flex: 1.5; 
                     /* Gives text a bit more room than the image */
    }
    
    .promo-image-area {
        flex: 1;
        display: flex;
        justify-content: center; /* Centers the gift box inside its area */
        
    }

    /* This ensures each child takes up roughly half the space */
.promo-content, .promo-image-area {
    flex: 1; 
    min-width: 0; /* Prevents content from pushing the div wider than it should be */
}
}