:root {
  --green-900: #0a4d14;
  --green-700: #17781f;
  --green-500: #3fae2a;
  --lime: #a6e22e;
  --cream: #f6faef;
  --ink: #16301a;
  --muted: #5b6f5e;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 77, 20, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
h1, h2, h3, h4, .brand { font-family: "Baloo 2", "Inter", sans-serif; line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.container { width: min(1160px, 92%); margin-inline: auto; }

/* Top bar */
.topbar { background: var(--green-900); color: #e9f7df; text-align: center; font-size: 0.85rem; padding: 8px 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid #e6efdf; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.9rem; font-weight: 800; color: var(--green-700); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; font-weight: 500; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--green-500); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; transition: background .2s; }
.icon-btn:hover { background: var(--cream); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--green-700); color: #fff; font-size: 0.72rem; font-weight: 600; display: grid; place-items: center; }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff; box-shadow: 0 8px 20px rgba(23,120,31,.28); }
.btn-ghost { border: 2px solid var(--green-700); color: var(--green-700); padding: 11px 24px; }
.btn-ghost:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-block { width: 100%; }

.pill { display: inline-block; background: #e4f5d3; color: var(--green-700); font-weight: 600; font-size: 0.82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.pill-light { background: rgba(255,255,255,.18); color: #fff; }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% 0%, #e3f6c9 0%, transparent 60%), var(--cream); padding: 64px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; color: var(--green-900); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--green-500); white-space: nowrap; }
.hero p { font-size: 1.08rem; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--green-700); font-weight: 500; font-size: 0.93rem; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 400px; }
.blob { position: absolute; width: 88%; aspect-ratio: 1; background: linear-gradient(135deg, var(--lime), var(--green-500)); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; opacity: .25; animation: morph 10s ease-in-out infinite; }
.hero-logo { position: relative; width: min(330px, 74%); border-radius: 28px; box-shadow: var(--shadow); background: #fff; padding: 14px; }
.float-card { position: absolute; background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow); animation: bob 4s ease-in-out infinite; }
.fc-1 { top: 8%; left: 2%; }
.fc-2 { bottom: 14%; left: 0; animation-delay: 1s; }
.fc-3 { top: 20%; right: 0; animation-delay: 2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes morph { 50% { border-radius: 44% 56% 42% 58% / 56% 44% 56% 44%; transform: rotate(8deg); } }

/* Sections */
.section { padding: 76px 0; }
.section-tint { background: var(--cream); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2, .contact-grid h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--green-900); }
.section-head p { color: var(--muted); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat { background: var(--cream); border: 1px solid #e3eedb; border-radius: var(--radius); padding: 24px 10px; text-align: center; font-weight: 600; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-500); }
.cat span { display: block; font-size: 2.2rem; margin-bottom: 8px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.chip { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid #d9e7cf; font-weight: 500; font-size: 0.92rem; transition: all .2s; }
.chip:hover { border-color: var(--green-500); }
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #e6efdf; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.p-img { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 4.2rem; position: relative; }
.p-tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--green-700); font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.p-name { font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.p-price { font-family: "Baloo 2", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--green-900); }
.add-btn { background: #e4f5d3; color: var(--green-700); font-weight: 600; font-size: 0.88rem; padding: 9px 16px; border-radius: 999px; transition: all .2s; }
.add-btn:hover { background: var(--green-700); color: #fff; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; border-radius: var(--radius); border: 1px solid #e6efdf; background: #fff; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.f-icon { width: 54px; height: 54px; border-radius: 16px; background: #e4f5d3; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.25rem; color: var(--green-900); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Sell */
.sell-card { background: linear-gradient(135deg, var(--green-900), var(--green-700) 60%, var(--green-500)); color: #fff; border-radius: 28px; padding: 54px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.sell-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.sell-card p { opacity: .9; margin-bottom: 24px; max-width: 520px; }
.steps { list-style: none; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.12); padding: 13px 18px; border-radius: 14px; font-weight: 500; }
.steps span { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--green-900); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-grid p { color: var(--muted); margin: 10px 0 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { background: #fff; border: 1px solid #d9e7cf; padding: 9px 16px; border-radius: 12px; font-weight: 500; font-size: 0.9rem; }
.subscribe { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.subscribe label { font-family: "Baloo 2", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--green-900); display: block; margin-bottom: 12px; }
.subscribe-row { display: flex; gap: 10px; }
.subscribe input { flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; border: 1.5px solid #d9e7cf; font: inherit; outline: none; }
.subscribe input:focus { border-color: var(--green-500); }
.form-msg { margin: 10px 0 0 !important; font-size: 0.9rem; min-height: 1.4em; color: var(--green-700) !important; }
.form-msg.error { color: #c0392b !important; }

/* Footer */
.footer { background: var(--green-900); color: #cfe6c4; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 36px; }
.brand-footer { color: #fff; margin-bottom: 8px; }
.brand-footer img { border-radius: 50%; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.footer a:not(.brand) { display: block; padding: 3px 0; opacity: .85; }
.footer a:not(.brand):hover { opacity: 1; color: var(--lime); }
.pay { font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; text-align: center; font-size: 0.86rem; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(10,30,12,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #e6efdf; }
.drawer-head h3 { font-size: 1.4rem; color: var(--green-900); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.empty span { font-size: 3rem; display: block; margin-bottom: 8px; }
.c-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef4e8; }
.c-thumb { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 1.8rem; flex-shrink: 0; }
.c-info { flex: 1; min-width: 0; }
.c-info strong { display: block; font-size: 0.95rem; }
.c-info small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); font-weight: 700; }
.qty button:hover { background: #e4f5d3; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid #e6efdf; }
.total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 80px); background: var(--green-900); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; opacity: 0; transition: all .3s; z-index: 120; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sell-card { grid-template-columns: 1fr; padding: 38px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 4%; border-bottom: 1px solid #e6efdf; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid #f0f5ea; }
  .hero { padding: 40px 0 56px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 320px; order: -1; }
  .hero-logo { width: 210px; }
  .section { padding: 56px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .subscribe-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-img { font-size: 3rem; }
  .p-body { padding: 12px; }
  .p-name { font-size: 0.98rem; }
  .p-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .add-btn { text-align: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
