/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #FF4D94;
    --secondary: #4DFFEB;
    --accent: #D4AF37;
    --background: #FFFFFF;
    --surface: #FFEBFA;
    --text: #2D2D2D;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- STICKY NAVIGATION --- */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
}

header.scrolled .nav-links a,
header.scrolled .nav-icons,
header.scrolled .logo-black {
    color: var(--text);
    text-shadow: none;
    display: block;
}

header.scrolled .logo-white {
    display: none;
}

.nav-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.nav-right-links {
    justify-content: flex-end;
}

/* SEARCH BAR STYLING */
.search-container {
    position: relative;
    z-index: 9999; /* Ensure it's above the large logo and other elements */
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 6px 15px;
    transition: all 0.3s ease;
    width: 200px;
    cursor: text;
    pointer-events: auto;
}

.search-container:focus-within {
    width: 280px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-icon {
    color: white;
    font-size: 0.9rem;
    margin-right: 8px;
    transition: color 0.3s ease;
}

.search-container:focus-within .search-icon {
    color: var(--primary);
}

#product-search {
    background: none;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.search-container:focus-within #product-search {
    color: var(--text); /* Dark text on white focus background */
}

header.scrolled #product-search {
    color: var(--text);
}

header.scrolled .search-container {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

header.scrolled .search-icon {
    color: var(--text-light);
}

#product-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container:focus-within #product-search::placeholder {
    color: var(--text-light);
}

header.scrolled #product-search::placeholder {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .search-container {
        display: none; /* Hide on mobile to avoid overcrowding */
    }
}

.logo,
.logo a {
    display: block;
    height: auto;
    text-align: center;
    color: var(--white);
}

.logo img {
    height: 220px !important;
    width: auto;
    transition: var(--transition);
}

.logo-black {
    display: none;
}

header.scrolled .logo img {
    height: 100px !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    /* Standard shadow on white bg */
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    /* White for contrast on images */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 10px 25px;
    font-size: 0.95rem;
}

.dropdown a::after {
    display: none;
}

.dropdown a:hover {
    background: var(--surface);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 1.2rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
}

/* --- HERO SLIDER SECTION --- */
.hero-slider {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.slides {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    z-index: 1;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1.1);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.brand-tag {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 77, 148, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(255, 77, 148, 0.3);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 77, 148, 0.4);
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--surface);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.brand-story {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
}

.brand-story h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.brand-story p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* --- PRODUCT GRID --- */
.products {
    padding: 60px 0 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    background: var(--surface);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    transition: var(--transition);
}

.product-card:hover .product-image img {
    scale: 1.1;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.rating {
    color: var(--accent);
    margin-bottom: 15px;
}

.price {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: block;
}

.add-to-cart {
    background: var(--text);
    color: var(--white);
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    /* Tap target */
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary);
}

/* --- TRUST SIGNALS --- */
.testimonials {
    background: var(--surface);
    padding: 100px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.author {
    font-weight: 700;
    color: var(--primary);
}

.trust-banner {
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-items {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-item i {
    font-size: 2rem;
    color: var(--secondary);
}

.trust-item span {
    font-weight: 600;
}

/* --- LEAD CAPTURE POP-UP --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    max-width: 500px;
    width: 90%;
    border-radius: 30px;
    padding: 50px;
    position: relative;
    text-align: center;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 30px;
}

.modal-form input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    font-family: inherit;
}

.modal-form button {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.modal-content .no-thanks {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-main {
        grid-template-columns: 50px 1fr 50px;
        padding: 5px 0;
    }

    .logo img {
        height: 100px !important;
    }

    header.scrolled .logo img {
        height: 80px !important;
    }

    .nav-left,
    .nav-right-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text);
    }

    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .trust-items {
        flex-direction: column;
        gap: 40px;
    }

    /* Mobile Menu Active State */
    .nav-main.mobile-active .nav-left {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 20px;
        align-items: flex-start;
        z-index: 1000;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .nav-main.mobile-active .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
    }
}
/* --- QUALITY SPECS --- */
.brand-story p {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.25rem;
    line-height: 1.8;
}

.quality-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.spec-item {
    background: var(--surface);
    padding: 30px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.spec-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.spec-item i {
    font-size: 2rem;
    color: var(--primary);
}

.spec-item span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PRODUCT DETAIL MODAL --- */
/* Override base .modal-content for the product quick-look */
#product-modal.modal-overlay {
    padding: 20px;
    overflow-y: auto;
}

#product-modal .modal-content {
    max-width: 960px;
    width: 100%;
    padding: 0 !important;
    overflow: hidden;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    text-align: left;
    transform: scale(0.95);
}

#product-modal.modal-overlay.active .modal-content {
    transform: scale(1);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.product-gallery {
    padding: 30px;
    background: #F9F9FB;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    flex: 1;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    pointer-events: none;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-list img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 5px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumbnail-list img:hover,
.thumbnail-list img.active {
    border-color: var(--primary);
}

.product-info-panel {
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 80vh;
}

.product-info-panel .section-badge {
    align-self: flex-start;
    margin-bottom: 12px;
    font-size: 0.72rem;
}

.product-info-panel h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 800;
    line-height: 1.2;
}

.product-info-panel > p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 24px;
}

.modal-price-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.modal-price-row .price {
    font-size: 1.6rem;
}

.modal-qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--surface);
    padding: 8px 18px;
    border-radius: 50px;
    border: 2px solid rgba(255, 77, 148, 0.15);
}

.modal-qty-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0 4px;
    line-height: 1;
    transition: var(--transition);
}

.modal-qty-btn:hover {
    color: var(--text);
    transform: scale(1.2);
}

#modal-qty-display {
    font-weight: 800;
    font-size: 1rem;
    min-width: 22px;
    text-align: center;
    color: var(--text);
}

.modal-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.modal-add-btn {
    background: var(--text);
    color: var(--white);
    border: none;
    padding: 16px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
}

.modal-add-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.modal-buy-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: var(--transition);
    text-transform: uppercase;
}

.modal-buy-btn:hover {
    background: #FF2E7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 148, 0.35);
}

.modal-specs ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-specs li {
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-specs li i {
    color: var(--primary);
}

@media (max-width: 700px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .main-image-container {
        min-height: 260px;
    }
    .product-info-panel {
        padding: 25px;
        max-height: none;
    }
}


/* --- OVERLAYS & MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    position: relative;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

/* --- VIP LEAD POPUP --- */
#lead-modal .modal-content {
    background: linear-gradient(135deg, #FFF 0%, #FFF5F7 100%);
    border: 2px solid var(--primary);
}

#lead-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text);
}

#lead-modal p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input {
    padding: 18px;
    border-radius: 15px;
    border: 1px solid #EEE;
    font-family: inherit;
}

.modal-form button {
    background: var(--primary);
    color: white;
    padding: 18px;
    border-radius: 15px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.no-thanks {
    display: block;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
}

/* Quick View Overlay on Cards */
.product-image {
    position: relative;
    overflow: hidden;
}

.quick-view-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s ease;
    cursor: pointer;
}

.product-card:hover .quick-view-overlay {
    bottom: 0;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        padding: 20px;
    }
    .main-image-container {
        height: 300px;
    }
    .product-info-panel {
        padding: 30px 20px;
    }
}
/* --- CART MODAL (ID SPECIFICITY) --- */
#cart-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--white);
    z-index: 9999;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    border-radius: 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#cart-drawer.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #EEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 200px;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #EEE;
    background: #F9F9F9;
    border-radius: 0 0 25px 25px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: #F5F5F5;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #DDD;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.remove-item {
    color: #FF4B2B;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.remove-item:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 95%;
        max-height: 90vh;
    }
}


/* Fix: Specific overlay for the cart to prevent interaction blocking */
.cart-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000; /* Stays below drawer (9999) */
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: none;
}
