:root {
    --primary-pink: #d19795;
    --primary-pink-hover: #ba817f;
    --bg-pink: #f8e9eb;
    --bg-green: #e5f0e9;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --shadow-soft: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 25px rgba(209, 151, 149, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}
html {
    /* Removed overflow-x: hidden to allow position: sticky on header */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-heading);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-pink);
    padding: 8px 0;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Header */
.header {
    background-color: var(--bg-pink);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-pink);
    gap: 10px;
}

.logo-icon {
    border-radius: 50%;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-list a:hover, .nav-list a.active {
    color: var(--primary-pink);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 4px;
    overflow: hidden;
    z-index: 99;
}

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

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a:hover {
    background: var(--bg-pink);
}

.cart-icon {
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 600;
    max-height: 600px;
    background-color: var(--bg-green);
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-slider {
        aspect-ratio: 1920 / 600;
        height: auto;
    }
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    width: 100%;
}

.slide h2 {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    max-width: 500px;
    line-height: 1.2;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.7);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.slider-nav:hover {
    background: var(--primary-pink);
    color: var(--white);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}


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

.slider-dots .dot.active, .slider-dots .dot:hover {
    background: var(--primary-pink);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #c4807d 100%);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-pink-hover) 0%, #ab6967 100%);
    box-shadow: 0 8px 20px rgba(209, 151, 149, 0.35);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-pink);
    border: 1px solid var(--primary-pink);
}

.btn-secondary:hover {
    background-color: var(--bg-pink);
}

/* Product Grid */

.products-section {
    padding: 60px 20px;
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-8px);
    border-color: rgba(209, 151, 149, 0.3);
}

.product-image-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.product-info .price {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.product-actions button {
    font-size: 0.8rem;
    padding: 8px 15px;
}

/* Features */
.features-section {
    background-color: var(--bg-green);
    padding: 60px 0;
    text-align: center;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    flex: 1;
    min-width: 200px;
}

.feature-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: var(--bg-pink);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    flex: 1;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--primary-pink);
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.footer-bottom {
    background: #e8d5d7;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Category Grid Animations */
.cat-block:hover .cat-bg {
    transform: scale(1.1) !important;
}




.product-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.product-carousel::-webkit-scrollbar {
    display: none;
}
.product-card {
    scroll-snap-align: start;
}


/* Account Pages Layout */
.account-page-section {
    background-image: linear-gradient(rgba(253, 253, 253, 0.95), rgba(253, 253, 253, 0.97)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=1600&auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
}
.account-header {
    background: linear-gradient(135deg, #fdf7f8, #fdf7f8);
    padding: 20px 15px; /* Reduced padding here */
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}
.account-header h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 5px;
}
.account-header p {
    color: #777;
    margin-bottom: 0;
}
.account-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .account-content {
        grid-template-columns: 250px minmax(0, 1fr);
    }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.account-dashboard {
    animation: fadeUp 0.4s ease-out forwards;
}
.account-dashboard.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease-in;
}
.account-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 30px;
}
.panel-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Extracted from index.php */
@media (max-width: 768px) {
            .mobile-logo {
                display: block !important;
                font-family: var(--font-heading);
                font-size: 1.5rem;
                font-weight: 700;
                color: var(--primary-pink);
                text-decoration: none;
                letter-spacing: 1px;
            }
            .mobile-menu-toggle {
                display: block;
            }
            .nav-links {
                display: none !important;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: white;
                padding: 20px 25px !important; /* Fixed override */
                box-shadow: 0 10px 30px rgba(0,0,0,0.1);
                z-index: 999;
                gap: 18px !important;
                max-height: calc(100vh - 60px);
                overflow-y: auto;
            }
            .nav-links.active {
                display: flex !important;
            }
            .mega-menu {
                position: static;
                display: grid !important;
                grid-template-columns: 1fr 1fr;
                gap: 15px;
                padding: 15px 0 0 0;
                box-shadow: none;
                border: none;
                opacity: 1;
                visibility: visible;
                transform: none;
            }
            .mega-item img {
                width: 100%;
                height: 90px;
                margin-bottom: 8px;
            }
            .mega-item h4 {
                font-size: 0.85rem;
            }
            .desktop-search-bar {
                display: none;
            }
        }
        
        .mobile-header-icons {
            display: none;
        }
        .mobile-logo {
            display: none;
        }
    

    @keyframes scrollTestimonials {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); } /* Scrolls exactly half the width */
    }
    .testimonials-track {
        display: flex; 
        gap: 30px; 
        width: max-content; 
        animation: scrollTestimonials 25s linear infinite;
    }
    .testimonials-track:hover {
        animation-play-state: paused;
    }
    
/* Side Cart */
.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.side-cart.active {
    right: 0;
}

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

.cart-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-timer {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.item-price {
    font-weight: 600;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-remove {
    cursor: pointer;
    color: var(--text-muted);
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-selector button {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.qty-selector span {
    padding: 0 10px;
    font-size: 0.9rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.cart-summary-line.total {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.discount-code {
    color: var(--primary-pink);
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 15px;
    display: block;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

/* Mega Menu Desktop Fix */
.nav-links li {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    z-index: 100;
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--primary-pink);
}

li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-item {
    text-align: center;
    display: block;
}

.mega-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.mega-item:hover img {
    transform: scale(1.05);
}

.mega-item h4 {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Product Details Fix */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.product-image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search Modal Fix */
.search-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.search-modal-overlay.active {
    opacity: 1; visibility: visible;
}
.search-modal-content {
    position: fixed;
    top: 0; right: -400px; width: 100%; max-width: 400px; height: 100%;
    background: white;
    z-index: 1001;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    padding: 20px;
    display: flex; flex-direction: column;
}
.search-modal-content.active {
    right: 0;
}
.search-modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.search-modal-section {
    margin-bottom: 30px;
}
.search-section-title {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px;
}
.search-section-title h3 {
    font-size: 1rem; color: #333;
}
.search-section-title button {
    background: none; border: none; color: #999; font-size: 0.8rem; cursor: pointer;
}
.recent-item {
    display: flex; align-items: center; gap: 15px; padding: 10px; border-radius: 8px; transition: background 0.2s;
}
.recent-item:hover {
    background: #f5f5f5;
}
.recent-item img {
    width: 60px; height: 60px; object-fit: cover; border-radius: 6px;
}
.recent-item p {
    margin: 0; font-size: 0.95rem; font-weight: 500; flex: 1;
}
.recent-item span {
    color: var(--primary-pink); font-weight: 600; font-size: 0.9rem;
}
.search-products-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}
.search-products-grid img {
    width: 100%; height: 120px; object-fit: cover; border-radius: 8px; transition: transform 0.3s;
}
.search-products-grid a:hover img {
    transform: scale(1.05);
}


/* --- Fix Header Mobile/Desktop Visibility --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: block !important;
        text-align: center;
    }
}

/* Hide huge header features on mobile to prevent horizontal scrolling */
@media (max-width: 768px) {
    .header-features {
        display: none !important;
    }
    body, html {
        overflow-x: clip;
    }
}

/* Sticky Mobile Header */
@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
}

/* Hide Desktop Header completely on Mobile */
@media (max-width: 768px) {
    .header {
        display: none !important;
    }
}
