/* Naif Garden - mobile first */
:root {
    --green-900: #1e3a2a;
    --green-800: #24492f;
    --green-700: #2f6b45;
    --green-600: #3b7f54;
    --green-500: #4c9a63;
    --leaf-50: #f3f8f2;
    --leaf-100: #e3f0e2;
    --cream: #fbf8f1;
    --sand: #f3ede0;
    --terracotta: #c4643a;
    --sun: #f2b84b;
    --ink: #1b2620;
    --muted: #5d6b62;
    --line: #e2e7df;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(27, 38, 32, .06), 0 6px 20px rgba(27, 38, 32, .06);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--green-900); margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--green-900); color: #fff; }
.skip-link:focus { left: 8px; }

/* Shell & header */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--green-900); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--leaf-100); font-size: 1.25rem; }
@media (max-width: 359px) { .brand-name { display: none; } }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--muted); }
.nav-link:hover, .nav-link.is-active { color: var(--green-900); background: var(--leaf-100); }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px; border-radius: 999px; background: var(--green-700); color: #fff; text-decoration: none; font-size: 1.15rem; }
.cart-link:hover { background: var(--green-800); }
.cart-badge { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid var(--cream); border-radius: 999px; background: var(--terracotta); color: #fff; font-size: .7rem; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 1rem var(--font-body); text-decoration: none; text-align: center; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-primary:disabled { background: #9db3a4; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--green-800); box-shadow: inset 0 0 0 2px var(--green-700); }
.btn-ghost:hover { background: var(--leaf-100); }
.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: 10px; }
.link-btn { min-height: 40px; padding: 0 6px; border: 0; background: none; color: var(--muted); font-size: .9rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--terracotta); }

/* Hero */
.hero { background: radial-gradient(120% 120% at 100% 0, #d8ecd6 0, transparent 55%), linear-gradient(180deg, var(--leaf-50), var(--cream)); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 40px; }
.eyebrow { margin-bottom: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
.lead { max-width: 34ch; font-size: 1.08rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-actions .btn { flex: 1 1 150px; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 420px; }
.hero-art span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 22px; background: #fff; box-shadow: var(--shadow); font-size: clamp(2.2rem, 10vw, 3.4rem); }
.hero-art span:nth-child(even) { background: var(--sand); }
@media (min-width: 820px) {
    .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 64px; padding-bottom: 72px; }
    .hero-art { justify-self: end; }
    .hero-actions .btn { flex: 0 0 auto; }
}

/* Sections & categories */
.section { padding-top: 36px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--green-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cat-card { display: flex; flex-direction: column; min-height: 124px; padding: 16px; border-radius: var(--radius); text-decoration: none; transition: transform .15s; }
.cat-card:hover { transform: translateY(-2px); }
.cat-emoji { margin-bottom: auto; font-size: 2rem; }
.cat-name { margin-top: 12px; font-weight: 600; color: var(--green-900); }
.cat-count { font-size: .85rem; color: var(--muted); }

/* Product grid & cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(27, 38, 32, .06), 0 12px 28px rgba(27, 38, 32, .1); }
.card-link { display: block; flex: 1; text-decoration: none; }
.tile { display: grid; place-items: center; width: 100%; aspect-ratio: 1; }
.tile span { font-size: clamp(3rem, 14vw, 4.5rem); line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.tile-lg { border-radius: 24px; }
.tile-lg span { font-size: clamp(6rem, 30vw, 10rem); }
.tile-sm { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 12px; }
.tile-sm span { font-size: 2.2rem; }
.card-body { padding: 12px 12px 4px; }
.card-cat { margin: 0 0 2px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title { margin: 0; font-family: var(--font-body); font-size: .98rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 12px; }
.price { font-weight: 700; color: var(--green-800); }
.btn-add { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--leaf-100); color: var(--green-800); font-size: 1.35rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.btn-add:hover, .btn-add.is-added { background: var(--green-700); color: #fff; }
.btn-add:disabled { opacity: .4; cursor: not-allowed; }

/* Perks */
.perks { display: grid; gap: 10px; margin: 28px 0 8px; padding: 0; list-style: none; }
@media (min-width: 700px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perks li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.perk-emoji { font-size: 1.6rem; }
.perks strong { display: block; }
.perks small { color: var(--muted); }

/* Shop page */
.page-head { padding-top: 28px; padding-bottom: 4px; }
.page-head p { margin: 0; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.search { flex: 1 1 220px; }
.input, .select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.input:focus, .select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(76, 154, 99, .2); }
.select { flex: 1 1 160px; width: auto; }
@media (min-width: 640px) { .select { flex: 0 0 210px; } }
.chips { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; margin: 0; padding: 2px 0 10px; } }
.chip { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .92rem; font-weight: 500; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--green-500); }
.chip[aria-pressed="true"] { border-color: var(--green-800); background: var(--green-800); color: #fff; }
.result-count { margin: 4px 0 14px; font-size: .9rem; color: var(--muted); }
.empty { padding: 48px 16px; border: 1px dashed #cfd8cc; border-radius: var(--radius); background: #fff; text-align: center; }
.empty p { color: var(--muted); }
.empty-emoji { display: block; margin-bottom: 8px; font-size: 3.5rem; }

/* Product page */
.breadcrumb { padding-top: 18px; font-size: .88rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: #b5bfb7; }
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.product { display: grid; gap: 24px; padding: 16px 0; }
@media (min-width: 820px) {
    .product { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
    .product .tile-lg { position: sticky; top: 88px; }
}
.pill { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--leaf-100); color: var(--green-800); font-size: .78rem; font-weight: 600; text-decoration: none; }
.product-price { margin: 4px 0 6px; font-size: 1.6rem; font-weight: 700; color: var(--green-800); }
.stock { margin-bottom: 16px; font-size: .9rem; font-weight: 600; color: var(--green-600); }
.stock.low { color: var(--terracotta); }
.stock.out { color: #9a3b2b; }
.product-desc { font-size: 1.02rem; color: #3d4a42; }
.buy-row { display: flex; align-items: stretch; gap: 10px; margin: 20px 0 10px; }
.buy-row .btn { flex: 1; }
.in-cart-note { font-size: .92rem; color: var(--muted); }
.in-cart-note a { color: var(--green-700); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 100%; border: 0; border-radius: 999px; background: none; color: var(--green-800); font-size: 1.25rem; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--leaf-50); }
.stepper button:disabled { color: #c2cbc4; cursor: not-allowed; }
.stepper output { min-width: 26px; font-weight: 600; text-align: center; }
.stepper.sm { height: 42px; }
.stepper.sm button { width: 40px; }
.facts { margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.facts li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }

/* Basket & checkout */
.cart-layout { display: grid; gap: 20px; padding: 16px 0 24px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.cart-list { margin: 0; padding: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); list-style: none; }
.cart-line { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line-info { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.cart-line-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-line-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-line-name:hover { color: var(--green-700); }
.cart-line-unit { font-size: .85rem; color: var(--muted); }
.cart-line-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.summary { padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
@media (min-width: 900px) { .summary { position: sticky; top: 88px; } }
.summary h2 { font-size: 1.25rem; }
.summary dl { margin: 0 0 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 600; color: var(--ink); }
.summary-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.1rem; color: var(--ink); }
.ship-meter { margin-bottom: 14px; padding: 12px; border-radius: 12px; background: var(--leaf-50); font-size: .9rem; }
.ship-meter .bar { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--leaf-100); }
.ship-meter .bar span { display: block; height: 100%; border-radius: 99px; background: var(--green-500); transition: width .3s; }
.notice { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--sand); font-size: .85rem; color: var(--muted); }
.form-card { padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.25rem; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.mini-lines { margin: 0 0 14px; padding: 0; list-style: none; }
.mini-lines li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .92rem; }
.mini-emoji { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; font-size: 1.3rem; }
.mini-name { flex: 1; min-width: 0; }
.success { max-width: 560px; margin: 40px auto; padding: 32px 20px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.success .big { display: block; font-size: 4rem; }
.success .notice { margin-bottom: 18px; }

/* Footer */
.site-footer { margin-top: 56px; padding: 32px 0 24px; background: var(--green-900); color: #cfe0d3; font-size: .92rem; }
.footer-inner { display: grid; gap: 22px; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: #fff; }
.site-footer ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-footer a { display: inline-block; padding: 4px 0; color: #cfe0d3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #9fb8a6; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }