/* Layout: navy hero with the gold logo → sticky icon tabs (filter by category) → product grid (2 per row on phones, up to 4) → info panels → footer.
   Item tap opens a card that zooms out of the tapped product; the photo opens full screen with pinch zoom. */
:root {
  --gold: #B9821C;
  --gold-deep: #8A5E0E;
  --gold-soft: #F5E8C8;
  --chili: #D9472B;
  --chili-deep: #B23419;
  --espresso: #011E54;
  --espresso-2: #0A2A66;
  --on-dark: #EEF2FB;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --tile: #E9EEF8;
  --ink: #0B1736;
  --muted: #56627F;
  --line: #DCE3F2;
  --green: #1E8E4E;
  --green-soft: #E2F3E8;
  --green-ink: #166B3B;
  --danger: #C62828;
  --star: #F5B301;
  --shadow: 0 1px 2px rgba(1, 30, 84, .06), 0 10px 26px rgba(1, 30, 84, .08);
  /* legacy names used by the legal pages */
  --brand: var(--gold); --brand-deep: var(--gold-deep);

  --f-display: "Baloo Bhaijaan 2", "Readex Pro", system-ui, sans-serif;
  --f-body: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;

  --r: 20px;
  --wrap: 1180px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold: #E0AE4C; --gold-deep: #F0C672; --gold-soft: #2A2A2E; --chili: #FF6A4A; --chili-deep: #FF8466;
    --bg: #07122B; --surface: #0D1B3A; --tile: #13254A; --ink: #EEF2FB; --muted: #A9B9DD; --line: #1E3360;
    --green: #4CC27F; --green-soft: #173023; --green-ink: #4CC27F; --danger: #FF8A80;
    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 26px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --gold: #E0AE4C; --gold-deep: #F0C672; --gold-soft: #2A2A2E; --chili: #FF6A4A; --chili-deep: #FF8466;
  --bg: #07122B; --surface: #0D1B3A; --tile: #13254A; --ink: #EEF2FB; --muted: #A9B9DD; --line: #1E3360;
  --green: #4CC27F; --green-soft: #173023; --green-ink: #4CC27F; --danger: #FF8A80;
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 26px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--espresso); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(224, 174, 76, .22), transparent 42%),
    radial-gradient(circle at 0% 110%, rgba(46, 98, 200, .30), transparent 45%),
    var(--espresso);
  color: var(--on-dark);
  border-radius: 0 0 30px 30px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: radial-gradient(#E0AE4C 1.2px, transparent 1.3px); background-size: 18px 18px;
}
.hero-inner { padding-block: 14px 20px; display: grid; gap: 16px; position: relative; z-index: 1; }
/* rotating 3D logo behind the header */
.hero-3d {
  position: absolute; z-index: 0; pointer-events: none; inset-block-start: -2%; inset-inline-start: 50%;
  width: min(78vw, 430px); aspect-ratio: 1 / 1.08; translate: -50% 0; perspective: 1100px; opacity: .2;
}
[dir="rtl"] .hero-3d { translate: 50% 0; }
.coin { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.coin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; max-width: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin .front { transform: translateZ(1px); filter: drop-shadow(0 0 18px rgba(224, 174, 76, .55)); }
.coin .back { transform: rotateY(180deg) translateZ(1px); filter: drop-shadow(0 0 18px rgba(224, 174, 76, .55)); }
.coin .layer { transform: translateZ(var(--z)); filter: brightness(.45) sepia(1); backface-visibility: visible; }
@keyframes spin { from { transform: rotateY(0deg) rotateX(6deg); } to { transform: rotateY(360deg) rotateX(6deg); } }
@media (prefers-reduced-motion: reduce) { .coin { animation: none; transform: rotateY(-18deg); } }
.topbar { display: flex; justify-content: flex-end; }
.lang { display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--on-dark); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang button[aria-pressed="true"] { background: #E0AE4C; color: #011E54; }

.brand { display: flex; align-items: center; gap: 16px; }
.logo {
  width: clamp(92px, 24vw, 128px); height: auto; aspect-ratio: 1; border-radius: 50%; flex: none; background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(224, 174, 76, .55), 0 14px 34px rgba(0, 0, 0, .45);
}
.brand-text { min-width: 0; display: grid; gap: 0; }
.chip-demo { background: rgba(242, 183, 41, .16); border: 1px solid rgba(242, 183, 41, .55); color: #FFE08A; }
.name-ar { margin: 0; font: 800 clamp(27px, 6.4vw, 40px)/1.15 var(--f-display); color: #fff; text-wrap: balance; }
.name { margin: 0; font: 600 clamp(14px, 3.3vw, 18px)/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #E0AE4C; }
.tagline { margin: 6px 0 0; font-size: 14px; color: rgba(247, 238, 223, .82); text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: #E9F7EE; color: #17703D; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.closed { background: #FDECEA; color: #B3261E; }
.chip-ghost { background: rgba(255,255,255,.09); color: var(--on-dark); }
.chip-ghost::before { display: none; }

.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.act {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0;
  padding: 11px 8px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 14px;
  background: rgba(255,255,255,.07); color: var(--on-dark); border: 1px solid rgba(255,255,255,.14);
  transition: background .2s;
}
.act:hover { background: rgba(255,255,255,.14); }
.act.primary { background: #25B35F; color: #fff; border-color: #25B35F; }
.act svg { width: 19px; height: 19px; flex: none; }

/* ---------- Category tabs ---------- */
.catbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.catbar.stuck { border-bottom-color: var(--line); box-shadow: 0 6px 18px rgba(40, 20, 5, .06); }
.cats { display: flex; gap: 4px; overflow-x: auto; padding-block: 12px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; width: 76px; display: grid; justify-items: center; align-content: start; gap: 5px;
  border: 0; background: none; padding: 0; color: var(--muted); scroll-snap-align: start;
  font: 600 12px/1.25 var(--f-body); text-align: center;
}
.cat .bubble {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--gold-deep);
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.cat .ci { width: 27px; height: 27px; }
.cat .lbl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 76px; }
.cat[aria-selected="true"] { color: var(--ink); }
.cat[aria-selected="true"] .bubble { background: var(--gold); border-color: var(--gold); color: #011E54; transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--gold) 40%, transparent); }
.cat:active .bubble { transform: scale(.94); }

/* ---------- Menu grid ---------- */
#menu { padding-block: 10px 28px; display: grid; gap: 30px; }
.section h2 { margin: 0 0 12px; font: 800 24px/1.2 var(--f-display); display: flex; align-items: center; gap: 10px; }
.section h2 .hic { width: 38px; height: 38px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.section h2 .hic svg { width: 22px; height: 22px; }
.section h2 small { font: 500 13px var(--f-body); color: var(--muted); margin-inline-start: auto; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.card {
  display: flex; flex-direction: column; min-width: 0; position: relative;
  background: var(--surface); border-radius: var(--r); padding: 7px; box-shadow: var(--shadow);
  border: 0; text-align: start; width: 100%; transition: transform .18s ease;
  animation: cardIn .45s cubic-bezier(.2,.8,.2,1) both;
}
.card:active { transform: scale(.97); }
@media (hover: hover) { .card:hover { transform: translateY(-3px); } .card:hover .card-media img { transform: scale(1.06); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.card-media { position: relative; aspect-ratio: 1; border-radius: 15px; overflow: hidden; background: var(--tile); max-width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card-media img.illus { object-fit: contain; padding: 14%; }
.ptag {
  position: absolute; bottom: 7px; inset-inline-start: 7px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 800 14.5px/1.4 var(--f-display); font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(0,0,0,.14); direction: ltr;
}
.ptag small { font: 500 11px var(--f-body); color: var(--muted); margin-inline-end: 3px; }
.ptag s { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-inline-end: 4px; }
.badges { position: absolute; top: 7px; inset-inline-start: 7px; inset-inline-end: 40px; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { font: 700 11px/1.6 var(--f-body); padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); letter-spacing: .01em; }
.badges .badge { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.badge.star { background: var(--gold); color: #011E54; }
.badge.hot { background: #B23419; color: #fff; }
.badge.deal { background: #B23419; color: #fff; }
.badge.sold { background: #FDECEA; color: #B3261E; }
.card-body { padding: 8px 4px 2px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.card h3 { margin: 0; font: 700 15.5px/1.3 var(--f-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.alg { font-size: 11px; color: var(--muted); letter-spacing: .06em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add {
  width: 34px; height: 34px; border-radius: 12px; background: var(--chili); color: #fff; flex: none; margin-inline-start: auto;
  display: grid; place-items: center; box-shadow: 0 6px 14px color-mix(in srgb, var(--chili) 38%, transparent);
}
.add svg { width: 19px; height: 19px; }
.qty-pill {
  position: absolute; inset-inline-end: 14px; top: 14px; min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 800;
  display: grid; place-items: center; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.card.sold .card-media img, .card.sold h3 { opacity: .5; }
.card.flash { animation: flash .7s ease; }
@keyframes flash { 40% { box-shadow: 0 0 0 4px var(--gold), var(--shadow); } }

/* ---------- Info ---------- */
.info { display: grid; gap: 14px; padding-block: 6px 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .info { grid-template-columns: 1.3fr 1fr; } .info .about { grid-row: span 2; } }
.panel { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel h2 { margin: 0 0 8px; font: 800 21px/1.2 var(--f-display); }
.panel p { margin: 0; color: var(--muted); }
.about p { color: var(--ink); max-width: 62ch; }
.label { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin: 16px 0 8px; display: block; }
.hours { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; font-variant-numeric: tabular-nums; }
.hours li.today { color: var(--gold-deep); font-weight: 700; }
.stars { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.stars b { font: 800 34px/1 var(--f-display); }
.stars .row { color: var(--star); letter-spacing: 2px; font-size: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px;
  border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn.fill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.alg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; font-size: 13px; color: var(--muted); }
.alg-list b { color: var(--ink); display: inline-block; min-width: 1.4em; }

.foot { padding-block: 22px calc(110px + var(--safe-b)); color: var(--muted); font-size: 13px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.foot a { color: inherit; }
.foot .legal a, .foot .credit { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed; z-index: 30; left: 50%; translate: -50% 0;
  bottom: calc(14px + var(--safe-b)); width: min(560px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; border-radius: 20px; padding: 13px 16px 13px 18px; background: var(--espresso); color: #fff;
  box-shadow: 0 14px 34px rgba(20, 10, 0, .4); font-weight: 600; font-size: 15.5px;
  animation: rise .35s cubic-bezier(.2,.9,.3,1.2);
}
.cartbar .count { background: var(--chili); border-radius: 999px; min-width: 26px; padding: 1px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.cartbar .sum { font: 800 17px var(--f-display); color: #E0AE4C; font-variant-numeric: tabular-nums; }
.cartbar.bump { animation: bump .45s ease; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@keyframes bump { 30% { transform: scale(1.04); } }

/* ---------- Dialogs ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 9, 4, .62); z-index: 40; animation: fade .25s; }
.sheet {
  position: fixed; z-index: 41; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
/* item card: centred, zooms out of the tapped product */
.sheet.center {
  left: 50%; top: 50%; translate: -50% -50%;
  width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - var(--safe-b));
  border-radius: 26px;
}
/* checkout: bottom sheet on phones, centred on wide screens */
.sheet.bottom {
  left: 0; right: 0; bottom: 0; max-height: 92dvh; border-radius: 26px 26px 0 0;
  animation: up .3s cubic-bezier(.2,.9,.3,1);
}
@media (min-width: 720px) {
  .sheet.bottom { left: 50%; right: auto; bottom: auto; top: 50%; translate: -50% -50%; width: min(520px, 92vw); border-radius: 26px; max-height: 88vh; animation: fade .2s; }
}
.sheet-body {
  overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0;
  padding: 18px max(18px, env(safe-area-inset-left, 0px)) 18px max(18px, env(safe-area-inset-right, 0px));
}
.sheet.center .sheet-body { padding: 0; }
.sheet-foot { flex: none; padding: 12px 16px calc(12px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
@keyframes up { from { transform: translateY(60px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }

.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sh-head h2 { margin: 0; font: 800 24px/1.2 var(--f-display); }
.x { border: 0; background: var(--tile); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--ink); }
.x svg { width: 18px; height: 18px; }

/* item card content */
.it-media { position: relative; aspect-ratio: 4 / 3; background: var(--tile); overflow: hidden; max-width: 100%; }
.it-media button.zoom { all: unset; position: absolute; inset: 0; cursor: zoom-in; }
.it-media img { width: 100%; height: 100%; object-fit: cover; }
.it-media img.illus { object-fit: contain; padding: 12%; }
.it-media .fab {
  position: absolute; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; z-index: 2;
  background: rgba(20, 12, 6, .55); color: #fff; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.it-media .fab svg { width: 19px; height: 19px; }
.it-media .fab.close { inset-inline-end: 12px; }
.it-media .fab.share { inset-inline-start: 12px; }
.it-media .zoom-hint {
  position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(20, 12, 6, .55); color: #fff; font-size: 12px; font-weight: 600;
}
.it-media .zoom-hint svg { width: 14px; height: 14px; }
.it-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.it-body .badges { position: static; margin-bottom: 2px; }
.it-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.it-title h2 { margin: 0; font: 800 25px/1.2 var(--f-display); text-wrap: balance; }
.it-price { font: 800 22px/1.3 var(--f-display); color: var(--gold-deep); white-space: nowrap; font-variant-numeric: tabular-nums; direction: ltr; }
.it-price s { font-size: 14px; color: var(--muted); font-weight: 600; margin-inline-end: 6px; }
.it-desc { color: var(--muted); margin: 2px 0 0; font-size: 14.5px; }
.it-alg { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.it-alg b { color: var(--ink); letter-spacing: .06em; }

.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.seg label { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.seg .p { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; font-size: 14px; }

/* per-item note */
.note-box { margin-top: 14px; }
.note-box .field { min-height: 108px; line-height: 1.7; font-size: 15px; border-style: dashed; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.note-box .field::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); white-space: pre-line; }
.note-box .label { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.note-box .label svg { width: 17px; height: 17px; color: var(--gold-deep); }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.qchip {
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 600; transition: all .15s;
}
.qchip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #011E54; }
.qchip[aria-pressed="true"]::before { content: "✓ "; }

.field { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
.note-box .field { background: var(--surface); }
.field:focus { outline: none; border-color: var(--gold); }
.field.err { border-color: var(--danger); }
textarea.field { resize: vertical; min-height: 64px; }
.hint { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 3px; flex: none; }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--surface); border-radius: 10px; font-size: 19px; font-weight: 700; display: grid; place-items: center; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px; flex: 1;
  padding: 14px 18px; font-weight: 700; font-size: 16px; background: var(--chili); color: #fff; text-decoration: none; min-width: 0;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--chili) 32%, transparent);
}
.cta .amt { margin-inline-start: auto; font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.cta.wa { background: #1FA855; box-shadow: 0 8px 18px rgba(31, 168, 85, .3); }
.cta.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; box-shadow: none; }
.cta svg { width: 21px; height: 21px; flex: none; }
.sh-actions { display: grid; gap: 10px; margin-top: 18px; }
.sold-note { color: var(--danger); font-weight: 700; font-size: 14px; text-align: center; flex: 1; }

/* checkout lines */
.lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; padding: 10px; }
.line img { width: 58px; height: 58px; border-radius: 12px; background: var(--tile); object-fit: cover; }
.line img.illus { object-fit: contain; padding: 6px; }
.line .t { min-width: 0; }
.line .t b { display: block; font-weight: 700; line-height: 1.3; }
.line .t span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.line .t .lnote { display: block; margin-top: 4px; font-size: 12.5px; color: var(--gold-deep); background: var(--gold-soft); border-radius: 8px; padding: 2px 8px; width: fit-content; max-width: 100%; }
.total { display: flex; justify-content: space-between; font: 800 22px var(--f-display); margin-top: 16px; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.note-small { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.done { text-align: center; padding: 10px 0 4px; }
.done .ok { width: 68px; height: 68px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 10px; }
.done .ok svg { width: 34px; height: 34px; }
.done h2 { font: 800 24px var(--f-display); margin: 0 0 6px; }
.done p { color: var(--muted); margin: 0; }
.order-no { display: inline-block; margin-top: 10px; font: 800 20px var(--f-display); letter-spacing: .08em; background: var(--surface); border: 1.5px dashed var(--gold); border-radius: 12px; padding: 4px 14px; }

/* ---------- Photo viewer ---------- */
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(8, 5, 2, .94); display: grid; place-items: center; touch-action: none; animation: fade .2s; overflow: hidden; }
.lb img { max-width: 100vw; max-height: 100dvh; object-fit: contain; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb img.illus { width: min(90vw, 90dvh); background: var(--tile); border-radius: 24px; padding: 8%; }
.lb .x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); inset-inline-end: 14px; background: rgba(255,255,255,.14); color: #fff; z-index: 2; }
.lb .cap { position: absolute; bottom: calc(18px + var(--safe-b)); left: 50%; translate: -50% 0; color: #fff; font: 700 16px var(--f-display); background: rgba(0,0,0,.4); padding: 6px 16px; border-radius: 999px; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.lb .tip { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; color: rgba(255,255,255,.75); font-size: 12.5px; pointer-events: none; }

.toast {
  position: fixed; z-index: 80; left: 50%; translate: -50% 0; top: calc(16px + env(safe-area-inset-top, 0px));
  background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); animation: fade .2s; max-width: calc(100% - 32px); text-align: center;
}
.noscript { padding: 30px 0; text-align: center; }

/* prices always read "4,99 €", whatever the page direction */
.amt, .total span:last-child, .cartbar .sum, .seg .p { direction: ltr; unicode-bidi: isolate; }

/* wide screens: the rotating logo sits in the empty middle of the header, smaller and clearer */
@media (min-width: 900px) {
  .hero-3d { width: 170px; inset-block-start: 20px; inset-inline-start: 62%; opacity: .55; }
}
