/* RAZER STORE – storefront design system
   Dark luxury: near-black #08080C / #101015 surfaces, strong red as the action colour, gold for value (prices, numbers).
   Glass only on floating layers (header, tab bar, sheets). Products carry the colour; the chrome stays quiet. */

/* ─────────────── 1. Tokens ─────────────── */
:root {
  color-scheme: dark;
  --bg: #08080c;
  --bg-2: #101015;
  --bg-3: #15151c;
  --surface: #101015;
  --surface-2: #15151c;
  --surface-3: #1b1b23;
  --glass: rgba(10, 10, 14, .78);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-hot: rgba(229, 38, 58, .5);
  --text: #f4f4f6;
  --muted: #a0a0ab;
  --dim: #686873;
  --red: #e5263a;
  --red-hi: #f23c4f;
  --crimson: #b8152a;
  --blood: #5c0a14;
  --ember: #f07a3a;
  --gold: #d4af6a;
  --gold-hi: #e8c88a;
  --ok: #34c27a;
  --warn: #e7a93c;
  --err: #f05264;
  --wa: #1faf5a;
  --f-display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  --glow: 0 10px 28px -14px rgba(229, 38, 58, .75);
  --header-h: 64px;
  --tabbar-h: 0px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --space-section: 72px;
}
@media (max-width: 760px) { :root { --header-h: 58px; --tabbar-h: 64px; --space-section: 44px; } }

/* ─────────────── 2. Base ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(229, 38, 58, .4); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.2; margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
[hidden] { display: none !important; }
.num, .price, .tabular { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--red); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.noscript { padding: 40px 16px; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .flip { transform: scaleX(-1); }
[dir="ltr"] .flip-prev, [dir="rtl"] .flip-next { transform: scaleX(-1); }
.inline-ic { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }

/* one soft light at the top of the page, nothing moving */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 45% at 50% -8%, rgba(229, 38, 58, .09), transparent 70%); }
.ambient > * { display: none; }

/* ─────────────── 3. Splash, progress, skeleton ─────────────── */
.splash { position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
.splash img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2), 0 0 50px rgba(229, 38, 58, .3); }
.splash-bar { width: 120px; height: 2px; border-radius: 2px; background: var(--surface-3); overflow: hidden; position: relative; }
.splash-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--red); animation: load 1.1s var(--ease-io) infinite; }
[dir="rtl"] .splash-bar::after { animation-name: loadRtl; }
.splash.out { opacity: 0; visibility: hidden; }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes loadRtl { from { transform: translateX(110%); } to { transform: translateX(-260%); } }
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 150; transform-origin: 0 50%; transform: scaleX(0); background: var(--red); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
[dir="rtl"] .progress { transform-origin: 100% 50%; }
.progress.on { opacity: 1; }
.sk { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r-lg); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .045), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); }
.sk-card::before { content: ""; aspect-ratio: 2 / 3; background: var(--surface-2); }
.sk-lines { display: grid; gap: 8px; padding: 14px; }
.sk-lines i { display: block; height: 10px; border-radius: 6px; background: var(--surface-3); }
.sk-lines i:nth-child(2) { width: 70%; }
.sk-lines i:nth-child(3) { width: 40%; height: 14px; margin-top: 4px; }

/* ─────────────── 4. Buttons & controls ─────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; font-family: var(--f-display); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .25s, border-color .25s, box-shadow .3s, color .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--red-hi); }
.btn-gold { background: var(--gold); color: #1a1206; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .03); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #25c266; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--text); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 20px; height: 20px; }
.badge-count { position: absolute; top: 3px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.badge-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.link-btn { color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--err); }

.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--dim); }
.field .err { font-size: 12.5px; color: var(--err); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px; background: #0c0c11; border: 1px solid var(--line-2); color: var(--text);
  font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--line-hot); box-shadow: 0 0 0 3px rgba(229, 38, 58, .14); }
.field.has-err .input, .field.has-err .textarea { border-color: rgba(240, 82, 100, .7); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .select { background-position: 22px 52%, 16px 52%; }
.input[type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .input[type="tel"] { text-align: right; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .form-grid.two { grid-template-columns: 1fr; } }

.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s; }
.chip svg { width: 16px; height: 16px; flex: none; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .24); }
.chip[aria-pressed="true"], .chip.on { color: #fff; background: var(--red); border-color: var(--red); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { min-height: 38px; padding: 0 16px; border-radius: 10px; color: var(--muted); font-family: var(--f-display); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--surface-3); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; line-height: 1.5; background: rgba(8, 8, 12, .78); border: 1px solid var(--line-2); white-space: nowrap; backdrop-filter: blur(6px); }
.tag svg { width: 12px; height: 12px; }
.tag-red { background: var(--red); border-color: transparent; color: #fff; }
.tag-gold { color: var(--gold); border-color: rgba(212, 175, 106, .35); }
.tag-ok { color: var(--ok); border-color: rgba(52, 194, 122, .35); background: rgba(52, 194, 122, .08); }
.tag-warn { color: var(--warn); border-color: rgba(231, 169, 60, .35); background: rgba(231, 169, 60, .08); }
.tag-err { color: var(--err); border-color: rgba(240, 82, 100, .35); background: rgba(240, 82, 100, .08); }
.tag-mute { color: var(--muted); }

.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.panel { padding: 24px; }
@media (max-width: 620px) { .panel { padding: 18px; } }

/* ─────────────── 5. Header ─────────────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--bg); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s; }
.topbar.scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: var(--header-h); transition: height .35s var(--ease); }
.topbar.compact .wrap { height: calc(var(--header-h) - 8px); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); transition: width .35s var(--ease), height .35s var(--ease); }
.topbar.compact .brand img { width: 34px; height: 34px; }
.brand b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: .08em; direction: ltr; white-space: nowrap; }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 24px; }
.nav a { position: relative; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.top-actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.lang-btn { width: auto; padding: 0 10px; font-family: var(--f-display); font-weight: 500; font-size: 13px; color: var(--muted); }
.lang-btn:hover { color: var(--text); }
.wa-link { color: #4fd68a; }
.top-sep { width: 1px; height: 20px; background: var(--line-2); margin-inline: 6px; }
@media (max-width: 1000px) { .nav { display: none; } }
@media (max-width: 760px) {
  .brand img { width: 34px; height: 34px; }
  .brand b { font-size: 15px; }
  .top-actions .hide-m { display: none; }
  .topbar .wrap { gap: 8px; }
  .brand { flex: 1 1 auto; overflow: hidden; }
  .brand span { min-width: 0; overflow: hidden; }
}
@media (max-width: 400px) {
  .brand img { width: 32px; height: 32px; }
  .brand b { font-size: 14px; letter-spacing: .05em; }
  .brand small { display: none; }
  .top-actions { gap: 0; flex: none; }
  .top-actions .icon-btn { width: 40px; height: 40px; }
  .icon-btn.wa-link { padding: 8px; }
}

/* Mobile slide-in menu */
.menu-list { display: grid; gap: 4px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 12px; font-size: 15.5px; font-weight: 500; width: 100%; text-align: start; transition: background-color .2s; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.menu-list svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.menu-list .count { margin-inline-start: auto; color: var(--dim); font-size: 12.5px; }
.menu-sec { font-size: 12px; color: var(--dim); font-weight: 600; letter-spacing: .04em; padding: 18px 14px 6px; }

/* ─────────────── 6. Mobile tab bar ─────────────── */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar {
    position: fixed; inset: auto 0 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button { position: relative; display: grid; place-content: center; justify-items: center; gap: 3px; color: var(--dim); font-size: 10.5px; font-weight: 500; transition: color .2s; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .active { color: var(--text); }
  .tabbar .active svg { color: var(--red); }
  .tabbar .badge-count { top: 6px; inset-inline-end: calc(50% - 20px); }
}

/* ─────────────── 7. Views & sections ─────────────── */
#view { display: block; min-height: 60vh; outline: none; }
#view.enter { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
::view-transition-old(root) { animation: vtOut .2s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn .35s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }
.section { padding-block: var(--space-section) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(20px, 2.4vw, 28px); }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 8px; letter-spacing: .04em; }
.see-all { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.see-all:hover { color: var(--text); }
.see-all svg { width: 16px; height: 16px; }
.reveal { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.reveal.pre { transform: translateY(16px); opacity: 0; }
@media (max-width: 620px) {
  .section-head { margin-bottom: 16px; align-items: center; }
  .section-head p { font-size: 13px; margin-top: 4px; }
}

/* ─────────────── 8. Hero slider ─────────────── */
.hx { position: relative; margin-top: calc(-1 * var(--header-h)); isolation: isolate; touch-action: pan-y; }
.hx-stage { position: relative; height: clamp(520px, 74vh, 760px); overflow: hidden; background: var(--bg); }
.hx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease-io), visibility 0s linear 1s; }
.hx-slide.on { opacity: 1; visibility: visible; transition: opacity 1s var(--ease-io), visibility 0s; }
.hx-media { position: absolute; inset: 0; overflow: hidden; }
.hx-img { --fx: 1; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(calc(var(--fx) * 1.06), 1.06); transition: transform 9s cubic-bezier(.25, .6, .3, 1); }
.hx-slide.on .hx-img { transform: scale(var(--fx), 1); }
.hx-shade { position: absolute; inset: 0; }
.hx-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding-top: var(--header-h); }
.hx-copy > * { max-width: min(560px, 46%); opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.hx-slide.on .hx-copy > * { opacity: 1; transform: none; }
.hx-slide.on .hx-copy > :nth-child(2) { transition-delay: .08s; }
.hx-slide.on .hx-copy > :nth-child(3) { transition-delay: .16s; }
.hx-slide.on .hx-copy > :nth-child(4) { transition-delay: .24s; }
.hx-slide.on .hx-copy > :nth-child(5) { transition-delay: .32s; }
.hx-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--gold); }
.hx-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hx-title { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; line-height: 1.08; overflow-wrap: anywhere; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); direction: ltr; text-align: start; unicode-bidi: plaintext; }
.hx-desc { color: #c9c9d1; font-size: 16px; line-height: 1.6; }
.hx-price { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--f-display); }
.hx-price small { color: var(--muted); font-size: 13px; }
.hx-price b { font-size: 26px; font-weight: 600; color: var(--gold); }
.hx-price b small { color: var(--gold); opacity: .8; font-size: 13px; margin-inline-start: 4px; }
.hx-price s { color: var(--dim); font-size: 15px; }
.hx-cta { margin-top: 6px; }
.hx-cta .btn { min-width: 190px; }
.hx-nav { position: absolute; inset-inline: 0; bottom: 28px; z-index: 3; }
.hx-nav .wrap { display: flex; align-items: center; gap: 16px; }
.hx-dots { display: flex; gap: 8px; }
.hx-dot { width: 26px; height: 24px; display: flex; align-items: center; }
.hx-dot i { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: background-color .3s; }
.hx-dot i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .hx-dot i::after { transform-origin: right center; }
.hx-dot.on { width: 44px; }
.hx-dot.on i::after { animation: hxFill var(--hx-dur, 7000ms) linear forwards; }
.hx.paused .hx-dot.on i::after { animation-play-state: paused; }
@keyframes hxFill { to { transform: scaleX(1); } }
.hx-arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.hx-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(8, 8, 12, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, background-color .2s; }
.hx-arrow:hover { border-color: rgba(255, 255, 255, .3); background: rgba(8, 8, 12, .8); }
.hx-arrow svg { width: 18px; height: 18px; }
/* Desktop: art fills the stage; gradient only on the text side */
@media (min-width: 761px) {
  .hx-shade { background: linear-gradient(to top, var(--bg) 0%, transparent 26%), linear-gradient(to bottom, rgba(8, 8, 12, .6), transparent 22%); }
  [dir="rtl"] .hx-shade { background: linear-gradient(to top, var(--bg) 0%, transparent 26%), linear-gradient(to bottom, rgba(8, 8, 12, .6), transparent 22%), linear-gradient(to left, rgba(8, 8, 12, .96) 0%, rgba(8, 8, 12, .82) 30%, rgba(8, 8, 12, .2) 56%, transparent 70%); }
  [dir="ltr"] .hx-shade { background: linear-gradient(to top, var(--bg) 0%, transparent 26%), linear-gradient(to bottom, rgba(8, 8, 12, .6), transparent 22%), linear-gradient(to right, rgba(8, 8, 12, .96) 0%, rgba(8, 8, 12, .82) 30%, rgba(8, 8, 12, .2) 56%, transparent 70%); }
  .hx-img { object-position: 50% 30% !important; }
  [dir="rtl"] .hx-slide[data-side="right"] .hx-img, [dir="ltr"] .hx-slide[data-side="left"] .hx-img { --fx: -1; }
}
/* Phone: picture on top, text underneath on solid ground, so nothing sits on the art */
@media (max-width: 760px) {
  .hx-stage { height: auto; min-height: 0; aspect-ratio: auto; }
  .hx-stage { height: calc(56vw + var(--header-h) + 250px); max-height: 640px; }
  .hx-media { inset: 0 0 auto 0; height: calc(56vw + var(--header-h)); }
  .hx-shade { background: linear-gradient(to top, var(--bg) 0%, rgba(8, 8, 12, .2) 40%, transparent 60%), linear-gradient(to bottom, rgba(8, 8, 12, .7), transparent 34%); }
  .hx-copy { position: absolute; inset: auto 0 0 0; top: calc(56vw + var(--header-h) - 34px); justify-content: flex-start; gap: 10px; padding-top: 0; }
  .hx-copy > * { max-width: 100%; }
  .hx-title { font-size: clamp(26px, 7.4vw, 34px); }
  .hx-desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hx-price b { font-size: 21px; }
  .hx-cta, .hx-cta .btn { width: 100%; }
  .hx-nav { bottom: 14px; }
  .hx-arrows { display: none; }
  .hx-dots { margin-inline: auto; }
}

/* ─────────────── 9. Quick search + categories ─────────────── */
.quick { padding-top: 28px; }
.quick-search { width: 100%; max-width: 720px; margin-inline: auto; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--dim); font-size: 15px; text-align: start; transition: border-color .2s; }
.quick-search:hover { border-color: rgba(255, 255, 255, .22); }
.quick-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.quick-search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.quick-search kbd { margin-inline-start: auto; font: 500 12px var(--f-body); color: var(--dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 760px) { .quick-search kbd { display: none; } }

.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .25s, transform .3s var(--ease);
}
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 100% 0%, rgba(229, 38, 58, .14), transparent 55%); opacity: 0; transition: opacity .3s; }
[dir="ltr"] .cat::before { background: radial-gradient(120% 140% at 0% 0%, rgba(229, 38, 58, .14), transparent 55%); }
.cat:hover { border-color: var(--line-hot); transform: translateY(-2px); }
.cat:hover::before { opacity: 1; }
.cat-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line); color: var(--text); transition: color .25s; }
.cat:hover .cat-ic { color: var(--red); }
.cat-ic svg { width: 22px; height: 22px; }
.cat-txt { min-width: 0; display: grid; gap: 2px; }
.cat-txt b { font-family: var(--f-display); font-weight: 500; font-size: 15px; line-height: 1.3; }
.cat-txt small { color: var(--dim); font-size: 12px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 620px) {
  .cat { min-height: 70px; gap: 10px; padding: 12px; border-radius: 14px; }
  .cat-ic { width: 40px; height: 40px; border-radius: 11px; }
  .cat-ic svg { width: 20px; height: 20px; }
  .cat-txt b { font-size: 13.5px; }
  .cat-txt small { font-size: 11px; }
}

/* Home: one calm strip of categories (scrolls sideways on phones, fits one row on computers). */
.home-cats { padding-top: 28px; }
.cat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.cat-chip {
  display: grid; justify-items: center; align-content: start; gap: 9px; padding: 14px 6px 12px; border-radius: 16px; text-align: center;
  background: transparent; border: 1px solid transparent; transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}
.cat-chip .cat-ic { width: 52px; height: 52px; border-radius: 16px; }
.cat-chip .cat-ic svg { width: 23px; height: 23px; }
.cat-chip b { font-family: var(--f-display); font-weight: 500; font-size: 13px; line-height: 1.35; color: #d6d6de; }
.cat-chip:hover { background: var(--surface); border-color: var(--line); transform: translateY(-2px); }
.cat-chip:hover .cat-ic { color: var(--red); border-color: var(--line-hot); }
@media (max-width: 900px) {
  .cat-strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78px; gap: 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-snap-type: x proximity;
  }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-chip { padding: 8px 2px; scroll-snap-align: start; }
  .cat-chip .cat-ic { width: 50px; height: 50px; }
  .cat-chip b { font-size: 11.5px; }
  .home-cats { padding-top: 22px; }
}

/* Home: trust points as one quiet line under the numbers. */
.trust-line { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--muted); font-size: 13.5px; }
.trust-line li { display: inline-flex; align-items: center; gap: 8px; }
.trust-line svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
@media (max-width: 620px) { .trust-line { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; font-size: 12.5px; justify-items: start; padding-inline: 6px; } }

/* ─────────────── 10. Stats strip ─────────────── */
.stats-band { padding-top: var(--space-section); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.stat { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 12px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-ic { display: none; }
.stat b { font-family: var(--f-display); font-size: clamp(24px, 3.4vw, 38px); font-weight: 600; line-height: 1.1; color: var(--gold); direction: ltr; font-variant-numeric: tabular-nums; }
.stat > span:last-child { color: var(--muted); font-size: 13.5px; }
@media (max-width: 620px) { .stat { padding: 18px 6px; } .stat > span:last-child { font-size: 11.5px; } }

/* ─────────────── 11. Product grid, rail & card ─────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 20px; }
.grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid, .grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 204px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; margin: -4px -2px -8px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 620px) { .rail { grid-auto-columns: 44%; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, border-color .2s; }
.rail-nav button:hover { color: var(--text); border-color: rgba(255, 255, 255, .26); }
.rail-nav button svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .rail-nav { display: none; } }

.pc { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.pc:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-mwrap { position: relative; }
.pc-media { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.pc:hover .pc-media img { transform: scale(1.04); }
.pc-badges { position: absolute; top: 10px; inset-inline: 10px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; pointer-events: none; }
.pc-fav { position: absolute; z-index: 3; bottom: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(8, 8, 12, .62); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: scale(.9); transition: opacity .25s, transform .3s var(--ease), color .2s, background-color .2s; }
.pc-fav svg { width: 17px; height: 17px; }
.pc:hover .pc-fav, .pc-fav:focus-visible, .pc-fav.on { opacity: 1; transform: none; }
.pc-fav.on { color: var(--red-hi); background: rgba(8, 8, 12, .8); }
.pc-fav.on svg path, .pd-fav.on svg path { fill: currentColor; }
.pc-fav:active { transform: scale(.88); }
@media (hover: none) { .pc-fav { opacity: 1; transform: none; } }
.pd-fav { justify-self: start; }
.pd-fav.on { color: var(--red-hi); border-color: rgba(229, 38, 58, .45); }
.pc-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.pc-plat { font-size: 11px; color: var(--dim); font-weight: 500; letter-spacing: .03em; }
.pc h3 { font-family: var(--f-body); font-size: 14.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pc h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc-foot { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { display: grid; line-height: 1.2; }
.price b { font-family: var(--f-display); font-size: 16.5px; font-weight: 600; color: var(--text); }
.price b small { font-size: 11px; font-weight: 400; color: var(--muted); margin-inline-start: 3px; }
.price s { font-size: 12px; color: var(--dim); }
.price .from { font-size: 11px; color: var(--dim); }
.pc-add { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--red); box-shadow: var(--glow); transition: background-color .2s, transform .25s var(--ease); }
.pc-add svg { width: 18px; height: 18px; }
.pc-add:hover { background: var(--red-hi); transform: scale(1.06); }
.pc-add.done { background: var(--ok); box-shadow: none; }
.pc-add[disabled] { background: var(--surface-3); box-shadow: none; color: var(--dim); }
.pc.soldout .pc-media img { filter: grayscale(.85) brightness(.55); }
@media (max-width: 620px) {
  .pc { border-radius: 14px; }
  .pc-badges { top: 8px; inset-inline: 8px; }
  .pc-body { padding: 10px 11px 12px; }
  .pc h3 { font-size: 13.5px; }
  .price b { font-size: 15px; }
  .pc-add { width: 40px; height: 40px; }
}

/* ─────────────── 12. Platform zones (PlayStation blue / Xbox green, kept restrained) ─────────────── */
.zone { --z: #1f9bff; --z-ink: #fff; --z-soft: rgba(31, 155, 255, .12); }
.zone-xbox { --z: #34e06a; --z-ink: #06140b; --z-soft: rgba(52, 224, 106, .1); }
.zone-box { position: relative; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid color-mix(in srgb, var(--z) 26%, var(--line)); overflow: hidden; isolation: isolate; }
.zone-box::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--z), transparent); opacity: .9; }
.zone-box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--z) 10%, transparent), transparent 70%); }
.zone-beam { display: none; }
.zone-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--z); direction: ltr; }
.zone-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--z); box-shadow: 0 0 10px var(--z); }
.zone .see-all { color: var(--z); }
.zone .pc { background: var(--bg-2); }
.zone .pc:hover { border-color: color-mix(in srgb, var(--z) 60%, transparent); }
.zone .pc-add { background: var(--z); color: var(--z-ink); box-shadow: 0 10px 24px -14px var(--z); }
.zone .pc-add:hover { background: var(--z); filter: brightness(1.12); }
.zone-page .page-head h1 { color: var(--text); }
.zone-page .page-head h1::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin-top: 12px; background: var(--z); box-shadow: 0 0 14px var(--z); }
.zone-page .chip.on, .zone-page .chip[aria-pressed="true"] { background: var(--z); border-color: var(--z); color: var(--z-ink); }
.zone-page-glow { position: absolute; inset: 0 0 auto; height: 360px; z-index: -1; pointer-events: none; background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--z) 12%, transparent), transparent 70%); }
@media (max-width: 620px) {
  .zone-box { padding: 20px 16px 18px; border-radius: 20px; }
  .zone .rail { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* ─────────────── 13. Rentals band, reviews, support ─────────────── */
.band { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; padding: 34px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.band h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.band p { color: var(--muted); }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.steps li span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 13px; color: var(--gold); border: 1px solid rgba(212, 175, 106, .4); }
.rail-band { grid-auto-columns: minmax(150px, 172px); margin: 0; padding: 4px 2px 8px; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; } }
@media (max-width: 620px) { .rail-band { margin-inline: -18px; padding-inline: 18px; grid-auto-columns: 44%; } }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.stars .off { color: var(--surface-3); }
.review p { color: #d6d6dc; font-size: 14.5px; }
.review footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 44px 18px; border-radius: var(--r-xl); border: 1px dashed var(--line-2); color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--dim); }
.empty h3 { color: var(--text); font-size: 17px; }

.support { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 30px 32px; }
.support h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 6px; }
.support p { color: var(--muted); }
.support .eyebrow { margin-bottom: 6px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 10px; }
.contact { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px 8px 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s; }
[dir="rtl"] .contact { padding: 8px 10px 8px 16px; }
.contact:hover { border-color: var(--line-2); }
.contact .ci { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); }
.contact .ci svg { width: 18px; height: 18px; }
.contact b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.contact small { color: var(--muted); font-size: 12.5px; direction: ltr; unicode-bidi: isolate; }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; padding: 22px 18px; } .contact { flex: 1 1 100%; } }

/* ─────────────── 14. Footer ─────────────── */
.footer { margin-top: var(--space-section); border-top: 1px solid var(--line); background: #060609; }
.footer .wrap { padding-block: 44px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: #c8c8d0; font-size: 14px; transition: color .2s; }
.foot-grid a:hover { color: var(--text); }
.foot-about p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 38ch; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-logos img { width: 60px; height: 36px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
/* Designer credit: a glass card with a rotating red→gold light running around its border and a shine sweeping across. */
@property --credit-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.foot-credit { display: flex; justify-content: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.credit-card {
  --credit-a: 0deg;
  position: relative; display: inline-block; padding: 1.5px; border-radius: 18px; isolation: isolate;
  background: conic-gradient(from var(--credit-a), rgba(212, 175, 106, .15) 0deg, #e5263a 70deg, #f3d9a0 110deg, rgba(212, 175, 106, .15) 170deg, rgba(212, 175, 106, .15) 250deg, #d4af6a 300deg, rgba(212, 175, 106, .15) 360deg);
  animation: credit-spin 4.5s linear infinite;
  box-shadow: 0 10px 34px -14px rgba(229, 38, 58, .55), 0 0 0 1px rgba(255, 255, 255, .03);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.credit-card::after { /* soft glow that follows the moving light */
  content: ''; position: absolute; inset: -6px; z-index: -1; border-radius: 24px; background: inherit; filter: blur(14px); opacity: .35; transition: opacity .35s;
  animation: credit-spin 4.5s linear infinite;
}
.credit-in {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  padding: 11px 18px; border-radius: 16.5px; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, #1a1418 0%, #0d0b0f 70%);
}
.credit-in::before { /* shine sweep */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 200, .16) 48%, rgba(255, 255, 255, .28) 50%, rgba(255, 236, 200, .16) 52%, transparent 65%);
  transform: translateX(-120%); animation: credit-shine 3.8s ease-in-out infinite 1.2s;
}
.credit-by { color: var(--dim); font-size: 12px; letter-spacing: .02em; }
.credit-name {
  font-size: 15px; font-weight: 700;
  background: linear-gradient(90deg, #b8924e, #f3d9a0 25%, #fff6e0 40%, #d4af6a 55%, #f3d9a0 75%, #b8924e);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: credit-text 5s linear infinite;
}
.credit-user {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #f6f1e7; letter-spacing: .03em;
  background: linear-gradient(135deg, rgba(229, 38, 58, .22), rgba(212, 175, 106, .16)); border: 1px solid rgba(212, 175, 106, .32);
  transition: background-color .3s, border-color .3s;
}
.credit-user svg { width: 15px; height: 15px; color: #f3d9a0; }
.credit-card:hover, .credit-card:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(229, 38, 58, .75), 0 0 0 1px rgba(255, 255, 255, .05); }
.credit-card:hover::after, .credit-card:focus-visible::after { opacity: .6; }
.credit-card:hover .credit-user { border-color: rgba(243, 217, 160, .7); }
.credit-card:focus-visible { outline: 2px solid #f3d9a0; outline-offset: 4px; }
@keyframes credit-spin { to { --credit-a: 360deg; } }
@keyframes credit-shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
@keyframes credit-text { to { background-position: -220% 0; } }
@media (max-width: 480px) { .credit-in { padding: 10px 14px; gap: 6px 10px; } .credit-name { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .credit-card, .credit-card::after, .credit-in::before, .credit-name { animation: none; } .credit-in::before { display: none; } }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; } .foot-about { grid-column: 1 / -1; } }
/* Phones: the category list is already in the menu and tab bar, so the footer keeps only help and contact. */
@media (max-width: 620px) { .foot-grid > div:nth-child(2) { display: none; } .foot-grid h4 { margin-bottom: 10px; } .foot-grid ul { gap: 7px; } }

/* ─────────────── 15. Store page ─────────────── */
.page-head { padding-block: 34px 8px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; }
.page-head p { color: var(--muted); margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.toolbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) - 8px); z-index: 30; display: grid; gap: 10px; padding: 14px 0; margin-bottom: 6px; }
.toolbar::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .25s; }
.toolbar.stuck::before { opacity: 1; }
.toolbar-row { display: flex; gap: 10px; align-items: center; }
.toolbar .search-inline { flex: 1; position: relative; }
.toolbar .search-inline svg { position: absolute; top: 50%; inset-inline-start: 14px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); }
.toolbar .search-inline .input { padding-inline-start: 42px; min-height: 46px; }
.toolbar .select { width: auto; min-height: 46px; }
.result-count { color: var(--dim); font-size: 13px; margin: 8px 0 16px; }
.load-more { display: flex; justify-content: center; margin-top: 32px; }

/* ─────────────── 16. Product detail ─────────────── */
.pd { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.pd-media { position: relative; width: 100%; max-width: 400px; justify-self: center; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pd-media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.pd-media .pc-badges { top: 12px; inset-inline: 12px; }
.pd-info { display: grid; gap: 20px; min-width: 0; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.pd-price b { font-family: var(--f-display); font-size: 32px; font-weight: 600; color: var(--gold); line-height: 1; }
.pd-price b small { font-size: 14px; color: var(--gold); opacity: .8; font-weight: 400; margin-inline-start: 4px; }
.pd-price s { color: var(--dim); font-size: 16px; }
.opt-group { display: grid; gap: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 50px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; text-align: start; transition: border-color .2s, background-color .2s; }
.opt b { font-weight: 500; font-size: 14px; }
.opt small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt:hover { border-color: rgba(255, 255, 255, .26); }
.opt[aria-pressed="true"] { border-color: var(--red); background: rgba(229, 38, 58, .08); }
.opt[disabled] { opacity: .4; text-decoration: line-through; pointer-events: none; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 150px; min-height: 52px; }
.qty { display: inline-flex; align-items: center; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty button svg { width: 16px; height: 16px; }
.qty output { min-width: 30px; text-align: center; font-family: var(--f-display); font-weight: 500; font-size: 16px; }
.qty.sm { height: 36px; border-radius: 10px; }
.qty.sm button { width: 32px; }
.qty.sm output { min-width: 22px; font-size: 14px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.spec svg { flex: none; width: 18px; height: 18px; color: var(--muted); margin-top: 3px; }
.spec small { display: block; color: var(--dim); font-size: 12px; }
.spec b { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.pd-desc { color: #cfcfd6; font-size: 15px; white-space: pre-line; }
.pd-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(212, 175, 106, .06); border: 1px solid rgba(212, 175, 106, .2); color: #eadbb8; font-size: 14px; }
.pd-note svg { flex: none; width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
@media (max-width: 900px) { .pd { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 24px; } .pd-media { position: sticky; top: 0; } }
@media (max-width: 620px) { .pd { grid-template-columns: 1fr; gap: 20px; } .pd-media { position: relative; max-width: min(190px, 50vw); } }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } .pd-price b { font-size: 28px; } }

/* ─────────────── 17. Layers: modal / bottom sheet / drawer ─────────────── */
.layer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.layer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.layer.open .layer-backdrop { opacity: 1; }
.layer-panel { position: relative; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px #000; display: flex; flex-direction: column; max-height: 100%; outline: none; }
.layer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex: none; }
.layer-head h2 { font-size: 17px; }
.layer-body { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px; flex: 1; }
.layer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); flex: none; background: var(--bg-2); }
.layer.modal { place-items: center; padding: 24px; }
.layer.modal .layer-panel { width: min(1000px, 100%); max-height: calc(100vh - 48px); border-radius: var(--r-xl); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.layer.modal.open .layer-panel { opacity: 1; transform: none; }
.layer.modal.narrow .layer-panel { width: min(520px, 100%); }
.layer.drawer { justify-items: end; }
.layer.drawer .layer-panel { width: min(420px, 100vw); height: 100%; border-radius: 0; border-block: 0; transform: translateX(105%); transition: transform .5s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
[dir="rtl"] .layer.drawer .layer-panel { transform: translateX(-105%); }
.layer.drawer.open .layer-panel { transform: none; }
.grabber { display: none; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 10px auto 0; flex: none; }
.sheet-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; background: rgba(8, 8, 12, .7); }
@media (max-width: 760px) {
  .layer.modal, .layer.drawer { place-items: end stretch; padding: 0; justify-items: stretch; }
  .layer.modal .layer-panel, .layer.drawer .layer-panel, .layer.modal.narrow .layer-panel {
    width: 100%; max-height: calc(100% - env(safe-area-inset-top, 0px) - 20px); height: auto; border-radius: 22px 22px 0 0; border-bottom: 0;
    transform: translateY(100%); opacity: 1; transition: transform .45s var(--ease); padding-top: 0;
  }
  [dir="rtl"] .layer.drawer .layer-panel { transform: translateY(100%); }
  .layer.modal.open .layer-panel, .layer.drawer.open .layer-panel { transform: translateY(var(--drag, 0px)); }
  .layer-panel.dragging { transition: none !important; }
  .grabber { display: block; }
  .layer-body { padding: 18px; }
}

/* ─────────────── 18. Smart search ─────────────── */
.search-layer.layer.modal { align-items: start; padding-top: 10vh; }
.search-layer .layer-panel { width: min(680px, 100%) !important; max-height: 76vh; }
.search-layer .layer-body { padding: 0; display: flex; flex-direction: column; }
.search-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
[dir="rtl"] .search-top { padding: 14px 18px 14px 14px; }
.search-top > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-top input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; padding-block: 8px; }
.search-top input::-webkit-search-cancel-button { display: none; }
.search-scroll { padding: 16px 18px 20px; overflow-y: auto; }
.search-label { font-size: 12px; color: var(--dim); font-weight: 600; margin: 4px 0 10px; }
.search-label + .chips, .search-cats { margin-bottom: 18px; }
.search-chips { flex-wrap: wrap; }
.search-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.search-cats a { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; transition: border-color .2s; }
.search-cats a:hover { border-color: var(--line-hot); }
.search-cats svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search-results { display: grid; gap: 4px; }
.sr-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; transition: background-color .15s; }
.sr-item:hover, .sr-item:focus-visible, .sr-item.kb { background: var(--surface-3); outline: none; }
.sr-item img { width: 44px; height: 66px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.sr-item b { display: block; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
[dir="rtl"] .sr-item b[dir="auto"] { text-align: right; }
.sr-item small { display: block; color: var(--dim); font-size: 12px; }
.sr-item .price b { font-size: 14px; color: var(--gold); }
.sr-item mark { background: none; color: var(--red-hi); }
.search-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px 10px; color: var(--muted); }
.search-empty svg { width: 34px; height: 34px; color: var(--dim); }
.search-empty b { color: var(--text); font-size: 15px; }
@media (max-width: 760px) {
  .search-layer.layer.modal { padding: 0; place-items: stretch; }
  .search-layer .layer-panel { max-height: 100% !important; height: 100% !important; border-radius: 0 !important; border: 0; transform: translateY(24px) !important; opacity: 0 !important; transition: opacity .25s, transform .35s var(--ease) !important; padding-top: env(safe-area-inset-top, 0px); }
  .search-layer.open .layer-panel { transform: none !important; opacity: 1 !important; }
  .search-layer .grabber { display: none; }
  .search-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─────────────── 19. Cart & checkout ─────────────── */
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); animation: itemIn .35s var(--ease) both; }
.cart-item.leaving { animation: itemOut .3s var(--ease) both; }
@keyframes itemIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes itemOut { to { opacity: 0; transform: translateX(20px); } }
.cart-item img { width: 54px; height: 72px; object-fit: cover; border-radius: 9px; }
.cart-item h4 { font-family: var(--f-body); font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item small { color: var(--muted); font-size: 12.5px; }
.cart-item .qty { justify-self: start; }
.cart-item .ci-side { display: grid; justify-items: end; gap: 6px; }
.cart-item .ci-price { font-family: var(--f-display); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.cart-item.bad { border-color: rgba(240, 82, 100, .45); }
.summary { display: grid; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14.5px; }
.summary-row b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-row.total { color: var(--text); font-size: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.summary-row.total b { font-family: var(--f-display); font-size: 22px; font-weight: 600; color: var(--gold); }
.summary-row.disc b { color: var(--ok); }
.coupon { display: flex; gap: 8px; }
.coupon .input { min-height: 44px; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(52, 194, 122, .06); border: 1px solid rgba(52, 194, 122, .28); color: var(--ok); font-size: 14px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.checkout .sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px); }
.co-section { display: grid; gap: 16px; }
.co-section + .co-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.co-section h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.co-section h2 span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--gold); border: 1px solid rgba(212, 175, 106, .4); }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pay-opt { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 14px 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt img { width: 80px; height: 48px; border-radius: 9px; object-fit: cover; }
.pay-opt span { font-size: 13px; }
.pay-opt:has(input:checked) { border-color: var(--red); }
.mini-lines { display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.mini-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.mini-line img { width: 40px; height: 56px; object-fit: cover; border-radius: 7px; }
.mini-line b { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-line small { color: var(--muted); }
.secure-note { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 12.5px; justify-content: center; }
.secure-note svg { width: 15px; height: 15px; color: var(--ok); }
.wa-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(31, 175, 90, .05); border: 1px solid rgba(31, 175, 90, .25); }
.wa-card b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.wa-card p { color: var(--muted); font-size: 14px; }
.wa-card .steps { margin-top: 12px; }
.wa-card .steps li span { color: #4fd68a; border-color: rgba(31, 175, 90, .4); }
.wa-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--wa); color: #fff; }
.wa-ic svg { width: 21px; height: 21px; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .checkout .sticky { position: static; } }

/* ─────────────── 20. Order page ─────────────── */
.order-hero { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 20px 28px; }
.order-hero .ok-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(52, 194, 122, .5); color: var(--ok); animation: pop .6s var(--ease) both; }
.order-hero .ok-ring svg { width: 32px; height: 32px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .3s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.order-hero h1 { font-size: clamp(24px, 3.2vw, 32px); }
.order-no { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--f-display); font-size: 19px; font-weight: 500; letter-spacing: .06em; direction: ltr; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .order-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 28px; bottom: 0; inset-inline-start: 13px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--line-2); color: var(--dim); z-index: 1; }
.timeline .dot svg { width: 13px; height: 13px; }
.timeline li.done .dot { border-color: var(--ok); color: var(--ok); }
.timeline li.done::before { background: rgba(52, 194, 122, .4); }
.timeline li.current .dot { background: var(--red); border-color: var(--red); color: #fff; }
.timeline li.cancel .dot { border-color: var(--err); color: var(--err); }
.timeline b { display: block; font-size: 14.5px; font-weight: 500; }
.timeline small { color: var(--muted); font-size: 12.5px; }
.timeline .tl-note { margin-top: 4px; color: var(--warn); font-size: 13px; }
.pay-box { display: grid; gap: 14px; }
.pay-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px dashed var(--line-2); }
.pay-account b { font-family: var(--f-display); font-size: 18px; font-weight: 500; letter-spacing: .04em; direction: ltr; overflow-wrap: anywhere; }
.pay-account small { display: block; color: var(--muted); font-size: 12px; }
.upload { position: relative; display: grid; place-items: center; gap: 6px; padding: 18px; min-height: 120px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg-2); color: var(--muted); text-align: center; cursor: pointer; font-size: 14px; }
.upload:hover, .upload.drag { border-color: var(--red); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload svg { width: 24px; height: 24px; }
.upload img { max-height: 180px; border-radius: 12px; }
.delivered { display: grid; gap: 8px; margin-top: 10px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(52, 194, 122, .06); border: 1px solid rgba(52, 194, 122, .28); }
.code-box code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: .04em; direction: ltr; overflow-wrap: anywhere; white-space: pre-wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending, .st-awaiting_payment { color: var(--warn); background: rgba(231, 169, 60, .1); }
.st-payment_verification { color: #7cbcff; background: rgba(124, 188, 255, .1); }
.st-processing { color: var(--ember); background: rgba(240, 122, 58, .1); }
.st-completed { color: var(--ok); background: rgba(52, 194, 122, .1); }
.st-cancelled { color: var(--err); background: rgba(240, 82, 100, .1); }

/* ─────────────── 21. Auth & account (track page, admin login) ─────────────── */
.auth { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding-block: 34px; }
.auth-card { width: min(440px, 100%); padding: 30px; display: grid; gap: 18px; }
.auth-card .brand-mark { display: grid; justify-items: center; gap: 10px; text-align: center; }
.auth-card .brand-mark img { width: 64px; height: 64px; border-radius: 50%; }
.auth-card .brand-mark > svg { width: 30px; height: 30px; color: var(--muted); }
.auth-card h1 { font-size: 24px; }
.auth-card p { color: var(--muted); font-size: 14px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--red); font-weight: 500; }
@media (max-width: 480px) { .auth-card { padding: 22px 18px; } }
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-nav { display: grid; gap: 4px; padding: 10px; }
.acc-nav button, .acc-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--muted); text-align: start; }
.acc-nav button[aria-current="true"] { color: #fff; background: var(--surface-3); }
.acc-nav button svg, .acc-nav a svg { width: 18px; height: 18px; flex: none; }
.acc-nav button:hover, .acc-nav a:hover { color: var(--text); }
.acc-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px); }
.acc-user { padding: 10px 14px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acc-user b { display: block; font-size: 15px; font-weight: 500; }
.acc-user small { color: var(--muted); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; gap: 16px; }
  .acc-nav { position: static; display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 16px; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-user { display: none; }
  .acc-nav button, .acc-nav a { flex: none; white-space: nowrap; padding: 10px 14px; font-size: 14px; }
}
.order-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.order-row:hover { border-color: var(--line-2); }
.order-row img { width: 50px; height: 66px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.order-row b { font-family: var(--f-display); font-weight: 500; letter-spacing: .04em; direction: ltr; unicode-bidi: isolate; }
.order-row small { display: block; color: var(--muted); font-size: 12.5px; }
.order-row .or-side { display: grid; justify-items: end; gap: 6px; }

/* ─────────────── 22. Toasts, notices, misc ─────────────── */
.toasts { position: fixed; z-index: 250; inset-inline: 0; bottom: calc(20px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(440px, 100%); padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; font-size: 14px; animation: toastIn .4s var(--ease) both; }
[dir="rtl"] .toast { padding: 12px 12px 12px 16px; }
.toast.out { animation: toastOut .3s var(--ease-io) both; }
.toast .ti { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 194, 122, .14); color: var(--ok); }
.toast.err .ti { background: rgba(240, 82, 100, .14); color: var(--err); }
.toast.info .ti { background: rgba(255, 255, 255, .08); color: var(--text); }
.toast .ti svg { width: 15px; height: 15px; }
.toast a, .toast button.ta { color: var(--red-hi); font-weight: 600; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
body.locked .toasts { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 16px); }
.flyer { position: fixed; z-index: 260; width: 44px; height: 60px; border-radius: 8px; overflow: hidden; pointer-events: none; box-shadow: 0 0 0 2px var(--red), 0 10px 30px rgba(229, 38, 58, .5); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(231, 169, 60, .06); border: 1px solid rgba(231, 169, 60, .28); color: #f0d6a6; }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.notice.info { background: rgba(124, 188, 255, .05); border-color: rgba(124, 188, 255, .25); color: #cfe3ff; }
.notice.ok { background: rgba(52, 194, 122, .06); border-color: rgba(52, 194, 122, .28); color: #bfeed6; }
.notice.err { background: rgba(240, 82, 100, .06); border-color: rgba(240, 82, 100, .28); color: #ffc9cf; }
.announce { text-align: center; font-size: 13px; padding: 9px 16px; background: var(--crimson); color: #fff; position: relative; z-index: 61; }
.center-state { display: grid; place-items: center; gap: 14px; text-align: center; padding: 80px 16px; }
.center-state > svg { width: 52px; height: 52px; color: var(--dim); }
.center-state h1 { font-size: 60px; color: var(--red); }

/* Floating WhatsApp: quiet, no pulsing */
.wa-fab {
  position: fixed; z-index: 66; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(20px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 500; font-size: 14px;
  box-shadow: 0 12px 28px -14px rgba(31, 175, 90, .8); transition: transform .3s var(--ease), background-color .2s; animation: fabIn .6s 1s var(--ease) both;
}
[dir="rtl"] .wa-fab { right: auto; left: max(18px, env(safe-area-inset-left, 0px)); padding: 0 12px 0 16px; }
.wa-fab svg { width: 24px; height: 24px; flex: none; }
.wa-fab:hover { background: #25c266; transform: translateY(-2px); }
.wa-fab-ring { display: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(12px); } }
body.locked .wa-fab { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .wa-fab { width: 48px; padding: 0 !important; justify-content: center; }
  .wa-fab-label { display: none; }
  .toasts { bottom: calc(80px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ─────────────── 23. Additions: responsive helpers, product detail, recommended, trust, info pages ─────────────── */
.show-m { display: none; }
@media (max-width: 760px) { .show-m { display: grid; } .wa-fab { display: none; } }
.search-layer .sheet-close { display: none; }

.pd-title h1, .pd-title h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.2; }
.pd-sub { color: var(--dim); font-size: 14px; margin-top: 6px; }
.pd-lead { color: #cfcfd6; font-size: 15px; }
.pd-wa { min-height: 48px; color: #4fd68a; border-color: rgba(31, 175, 90, .35); }
.pd-wa:hover { border-color: #4fd68a; background: rgba(31, 175, 90, .06); }
.pd-delivery { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; }
.pd-delivery svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--gold); }
.pd-delivery b { color: var(--text); font-weight: 500; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; cursor: pointer; font-family: var(--f-display); font-weight: 500; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc-ic { width: 16px; height: 16px; color: var(--muted); transform: rotate(90deg); transition: transform .3s var(--ease); flex: none; }
.acc details[open] .acc-ic { transform: rotate(-90deg); }
.acc details > :not(summary) { padding-bottom: 18px; animation: accIn .35s var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } }
.kv { margin: 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: end; font-weight: 500; }

.cart-empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 10px 20px; }
.cart-empty-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(229, 38, 58, .16), var(--surface-2) 70%); border: 1px solid var(--line-2); color: var(--muted); margin-bottom: 6px; }
.cart-empty-ic svg { width: 34px; height: 34px; }
.cart-empty h3 { font-size: 19px; }
.cart-empty p { color: var(--muted); font-size: 14px; max-width: 30ch; }
.cart-empty .btn { margin-top: 6px; min-width: 200px; }
.cart-empty-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

.rec-tabs { margin-bottom: 20px; }
.rec-tabs .rec-ps[aria-selected="true"] { box-shadow: inset 0 0 0 1px rgba(31, 155, 255, .6); color: #8ccaff; }
.rec-tabs .rec-xbox[aria-selected="true"] { box-shadow: inset 0 0 0 1px rgba(52, 224, 106, .55); color: #8ff0ad; }
.rec-panel { animation: viewIn .4s var(--ease) both; }
.rec-panel.zone .pc { background: var(--surface); }

.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
a.trust-item:hover { border-color: var(--line-2); }
.trust-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(212, 175, 106, .3); }
.trust-ic svg { width: 19px; height: 19px; }
.trust-item b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.trust-item p { color: var(--muted); font-size: 13.5px; }
.trust-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
@media (max-width: 1000px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; gap: 10px; }
  .trust-item { padding: 16px; }
  .trust-cta .btn { flex: 1 1 100%; }
}

.info-page { max-width: 860px; }
.info-wrap { margin-top: 12px; }
.info-lead { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.prose { display: grid; gap: 14px; color: #d6d6dc; font-size: 16px; line-height: 1.8; }
.faq summary { font-size: 15.5px; min-height: 60px; }
.info-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ─────────────── 24. App logos for contact (open each app directly) ─────────────── */
.brand-ic { display: block; width: 100%; height: 100%; }
.icon-btn.wa-link { padding: 9px; }
.icon-btn.wa-link .brand-ic { width: 24px; height: 24px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 18px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
[dir="rtl"] .social-btn { padding: 8px 8px 8px 18px; }
.social-btn .brand-ic { width: 42px; height: 42px; flex: none; }
.social-btn b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 15px; line-height: 1.3; }
.social-btn small { display: block; color: var(--muted); font-size: 12.5px; unicode-bidi: isolate; text-align: start; }
.social-btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.social-whatsapp:hover { box-shadow: 0 10px 26px -14px rgba(37, 211, 102, .7); border-color: rgba(37, 211, 102, .45); }
.social-instagram:hover { box-shadow: 0 10px 26px -14px rgba(214, 36, 159, .7); border-color: rgba(214, 36, 159, .45); }
.social-phone:hover { box-shadow: 0 10px 26px -14px rgba(10, 132, 255, .7); border-color: rgba(10, 132, 255, .45); }
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; }
.social-ic { width: 44px; height: 44px; border-radius: 50%; display: block; transition: transform .25s var(--ease), filter .2s; }
.social-ic:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.08); }
.foot-phone { margin-top: 12px; color: var(--muted); font-size: 14px; }
.menu-social { padding: 4px 14px 10px; }
.menu-social .social-ic { width: 48px; height: 48px; }
.trust-cta .social-row { justify-content: center; }
.info-wrap .social-row, .info-wrap .trust-cta .social-row { justify-content: flex-start; }
.support .social-row { justify-content: flex-end; }
@media (max-width: 860px) { .support .social-row { justify-content: flex-start; } }
@media (max-width: 560px) { .social-row { display: grid; grid-template-columns: 1fr; } .social-btn { width: 100%; } }
/* Floating button: dark pill with the WhatsApp logo */
.wa-fab { background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); padding: 0 16px 0 6px; height: 52px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .9); }
[dir="rtl"] .wa-fab { padding: 0 6px 0 16px; }
.wa-fab .brand-ic { width: 40px; height: 40px; }
.wa-fab:hover { background: var(--surface-3); border-color: rgba(37, 211, 102, .5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal.pre { transform: none; }
}
