
/* Layout: age strip, sticky bilingual header, left-aligned hero beside a lit product, ruled perks, searchable 4-up catalog of product families, a page-turning flavor book in a modal, ordered steps, slide-in bag with WhatsApp checkout. Single dark theme by choice. */
:root {
  --bg: #0d0b0a;
  --surface: #151210;
  --surface-2: #1c1815;
  --line: #2b251f;
  --fg: #eee6d8;
  --muted: #a0968a;
  --accent: #c09a5f; --need: #ff5d66;
  --accent-ink: #17110a;
  --glow: rgba(192, 154, 95, 0.22);
  --scrim: rgba(5, 4, 3, 0.7);
  --ok: #7bbf8a;
  --warn: #dcab4a;
  --bad: #dc8571;
  --digital: #35e08a;
  --font-display: "Cormorant Garamond", "Amiri", Georgia, serif;
  --font-body: "Jost", "Tajawal", system-ui, sans-serif;
  --off: 100%;
  --flip: -90deg;
  color-scheme: dark;
}
:root[dir="rtl"] { --off: -100%; --flip: 90deg; }
/* Light theme follows the visitor's phone setting; dark stays the default */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f4ed; --surface: #fffdf9; --surface-2: #f1ebe0; --line: #ddd2c0;
    --fg: #1e1812; --muted: #6b6155; --accent: #8a6224; --need: #c8202b; --accent-ink: #fffaf0;
    --glow: rgba(138, 98, 36, 0.16); --scrim: rgba(40, 30, 18, 0.45);
    --ok: #2f7d45; --warn: #96680f; --bad: #b3452f; --digital: #12a85f;
    color-scheme: light;
  }
  .page-face { background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent 7%), var(--surface-2) !important; }
  :root[dir="rtl"] .page-face { background: linear-gradient(to left, rgba(0, 0, 0, 0.06), transparent 7%), var(--surface-2) !important; }
  .sheet-card { box-shadow: 0 30px 80px rgba(60, 40, 10, 0.25) !important; }
  .stage svg { filter: drop-shadow(0 24px 30px rgba(60, 40, 10, 0.3)); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
:root[dir="rtl"] body { font-size: 17px; line-height: 1.75; }
body.bag-open, body.sheet-open { overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 30; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Letter-spacing and uppercase break Arabic letter joining */
:root[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; }

.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.7rem 1.5rem; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn:hover { background: transparent; color: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn.sm { min-height: 40px; padding: 0.4rem 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; background: transparent; color: var(--muted); border-color: var(--line); }

/* Age strip + header */
.strip { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); text-align: center; padding-block: 0.45rem; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.smile { width: 28px; height: 28px; flex: none; color: var(--digital); filter: drop-shadow(0 0 5px rgba(53, 224, 138, 0.5)); }
.brand-latin { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.2em; white-space: nowrap; }
.brand-ar { font-family: "Amiri", serif; font-size: 1.3rem; color: var(--accent); padding-inline-start: 0.75rem; border-inline-start: 1px solid var(--line); line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: 1.75rem; margin-inline-start: auto; font-size: 0.85rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.tools { display: flex; align-items: center; gap: 0.6rem; margin-inline-start: auto; }
.nav + .tools { margin-inline-start: 0; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; }
.lang button { background: none; border: 0; padding: 0.4rem 0.7rem; font-size: 0.8rem; min-height: 38px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); }
.bag-btn { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 38px; padding: 0.4rem 0.85rem; background: none; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); font-size: 0.8rem; }
.bag-btn:hover { background: var(--accent); color: var(--accent-ink); }
.count { font-variant-numeric: tabular-nums; min-width: 1.4rem; text-align: center; padding: 0 0.3rem; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.bag-btn:hover .count { background: var(--accent-ink); color: var(--accent); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; padding-block: 3.5rem; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); line-height: 1.04; margin: 1rem 0 1.25rem; }
:root[dir="rtl"] .hero h1 { line-height: 1.35; }
.lead { color: var(--muted); max-width: 46ch; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.stage { aspect-ratio: 4 / 5; max-width: 100%; width: 100%; background: radial-gradient(circle at 50% 42%, var(--glow), transparent 62%), var(--surface); border: 1px solid var(--line); border-radius: 2px; display: grid; place-items: center; padding: 8%; }
.stage svg { width: 78%; height: auto; max-height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }

/* Perks */
.offers { padding-block: 0.9rem 0.2rem; }
.offer-box { --red: #e0303a; padding: 0.8rem; border: 2px solid var(--red); border-radius: 4px; background: rgba(224, 48, 58, 0.08); animation: offerBlink 1.3s ease-in-out infinite; }
.offer-head { position: relative; min-height: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; text-align: center; margin-bottom: 0.7rem; }
.offer-tag { position: absolute; left: 0; top: 50%; transform: translateY(-50%); background: var(--red); color: #fff; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.15em; padding: 0.2rem 0.55rem; border-radius: 3px; }
.offer-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.offer-timer { display: inline-flex; gap: 0.3rem; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; color: #ff9aa0; background: rgba(224, 48, 58, 0.22); border: 1px solid rgba(255, 120, 128, 0.55); padding: 0.25rem 0.7rem; border-radius: 3px; }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.offer-item { display: flex; flex-direction: column; gap: 0.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 0.35rem; text-align: center; cursor: pointer; }
.offer-item .shot { padding: 0; }
.offer-item h4 { font-size: 0.72rem; line-height: 1.25; margin: 0; font-weight: 600; }
.offer-item .price { font-size: 0.8rem; color: var(--red); font-weight: 700; }
@keyframes offerBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 48, 58, 0.5), 0 0 6px rgba(224, 48, 58, 0.5); border-color: #e0303a; } 50% { box-shadow: 0 0 20px 5px rgba(224, 48, 58, 0.55); border-color: rgba(224, 48, 58, 0.15); } }
@media (max-width: 480px) { .offer-box { padding: 0.55rem; } .offer-head { margin-bottom: 0.5rem; } .offer-text { font-size: 0.95rem; } .offer-grid { gap: 0.3rem; } .offer-item { padding: 0.2rem; } .offer-item h4 { font-size: 0.6rem; } .offer-item .price { font-size: 0.65rem; } }
@media (prefers-reduced-motion: reduce) { .offer-box { animation: none; } }
.perks { border-block: 1px solid var(--line); }
.perks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.perk { padding: 1.6rem 1.5rem; border-inline-start: 1px solid var(--line); }
.perk:first-child { border-inline-start: 0; padding-inline-start: 0; }
.perk h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.perk p { color: var(--muted); font-size: 0.92rem; }

/* Catalog */
.section { padding-block: 4.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
:root[dir="rtl"] .section-head h2 { line-height: 1.35; }
.section-head p { color: var(--muted); margin-top: 0.4rem; }
.search { width: min(320px, 100%); min-height: 44px; padding: 0.55rem 0.9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px; }
.search::placeholder { color: var(--muted); }
.filters { scroll-margin-top: 80px; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip { background: none; border: 1px solid var(--line); border-radius: 2px; padding: 0.45rem 1rem; min-height: 40px; font-size: 0.85rem; color: var(--muted); }
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
.card { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.open { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; min-width: 0; padding: 0; background: none; border: 0; text-align: start; color: inherit; }
.shot { aspect-ratio: 4 / 5; max-width: 100%; width: 100%; background: radial-gradient(circle at 50% 45%, var(--glow), transparent 65%), var(--surface-2); border-radius: 2px; display: grid; place-items: center; padding: 10%; }
.shot svg { width: 64%; height: auto; transition: transform 0.4s ease; }
.open:hover .shot svg { transform: translateY(-4px); }
.card.sold .shot svg { opacity: 0.35; }
.card h3 { font-size: 1.35rem; line-height: 1.15; }
:root[dir="rtl"] .card h3 { line-height: 1.4; }
.spec { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.tags { color: var(--accent); font-size: 0.78rem; margin-top: 0.4rem; opacity: 0.85; word-break: break-word; }
:root[dir="rtl"] .tags { direction: rtl; text-align: right; }
.swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.6rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.sws { display: inline-flex; gap: 0.3rem; align-items: center; }
.sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); display: inline-block; }
.price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; margin-top: auto; }
.stock { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.stock.low { color: var(--warn); }
.stock.low::before { background: var(--warn); }
.stock.out { color: var(--bad); }
.stock.out::before { background: var(--bad); }
.card > .btn { width: 100%; }
.none { grid-column: 1 / -1; color: var(--muted); padding: 2rem 0; }

/* Photo pages (product photos have a white ground, so they multiply into a warm paper panel) */
.photo { background: #f1ece3 !important; }
img.ph { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.shot.photo { padding: 0; overflow: hidden; }
.pg-art.photo { overflow: hidden; }
.thumb.photo, .vthumb.photo { padding: 0; overflow: hidden; }

/* Nicotine strength picker */
.nics { margin: 0.7rem 0 0.2rem; }
.nic-l { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.4rem; }
.nic-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nics .chip { padding: 0.3rem 0.7rem; font-size: 0.82rem; min-width: 2.4rem; text-align: center; }
.nic-tag { font-size: 0.78rem; color: var(--accent); }
/* Recommendations inside the product sheet */
.recs { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.recs h4 { font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
:root[dir="rtl"] .recs h4 { letter-spacing: 0; font-size: 0.85rem; }
.recs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.rec { display: block; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 0.4rem; color: var(--fg); cursor: pointer; transition: border-color .2s, transform .2s; }
.rec:hover, .rec:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.rc-img { aspect-ratio: 1; background: var(--surface-2); border-radius: 2px; overflow: hidden; display: grid; place-items: center; padding: 6px; }
.rc-img.photo { padding: 0; }
.rc-img svg { width: 100%; height: 100%; }
.rc-name { display: block; font-size: 0.78rem; line-height: 1.25; margin-top: 0.45rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.rc-price { display: block; font-size: 0.76rem; color: var(--accent); margin-top: 0.2rem; }
.card.sold .shot img.ph { opacity: 0.4; }

/* Dark studio photos fill the frame instead of sitting on the paper panel */
.photo.dark { background: var(--surface-2) !important; }
.photo.dark img.ph { mix-blend-mode: normal; object-fit: cover; }
.pg-art.photo.dark img.ph { object-fit: contain; }

/* Steps */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; }
.how h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0.9rem 0 1rem; }
:root[dir="rtl"] .how h2 { line-height: 1.35; }
.steps { display: grid; }
.step { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr); gap: 1.5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.step h3 { font-size: 1.7rem; margin-bottom: 0.25rem; }
.step p { color: var(--muted); }

/* Footer */
.site-footer { padding-block: 3rem; }
.terms { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.terms h3 { margin-bottom: 0.75rem; }
.terms details { border-bottom: 1px solid var(--line); }
.terms summary { cursor: pointer; padding: 0.85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.terms details[open] summary::after { content: "\2212"; }
.terms details p { color: var(--muted); padding-bottom: 1rem; font-size: 0.92rem; }
.terms-link { color: var(--accent); text-underline-offset: 3px; }
.site-footer .warn { margin-top: 1.5rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot p { color: var(--muted); margin-top: 0.5rem; }
.foot h3 { font-size: 1.3rem; }
.mail { color: var(--fg) !important; user-select: all; }
.warn { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; max-width: 70ch; }

/* Shared scrim */
.overlay { position: fixed; inset: 0; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; z-index: 40; }
body.bag-open .overlay, body.sheet-open .overlay { opacity: 1; visibility: visible; }

/* Product sheet with page-turning book */
.sheet { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
body.sheet-open .sheet { visibility: visible; opacity: 1; }
.sheet-card { pointer-events: auto; width: min(800px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: hidden; transform: translateY(16px); transition: transform 0.3s ease; }
body.sheet-open .sheet-card { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.8rem; line-height: 1.1; }
:root[dir="rtl"] .sheet-head h2 { line-height: 1.35; }
.x { background: none; border: 1px solid var(--line); border-radius: 2px; width: 40px; height: 40px; font-size: 1.2rem; line-height: 1; flex: none; }
.x:hover { border-color: var(--accent); color: var(--accent); }
.sheet-body { overflow-y: auto; padding: 1.25rem; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1 1 180px; }

.book { position: relative; display: grid; perspective: 1500px; }
.page, .leaf { grid-area: 1 / 1; min-width: 0; }
.leaf { position: relative; z-index: 2; transform-origin: left center; transition: transform 0.6s cubic-bezier(0.55, 0.05, 0.3, 1), opacity 0.6s ease-in; backface-visibility: hidden; }
:root[dir="rtl"] .leaf { transform-origin: right center; }
.leaf.turn { transform: rotateY(var(--flip)); opacity: 0; }
.page-face { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; min-height: 340px; height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: 2px; background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent 7%), var(--surface-2); }
:root[dir="rtl"] .page-face { background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent 7%), var(--surface-2); }
.pg-art { display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 100%; background: radial-gradient(circle at 50% 45%, var(--glow), transparent 65%); }
.pg-art svg { height: 84%; width: auto; max-width: 100%; }
.pg-info { display: grid; gap: 0.55rem; align-content: center; min-width: 0; }
.pg-flavor { font-size: 2.3rem; line-height: 1.05; }
:root[dir="rtl"] .pg-flavor { line-height: 1.35; }
.pg-info .price { margin-top: 0.2rem; font-size: 1.8rem; }
.pg-info [data-ctl] { margin-top: 0.5rem; }
.pg-info [data-ctl] > .btn { width: 100%; }
.book-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.nav-btn { width: 44px; height: 44px; border: 1px solid var(--line); background: none; border-radius: 2px; font-size: 1.1rem; flex: none; }
.nav-btn:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.nav-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
:root[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.dot { width: 26px; height: 26px; background: none; border: 0; padding: 0; display: grid; place-items: center; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--muted); }
.dot[aria-current="true"]::before { background: var(--accent); border-color: var(--accent); }
.dot.out::before { opacity: 0.4; }
.pg-media { display: grid; gap: 0.5rem; min-width: 0; align-content: center; }
.pg-media .dots { justify-content: center; }
.counter { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 0; font-variant-numeric: tabular-nums; }

.vlist { display: grid; }
.vrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.vrow:first-child { border-top: 1px solid var(--line); }
.vthumb { aspect-ratio: 4 / 5; background: var(--surface-2); display: grid; place-items: center; padding: 5px; border-radius: 2px; }
.vthumb svg { width: 100%; height: auto; }
.vname { background: none; border: 0; padding: 0; text-align: start; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--fg); }
.vname:hover { color: var(--accent); }
.vrow .stock { margin-top: 0.15rem; }
.vside { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
:root[dir="rtl"] .vside { align-items: flex-start; }
.vside .price { margin: 0; font-size: 1.2rem; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; }
.qty button { background: none; border: 0; width: 38px; height: 38px; font-size: 1.1rem; }
.qty button:hover:not([disabled]) { color: var(--accent); }
.qty button[disabled] { opacity: 0.3; cursor: not-allowed; }
.qty output { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; }

/* Bag drawer */
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--surface); border-inline-start: 1px solid var(--line);
  transform: translateX(var(--off)); visibility: hidden; transition: transform 0.3s ease, visibility 0.3s; z-index: 50; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
:root[dir="rtl"] .drawer { padding-right: 0; padding-left: env(safe-area-inset-left, 0px); }
body.bag-open .drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.7rem; }
.scroller { flex: 1; overflow-y: auto; padding: 0 1.25rem 1rem; }
.line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.thumb { aspect-ratio: 4 / 5; background: var(--surface-2); border-radius: 2px; display: grid; place-items: center; padding: 8px; }
.thumb svg { width: 100%; height: auto; }
.line h3 { font-size: 1.15rem; line-height: 1.2; }
.flv { color: var(--accent); font-size: 0.88rem; }
.line .qty { margin-top: 0.7rem; }
.maxnote { color: var(--warn); font-size: 0.78rem; margin-top: 0.35rem; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-variant-numeric: tabular-nums; }
:root[dir="rtl"] .line-end { align-items: flex-start; }
.line-end .price { margin-top: 0; font-size: 1.2rem; }
.rm { background: none; border: 0; padding: 0.25rem 0; color: var(--muted); font-size: 0.8rem; text-decoration: underline; min-height: 32px; }
.rm:hover { color: var(--fg); }
.empty { padding: 3rem 0.5rem; text-align: center; color: var(--muted); }
.empty h3 { font-size: 1.6rem; color: var(--fg); margin-bottom: 0.4rem; }
.form { display: grid; gap: 1rem; padding-top: 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field > label, .field legend { font-size: 0.8rem; color: var(--muted); padding: 0; }
.field input[type="text"], .field textarea { width: 100%; padding: 0.65rem 0.8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px; min-height: 44px; }
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
fieldset.field { border: 0; margin: 0; min-width: 0; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.35rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-2); color: var(--muted); }
.opt input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--bg); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; }
.pnote { color: var(--accent); font-size: 0.85rem; margin-top: 0.35rem; }
.need { color: var(--need); font-weight: 700; font-size: 0.8rem; margin-inline-start: 0.55rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
button.need { display: inline-block; margin: 0.4rem 0 0; padding: 0.3rem 0; background: none; border: 0; font: inherit; font-weight: 700; font-size: 0.9rem; min-height: 44px; }
button.need:focus-visible { outline: 2px solid var(--need); outline-offset: 2px; }
.fls { margin: 0.5rem 0 0.2rem; padding-inline-start: 1.2rem; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.agree { text-align: center; font-size: 0.85rem; color: var(--muted); }
.agree a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.check input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; }
.drawer-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; background: var(--surface); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.row strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.row .muted { color: var(--muted); }
.row .okc { color: var(--ok); }
.bar-track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }
.ship { color: var(--muted); font-size: 0.82rem; }
.note { font-size: 0.85rem; color: var(--fg); background: var(--surface-2); border-inline-start: 2px solid var(--bad); padding: 0.65rem 0.85rem; }
.hint { color: var(--muted); font-size: 0.78rem; }

/* Toast */
.toast { position: fixed; inset-inline: 0; bottom: 0; display: flex; justify-content: center; pointer-events: none; z-index: 60;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.toast span { background: var(--fg); color: var(--bg); padding: 0.7rem 1.1rem; border-radius: 2px; font-size: 0.9rem; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; }
.toast.show span { opacity: 1; transform: none; }

@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; } }
@media (max-width: 860px) {
  .nav { display: none; }
  .tools { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2rem 3rem; }
  .stage { display: none; }
  .hero-grid { padding-block: 1.1rem 1.4rem; gap: 0; }
  .hero h1 { font-size: 1.9rem; margin: 0.5rem 0 0.6rem; }
  .lead { font-size: 0.92rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-actions .btn { min-height: 42px; padding: 0.5rem 1.1rem; }
  .perks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .perk, .perk:first-child { padding: 0.6rem 0.4rem !important; border-top: 0 !important; border-inline-start: 1px solid var(--line) !important; text-align: center; }
  .perk:first-child { border-inline-start: 0 !important; }
  .hero .eyebrow, .hero .lead { display: none; }
  .hero h1 { font-size: 1.6rem; margin: 0 0 0.7rem; }
  .perk h3 { font-size: 0.9rem; line-height: 1.25; margin: 0; }
  .perk p { display: none; }
  .section { padding-block: 1.6rem; }
  .section-head { margin-bottom: 0.8rem; }
  .section-head h2 { font-size: 1.7rem; }
  .section-head p { display: none; }
  .filters { margin-bottom: 1.1rem; }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .perks-grid { grid-template-columns: minmax(0, 1fr); }
  .perk, .perk:first-child { border-inline-start: 0; padding-inline: 0; border-top: 1px solid var(--line); }
  .perk:first-child { border-top: 0; }
  .section { padding-block: 3rem; }
}
@media (max-width: 600px) {
  .page-face { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.1rem; min-height: 0; }
  .pg-art { aspect-ratio: 5 / 3; }
  .pg-art.photo { aspect-ratio: auto; height: 300px; }
  .pg-art svg { height: 100%; }
  .pg-flavor { font-size: 1.9rem; }
  .sheet-head h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .smile { width: 24px; height: 24px; }
  .brand-latin { font-size: 1.1rem; letter-spacing: 0.12em; }
  .brand-ar { font-size: 1.05rem; padding-inline-start: 0.5rem; }
  .bar { gap: 0.6rem; }
  .brand { gap: 0.5rem; }
  .bag-label { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .line { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 0.8rem; }
  .vrow { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- static SEO content ---- */
.inner .hero { display: none !important; }
.seo-sec { padding-block: 2.2rem 1rem; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin: 0 0 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent); }
.seo-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.seo-media { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.8rem; }
.seo-media img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.seo-sec h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 0.4rem; }
.seo-sec h1 .ar { display: block; font-size: 0.7em; color: var(--accent); margin-top: 0.2rem; }
.seo-sec p { color: var(--muted); max-width: 62ch; margin: 0.5rem 0; }
.seo-sec p.seo-price { color: var(--fg); font-size: 1.15rem; }
.seo-vars { width: 100%; max-width: 560px; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.seo-vars th, .seo-vars td { text-align: start; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.seo-vars th { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.seo-vars td .ar { display: block; color: var(--muted); font-size: 0.9em; }
.seo-act { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.1rem 0 0.6rem; }
.seo-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.35rem 1.2rem; }
.seo-list a { color: var(--fg); text-decoration: none; font-size: 0.92rem; }
.seo-list a:hover { color: var(--accent); text-decoration: underline; }
.seo-list small { color: var(--muted); margin-inline-start: 0.4rem; }
.seo-cats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 1.2rem 0 0.4rem; }
.seo-cats a { color: var(--muted); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.seo-cats a:hover { color: var(--accent); }
.seo-browse h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin: 1.4rem 0 0.2rem; }
.seo-browse h3 a { color: var(--accent); text-decoration: none; }
.seo-about p { color: var(--muted); max-width: 70ch; }
@media (max-width: 720px) { .seo-grid { grid-template-columns: 1fr; gap: 1.2rem; } .seo-media { max-width: 340px; } }
