:root {
    /* Color Palette - Fresh & Organic */
    --primary: #4d7c0f;
    /* Lush Green */
    --primary-light: #65a30d;
    --primary-dark: #365314;
    --secondary: #eab308;
    /* Sunny Yellow */
    --accent: #f97316;
    /* Orange for CTAs */

    --bg-body: #fbfdf8;
    /* Slightly tinted white */
    --bg-surface: #ffffff;
    --bg-alt: #f3f8ec;
    /* Light green background for sections */

    --text-main: #1a2e05;
    /* Very dark green, softer than black */
    --text-muted: #4d5e38;

    --border-light: #e2e8f0;
    --border-green: #dcfce7;

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Karla', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    line-height: 1.2;
    color: var(--primary-dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.grid {
    display: grid;
    gap: 2.5rem;
}

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

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

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

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* --- Pattern Background --- */
.leaf-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 100% 100%, transparent 10px, var(--bg-body) 11px),
        radial-gradient(circle at 0% 100%, transparent 10px, var(--bg-body) 11px),
        radial-gradient(var(--border-green) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/* --- Navigation --- */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-main);
}

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

.nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 14px 0 rgba(77, 124, 15, 0.3);
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 124, 15, 0.4);
}

/* --- Hero Section --- */
.hero {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
}

.hero h1 span {
    color: var(--primary);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--border-green);
    z-index: -1;
    border-radius: 4px;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-image-wrap {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 600px;
    height: 600px;
    object-fit: cover;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    animation: morph 8s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    }

    50% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    z-index: 10;
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1.125rem 2.25rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    padding: 1.125rem 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.btn-text {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* --- Category Cards --- */
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 350px;
    display: block;
}

.category-img {
    width: 100%;
    height: 100%;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.category-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.category-overlay span {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(77, 124, 15, 0.9), transparent);
}

.category-card:hover .category-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* --- Product Cards --- */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f9fbf7;
}

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

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

.add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: var(--font-body);
}

.product-card:hover .add-to-cart {
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-top: auto;
}

/* --- Category Tabs --- */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
}

.btn-outline.active {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.btn-outline:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Newsletter Banner --- */
.promo-banner {
    background: var(--primary-dark);
    color: white;
    border-radius: 2rem;
    padding: 5rem 2rem;
    text-align: center;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(132, 204, 22, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(132, 204, 22, 0.1) 0%, transparent 50%);
}

.promo-banner h2 {
    color: white;
    font-size: 3rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    background: var(--secondary);
    color: var(--text-main);
    border: none;
    padding: 0 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.newsletter-form button:hover {
    background: #facc15;
    transform: scale(1.02);
}

/* --- Footer --- */
.footer {
    background: #0f1705;
    color: white;
    padding: 6rem 0 3rem;
}

.footer h3 {
    color: var(--secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

/* --- Mobile Nav --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Media Queries --- */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-img {
        width: 450px;
        height: 450px;
    }
}

@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-image-wrap {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero .flex {
        justify-content: center;
    }

    .trust-bar {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: flex;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        text-align: center;
        border-top: 1px solid var(--border-light);
    }

    .navbar .nav-links.active {
        max-height: 80vh;
        padding: 3rem 1.5rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links a {
        padding: 1rem;
        width: 100%;
        font-size: 1.25rem;
    }

    .nav-links .nav-btn {
        margin-top: 1rem;
        display: inline-block;
        width: auto;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .mobile-toggle svg line {
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    .mobile-toggle.active svg line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-toggle.active svg line:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active svg line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .promo-banner h2 {
        font-size: 2.25rem;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 1rem;
    }

    .newsletter-form button {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .footer .grid-4 {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast-notification {
    background: #1a2e05;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-notification.active {
    transform: translateX(0);
}

.toast-notification::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #4d7c0f;
    border-radius: 50%;
    font-size: 0.75rem;
}

.btn-outline.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* --- Cart Drawer --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    z-index: 3000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.cart-close:hover {
    opacity: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-empty {
    text-align: center;
    padding-top: 5rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cart-item-remove {
    cursor: pointer;
    font-size: 0.75rem;
    color: #ef4444;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.5rem;
}

.cart-footer {
    padding: 2rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (max-width: 500px) {
    .cart-drawer {
        width: 100%;
    }
}
/* --- Mobile Menu & Scroll Reveal (AI Enhanced) --- */
.mobile-toggle { 
    display: none; 
    cursor: pointer; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    color: inherit;
}

@media (max-width: 768px) {
    .navbar .container, .navbar { position: relative; }
    .mobile-toggle { display: block; }
    .nav-links { 
        display: none !important; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: #fff;
        color: #000;
        padding: 2rem; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 9999;
    }
    .nav-links.active { display: flex !important; }
    .nav-links a { padding: 1rem 0; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.05); }
}

.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* Placeholder Styling */
img[src*="data:image/svg+xml"] { opacity: 0.8; filter: grayscale(1); }
