/* ==========================================================================
   Leaf & Clay — plant & bonsai shop
   Theme tokens first. The online editor edits this block.
   ========================================================================== */

:root {
  --accent: #b5643f;          /* clay: buttons, prices, highlights */
  --accent-dark: #974f2f;
  --accent-text: #9c5332;
  --accent-soft: #f4e4da;
  --moss: #34482f;

  --ink: #1f261d;
  --ink-2: #4b5446;
  --ink-3: #7a8274;

  --surface: #f6f4ee;
  --surface-2: #ebe8de;
  --card: #fdfcf8;
  --border: #dedacd;

  --radius: 8px;
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Outfit", -apple-system, system-ui, sans-serif;

  --container: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 108px); }
.section--alt { background: var(--surface-2); }
.section--moss { background: var(--moss); color: #dfe6d8; }
.section--moss h2, .section--moss h3 { color: #fbfaf5; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.section--moss .tag { color: #e9b493; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }
.section--moss .lede { color: #c7d1bf; }
.muted { color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--ink); color: #fbfaf5; }
.btn--primary:hover { background: #000; }
.btn--clay { background: var(--accent); color: #fff; }
.btn--clay:hover { background: var(--accent-dark); }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fbfaf5; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ----------------------------------------------------------------- header */
.ribbon { background: var(--moss); color: #dfe6d8; font-size: .86rem; text-align: center; padding: 8px var(--gutter); }
.header { position: sticky; top: 0; z-index: 40; background: rgba(246, 244, 238, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: .94rem; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.logo { display: inline-flex; align-items: center; gap: 10px; justify-self: center; font-family: var(--font-display); font-size: 1.55rem; text-decoration: none; }
.logo svg { color: var(--moss); }
.tools { display: flex; justify-content: flex-end; gap: 10px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .header__inner { grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); cursor: pointer; }
  .logo { justify-self: start; }
  .nav { position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .icon-btn .label { display: none; }
}

/* ------------------------------------------------------------------- hero */
.hero { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero__copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 56px); border-radius: 16px; background: var(--moss); color: #dfe6d8; min-height: 560px; position: relative; overflow: hidden; }
.hero__copy h1 { color: #fbfaf5; }
.hero__copy .lede { color: #c7d1bf; margin-top: 18px; }
.hero__copy .btn--clay { margin-top: 30px; align-self: flex-start; }
.hero__copy::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.hero__copy::after { content: ""; position: absolute; right: 30px; top: 30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(233, 180, 147, .16); }
.hero__img { position: relative; border-radius: 16px; overflow: hidden; min-height: 560px; background: #e9e6dd; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__label { position: absolute; left: 20px; bottom: 20px; padding: 14px 18px; border-radius: 12px; background: rgba(253, 252, 248, .95); font-size: .9rem; }
.hero__label b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__copy, .hero__img { min-height: 420px; } }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--border); }
.perks div { display: flex; gap: 12px; align-items: center; padding: 20px 18px; font-size: .94rem; }
.perks div + div { border-left: 1px solid var(--border); }
.perks svg { flex: none; width: 26px; height: 26px; color: var(--moss); }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr 1fr; } .perks div:nth-child(3) { border-left: 0; } .perks div:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ----------------------------------------------------------------- cards */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.head h2 { margin-top: 10px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.product { position: relative; display: flex; flex-direction: column; }
.product[hidden] { display: none; }
.product__media { position: relative; }
.product__img { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #e9e6dd; }
.product__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.product:hover .product__img img { transform: scale(1.04); }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { padding: 4px 9px; border-radius: 999px; background: var(--card); font-size: .72rem; font-weight: 600; }
.badge--clay { background: var(--accent); color: #fff; }
.quick { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.quick:hover { background: var(--ink); color: #fff; }
.product h3 { margin-top: 14px; font-size: 1.15rem; }
.product h3 a { text-decoration: none; }
.product .latin { font-size: .86rem; font-style: italic; color: var(--ink-3); }
.product .price { margin-top: 6px; font-weight: 600; }
.product .care { display: flex; gap: 8px; margin-top: 8px; font-size: .78rem; color: var(--ink-2); }
.product .care span { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr 1fr; } }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { position: relative; display: block; border-radius: 14px; overflow: hidden; min-height: 320px; text-decoration: none; color: #fff; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.cat:hover img { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(20, 26, 18, .72)); }
.cat span { position: absolute; z-index: 1; left: 22px; bottom: 20px; right: 22px; }
.cat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
@media (max-width: 860px) { .cats { grid-template-columns: 1fr; } .cat { min-height: 240px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.split__body > * + * { margin-top: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); font-family: var(--font-display); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 26px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.review .stars { color: var(--accent); letter-spacing: 2px; }
.review p { margin: 12px 0 16px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; }
.review cite { font-style: normal; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- shop */
.shopbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 26px; border-block: 1px solid var(--border); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 500; font-size: .9rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fbfaf5; }
.toggles { display: flex; gap: 14px; align-items: center; font-size: .9rem; flex-wrap: wrap; }
.toggles label { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.toggles input { accent-color: var(--accent); }
.toggles select { min-height: 40px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.empty { padding: 48px; text-align: center; color: var(--ink-2); border: 1px dashed var(--border); border-radius: 14px; }

/* ---------------------------------------------------------------- product */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 28px 80px; }
.pdp__gallery { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.main-img { border-radius: 14px; overflow: hidden; background: #e9e6dd; }
.main-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 8px; }
.pdp .latin { font-style: italic; color: var(--ink-3); margin-top: 6px; }
.pdp__price { margin-top: 18px; font-family: var(--font-display); font-size: 2rem; }
.pdp__desc { margin-top: 16px; color: var(--ink-2); }
.option { margin-top: 24px; }
.option > span { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: .92rem; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swatch input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy { display: flex; gap: 10px; margin-top: 26px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 30px; text-align: center; font-weight: 600; }
.buy .btn { flex: 1; }
.ship { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); font-size: .92rem; color: var(--ink-2); }
.ship b { color: var(--ink); }
.tabs { margin-top: 30px; border-top: 1px solid var(--border); }
.tablist { display: flex; gap: 22px; }
.tablist button { padding: 14px 0; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.tablist button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.tabpanel { padding: 16px 0; color: var(--ink-2); }
.tabpanel[hidden] { display: none; }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.care-grid div { padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); font-size: .9rem; }
.care-grid b { display: block; color: var(--ink); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pdp__gallery { grid-template-columns: 1fr; } .thumbs { grid-template-columns: repeat(4, 1fr); order: 2; } .care-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- drawer */
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--card); box-shadow: -30px 0 60px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .35s ease; visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(20, 26, 18, .4); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer__head h2 { font-size: 1.6rem; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: none; cursor: pointer; font-size: 1.2rem; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line img { width: 64px; height: 76px; object-fit: cover; border-radius: 6px; }
.line b { display: block; font-weight: 600; }
.line small { color: var(--ink-3); }
.line .mini { display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; }
.line .mini button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: none; cursor: pointer; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.freebar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 8px 0 14px; }
.freebar i { display: block; height: 100%; background: var(--moss); transition: width .3s; }
.total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; }
.checkout-form { display: grid; gap: 10px; margin-top: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 14px; }
label { font-size: .86rem; font-weight: 600; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; font-size: 1rem; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: #b23a2a; }
.error { min-height: 1em; font-size: .82rem; color: #b23a2a; }

/* ------------------------------------------------------------------- care */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide { padding: 26px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.guide__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.guide h3 { margin-top: 16px; }
.guide p { margin-top: 8px; color: var(--ink-2); font-size: .96rem; }
@media (max-width: 860px) { .guides { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 18px; color: var(--ink-2); }
.done { padding: 30px 0; }
.done h3 { font-size: 1.7rem; }
.done p { margin-top: 10px; color: var(--ink-2); }

.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin-top: 10px; }
.page-head .lede { margin-top: 14px; }
.crumbs { padding-top: 22px; font-size: .88rem; color: var(--ink-3); }
.crumbs a { text-decoration: none; }

.footer { background: var(--ink); color: #b9c1b2; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 60px 36px; }
.footer .logo { color: #fbfaf5; justify-self: start; }
.footer .logo svg { color: #e9b493; }
.footer h4 { margin: 0 0 14px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fbfaf5; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { margin-top: 14px; max-width: 24em; }
.footer form { display: flex; gap: 8px; margin-top: 10px; }
.footer .input { min-height: 44px; background: #2b3328; border-color: #3a4436; color: #fbfaf5; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid #333c30; font-size: .84rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.credits { list-style: none; margin: 0; padding: 0; }
.credits li { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.credits a { color: var(--accent-text); }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 70; transform: translate(-50%, 160%); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fbfaf5; font-weight: 600; font-size: .92rem; transition: transform .3s ease; }
.toast.is-on { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
