/* =========================================================
   VERDANT BOTANICS — small-batch botanical apothecary
   Palette: cream paper, sage, moss, deep leaf, amber, teal
   Type: Cormorant Garamond (display) + Work Sans (UI/body)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cream: #F7F5EA;
  --paper: #FCFBF6;
  --sage: #819476;
  --sage-soft: #B7C2A8;
  --moss: #596C50;
  --leaf: #2F4938;
  --teal: #517989;
  --amber: #A36A36;
  --ink: #263027;
  --rule: rgba(38, 48, 39, 0.14);
  --rule-soft: rgba(38, 48, 39, 0.08);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --arch: 280px 280px 24px 24px / 280px 280px 24px 24px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .45s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
ul { list-style: none; padding: 0; }
input, button, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 2px; }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--leaf); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; color: var(--leaf); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
em { font-style: italic; color: var(--moss); }
p { color: rgba(38, 48, 39, .85); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans); font-weight: 500;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--moss); margin-bottom: .8rem;
}
.eyebrow--light { color: var(--sage-soft); }

.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: rgba(38, 48, 39, .82); max-width: 38ch; }

.link-underline {
  display: inline-block; margin-top: 1rem;
  font-weight: 500; color: var(--leaf); position: relative;
  padding-bottom: 2px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--moss); transform-origin: left;
  transition: transform .4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--leaf); --fg: var(--paper); --bd: var(--leaf);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.8rem; min-width: 11rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn--solid { --bg: var(--leaf); --fg: var(--paper); --bd: var(--leaf); }
.btn--solid:hover { --bg: var(--moss); --bd: var(--moss); }
.btn--ghost { --bg: transparent; --fg: var(--leaf); --bd: rgba(47, 73, 56, .35); }
.btn--ghost:hover { --bg: var(--leaf); --fg: var(--paper); --bd: var(--leaf); }
.btn--sage { --bg: var(--sage); --fg: #fff; --bd: var(--sage); }
.btn--sage:hover { --bg: var(--moss); --bd: var(--moss); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.announce {
  background: var(--sage); color: var(--paper);
  font-size: .78rem; letter-spacing: .04em;
}
.announce__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .55rem var(--gut);
  display: flex; align-items: center; justify-content: center; gap: .9rem;
}
.announce__leaf { opacity: .7; font-size: .9rem; }
.announce strong { font-weight: 600; }

.header { position: sticky; top: 0; z-index: 80; background: var(--cream); border-bottom: 1px solid var(--rule-soft); transition: box-shadow .3s var(--ease); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--rule), 0 8px 30px -20px rgba(38, 48, 39, .25); }
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem var(--gut);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--gut);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--leaf); }
.brand__mark { width: 28px; height: 28px; color: var(--moss); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.05); }
.brand__word { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: .01em; }

.nav { display: flex; justify-content: center; }
.nav ul { display: flex; gap: clamp(1.4rem, 2.5vw, 2.6rem); }
.nav a {
  position: relative; padding: .4rem 0;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400;
  color: var(--ink); transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 2px; background: var(--moss); transition: width .35s var(--ease), left .35s var(--ease);
}
.nav a:hover { color: var(--moss); }
.nav a:hover::after { width: 100%; left: 0; }

.header__utils { display: flex; gap: .35rem; justify-self: end; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--leaf); border-radius: 50%; position: relative;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: rgba(89, 108, 80, .12); color: var(--moss); }
.icon-btn--cart .cart-count {
  position: absolute; top: 2px; right: 0;
  background: var(--amber); color: #fff;
  font-size: .65rem; font-weight: 600;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 10px;
  transform: scale(0); transition: transform .3s var(--ease);
}
.icon-btn--cart .cart-count.is-visible { transform: scale(1); }

.header__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.header__burger span { width: 22px; height: 1.5px; background: var(--leaf); transition: transform .35s var(--ease), opacity .25s var(--ease); }

.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: 1rem var(--gut);
  animation: fadeIn .3s var(--ease);
}
.search-panel__form {
  max-width: 720px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem;
  border-bottom: 1px solid var(--moss);
}
.search-panel__form input {
  background: transparent; border: 0; padding: .8rem .2rem;
  font-size: 1.1rem; color: var(--leaf); font-family: var(--serif);
}
.search-panel__form input:focus { outline: none; }
.search-panel__btn {
  padding: 0 1.2rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--moss); font-weight: 500;
}
.search-panel__empty { max-width: 720px; margin: .8rem auto 0; color: var(--amber); font-size: .9rem; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Drawers / Scrim ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(38, 48, 39, .35); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.scrim.is-visible { opacity: 1; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  width: min(82vw, 360px); background: var(--paper);
  border-right: 1px solid var(--rule);
  transform: translateX(-100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.3);
}
.drawer[data-open="true"] { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--rule-soft);
}
.drawer__title { font-family: var(--serif); font-size: 1.3rem; color: var(--leaf); }
.drawer__close { font-size: 1.8rem; line-height: 1; color: var(--moss); padding: .2rem .5rem; }
.drawer nav { display: flex; flex-direction: column; padding: 1rem; }
.drawer nav a {
  padding: 1rem .6rem; border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif); font-size: 1.3rem; color: var(--leaf);
  transition: padding-left .3s var(--ease), color .3s var(--ease);
}
.drawer nav a:hover { padding-left: 1.2rem; color: var(--moss); }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(92vw, 420px); background: var(--paper);
  border-left: 1px solid var(--rule);
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(0,0,0,.3);
}
.cart-drawer[data-open="true"] { transform: none; }
.cart-drawer__head { display: flex; align-items: baseline; justify-content: space-between; padding: 1.4rem 1.5rem 1rem; border-bottom: 1px solid var(--rule-soft); }
.cart-drawer__head h2 { font-size: 1.5rem; }
.cart-drawer__close { font-size: 1.8rem; color: var(--moss); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-drawer__empty { color: var(--sage); font-style: italic; text-align: center; margin-top: 2rem; font-family: var(--serif); font-size: 1.1rem; }
.cart-line { display: grid; grid-template-columns: 60px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--rule-soft); align-items: center; }
.cart-line img { width: 60px; height: 70px; object-fit: cover; border-radius: 2px; }
.cart-line h4 { font-size: 1.05rem; font-family: var(--serif); }
.cart-line .meta { font-size: .78rem; color: var(--sage); letter-spacing: .04em; text-transform: uppercase; }
.cart-line .price { color: var(--leaf); font-weight: 500; }
.cart-line button { font-size: .75rem; color: var(--amber); text-decoration: underline; padding: 0; }
.cart-drawer__foot { border-top: 1px solid var(--rule); padding: 1.2rem 1.5rem; background: var(--cream); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.3rem; margin-bottom: .8rem; color: var(--leaf); }
.cart-drawer__note { font-size: .78rem; color: var(--sage); margin-top: .6rem; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(540px, 86vh, 820px);
  display: grid; align-items: end;
  overflow: hidden; background: var(--leaf);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(31, 47, 38, .82) 0%, rgba(31, 47, 38, .35) 42%, rgba(31, 47, 38, 0) 70%),
    linear-gradient(180deg, rgba(31, 47, 38, .15) 0%, rgba(31, 47, 38, .55) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 0 var(--gut) clamp(60px, 9vh, 110px);
  color: var(--paper);
}
.hero__content .eyebrow { color: var(--sage-soft); }
.hero__content h1 { color: var(--paper); max-width: 16ch; }
.hero__content h1 em { color: var(--sage-soft); }
.hero__content .lede { color: rgba(247, 245, 234, .85); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(247, 245, 234, .7);
}
.hero__chips li { position: relative; padding-left: 1.2rem; }
.hero__chips li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-soft); transform: translateY(-50%); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gut); }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--between { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.section__head p { margin-top: .8rem; max-width: 56ch; font-size: 1.05rem; }
.section__head--center p { margin-left: auto; margin-right: auto; }

/* ---------- Categories (arched cards) ---------- */
.categories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.cat-card { display: block; position: relative; }
.cat-card__media {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--arch);
  box-shadow: 0 30px 60px -36px rgba(31, 47, 38, .35);
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__label {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(183, 194, 168, .92);
  padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: 2px;
}
.cat-card__label h3 { color: var(--leaf); font-size: 1.3rem; }
.cat-card__label .arrow {
  width: 32px; height: 32px; border: 1px solid var(--leaf);
  display: grid; place-items: center; border-radius: 50%;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.cat-card__label .arrow svg { width: 14px; height: 14px; }
.cat-card:hover .arrow { background: var(--leaf); color: var(--paper); transform: rotate(-45deg); }
.cat-card__count { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); margin-top: .3rem; }

/* ---------- Best sellers (compact) ---------- */
.best__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 32px); }
.product {
  background: var(--cream);
  padding: 1.5rem 1.5rem 0;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease);
}
.product:hover { transform: translateY(-3px); }
.product__media {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--paper);
}
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--leaf); color: var(--paper);
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 2px;
}
.product__tag--amber { background: var(--amber); }
.product__tag--teal { background: var(--teal); }
.product__quick {
  position: absolute; inset: auto 12px 12px 12px;
  background: rgba(252, 251, 246, .94); color: var(--leaf);
  padding: .7rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  border: 1px solid var(--rule);
}
.product:hover .product__quick { opacity: 1; transform: none; }
.product__body { padding: 1.2rem 0 1.4rem; }
.product__cat { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.product__name { font-family: var(--serif); font-size: 1.4rem; color: var(--leaf); margin: .3rem 0 .5rem; line-height: 1.15; }
.product__desc { font-size: .9rem; color: rgba(38, 48, 39, .75); margin-bottom: .9rem; }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 14px; height: 14px; }
.product__row { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; }
.product__price { font-family: var(--serif); font-size: 1.35rem; color: var(--leaf); }
.product__price small { font-size: .9rem; color: var(--sage); text-decoration: line-through; margin-left: .4rem; }
.product__add {
  margin-top: 1rem; width: 100%;
  background: var(--teal); color: var(--paper);
  padding: .85rem; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s var(--ease);
}
.product__add:hover { background: var(--leaf); }
.product__add.is-added { background: var(--moss); }
.product__add[disabled] { background: var(--sage-soft); cursor: not-allowed; }

/* ---------- Editorial row ---------- */
.editorial { padding-top: 0; }
.editorial__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 32px); }
.editorial__row .product { background: transparent; padding: 0; }
.editorial__row .product__media { aspect-ratio: 4/5; border-radius: var(--arch); }

/* ---------- Catalog ---------- */
.catalog { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); max-width: none; padding-left: var(--gut); padding-right: var(--gut); }
.catalog > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.catalog__filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip {
  padding: .55rem 1.2rem;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--moss); border: 1px solid var(--rule); border-radius: 100px;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--moss); }
.chip.is-active { background: var(--leaf); color: var(--paper); border-color: var(--leaf); }
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 32px); }
.catalog__empty { text-align: center; padding: 3rem 0; color: var(--amber); font-family: var(--serif); font-size: 1.2rem; }

/* ---------- Journey ---------- */
.journey {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) var(--gut);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center;
  background: var(--cream);
}
.journey__media { position: relative; }
.journey__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; box-shadow: 0 30px 60px -36px rgba(31, 47, 38, .35); }
.journey__badge {
  position: absolute; bottom: -28px; right: -28px;
  width: 110px; height: 110px; background: var(--paper);
  display: grid; place-items: center; border-radius: 50%;
  color: var(--moss); animation: spin 24s linear infinite;
  box-shadow: 0 10px 30px -10px rgba(31, 47, 38, .3);
}
.journey__badge svg { width: 80%; height: 80%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .journey__badge { animation: none; } }
.journey__copy h2 { margin-bottom: 1.2rem; }
.journey__copy p { margin-bottom: 1rem; font-size: 1.05rem; }

/* ---------- Journal ---------- */
.journal { background: var(--paper); }
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 36px); }
.post { display: block; }
.post__media { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__meta { display: flex; gap: .9rem; margin: 1.1rem 0 .4rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.post h3 { font-size: 1.5rem; color: var(--leaf); transition: color .3s var(--ease); }
.post:hover h3 { color: var(--moss); }
.post p { font-size: .92rem; margin-top: .5rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  position: relative;
  padding: clamp(80px, 11vw, 150px) var(--gut);
  text-align: center; color: var(--paper);
  background:
    linear-gradient(rgba(15, 28, 22, .8), rgba(15, 28, 22, .85)),
    url("https://images.unsplash.com/photo-1502082553048-f009c37129b9?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
  overflow: hidden;
}
@media (pointer: coarse) { .newsletter { background-attachment: scroll; } }
.newsletter__veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(15, 28, 22, .5) 100%);
}
.newsletter__form { position: relative; max-width: 580px; margin: 0 auto; }
.newsletter__form h2 { color: var(--paper); }
.newsletter__form p { color: rgba(247, 245, 234, .8); margin: .6rem 0 1.8rem; }
.newsletter__row { display: flex; gap: .5rem; }
.newsletter__row input {
  flex: 1; padding: 1rem 1.2rem;
  background: rgba(247, 245, 234, .08);
  border: 1px solid rgba(247, 245, 234, .25);
  color: var(--paper); border-radius: 2px;
  font-size: 1rem;
}
.newsletter__row input::placeholder { color: rgba(247, 245, 234, .55); }
.newsletter__row input:focus { outline: none; border-color: var(--sage-soft); background: rgba(247, 245, 234, .14); }
.newsletter__msg { margin-top: 1rem; font-size: .92rem; }
.newsletter__msg.is-ok { color: var(--sage-soft); }
.newsletter__msg.is-err { color: #f3b3a0; }
.newsletter__fine { margin-top: 1.2rem; font-size: .76rem; color: rgba(247, 245, 234, .55); letter-spacing: .04em; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center;
  padding: 1.5rem;
  background: rgba(15, 28, 22, .6); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.modal[data-open="true"] { opacity: 1; }
.modal__card {
  background: var(--paper); max-width: 820px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
  animation: pop .4s var(--ease);
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; background: var(--paper); border-radius: 50%;
  font-size: 1.6rem; line-height: 1; color: var(--leaf);
  display: grid; place-items: center;
}
.modal__media { background: var(--cream); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.modal__body h3 { font-size: 2rem; margin: .3rem 0 .8rem; }
.modal__body p { font-size: .95rem; margin-bottom: 1.2rem; }
.modal__row { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0 1.4rem; }
.modal__row .price { font-family: var(--serif); font-size: 1.8rem; color: var(--leaf); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.qty button { width: 38px; height: 38px; font-size: 1.1rem; color: var(--moss); }
.qty button:hover { background: var(--cream); }
.qty span { width: 38px; text-align: center; font-weight: 500; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 30px);
  background: var(--leaf); color: var(--paper);
  padding: .9rem 1.4rem; border-radius: 2px;
  font-size: .85rem; letter-spacing: .04em;
  z-index: 200; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--rule); padding: clamp(60px, 7vw, 100px) var(--gut) 2rem; }
.footer__top {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(30px, 4vw, 60px);
  padding-bottom: 3rem; border-bottom: 1px solid var(--rule);
}
.brand--foot { color: var(--leaf); margin-bottom: 1rem; }
.footer__brand p { font-size: .92rem; max-width: 36ch; margin-bottom: 1.4rem; }
.footer__social { display: flex; gap: .5rem; }
.footer__social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%; color: var(--moss);
  transition: all .3s var(--ease);
}
.footer__social a:hover { background: var(--leaf); color: var(--paper); border-color: var(--leaf); }
.footer__social svg { width: 17px; height: 17px; }
.footer__col h3 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); margin-bottom: 1rem; font-family: var(--sans); font-weight: 500; }
.footer__col a, .footer__col p { display: block; font-size: .92rem; padding: .32rem 0; color: rgba(38, 48, 39, .82); transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--moss); }
.footer__legal {
  max-width: var(--maxw); margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .8rem; color: var(--sage);
}
.footer__legal ul { display: flex; gap: 1.2rem; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header__inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .header__burger { display: flex; }
  .categories__grid, .best__grid, .editorial__row, .catalog__grid, .journal__grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: 1fr; gap: 50px; }
  .journey__badge { right: 20px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .modal__card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal__media { aspect-ratio: 4/3; }
}

@media (max-width: 620px) {
  :root { --gut: 20px; }
  .header__inner { gap: .6rem; }
  .brand__word { font-size: 1.25rem; }
  .header__utils .icon-btn:not(#cartToggle) { display: none; }
  .hero { min-height: 88vh; }
  .hero__chips { gap: .8rem 1.2rem; font-size: .68rem; }
  .hero__cta .btn { min-width: 100%; }
  .categories__grid, .best__grid, .editorial__row, .catalog__grid, .journal__grid { grid-template-columns: 1fr; }
  .section__head--between { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; text-align: center; }
  .newsletter__row { flex-direction: column; }
}

@media (max-width: 420px) {
  .cat-card__media, .editorial__row .product__media { border-radius: 200px 200px 16px 16px / 200px 200px 16px 16px; }
}
