:root {
    --green-900: #1a3c2a;
    --green-800: #234d36;
    --green-700: #2d6a4f;
    --green-600: #40916c;
    --green-500: #52b788;
    --green-100: #d8f3dc;
    --green-50: #f0faf3;
    --cream: #f7f9f5;
    --earth: #3d2b1f;
    --gold: #c9a227;
    --text: #1f2a24;
    --muted: #5c6b62;
    --shadow: 0 12px 40px rgba(26, 60, 42, 0.12);
    --radius: 1rem;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4, .display-font {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a { color: var(--green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-900); }

.btn-primary {
    --bs-btn-bg: var(--green-700);
    --bs-btn-border-color: var(--green-700);
    --bs-btn-hover-bg: var(--green-900);
    --bs-btn-hover-border-color: var(--green-900);
    --bs-btn-active-bg: var(--green-900);
    --bs-btn-active-border-color: var(--green-900);
}

.btn-outline-primary {
    --bs-btn-color: var(--green-700);
    --bs-btn-border-color: var(--green-700);
    --bs-btn-hover-bg: var(--green-700);
    --bs-btn-hover-border-color: var(--green-700);
}

.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe57; border-color: #1ebe57; color: #fff; }

/* Navbar */
.site-navbar {
    background: rgba(247, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 106, 79, 0.1);
}
.site-navbar .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--green-900) !important;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.site-navbar .nav-link {
    color: var(--green-800) !important;
    font-weight: 600;
    padding: .5rem 1rem !important;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: var(--green-600) !important; }

/* Hero */
.hero-slider .carousel-item { height: min(78vh, 620px); }
.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72);
}
.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, rgba(26,60,42,.75), rgba(26,60,42,.25));
}
.hero-caption h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: #fff;
    max-width: 16ch;
}
.hero-caption p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 36ch; }

.section-pad { padding: 4.5rem 0; }
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--green-900);
    margin-bottom: .5rem;
}
.section-sub { color: var(--muted); max-width: 42rem; margin-bottom: 2rem; }
.section-eyebrow {
    display: inline-block;
    color: var(--green-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .75rem;
    margin-bottom: .75rem;
}

/* Product cards */
.product-card {
    background: #fff;
    border: 1px solid rgba(45,106,79,.08);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.product-card .thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--green-100);
}
.product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.product-card .category-badge {
    font-size: .72rem;
    font-weight: 700;
    color: var(--green-700);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.product-card .price { font-weight: 700; color: var(--green-800); font-size: 1.1rem; }
.product-card .price-old {
    text-decoration: line-through;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
    margin-right: .35rem;
}

.category-tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 180px;
    display: block;
}
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    filter: brightness(.65);
    transition: transform .4s ease;
}
.category-tile:hover img { transform: scale(1.08); }
.category-tile .label {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.why-card, .testimonial-card, .blog-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(45,106,79,.08);
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow .25s ease, transform .25s ease;
}
.why-card:hover, .blog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--green-100);
    color: var(--green-700);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.testimonial-card .stars { color: var(--gold); }
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform .3s ease;
}
.gallery-grid a:hover img { transform: scale(1.03); }

.page-hero {
    background:
        linear-gradient(120deg, rgba(26,60,42,.88), rgba(45,106,79,.65)),
        url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1600&h=500&fit=crop') center/cover;
    color: #fff;
    padding: 5rem 0 3.5rem;
}
.page-hero h1 { color: #fff; }

.site-footer {
    background: var(--green-900);
    color: rgba(255,255,255,.82);
    padding-top: 3.5rem;
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer h5 { color: #fff; font-family: var(--font-display); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 2.5rem;
    padding: 1.2rem 0;
    font-size: .9rem;
}

.filter-panel {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(45,106,79,.1);
    padding: 1.25rem;
}

.spec-table th {
    width: 40%;
    color: var(--muted);
    font-weight: 600;
    background: var(--green-50);
}

/* Admin */
.admin-shell { min-height: 100vh; background: #eef4ef; }
.admin-sidebar {
    width: 260px;
    background: var(--green-900);
    color: #fff;
    min-height: 100vh;
    position: sticky;
    top: 0;
}
.admin-sidebar .brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,.78);
    padding: .7rem 1.25rem;
    border-radius: 0;
    display: flex;
    gap: .6rem;
    align-items: center;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.admin-content { flex: 1; padding: 1.5rem; }
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid rgba(45,106,79,.08);
}
.stat-card .value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--green-800);
}
.admin-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(45,106,79,.08);
    padding: 1.25rem;
}

.fade-up {
    animation: fadeUp .7s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: livePulse 1.6s infinite;
    vertical-align: middle;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.crop-live-table thead th {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.crop-live-banner {
    background: linear-gradient(120deg, #f0faf3, #ffffff 55%);
}

@media (max-width: 991px) {
    .admin-sidebar { width: 100%; min-height: auto; position: relative; }
    .hero-slider .carousel-item { height: 60vh; }
}
