/* Vape Empire Syria: store styles
   Layout: a velvet shop counter. Phones get one column with a 2-up product grid;
   desktop widens to a centred 1180px counter with a 4-up grid. Product photos sit on
   the same dark velvet stage, so the gold is kept for prices, actions and stamps. */
:root {
  --ink: #0C0A08;
  --velvet: #17130E;
  --velvet-hi: #211B13;
  --gold: #C9A24B;
  --gold-hi: #E4C680;
  --ivory: #EFE7D6;
  --sand: #A99E87;
  --line: #3A3022;
  --ok: #8FC79C;
  --out: #776D60;
  --danger: #E08A72;
  --font-display: "Changa", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-latin: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
  --shadow-lift: 0 18px 40px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

@font-face { font-family: "Changa"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/changa-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Changa"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/changa-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Changa"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/changa-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Changa"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/changa-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/oswald-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/oswald-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 400 15px/1.75 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--ink);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: var(--r-sm); }
.lat { font-family: var(--font-latin); letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.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));
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); margin-inline-end: auto; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name b { font: 600 17px/1.1 var(--font-latin); letter-spacing: .04em; white-space: nowrap; }
.brand-name span { font-size: 12px; color: var(--sand); }
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--velvet);
  color: var(--ivory);
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }
.badge-count {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font: 600 12px/20px var(--font-latin);
  text-align: center;
}
.badge-count[data-zero] { display: none; }
.badge-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.notice { background: var(--velvet); border-bottom: 1px solid var(--line); color: var(--gold-hi); font-size: 13px; }
.notice .wrap { padding-block: 7px; text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 8px; padding-block: 20px 28px; align-items: center; }
.hero-stage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin-inline: auto; }
.hero-stage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.hero-puffs {
  position: absolute;
  inset: 8% 0 auto;
  text-align: center;
  font: 600 clamp(110px, 34vw, 210px)/0.9 var(--font-latin);
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--gold) 55%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-stage .stage-img {
  position: relative;
  z-index: 1;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(farthest-side at 50% 46%, #000 70%, transparent 100%);
  mask-image: radial-gradient(farthest-side at 50% 46%, #000 70%, transparent 100%);
}
.hero-caption {
  position: absolute;
  z-index: 2;
  inset: auto 12px 12px auto;
  display: grid;
  gap: 0;
  text-align: start;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 12px;
}
.hero-caption b { font: 600 15px/1.3 var(--font-latin); color: var(--ivory); }
.hero-caption span { font-size: 12px; color: var(--sand); }
.hero-copy h1 {
  font: 700 clamp(30px, 8vw, 50px)/1.25 var(--font-display);
  margin: 0 0 10px;
  text-wrap: balance;
}
.hero-copy p { margin: 0 0 18px; color: var(--sand); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn.ghost { background: transparent; color: var(--gold-hi); }
.btn.ghost:hover { background: var(--velvet-hi); }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .stage-img { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-puffs { animation: glow 1.4s ease .2s both; }
}
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes glow { from { opacity: 0; letter-spacing: .08em; } to { opacity: 1; letter-spacing: 0; } }

/* ---------- trust ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding-block: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.trust li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; align-items: start; min-width: 0; }
.trust svg { grid-row: span 2; width: 26px; height: 26px; color: var(--gold); margin-top: 3px; }
.trust b { font: 600 15px/1.4 var(--font-display); }
.trust span { font-size: 13px; line-height: 1.6; color: var(--sand); }

/* ---------- section ---------- */
.section { padding-block: 34px; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { font: 700 26px/1.3 var(--font-display); margin: 0; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--sand); font-size: 14px; }

/* ---------- category + filters ---------- */
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 10px; }
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--velvet);
  color: var(--ivory);
  font-size: 14px;
  white-space: nowrap;
}
.chip small { color: var(--sand); font: 500 12px var(--font-latin); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.chip[aria-pressed="true"] small { color: #5d5446; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.filters .chip { min-height: 34px; padding: 0 12px; font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sand); margin-inline-end: 6px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ivory); transition: inset-inline-start .2s; }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { inset-inline-start: 19px; background: var(--ink); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: start;
  background: var(--velvet);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--gold); }
.card:active { transform: scale(.99); }
.card .ph { position: relative; aspect-ratio: 1 / 1; background: var(--ink); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { display: grid; gap: 2px; padding: 10px 12px 12px; }
.card .brandline { font: 500 12px/1.3 var(--font-latin); color: var(--gold); letter-spacing: .06em; }
.card h3 { font: 600 17px/1.25 var(--font-latin); margin: 0; overflow-wrap: anywhere; }
.card .meta { font-size: 12.5px; color: var(--sand); line-height: 1.5; }
.card .stock { font-size: 12.5px; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.card .stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card .stock.none { color: var(--out); }
.card .price { margin-top: 6px; font: 600 18px/1.2 var(--font-latin); color: var(--gold-hi); }
.card .price.ask { font: 500 13px/1.4 var(--font-body); color: var(--sand); }
.price s { color: var(--out); font-weight: 500; margin-inline-start: 6px; font-size: .8em; }
.stamp {
  position: absolute;
  z-index: 2;
  top: 10px;
  inset-inline-end: 10px;
  padding: 3px 8px;
  border: 1.5px solid color-mix(in srgb, var(--gold) 80%, transparent);
  border-radius: 4px;
  color: var(--gold-hi);
  font: 600 11px/1.3 var(--font-body);
  transform: rotate(-6deg);
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  letter-spacing: .02em;
}
.tag-new {
  position: absolute;
  z-index: 2;
  top: 10px;
  inset-inline-start: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 600 11.5px/1.6 var(--font-body);
}
.empty { padding: 28px; text-align: center; color: var(--sand); border: 1px dashed var(--line); border-radius: var(--r-md); }

/* text tile when a product has no photo yet */
.tile {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 14px;
  text-align: center;
  background: radial-gradient(70% 60% at 50% 42%, #2A2318 0%, var(--ink) 75%);
}
.tile::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); border-radius: 50%; }
.tile .t-brand { font: 500 12px var(--font-latin); color: var(--gold); letter-spacing: .1em; }
.tile .t-name { font: 700 clamp(18px, 4.6vw, 24px)/1.25 var(--font-display); color: var(--ivory); position: relative; }
.tile .t-lat { font: 500 13px/1.3 var(--font-latin); color: var(--sand); position: relative; }

/* ---------- new arrivals ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }

/* ---------- quiz + calculator ---------- */
.panel { background: var(--velvet); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.q { margin-bottom: 14px; }
.q > span { display: block; font: 600 15px/1.5 var(--font-display); margin-bottom: 8px; }
.q .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-out { margin-top: 14px; }
.quiz-out .rail { grid-auto-columns: minmax(150px, 46%); }
.calc-row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--sand); }
.field select, .field input[type="text"], .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--ivory);
}
.field textarea { min-height: 70px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.calc-out div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.calc-out b { display: block; font: 600 30px/1.1 var(--font-latin); color: var(--gold-hi); }
.calc-out span { font-size: 12.5px; color: var(--sand); }
.fine { font-size: 12px; color: var(--sand); margin: 10px 0 0; }

/* ---------- offer ---------- */
.offer { background: linear-gradient(120deg, #2A2014, var(--velvet) 60%); border: 1px solid var(--gold); border-radius: var(--r-md); padding: 18px; display: grid; gap: 8px; }
.offer h3 { margin: 0; font: 700 22px/1.3 var(--font-display); color: var(--gold-hi); }
.offer p { margin: 0; color: var(--ivory); }
.countdown { display: flex; gap: 8px; direction: ltr; justify-content: flex-end; }
.countdown div { min-width: 56px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; background: var(--ink); }
.countdown b { display: block; font: 600 24px/1 var(--font-latin); }
.countdown span { font-size: 11px; color: var(--sand); }

/* ---------- steps + faq ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-hi); font: 600 18px var(--font-latin); }
.steps b { display: block; font: 600 16px/1.5 var(--font-display); }
.steps span { color: var(--sand); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font: 600 16px/1.5 var(--font-display); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font: 500 22px/1 var(--font-latin); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--sand); max-width: 70ch; }
.policy { margin-top: 18px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--velvet); }
.site-foot .wrap { padding-block: 26px 34px; display: grid; gap: 18px; }
.foot-top { display: flex; align-items: center; gap: 14px; }
.foot-top img { width: 64px; height: 64px; }
.foot-top b { font: 600 18px var(--font-latin); letter-spacing: .05em; display: block; }
.foot-top span { color: var(--sand); font-size: 13px; }
.contact { display: grid; gap: 8px; font-size: 14px; }
.contact a { text-decoration: none; }
.legal { font-size: 12.5px; color: var(--sand); border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.legal strong { color: var(--ivory); font-weight: 600; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ivory); background: transparent; max-width: none; max-height: none; }
dialog.dlg-sheet { width: 100%; height: 100%; margin: 0; inset: 0; }
dialog::backdrop { background: rgba(4, 3, 2, .74); backdrop-filter: blur(3px); }
.sheet {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { flex: 1; margin: 0; font: 700 19px/1.3 var(--font-display); min-width: 0; }
.sheet-body { flex: 1; overflow-y: auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet-foot { border-top: 1px solid var(--line); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--velvet); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] .sheet { animation: sheet-in .28s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }

/* model view */
.pd { display: grid; gap: 18px; }
.pd-gallery { display: grid; gap: 10px; min-width: 0; }
.pd-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-note { position: absolute; z-index: 2; bottom: 8px; inset-inline-start: 8px; font-size: 11.5px; color: var(--sand); background: color-mix(in srgb, var(--ink) 75%, transparent); padding: 2px 8px; border-radius: 4px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 58px; height: 58px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--line); overflow: hidden; background: var(--ink); }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: grid; gap: 14px; min-width: 0; align-content: start; }
.pd-title .brandline { font: 500 13px var(--font-latin); color: var(--gold); letter-spacing: .08em; }
.pd-title h3 { margin: 0; font: 600 28px/1.15 var(--font-latin); }
.pd-title .cat { color: var(--sand); font-size: 13px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs span { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ivory); background: var(--velvet); }
.pick > span { display: flex; justify-content: space-between; gap: 8px; font: 600 14px/1.5 var(--font-display); margin-bottom: 8px; }
.pick > span small { font: 400 12.5px var(--font-body); color: var(--sand); }
.flavours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.flv {
  display: grid;
  gap: 0;
  text-align: start;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--velvet);
  min-width: 0;
}
.flv b { font: 500 14px/1.35 var(--font-latin); overflow-wrap: anywhere; }
.flv span { font-size: 12px; line-height: 1.5; color: var(--sand); }
.flv[aria-pressed="true"] { border-color: var(--gold); background: var(--velvet-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.flv[disabled] { opacity: .45; cursor: not-allowed; }
.flv[disabled] span::after { content: " · خلصانة"; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-width: 64px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--velvet); font: 500 14px var(--font-body); }
.seg button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.buy-bar { display: flex; gap: 10px; align-items: center; }
.buy-bar .btn { flex: 1; }
.buy-bar .icon-btn { width: 48px; height: 48px; flex: none; border-color: var(--gold); color: var(--gold-hi); }
.buy .price { font: 600 26px/1 var(--font-latin); color: var(--gold-hi); margin-inline-end: auto; }
.buy .price.ask { font: 500 14px/1.5 var(--font-body); color: var(--sand); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 42px; border: 0; background: var(--velvet); font: 600 18px var(--font-latin); }
.qty output { min-width: 34px; text-align: center; font: 600 16px var(--font-latin); }
.facts { display: grid; gap: 12px; }
.facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.facts b { display: block; font: 600 14px/1.5 var(--font-display); color: var(--gold-hi); }
.facts p { margin: 2px 0 0; color: var(--ivory); font-size: 14px; }
.facts ul { margin: 4px 0 0; padding-inline-start: 18px; color: var(--ivory); font-size: 14px; }
.ask-link { font-size: 13.5px; }

/* cart */
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.line-item .ph { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--ink); position: relative; border: 1px solid var(--line); }
.line-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.line-item .ph .tile { padding: 4px; }
.line-item .ph .tile::before { display: none; }
.line-item .ph .tile .t-name { font-size: 12px; }
.line-item .ph .tile .t-brand, .line-item .ph .tile .t-lat { display: none; }
.line-item b { font: 500 15px/1.3 var(--font-latin); display: block; }
.line-item span { font-size: 12.5px; color: var(--sand); display: block; }
.line-item .qty button { width: 32px; height: 34px; font-size: 16px; }
.line-item .end { display: grid; justify-items: end; gap: 6px; }
.line-item .end .p { font: 600 15px var(--font-latin); color: var(--gold-hi); }
.link-btn { background: none; border: 0; color: var(--sand); font-size: 12.5px; text-decoration: underline; padding: 0; }
.totals { display: grid; gap: 6px; margin-block: 16px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font: 600 18px var(--font-display); }
.totals .grand b { font: 600 22px var(--font-latin); color: var(--gold-hi); }
.fieldset { display: grid; gap: 12px; margin-top: 8px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { flex: 1 1 140px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--velvet); cursor: pointer; font-size: 14px; }
.radio-row input { accent-color: var(--gold); }
.radio-row label:has(input:checked) { border-color: var(--gold); }
.after-send { margin-top: 12px; display: grid; gap: 8px; }
.after-send pre { white-space: pre-wrap; background: var(--velvet); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; font: 400 13px/1.6 var(--font-body); margin: 0; max-height: 220px; overflow: auto; }

/* search */
.search-box { display: flex; align-items: center; gap: 8px; flex: 1; }
.search-box input { flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--velvet); padding: 0 16px; color: var(--ivory); }
.results { display: grid; gap: 2px; }
.result { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; text-align: start; padding: 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; }
.result:hover, .result:focus-visible { background: var(--velvet); }
.result .ph { width: 52px; height: 52px; border-radius: var(--r-sm); overflow: hidden; background: var(--ink); position: relative; }
.result .ph img { width: 100%; height: 100%; object-fit: cover; }
.result .ph .tile::before { display: none; }
.result .ph .tile .t-brand, .result .ph .tile .t-lat { display: none; }
.result .ph .tile .t-name { font-size: 11px; }
.result b { font: 500 15px/1.3 var(--font-latin); display: block; }
.result span { font-size: 12.5px; color: var(--sand); }
.result em { font-style: normal; font-size: 12px; color: var(--ok); }
.result em.none { color: var(--out); }
.hint { color: var(--sand); font-size: 13px; }

/* age gate */
.gate { width: min(420px, calc(100% - 32px)); margin: auto; background: var(--velvet); border: 1px solid var(--gold); border-radius: var(--r-md); padding: 26px 22px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.gate img { width: 86px; height: 86px; }
.gate h2 { margin: 0; font: 700 24px/1.3 var(--font-display); }
.gate p { margin: 0; color: var(--sand); }
.gate .cta-row { justify-content: center; width: 100%; }
.gate .btn { flex: 1 1 140px; }

/* toast */
.toast { position: fixed; z-index: 60; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; max-width: 420px; background: var(--ivory); color: var(--ink); border-radius: var(--r-md); padding: 12px 16px; font-weight: 600; box-shadow: var(--shadow-lift); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toast button { background: var(--ink); color: var(--ivory); border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(170px, 30%); }
  .quiz-out .rail { grid-auto-columns: minmax(170px, 30%); }
}
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 28px; padding-block: 36px 40px; }
  .hero-copy { order: -1; }
  .calc-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .flavours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  dialog.dlg-sheet .sheet { width: min(1040px, calc(100% - 48px)); height: min(860px, calc(100% - 48px)); margin: auto; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
  dialog.dlg-sheet { width: 100%; height: 100%; display: none; }
  dialog.dlg-sheet[open] { display: grid; place-items: center; }
  .pd { grid-template-columns: 1fr 1fr; gap: 28px; }
  dialog.dlg-narrow .sheet { width: min(560px, calc(100% - 48px)); }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(180px, 23%); }
}
