/* ==========================================================================
   Malz Liquid Balm — storefront
   Natural herbal apothecary look, matched to the packaging:
   cream paper, chocolate brown, gold foil, indigo, mint, a touch of saffron.
   ========================================================================== */
:root {
  --cream: #f6efe4;
  --paper: #fbf7f0;
  --sand: #eadbc4;
  --ink: #2b1a11;
  --brown: #4a2e1f;
  --brown-2: #6b4630;
  --muted: #6f5b4b;
  --gold: #a7802f;
  --gold-2: #c9a45a;
  --saffron: #c4642a;
  --indigo: #262e5c;
  --mint: #4f7a43;
  --line: rgba(43, 26, 17, 0.14);
  --line-2: rgba(43, 26, 17, 0.08);
  --danger: #b3261e;
  --ok: #2f6b3a;
  --radius: 10px;
  --radius-lg: 16px;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mt { margin-top: 14px; }
.li-right { text-align: right; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 1000; }
.skip:focus { left: 12px; top: 12px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(800px, 100% - 40px); }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 12px; background: var(--brown); color: var(--cream); text-align: center; z-index: 999; }
.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }

/* ---------- announcement + header ---------- */
.announce { background: var(--brown); color: #f3e6d2; text-align: center; font-size: 0.82rem; padding: 8px 16px; letter-spacing: 0.02em; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 239, 228, 0.94); -webkit-backdrop-filter: saturate(150%) blur(8px); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { width: min(1180px, 100% - 40px); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-star { width: 18px; height: 18px; fill: var(--gold); align-self: center; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: 0.08em; line-height: 1; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.nav-links a:hover { color: var(--brown); border-bottom-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid var(--line); color: var(--ink); transition: background 0.2s, border-color 0.2s; }
.icon-btn:hover { background: var(--paper); border-color: var(--brown-2); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--saffron); color: #fff; font-size: 0.72rem; font-weight: 600; display: grid; place-items: center; }
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu-btn { display: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded='true'] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 0.97rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-dark, .btn-primary { background: var(--brown); color: #fbf3e6; }
.btn-dark:hover, .btn-primary:hover { background: var(--ink); color: #fff; }
.btn-line, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--brown-2); }
.btn-line:hover, .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1 1 180px; }
.btn[disabled], .btn.loading { opacity: 0.55; pointer-events: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: center; overflow: hidden; background: #e8dcc8; }
.hero-media { position: absolute; inset: 0; }
.hero-media picture { display: block; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 239, 228, 0.92) 0%, rgba(246, 239, 228, 0.75) 32%, rgba(246, 239, 228, 0) 58%); }
.hero-copy { position: relative; padding: 72px 0; }
.hero-copy > * { max-width: 540px; }
.hero .kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brown-2); font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.hero .kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero-sub { font-size: 1.12rem; color: #4c3a2d; max-width: 470px; }
.hero-buy { margin-top: 30px; }
.price { font-family: var(--serif); font-size: 1.9rem; margin: 0 0 16px; color: var(--ink); }
.price s, .buy-price s { color: var(--muted); font-size: 0.6em; margin-left: 6px; }
.price-note { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.hero-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink); font-size: 0.92rem; text-decoration: none; }
.hero-rating .st, .buy-rating .st { color: var(--gold); letter-spacing: 1px; }
.hero-rating:hover { color: var(--saffron); }
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- trust strip ---------- */
.strip { background: var(--brown); color: #efe2cf; }
.strip-list { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip-list li { display: flex; align-items: center; gap: 14px; font-size: 0.86rem; color: #d9c7ae; }
.strip-list b { display: block; color: #fbf3e6; font-weight: 600; font-size: 0.95rem; }
.strip-list svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--gold-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-paper { background: var(--paper); border-block: 1px solid var(--line-2); }
.head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.head .lead { margin-inline: auto; }

.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.use { margin: 0; }
.use-img { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--sand); }
.use-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.use:hover .use-img img { transform: scale(1.03); }
.use figcaption { padding: 18px 4px 0; }
.use figcaption p { color: var(--muted); margin: 0; }
.also { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; justify-content: center; }
.also-title { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin: 0; color: var(--brown-2); }
.also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.also li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; background: var(--paper); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-img img { width: 100%; border-radius: var(--radius-lg); }
.ing-list { list-style: none; padding: 0; margin: 30px 0 0; }
.ing-list li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.ing-list li:last-child { border-bottom: 1px solid var(--line); }
.ing-list .num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold); line-height: 1.3; }
.ing-list h3 { margin-bottom: 6px; }
.ing-list p { margin: 0; color: var(--muted); }

.shop { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: #f4ebdd; aspect-ratio: 1 / 1; border: 1px solid var(--line-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 76px; height: 76px; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.gallery-thumbs button[aria-current='true'], .gallery-thumbs button:hover { opacity: 1; border-color: var(--brown); box-shadow: 0 0 0 1px var(--brown); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: calc(var(--nav-h) + 24px); }
.buy h2 { margin-bottom: 8px; }
.buy-rating { display: inline-flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.buy-price { margin: 6px 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big { font-family: var(--serif); font-size: 2.1rem; }
.save { font-size: 0.78rem; font-weight: 600; color: var(--ok); background: #e3eedd; padding: 3px 10px; border-radius: 999px; }
.buy-tag { color: var(--brown-2); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.buy-desc { color: var(--muted); }
.qty-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 24px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; color: var(--ink); }
.qty button:hover { background: var(--sand); }
.qty input { width: 48px; height: 46px; border: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock { margin: 0; font-size: 0.9rem; color: var(--ok); display: flex; align-items: center; gap: 8px; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock:empty::before { display: none; }
.stock.low { color: var(--saffron); }
.stock.out { color: var(--danger); }
.ship-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.specs { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.specs div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 16px; }
.specs dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 500; font-size: 0.93rem; word-break: break-word; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps li { border-top: 1px solid var(--brown); padding-top: 22px; }
.step-n { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.kids { margin-top: 64px; display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.kids img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.kids-copy { padding: clamp(28px, 4vw, 56px); align-self: center; }
.kids-copy h3 { font-size: 1.7rem; }
.kids-copy .note { font-size: 0.88rem; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 14px; margin: 18px 0 0; }

/* reviews */
.reviews-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.rating-box { position: sticky; top: calc(var(--nav-h) + 24px); padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.rating-num { font-family: var(--serif); font-size: 3.6rem; line-height: 1; }
.stars-lg { color: var(--gold); font-size: 1.25rem; letter-spacing: 3px; margin: 8px 0 4px; }
.stars-lg .empty, .st .empty { color: #d9ccb9; }
.bars { display: grid; gap: 7px; margin: 18px 0; }
.bar { display: grid; grid-template-columns: 22px 1fr 28px; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.bar i { display: block; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; position: relative; }
.bar i b { position: absolute; top: 0; bottom: 0; left: 0; background: var(--gold); border-radius: 3px; transition: width 0.6s var(--ease); }
.live-dot { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.live-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: live 2.2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(79, 122, 67, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(79, 122, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 122, 67, 0); } }
.review-list { display: grid; gap: 16px; margin-bottom: 20px; }
.review { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.review.is-new { animation: newin 0.8s var(--ease); border-color: var(--gold-2); }
@keyframes newin { from { opacity: 0; transform: translateY(-8px); } }
.review-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.review .st { color: var(--gold); letter-spacing: 2px; }
.review time { font-size: 0.82rem; color: var(--muted); }
.review p { margin: 0 0 12px; white-space: pre-line; overflow-wrap: anywhere; }
.review footer { font-size: 0.9rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review footer b { font-weight: 600; }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 600; color: var(--ok); background: #e3eedd; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge-verified::before { content: '\2713'; }
.badge-new { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--saffron); }
.empty-reviews { padding: 36px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.review-dialog { width: min(600px, calc(100% - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius-lg); padding: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(43, 26, 17, 0.25); }
.review-dialog::backdrop { background: rgba(43, 26, 17, 0.45); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h3 { margin: 0; font-size: 1.5rem; }
.verify { padding: 16px; background: var(--cream); border-radius: var(--radius); font-size: 0.9rem; }
.verify p { margin-bottom: 12px; color: var(--muted); }
.verify b { color: var(--ink); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.4rem; color: var(--gold); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* forms */
.form { display: grid; gap: 16px; }
.card { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid #d6c7b2; background: #fff; color: var(--ink);
  font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(74, 46, 31, 0.12); }
.form .invalid { border-color: var(--danger) !important; }
.field-err { color: var(--danger); font-size: 0.8rem; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 0.92rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.stars-input { border: 0; padding: 0; margin: 0; }
.stars-input legend { font-size: 0.86rem; font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 4px; }
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-row label { font-size: 2rem; line-height: 1; color: #d9ccb9; cursor: pointer; transition: color 0.15s; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: var(--gold); }
.stars-row input:focus-visible + label { outline: 2px solid var(--indigo); border-radius: 4px; }

/* contact + footer */
.contact { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; color: var(--muted); }
.contact-list b { color: var(--ink); font-weight: 600; }
.footer { background: var(--ink); color: #cdb99f; padding: 56px 0 24px; font-size: 0.92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 32px; }
.brand-light, .brand-light:hover { color: #fbf3e6; }
.footer-title { color: #fbf3e6; font-weight: 600; margin-bottom: 6px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #cdb99f; text-decoration: none; }
.footer-links a:hover { color: var(--gold-2); }
.copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; }

/* cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(43, 26, 17, 0.4); z-index: 90; opacity: 0; transition: opacity 0.3s; }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 100; display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 60px rgba(43, 26, 17, 0.18); transform: translateX(105%); transition: transform 0.4s var(--ease); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 20px; -webkit-overflow-scrolling: touch; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.line-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: #f4ebdd; }
.line-item h3 { font-size: 1.02rem; margin: 0 0 2px; }
.line-item .muted { font-size: 0.85rem; margin: 0 0 8px; }
.line-item .qty button { width: 34px; height: 34px; font-size: 1rem; }
.line-item .qty input { width: 34px; height: 34px; font-size: 0.9rem; }
.remove { background: none; border: 0; color: var(--muted); font-size: 0.82rem; text-decoration: underline; padding: 4px 0; }
.remove:hover { color: var(--danger); }
.totals { display: grid; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .grand { color: var(--ink); font-weight: 600; font-size: 1.1rem; padding-top: 10px; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; padding: 48px 0; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 150%); padding: 13px 20px; border-radius: 999px; max-width: calc(100% - 32px); background: var(--ink); color: var(--cream); font-weight: 500; font-size: 0.94rem; box-shadow: 0 12px 30px rgba(43, 26, 17, 0.25); transition: transform 0.35s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-io .reveal { opacity: 1; transform: none; }

/* ---------- sub-pages ---------- */
.page { padding: clamp(40px, 6vw, 80px) 0 100px; min-height: 70vh; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.panel { padding: 28px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 18px; }
.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: flex !important; align-items: center; gap: 12px !important; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink) !important; font-size: 1rem !important; }
.pay-opt input { width: 18px !important; height: 18px; accent-color: var(--brown); -webkit-appearance: radio !important; appearance: auto !important; padding: 0 !important; flex: none; }
.pay-opt small { display: block; color: var(--muted); font-weight: 400; }
.success { text-align: center; max-width: 620px; margin: 0 auto; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #e3eedd; }
.success-icon svg { width: 44px; height: 44px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.8s 0.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.order-id { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.06em; padding: 12px 22px; border: 1px dashed var(--gold); border-radius: var(--radius); display: inline-block; margin: 8px 0 18px; background: var(--paper); user-select: all; }
.timeline { list-style: none; padding: 0; margin: 24px 0; }
.timeline li { position: relative; padding: 0 0 22px 34px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.timeline li::after { content: ''; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--mint); border-color: var(--mint); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose p { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .strip-list { grid-template-columns: repeat(2, 1fr); }
  .reviews-layout { grid-template-columns: 1fr; }
  .rating-box { position: static; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .menu-btn { display: inline-grid; }
  .nav-shop, .brand-sub { display: none; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 20px 18px; background: var(--cream); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; background: var(--cream); }
  .hero-media { position: relative; height: 92vw; max-height: 540px; min-height: 320px; }
  .hero-media picture { display: block; height: 100%; }
  .hero-media img { object-position: 50% 62%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(246, 239, 228, 0) 65%, var(--cream) 100%); }
  .hero-copy { padding: 4px 0 48px; }
  .split, .shop, .checkout { grid-template-columns: 1fr; }
  .buy, .summary { position: static; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .kids { grid-template-columns: 1fr; }
  .kids img { max-height: 380px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .container.narrow, .nav-inner { width: calc(100% - 32px); }
  .use-grid { grid-template-columns: 1fr; gap: 28px; }
  .use-img { aspect-ratio: 1 / 1; }
  .strip-list { grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 18px 0; }
  .strip-list li { font-size: 0.78rem; gap: 10px; align-items: flex-start; }
  .strip-list b { font-size: 0.86rem; }
  .strip-list svg { width: 24px; height: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(odd) { padding-right: 0; }
  .hero .cta-row .btn { flex: 1 1 140px; padding: 0 16px; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; }
  .review { padding: 18px; }
  .review-dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-copy > * { opacity: 1; transform: none; }
}
@media print {
  .nav, .announce, .drawer, .toast, .footer-links, .strip { display: none !important; }
}
