@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-emerald: #046A38;
    --dark-emerald: #023020;
    --light-emerald: #0D8C4F;
    --mint-emerald: #E7F5EE;
    --gold-accent: #D4AF37;
    
    /* Layout & Backgrounds */
    --bg-white: #FFFFFF;
    --bg-soft: #FBFEFC;
    --bg-secondary: #EEF7F2;
    
    /* Text */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    
    /* Borders & Shadows */
    --border-light: rgba(4, 106, 56, 0.12);
    --shadow-soft: 0 18px 50px -28px rgba(2, 48, 32, 0.28), 0 8px 18px -16px rgba(2, 48, 32, 0.16);
    --shadow-elevated: 0 30px 80px -40px rgba(2, 48, 32, 0.35), 0 12px 32px -24px rgba(2, 48, 32, 0.24);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-weight: 500;
}

/* Base Spacing Scale & Utility (8px scale) */
section {
    padding-top: 120px;
    padding-bottom: 120px;
}
@media (min-width: 1024px) {
    section {
        padding-top: 160px;
        padding-bottom: 160px;
    }
}

.home-section {
    padding-top: 112px;
    padding-bottom: 112px;
}

/* =========================================
   LIQUID GLASSMORPHISM (RAM Efficient)
========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-soft);
    will-change: transform, opacity;
}

/* Dark variant for overlays */
.glass-dark {
    background: rgba(2, 48, 32, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 36px rgba(2, 48, 32, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav-glass.scrolled {
    background: rgba(255, 255, 255, 0.96);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.home-hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(13, 140, 79, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fffb 48%, #e8f6ef 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(8px);
}

.hero-glow-left {
    width: 28rem;
    height: 28rem;
    left: -12rem;
    top: 10rem;
    background: rgba(4, 106, 56, 0.08);
}

.hero-glow-right {
    width: 36rem;
    height: 36rem;
    right: -12rem;
    bottom: -12rem;
    background: rgba(13, 140, 79, 0.12);
}

.liquid-chip {
    color: var(--dark-emerald);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(4, 106, 56, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 40px -28px rgba(2, 48, 32, 0.5);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.hero-visual-wrap {
    position: relative;
}

.hero-visual-glass {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(231,245,238,0.5));
    border: 1px solid rgba(255,255,255,0.74);
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.hero-visual-img {
    display: block;
    width: 100%;
    min-height: 430px;
    max-height: 650px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

.hero-float-card {
    position: absolute;
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--dark-emerald);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 18px 40px -24px rgba(2,48,32,0.45);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.hero-float-card span {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.hero-float-card small {
    font-size: 0.72rem;
    color: #4b6258;
}

.hero-float-card.top-card {
    top: 28px;
    left: 28px;
}

.hero-float-card.bottom-card {
    right: 28px;
    bottom: 28px;
}

.trust-panel {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(4, 106, 56, 0.12);
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

/* =========================================
   PREMIUM BUTTONS
========================================= */
.btn-pill {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 16px 36px;
    border-radius: 100px; /* Pill shape */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-emerald {
    background-color: var(--primary-emerald);
    color: #FFFFFF;
    box-shadow: 0 8px 24px -6px rgba(4, 106, 56, 0.3);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(4, 106, 56, 0.4);
    background-color: var(--dark-emerald);
}

.btn-white {
    background-color: #FFFFFF;
    color: var(--text-primary);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-soft);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: var(--text-primary);
    color: #FFFFFF;
}

.emerald-outline {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(4, 106, 56, 0.22);
    color: var(--dark-emerald);
}

.emerald-outline:hover {
    background: var(--mint-emerald);
    border-color: var(--primary-emerald);
    color: var(--dark-emerald);
}

/* =========================================
   PRODUCT CARDS (Luxury Editorial)
========================================= */
.product-card {
    background: #FFFFFF;
    border-radius: 14px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    padding: 10px;
    border: 1px solid rgba(4, 106, 56, 0.08);
    box-shadow: 0 18px 45px -34px rgba(2, 48, 32, 0.24);
}

.product-card .img-wrapper {
    position: relative;
    background: linear-gradient(145deg, #f8fffb, #edf7f2);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px;
}

.product-card .img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Quick Actions (Glass on hover) */
.product-card .quick-actions {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 80%;
    display: flex;
    justify-content: center;
}

.product-card:hover .quick-actions {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Typography in cards */
.product-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    margin-top: 24px;
    color: var(--text-primary);
}

.product-card .price {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* =========================================
   CATEGORY CARDS
========================================= */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-secondary);
    display: block;
    box-shadow: var(--shadow-soft);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,48,32,0.72) 0%, rgba(2,48,32,0.2) 48%, rgba(255,255,255,0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.category-card h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.shipping-band {
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,0.18), transparent 26%),
        linear-gradient(135deg, var(--primary-emerald), var(--dark-emerald));
}

@media (max-width: 1023px) {
    .hero-visual-img {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .home-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-visual-glass {
        border-radius: 20px;
        padding: 8px;
    }

    .hero-visual-img {
        min-height: 300px;
        border-radius: 14px;
    }

    .hero-float-card {
        min-width: 128px;
        padding: 12px 14px;
    }

    .hero-float-card span {
        font-size: 1.05rem;
    }

    .hero-float-card.top-card {
        top: 16px;
        left: 16px;
    }

    .hero-float-card.bottom-card {
        right: 16px;
        bottom: 16px;
    }
}

/* =========================================
   UTILITIES & ANIMATIONS
========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-emerald-tint {
    background-color: var(--bg-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* Drawer Backdrops */
.drawer-backdrop {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(8px);
}
