@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-primary: #FAF8F5;
    --bg-secondary: #FFFFFF;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --accent: #5C2611;
    --accent-light: #8B4513;
    --honey: #D97706;
    --glass: rgba(250, 248, 245, 0.85);
    --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Dynamic CMS Properties */
    --base-font-size: 16px;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    background-color: #F1EEE9;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar - PREMIUM & STEADY */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.85); /* Glassmorphism effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #1C1917;
    letter-spacing: 2px;
}

.logo-text span {
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0px;
}

.nav-links {
    display: flex;
    gap: 0; /* Removing gap to use fixed widths */
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    padding: 0 0.5rem;
    min-width: 80px;
    display: block;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.admin-link, .track-link {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: none;
}

.cart-btn {
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(28, 25, 23, 0.8) 0%, rgba(28, 25, 23, 0.2) 50%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to right, black 30%, rgba(0,0,0,0.5) 50%, transparent 80%);
    -webkit-mask-image: linear-gradient(to right, black 30%, rgba(0,0,0,0.5) 50%, transparent 80%);
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}

.slide.active h1 {
    transform: translateY(0);
    opacity: 1;
}

.hero p {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.5s;
}

.slide.active p {
    transform: translateY(0);
    opacity: 1;
}

.hero .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out 0.7s;
}

.slide.active .btn {
    transform: translateY(0);
    opacity: 1;
}

@keyframes fadeInSmooth {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInSmooth 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(124, 45, 18, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 10px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 45, 18, 0.2);
}

/* Products Section */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #f1f5f9;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
}

.add-to-cart {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--accent);
    color: white;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Compact Category Section */
.category-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.category-card {
    background: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--accent);
    background: var(--bg-primary);
}

.category-card h3 {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.category-card span {
    display: none; /* Hide 'View All' to save space */
}

/* Footer Fix */
footer .logo {
    color: white !important;
    text-transform: uppercase;
}

footer .logo span {
    color: var(--accent);
}

footer .logo::before {
    display: none; /* Remove icon in footer to prevent scramble */
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cart-footer {
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Admin Dashboard */
.admin-section {
    padding: 8rem 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.admin-sidebar {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    height: fit-content;
    box-shadow: var(--shadow);
}

.admin-nav-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.admin-nav-item.active {
    background: var(--accent);
    color: white;
}

.admin-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
}

/* Horizontal Form Layouts */
.form-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

@media (max-width: 600px) {
    .form-side-by-side {
        grid-template-columns: 1fr;
    }
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.reviews-display {
    background: #f8fafc;
    padding: 1.2rem 1.5rem;
    border-radius: 24px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.review-flash-container {
    height: 140px;
    position: relative;
}

.review-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.review-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.review-content {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 0.4rem;
    font-style: italic;
}

.review-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.review-stars {
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

/* Star Rating Selector */
.rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.rating-input span {
    font-size: 1.5rem;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.2s;
}

.rating-input span.active {
    color: #f59e0b;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Connect Section - Responsive */
.connect-col-right {
    border-left: 1px solid #f1f5f9;
    padding-left: 2rem;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #FAF8F5; /* Matches the warm theme */
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        z-index: 1001; /* Higher than backdrop */
        text-align: center;
        border-bottom: 2px solid var(--accent);
    }

    .nav-links li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 1rem;
        font-size: 1rem;
        min-width: unset;
        width: 100%;
    }

    .connect-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .connect-col-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 2rem;
    }

    .usp-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem !important;
    }

    .usp-sep {
        display: none !important;
    }

    .usp-item {
        text-align: center;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions .track-link, .nav-actions .admin-link {
        display: none; /* Hide on mobile to save space, move to menu if needed */
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.8rem;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Mobile Menu Overlay/Backdrop */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 25, 23, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animations & Interactions */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSmooth {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

.fade-in {
    animation: fadeInSmooth 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Premium Button Enhancements */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(92, 38, 17, 0.2);
}

.btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(92, 38, 17, 0.3);
}

/* Footer */
footer {
    background: #1C1917;
    color: #FAF8F5;
    padding: 5rem 0 3rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--accent-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
    border-color: transparent;
    background: var(--accent);
}
