/* =====================================================================
   Global Markets Gateway — Storefront styles
   Brand: deep navy + electric blue + silver orbit (from the G logo)
   Mobile-first. Fonts: Sora (display) + Manrope (text)
   ===================================================================== */

:root {
  --ink: #0b1530;
  --ink-2: #33405c;
  --muted: #6b7489;
  --faint: #9aa3b5;
  --line: #e5e8ef;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --surface: #f3f5f9;          /* product tiles — photos are multiplied onto it */
  --surface-2: #e9eef6;
  --navy: #081634;
  --navy-2: #0f2350;
  --blue: #0a5cff;
  --blue-2: #2f8bff;
  --blue-soft: #e8f0ff;
  --silver: linear-gradient(135deg, #f5f7fa 0%, #c9d0db 45%, #f2f4f8 60%, #aab3c2 100%);
  --ok: #138a52;
  --warn: #b35c00;
  --danger: #d0342c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(11, 21, 48, .05), 0 4px 16px rgba(11, 21, 48, .06);
  --shadow-2: 0 10px 40px rgba(11, 21, 48, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: 'Sora', system-ui, sans-serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
  --gutter: 16px;
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 var(--text); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 16px; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.eyebrow { font: 600 11.5px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(24px, 4.2vw, 38px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .25s, color .2s, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy-2); box-shadow: 0 8px 24px rgba(10, 92, 255, .25); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #004ee6; box-shadow: 0 8px 24px rgba(10, 92, 255, .32); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; transition: background-color .2s; position: relative; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Announcement + Header ---------- */
.announce { background: var(--navy); color: #dfe7f7; font-size: 12.5px; font-weight: 500; text-align: center; padding: 8px var(--gutter); letter-spacing: .01em; }
.announce b { color: #fff; font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { height: var(--header-h); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.header-left, .header-right { display: flex; align-items: center; gap: 2px; }
.header-right { justify-content: flex-end; }
.brand img { height: 34px; width: auto; }
@media (min-width: 768px) { .brand img { height: 42px; } }
.main-nav { display: none; }
.menu-toggle { display: inline-grid; }
@media (min-width: 1024px) {
  .header-row { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-left .menu-toggle { display: none; }
  .main-nav { display: flex; justify-content: center; gap: 4px; }
  .main-nav a { position: relative; padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); border-radius: 999px; transition: color .2s, background-color .2s; }
  .main-nav a:hover, .main-nav a.is-active { color: var(--ink); background: var(--line-2); }
}
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--ease-out); }
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Mobile menu drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 22, 52, .45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 80; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 90; display: flex; flex-direction: column; visibility: hidden; transition: transform .45s var(--ease-out), visibility 0s linear .45s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer.left { left: 0; transform: translateX(-102%); }
.drawer.right { right: 0; transform: translateX(102%); }
.drawer.is-open { transform: none; box-shadow: var(--shadow-2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; font: 600 18px/1.2 var(--display); border-bottom: 1px solid var(--line-2); }
.mobile-nav a small { font: 500 13px var(--text); color: var(--muted); }
.mobile-nav .sub { padding: 8px 0 14px; }
.mobile-nav .sub a { font: 600 15px var(--text); padding: 12px 22px; border: 0; color: var(--ink-2); }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* Search overlay */
.search-panel { position: fixed; inset: 0 0 auto 0; z-index: 95; background: #fff; transform: translateY(-105%); transition: transform .45s var(--ease-out); box-shadow: var(--shadow-2); max-height: 88vh; display: flex; flex-direction: column; }
.search-panel.is-open { transform: none; }
.search-bar { display: flex; align-items: center; gap: 10px; height: 72px; border-bottom: 1px solid var(--line); }
.search-bar input { flex: 1; border: 0; outline: 0; font: 500 18px var(--text); background: transparent; min-width: 0; }
.search-results { overflow-y: auto; padding: 12px 0 24px; }
.search-hit { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.search-hit .thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 10px; background: var(--surface); padding: 4px; }
.search-hit .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.search-hit b { font-weight: 600; font-size: 14.5px; display: block; line-height: 1.35; }
.search-hit span { color: var(--muted); font-size: 13px; }
.search-empty { color: var(--muted); padding: 20px 0; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 72% 42%, #ffffff 0%, var(--hero-tint, #e7edf7) 62%, #dfe6f2 100%); transition: background .9s var(--ease); isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(11,21,48,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,21,48,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 70% 45%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 0%, transparent 75%); z-index: -1; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-rows: auto auto; align-content: start; padding-top: 4px; padding-bottom: 74px; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 1fr; align-items: center; min-height: min(calc(100vh - var(--header-h) - 34px), 760px); padding-bottom: 40px; }
}
.hero-stage { position: relative; aspect-ratio: 1 / .8; width: 100%; max-width: 560px; margin: 0 auto; order: 1; }
@media (min-width: 900px) { .hero-stage { order: 2; aspect-ratio: 1 / .9; max-width: 640px; } }
.hero-copy { position: relative; order: 2; display: grid; }
@media (min-width: 900px) { .hero-copy { order: 1; } }

.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .ring-back { stroke: url(#orbitGrad); stroke-width: 2.2; fill: none; opacity: .55; }
.orbit .ring-front { stroke: url(#orbitGrad); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.hero.is-ready .orbit .ring-front { animation: draw 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.orbit .spin { transform-origin: 50% 50%; animation: orbit-tilt 18s ease-in-out infinite alternate; }
@keyframes orbit-tilt { from { transform: rotate(-16deg); } to { transform: rotate(-9deg); } }
.orbit .sat { fill: var(--blue); filter: drop-shadow(0 0 6px rgba(47,139,255,.9)); }

.hero-plate { position: absolute; left: 50%; top: 52%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0%, rgba(255,255,255,.75) 45%, rgba(255,255,255,0) 70%); }
.hero-shadow { position: absolute; left: 50%; bottom: 9%; width: 46%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(8,22,52,.22), transparent); filter: blur(6px); animation: shadow-float 6s ease-in-out infinite; }
.hero-product { position: absolute; inset: 9% 13% 13%; display: grid; place-items: center; }
.hero-product img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.04) saturate(1.05); animation: float 6s ease-in-out infinite; }
.hero-slide-img { position: absolute; inset: 0; display: grid; place-items: center; mix-blend-mode: multiply; opacity: 0; transform: scale(.9) translateY(14px); filter: blur(10px); transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out), filter .8s var(--ease-out); }
.hero-slide-img.is-active { opacity: 1; transform: none; filter: none; }
.hero-slide-img.is-leaving { opacity: 0; transform: scale(1.06) translateY(-10px); filter: blur(8px); transition-duration: .5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadow-float { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(.86); opacity: .7; } }

.hero-slide-copy { grid-area: 1 / 1; position: relative; pointer-events: none; visibility: hidden; transition: visibility 0s .9s; }
.hero-slide-copy.is-active, .hero-slide-copy.is-leaving { visibility: visible; transition-delay: 0s; }
.hero-slide-copy.is-active { pointer-events: auto; }
.hero-slide-copy .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-slide-copy .line > span { display: block; transform: translateY(105%); transition: transform .9s var(--ease-out); }
.hero-slide-copy .fade { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.hero-slide-copy.is-active .line > span, .hero-slide-copy.is-active .fade { transform: none; opacity: 1; }
.hero-slide-copy.is-active .line:nth-child(2) > span { transition-delay: .08s; }
.hero-slide-copy.is-active .line:nth-child(3) > span { transition-delay: .16s; }
.hero-slide-copy.is-active .d1 { transition-delay: .25s; }
.hero-slide-copy.is-active .d2 { transition-delay: .35s; }
.hero-slide-copy.is-active .d3 { transition-delay: .45s; }
.hero-slide-copy.is-leaving .line > span { transform: translateY(-105%); transition-duration: .45s; transition-delay: 0s !important; }
.hero-slide-copy.is-leaving .fade { opacity: 0; transform: translateY(-10px); transition-duration: .35s; transition-delay: 0s !important; }

.hero-kicker { display: inline-flex; align-items: center; gap: 10px; }
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(10,92,255,.15); }
.hero-title { font-size: clamp(32px, 8.4vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; margin: 14px 0 12px; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, var(--blue) 10%, #6aa8ff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-name { color: var(--ink-2); font-size: 15px; font-weight: 500; max-width: 42ch; }
.hero-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 22px; }
.hero-price { display: flex; align-items: baseline; gap: 10px; }
.hero-price b { font: 600 22px var(--display); letter-spacing: -.02em; }
.hero-price s { color: var(--faint); font-size: 14px; }
@media (max-width: 899px) {
  .hero-buy { gap: 10px; }
  .hero-buy .hero-price { order: -1; width: 100%; margin-bottom: 4px; }
  .hero-buy .btn { height: 46px; padding: 0 20px; font-size: 14.5px; }
  .hero-title { margin: 10px 0 8px; }
  .hero-name { font-size: 14px; }
}
@media (min-width: 900px) { .hero-name { font-size: 17px; } .hero-buy { margin-top: 32px; } }

.hero-controls { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 18px; z-index: 3; }
.hero-count { font: 600 13px var(--display); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 52px; }
.hero-count b { color: var(--ink); }
.hero-bars { display: flex; gap: 6px; flex: 1; max-width: 260px; }
.hero-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(11,21,48,.12); overflow: hidden; position: relative; }
.hero-bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hero-bar.is-done i { transform: scaleX(1); }
.hero-bar.is-active i { animation: fill var(--hero-dur, 6s) linear forwards; }
.hero.is-paused .hero-bar.is-active i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-arrows { margin-left: auto; display: flex; gap: 8px; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, transform .2s; }
.hero-arrows button:hover { background: #fff; }
.hero-arrows button:active { transform: scale(.94); }
@media (max-width: 899px) { .hero-arrows { display: none; } }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 18px 8px; }
.trust-item svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--blue); }
.trust-item b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.trust-item span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 899px) { .trust-item:nth-child(odd) { border-right: 1px solid var(--line); } .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .trust-item { padding: 16px 12px; } }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.cat-grid::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .cat-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.cat-tile { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); overflow: hidden; aspect-ratio: 4 / 5; padding: 20px; isolation: isolate; transition: transform .5s var(--ease-out); }
.cat-tile::before { content: ''; position: absolute; inset: auto -20% -35% -20%; height: 70%; background: radial-gradient(closest-side, rgba(255,255,255,.95), transparent); z-index: -1; }
.cat-tile img { position: absolute; inset: 22% 10% 8%; width: 80%; height: 70%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease-out); z-index: -1; }
.cat-tile:hover img { transform: scale(1.07) translateY(-6px); }
.cat-tile h3 { font-size: 21px; }
.cat-tile .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.cat-tile .go { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-1); transition: background-color .3s, color .3s; }
.cat-tile:hover .go { background: var(--ink); color: #fff; }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media-wrap { position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); overflow: hidden; isolation: isolate; }
.card-media img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .5s var(--ease), transform .8s var(--ease-out); }
.card-media .alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media .main { transform: scale(1.05); }
  .card:hover .card-media.has-alt .main { opacity: 0; }
  .card:hover .card-media.has-alt .alt { opacity: 1; transform: scale(1.05); }
}
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--ink); color: #fff; }
.badge.soft { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.quick-add { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-1); transition: transform .3s var(--ease-out), background-color .2s, color .2s; }
.quick-add svg { width: 20px; height: 20px; }
.quick-add:hover { background: var(--ink); color: #fff; }
.quick-add:active { transform: scale(.9); }
.quick-add.added { background: var(--ok); color: #fff; }
@media (hover: hover) and (min-width: 768px) {
  .quick-add { opacity: 0; transform: translateY(8px); }
  .card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: none; }
}
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.card-cat { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.card-title { font-weight: 600; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .card-title { font-size: 15.5px; } }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.price b { font: 600 15.5px var(--display); letter-spacing: -.01em; }
.price s { font-size: 13px; color: var(--faint); }
.card.is-soldout .card-media img { opacity: .55; filter: grayscale(.4); }
.card.is-soldout .quick-add { display: none; }

/* Horizontal product rail */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail { grid-auto-columns: calc((100% - 40px) / 3.2); gap: 20px; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 60px) / 4); margin: 0; padding: 0 0 8px; scroll-padding: 0; } }
.rail-nav { display: none; gap: 8px; }
@media (min-width: 768px) { .rail-nav { display: flex; } }
.rail-nav button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, opacity .2s; }
.rail-nav button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.rail-nav button:disabled { opacity: .35; }

/* ---------- Spotlight band ---------- */
.spotlight { background: var(--navy); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.spotlight::before { content: ''; position: absolute; width: 900px; height: 900px; right: -260px; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(47,139,255,.35), transparent 70%); z-index: -1; }
.spot-grid { display: grid; gap: 34px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 900px) { .spot-grid { grid-template-columns: 1fr 1fr; padding-top: 96px; padding-bottom: 96px; gap: 56px; } }
.spotlight .eyebrow { color: #7fb2ff; }
.spotlight h2 { font-size: clamp(28px, 5vw, 48px); margin: 14px 0 16px; letter-spacing: -.03em; }
.spotlight p { color: #b7c4de; max-width: 46ch; }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 32px; }
.spec-row div { border-top: 1px solid rgba(255,255,255,.16); padding-top: 12px; }
.spec-row b { font: 600 clamp(20px, 3.2vw, 28px) var(--display); display: block; letter-spacing: -.02em; }
.spec-row span { font-size: 12.5px; color: #9fb0d0; }
.spot-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.spot-disc { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffffff 0%, #eef2f8 55%, #cfd8e6 100%); box-shadow: 0 40px 80px rgba(0,0,0,.35), inset 0 -10px 30px rgba(11,21,48,.12); overflow: hidden; display: grid; place-items: center; }
.spot-disc img { width: 70%; height: 70%; object-fit: contain; mix-blend-mode: multiply; }
.spot-visual .orbit .ring-front { stroke-dashoffset: 0; animation: none; }
.spot-visual .orbit .spin { animation-duration: 14s; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 30px rgba(47,139,255,.4); }

/* ---------- Brand promise ---------- */
.promise { display: grid; gap: 14px; }
@media (min-width: 900px) { .promise { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.promise-card { border-radius: var(--radius); background: var(--surface); padding: 26px; }
.promise-card .num { font: 600 13px var(--display); color: var(--blue); }
.promise-card h3 { font-size: 19px; margin: 18px 0 8px; }
.promise-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Page header / breadcrumbs ---------- */
.page-head { padding-top: 26px; padding-bottom: 18px; }
@media (min-width: 768px) { .page-head { padding-top: 44px; padding-bottom: 26px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--faint); }
.page-head h1 { font-size: clamp(28px, 5.4vw, 48px); letter-spacing: -.03em; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 60ch; }

/* ---------- Shop toolbar ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.toolbar-row { display: flex; align-items: center; gap: 12px; height: 62px; }
.chips { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); transition: all .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.chip small { font-size: 12px; opacity: .6; font-weight: 600; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; height: 38px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 34px 0 14px; font-size: 14px; font-weight: 600; background: #fff; cursor: pointer; }
.select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.result-count { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.empty-state .btn { margin-top: 22px; }

/* Skeletons */
.skel { background: linear-gradient(90deg, var(--surface) 0%, #fafbfd 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card .skel:first-child { aspect-ratio: 1; border-radius: var(--radius); }
.skel-card .skel + .skel { height: 14px; margin-top: 12px; width: 80%; }
.skel-card .skel + .skel + .skel { width: 40%; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 26px; padding-bottom: 40px; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 80px; } }
.gallery { position: relative; }
@media (min-width: 960px) { .gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: 76px 1fr; gap: 14px; } .gallery.single { grid-template-columns: 1fr; } }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); overflow: hidden; touch-action: pan-y; }
@media (max-width: 959px) { .gallery-main { margin: 0 calc(var(--gutter) * -1); border-radius: 0; } }
.gallery-track { display: flex; height: 100%; transition: transform .55s var(--ease-out); }
.gallery-track figure { flex: 0 0 100%; margin: 0; display: grid; place-items: center; padding: 9%; background: var(--surface); }
.gallery-track img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(11,21,48,.2); transition: width .3s var(--ease), background-color .3s; }
.gallery-dots i.is-active { width: 20px; background: var(--ink); }
@media (min-width: 960px) { .gallery-dots { display: none; } }
.thumbs { display: none; }
@media (min-width: 960px) {
  .thumbs { display: flex; flex-direction: column; gap: 10px; order: -1; }
  .thumbs button { width: 76px; height: 76px; border-radius: 12px; background: var(--surface); padding: 8px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
  .thumbs button.is-active { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
}
.pdp-info .card-cat { margin-bottom: 10px; display: inline-block; }
.pdp-info h1 { font-size: clamp(24px, 3.6vw, 36px); letter-spacing: -.025em; line-height: 1.15; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 18px 0 6px; }
.pdp-price b { font: 600 28px var(--display); letter-spacing: -.02em; }
.pdp-price s { color: var(--faint); font-size: 16px; }
.save-tag { font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; }
.tax-note { color: var(--muted); font-size: 13px; }
.pdp-lead { color: var(--ink-2); margin: 20px 0; font-size: 15.5px; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.stock-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(19,138,82,.14); }
.stock-line.out { color: var(--danger); }
.stock-line.out i { background: var(--danger); box-shadow: 0 0 0 4px rgba(208,52,44,.12); }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; height: 54px; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); flex: 0 0 auto; }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; font-size: 20px; color: var(--ink-2); }
.qty button:disabled { color: var(--line); cursor: default; }
.qty input { width: 30px; border: 0; text-align: center; font-weight: 700; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; font-size: 17px; }
.qty.sm input { width: 24px; font-size: 14px; }
.qty-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.pdp-buynow { margin-top: 10px; }
.perks { margin-top: 26px; border-radius: var(--radius); background: var(--surface); padding: 6px 18px; }
.perk { display: flex; gap: 14px; padding: 14px 0; align-items: flex-start; }
.perk + .perk { border-top: 1px solid var(--line); }
.perk svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--blue); margin-top: 1px; }
.perk b { display: block; font-size: 14px; }
.perk span { font-size: 13px; color: var(--muted); }
.acc { margin-top: 26px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font: 600 16px var(--display); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(225deg); }
.acc .acc-body { padding: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: start; padding: 11px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 12px; }
.spec-table td { font-weight: 600; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .4s var(--ease-out); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy .meta { flex: 1; min-width: 0; }
.sticky-buy .meta b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .meta span { font: 600 15px var(--display); }
.sticky-buy .btn { height: 46px; padding: 0 22px; }
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* ---------- Cart drawer & page ---------- */
.mini-items { padding: 6px 22px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.line-item .thumb { width: 76px; height: 76px; border-radius: 12px; background: var(--surface); padding: 6px; display: block; }
.line-item .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line-item .name { font-weight: 600; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-item .unit { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.line-item .total { font: 600 14.5px var(--display); text-align: end; }
.line-item .remove { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; display: inline-block; }
.line-item .remove:hover { color: var(--danger); }
.line-item .notice { grid-column: 2 / -1; font-size: 12.5px; color: var(--warn); font-weight: 600; }
.ship-progress { padding: 16px 22px 4px; }
.ship-progress p { font-size: 13.5px; margin-bottom: 10px; }
.ship-progress p b { font-weight: 700; }
.ship-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 3px; transition: width .6s var(--ease-out); }
.mini-foot .row { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.mini-foot small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.mini-foot .btn + .btn { margin-top: 8px; }
.cart-empty { text-align: center; padding: 60px 26px; }
.cart-empty svg { width: 52px; height: 52px; color: var(--faint); margin: 0 auto 14px; }
.cart-empty h3 { font-size: 20px; margin-bottom: 6px; }
.cart-empty p { color: var(--muted); margin-bottom: 22px; }

.cart-layout { display: grid; gap: 28px; padding-bottom: 80px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; } }
.cart-layout .line-item { grid-template-columns: 96px 1fr auto; }
.cart-layout .line-item .thumb { width: 96px; height: 96px; }
.summary { border-radius: var(--radius); background: var(--surface); padding: 22px; }
@media (min-width: 960px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; } }
.summary h2 { font-size: 20px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.sum-row b { color: var(--ink); font-weight: 600; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 17px; color: var(--ink); font-weight: 700; }
.sum-row.total b { font: 600 20px var(--display); }
.summary .btn { margin-top: 18px; }
.pay-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.pay-logos span { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 5px 9px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; gap: 24px; padding-bottom: 80px; }
@media (min-width: 960px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; } }
.co-step { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.co-step:first-child { border-top: 0; padding-top: 4px; }
.co-step h2 { font-size: 19px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.co-step h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px var(--display); display: grid; place-items: center; }
.fields { display: grid; gap: 14px; }
@media (min-width: 600px) { .fields.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field label .opt { color: var(--faint); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; height: 50px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 14px; background: #fff; font-size: 16px; transition: box-shadow .2s; outline: 0; }
.field textarea { height: 88px; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2333405c' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.field.has-error input, .field.has-error select { box-shadow: inset 0 0 0 2px var(--danger); }
.field .err { font-size: 12.5px; color: var(--danger); margin-top: 5px; display: none; }
.field.has-error .err { display: block; }
.phone-input { display: flex; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; transition: box-shadow .2s; }
.phone-input:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.field.has-error .phone-input { box-shadow: inset 0 0 0 2px var(--danger); }
.phone-input span { display: grid; place-items: center; padding: 0 12px 0 14px; font-weight: 700; color: var(--ink-2); border-right: 1px solid var(--line); font-size: 15px; }
.phone-input input { box-shadow: none !important; background: transparent; }
.pay-options { display: grid; gap: 10px; }
.pay-opt { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); flex: 0 0 20px; margin-top: 2px; transition: box-shadow .2s; }
.pay-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: #fbfcfe; }
.pay-opt:has(input:checked) .radio { box-shadow: inset 0 0 0 6px var(--ink); }
.pay-opt input:focus-visible ~ .radio { outline: 2px solid var(--blue); outline-offset: 2px; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt span.d { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.pay-opt .tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pay-opt .tags em { font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--surface); color: var(--ink-2); }
.co-items { display: grid; gap: 12px; margin-bottom: 14px; }
.co-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.co-item .thumb { position: relative; width: 58px; height: 58px; border-radius: 10px; background: #fff; padding: 5px; }
.co-item .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.co-item .thumb i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink-2); color: #fff; font: 700 11px var(--text); display: grid; place-items: center; font-style: normal; }
.co-item b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.co-item span { font-weight: 600; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.alert.warn { background: #fff6e9; color: #7a4100; }
.alert.error { background: #fdeeed; color: #8f1d17; }
.alert.ok { background: #e9f7ef; color: #0d5c37; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.secure-note svg { width: 15px; height: 15px; }
.mobile-summary-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px; border-radius: 14px; background: var(--surface); font-weight: 600; font-size: 14.5px; }
@media (min-width: 960px) { .mobile-summary-toggle { display: none; } }
@media (max-width: 959px) { .checkout-layout .summary.is-collapsible:not(.is-open) .co-items { display: none; } }

/* ---------- Confirmation ---------- */
.confirm { max-width: 640px; margin: 0 auto; padding: 48px 0 90px; text-align: center; }
.confirm-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: #e9f7ef; color: var(--ok); }
.confirm-icon.pending { background: #fff6e9; color: var(--warn); }
.confirm-icon.fail { background: #fdeeed; color: var(--danger); }
.confirm-icon svg { width: 36px; height: 36px; }
.confirm-icon .check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s var(--ease-out) forwards; }
.confirm h1 { font-size: clamp(26px, 5vw, 38px); margin-bottom: 10px; }
.confirm .lead { color: var(--muted); }
.order-box { text-align: start; border-radius: var(--radius); background: var(--surface); padding: 22px; margin: 30px 0; }
.order-box .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.order-box .top b { font: 600 18px var(--display); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pill.ok { background: #e9f7ef; color: var(--ok); box-shadow: none; }
.pill.warn { background: #fff6e9; color: var(--warn); box-shadow: none; }
.pill.bad { background: #fdeeed; color: var(--danger); box-shadow: none; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.timeline li::after { content: ''; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--muted); }
.track-form { max-width: 460px; margin: 0 auto; text-align: start; display: grid; gap: 14px; }

/* ---------- Content pages ---------- */
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-inline-start: 20px; }
.prose li + li { margin-top: 6px; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.fee-table th, .fee-table td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.fee-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-grid { display: grid; gap: 14px; padding-bottom: 80px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.contact-card { border-radius: var(--radius); background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 6px; transition: transform .4s var(--ease-out), box-shadow .3s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.contact-card svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 14px; }
.contact-card h3 { font-size: 18px; }
.contact-card p { color: var(--muted); font-size: 14.5px; }
.contact-card b { font-weight: 700; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c2cde3; margin-top: 40px; }
.foot-top { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 36px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 76px; padding-bottom: 48px; } }
.foot-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.foot-brand p { font-size: 14px; max-width: 34ch; color: #9fb0d0; }
.site-footer h4 { font: 600 13px var(--text); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 4px; color: #7fb2ff; }
.foot-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.foot-pay span { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 6px; background: rgba(255,255,255,.08); color: #e4ebf7; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 12.5px; color: #8797b8; }

/* WhatsApp float */
.wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); transition: transform .3s var(--ease-out), bottom .4s var(--ease-out); }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
body.has-sticky-buy .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* Toast */
.toast-host { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-2); display: flex; align-items: center; gap: 10px; animation: toast-in .45s var(--ease-out); pointer-events: auto; }
.toast.error { background: var(--danger); }
.toast.out { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .3s; }
.reveal-stagger.is-in > *:nth-child(n+7) { transition-delay: .34s; }

/* Fly-to-cart dot */
.fly-dot { position: fixed; z-index: 130; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); pointer-events: none; box-shadow: 0 0 0 4px rgba(10,92,255,.2); }

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

/* ---------- Mobile bottom navigation (liquid notch) ---------- */
.tabbar { display: none; }
@media (max-width: 1023px) {
  :root { --tabbar-h: 64px; }
  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: env(safe-area-inset-bottom); background: #fff; z-index: -1; }
  .tab-bg { position: absolute; left: 0; top: 0; width: 100%; height: var(--tabbar-h); overflow: visible; z-index: -1; filter: drop-shadow(0 -4px 14px rgba(11,21,48,.09)); }
  .tab-bg path { fill: #fff; }
  .tab-item {
    position: relative; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding-bottom: 10px;
    font: 600 11px var(--text); color: var(--muted); transition: color .3s;
  }
  .tab-icon { display: grid; place-items: center; transition: transform .45s var(--ease-out), opacity .25s; }
  .tab-icon svg { width: 23px; height: 23px; }
  .tab-item.is-active { color: var(--blue); }
  .tab-item.is-active .tab-icon { opacity: 0; transform: translateY(-14px) scale(.6); }
  .tab-item:active .tab-icon { transform: scale(.88); }
  .tab-bubble {
    position: absolute; left: 0; top: -25px; width: 54px; height: 54px; z-index: 2; pointer-events: none; will-change: transform;
  }
  .tab-bubble-icon {
    position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(145deg, #2f8bff 0%, var(--blue) 55%, #0047d6 100%); color: #fff;
    box-shadow: 0 8px 20px rgba(10,92,255,.38);
    transition: transform .22s ease-in, opacity .18s;
  }
  .tab-bubble-icon svg { width: 24px; height: 24px; }
  .tab-bubble.is-hidden .tab-bubble-icon { transform: translateY(26px) scale(.35); opacity: 0; }
  .tab-bubble.pop .tab-bubble-icon { animation: bubble-pop .5s var(--ease-out); }
  @keyframes bubble-pop { 0% { transform: translateY(24px) scale(.4); opacity: 0; } 55% { transform: translateY(-5px) scale(1.08); opacity: 1; } 100% { transform: none; } }
  .tab-count { position: absolute; top: 9px; left: calc(50% + 5px); z-index: 3; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font: 700 10.5px/17px var(--text); text-align: center; box-shadow: 0 0 0 2px #fff; transform: scale(0); transition: transform .35s var(--ease-out), top .4s var(--ease-out); }
  .tab-count.has-items { transform: scale(1); }
  .tab-count.bump { animation: bump .45s var(--ease-out); }
  .tab-item.is-active .tab-count { top: -24px; left: calc(50% + 12px); }

  /* Keep floating things above the bar */
  .wa-float { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  body.has-sticky-buy .wa-float { bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom)); }
  .sticky-buy { left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(11,21,48,.14); transform: translateY(calc(100% + 140px)); }
  .sticky-buy.is-visible { transform: none; }
  body.has-sticky-buy .wa-float { bottom: calc(var(--tabbar-h) + 118px + env(safe-area-inset-bottom)); }
  .toast-host { bottom: calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom)); }
  .foot-bottom { padding-bottom: 24px; }
}

/* Categories bottom sheet */
.drawer.bottom { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 80vh; border-radius: 22px 22px 0 0; transform: translateY(104%); padding-bottom: env(safe-area-inset-bottom); }
.drawer.bottom.is-open { transform: none; }
.drawer.bottom .drawer-head { border-bottom: 0; padding-top: 18px; position: relative; }
.drawer.bottom .drawer-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
.cat-sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 4px 16px 22px; }
.cat-sheet-item { display: flex; flex-direction: column; gap: 2px; border-radius: 16px; background: var(--surface); padding: 12px; transition: transform .2s var(--ease); }
.cat-sheet-item:active { transform: scale(.97); }
.cat-sheet-item .ph { aspect-ratio: 16 / 10; display: grid; place-items: center; margin-bottom: 6px; }
.cat-sheet-item .ph img { width: 82%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-sheet-item.all .ph svg { width: 34px; height: 34px; color: var(--blue); }
.cat-sheet-item b { font-size: 14.5px; font-weight: 700; }
.cat-sheet-item small { font-size: 12px; color: var(--muted); }
@media (min-width: 1024px) { .drawer.bottom { display: none; } }

/* =====================================================================
   Arabic / right-to-left
   ===================================================================== */
html[lang="ar"] [data-only="en"], html[lang="en"] [data-only="ar"] { display: none !important; }
[dir="rtl"] { --display: 'IBM Plex Sans Arabic', 'Sora', system-ui, sans-serif; --text: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif; }
[dir="rtl"] body { font-size: 15.5px; line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .hero-title, [dir="rtl"] .price b, [dir="rtl"] .pdp-price b { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .hero-title { font-weight: 700; line-height: 1.3; }
[dir="rtl"] .hero-title { line-height: 1.25; }
[dir="rtl"] .eyebrow, [dir="rtl"] .card-cat, [dir="rtl"] .site-footer h4, [dir="rtl"] .fee-table th { letter-spacing: 0; text-transform: none; }
[dir="rtl"] svg.flip { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg.flip { transform: scaleX(-1) translateX(4px); }

/* side drawers swap sides */
[dir="rtl"] .drawer.left { left: auto; right: 0; transform: translateX(102%); }
[dir="rtl"] .drawer.right { right: auto; left: 0; transform: translateX(-102%); }
[dir="rtl"] .drawer.left.is-open, [dir="rtl"] .drawer.right.is-open { transform: none; }

/* things pinned to a corner */
[dir="rtl"] .badge { left: auto; right: 12px; }
[dir="rtl"] .quick-add { right: auto; left: 10px; }
[dir="rtl"] .cart-count { right: auto; left: 2px; }
[dir="rtl"] .wa-float { right: auto; left: 16px; }
[dir="rtl"] .co-item .thumb i { right: auto; left: -6px; }
[dir="rtl"] .hero-bar i { transform-origin: right; }
[dir="rtl"] .timeline li { padding: 0 24px 16px 0; }
[dir="rtl"] .timeline li::before { left: auto; right: 4px; }
[dir="rtl"] .timeline li::after { left: auto; right: 7.5px; }

/* form controls */
[dir="rtl"] .select select { padding: 0 14px 0 34px; }
[dir="rtl"] .select::after { right: auto; left: 14px; }
[dir="rtl"] .field select { background-position: left 16px center; padding-right: 14px; padding-left: 40px; }
[dir="rtl"] .phone-input { direction: ltr; }
[dir="rtl"] .phone-input input { text-align: left; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] #tNo { direction: ltr; text-align: right; }

/* language switch */
.lang-btn { height: 34px; padding: 0 12px; margin-inline-end: 4px; border-radius: 999px; font: 700 13px var(--text); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, color .2s; }
.lang-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
html[lang="en"] .lang-btn { font-family: 'IBM Plex Sans Arabic', sans-serif; }
html[lang="ar"] .lang-btn { font-family: 'Manrope', sans-serif; }

/* Page stays hidden (max 3.5s) until this stylesheet arrives, so slow connections never see unstyled HTML. */
html.css-wait body { opacity: 1; }

/* National Day offer links */
.promo-strip { display: block; background: linear-gradient(90deg, #C8102E, #9e0c24 55%, #007A33); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 9px var(--gutter); text-decoration: none; }
.promo-strip b { white-space: nowrap; font-weight: 800; margin-inline-start: 6px; text-decoration: underline; text-underline-offset: 3px; }
.offer-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: #C8102E; color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(200,16,46,.3); }
.offer-btn:hover { background: #a80d26; }
@media (max-width: 420px) { .offer-btn { height: 32px; padding: 0 10px; font-size: 12px; } }
.mobile-nav .offer-row { color: #C8102E; font-weight: 800; }
@media (max-width: 480px) { .promo-strip .ps-dates { display: none; } .promo-strip { font-size: 12.5px; } }

/* ---------- Offers, free delivery, WhatsApp order (Nov 2026) ---------- */
.offer-tag { display: inline-block; font: 700 10.5px/1 var(--text); letter-spacing: .02em; color: #b3261e; background: #fdecea; border-radius: 999px; padding: 4px 8px; vertical-align: middle; white-space: nowrap; }
.line-item .unit s, .co-item s { color: var(--muted); font-weight: 400; margin-inline-start: 6px; font-size: 12px; }
.co-item s { display: block; margin: 0; }
.co-item span { text-align: end; }
.co-item small.offer-tag { display: table; margin-top: 4px; font-size: 10px; }
.btn-wa { background: #25d366; color: #fff; margin-top: 10px; }
.btn-wa:hover { background: #1ebe5b; box-shadow: 0 8px 24px rgba(37, 211, 102, .3); }
.offer-note { background: #fff6e5; color: #8a4b00; border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; margin: 8px 0 12px; }
.free-del { background: #e9f7ef; color: var(--ok); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: -4px 0 16px; }
.sum-row.save b, .sum-row.save span { color: var(--ok); }
.sum-row.muted span { color: var(--muted); font-size: 13px; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pdp-offer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #8a4b00; font-weight: 600; margin: 6px 0 4px; }

/* ---------- Lead form ("call me back") ---------- */
.lead-box { margin-top: 40px; margin-bottom: 40px; }
.lead-card { display: grid; gap: 18px; background: linear-gradient(135deg, #0b1f4d, #12307a); color: #fff; border-radius: 22px; padding: 24px; }
@media (min-width: 900px) { .lead-card { grid-template-columns: 1fr 1.3fr; align-items: center; padding: 32px 36px; } }
.lead-copy h2 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.lead-copy p { color: rgba(255,255,255,.8); margin: 0; font-size: 14.5px; line-height: 1.5; }
.lead-form { display: grid; gap: 10px; }
@media (min-width: 640px) { .lead-form { grid-template-columns: 1fr 1fr; } .lead-form button, .lead-form .lead-msg { grid-column: 1 / -1; } }
.lead-form input, .lead-form select { width: 100%; height: 48px; border-radius: 12px; border: 0; padding: 0 14px; font: 500 15px var(--text); color: var(--ink); background: #fff; }
.lead-form .phone-input { display: flex; background: #fff; border-radius: 12px; overflow: hidden; }
.lead-form .phone-input span { display: grid; place-items: center; padding: 0 12px; color: var(--ink); font-weight: 600; border-inline-end: 1px solid var(--line); }
.lead-form .phone-input input { border-radius: 0; }
.lead-form button { height: 50px; background: #25d366; color: #fff; border: 0; font-weight: 700; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-msg { margin: 0; font-size: 14px; min-height: 0; }
.lead-msg.ok { background: rgba(37,211,102,.18); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.lead-msg.err { color: #ffb4b4; }
.co-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 500; }
.co-qty button:not(.co-remove) { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.co-qty button:disabled { opacity: .4; cursor: default; }
.co-qty em { font-style: normal; min-width: 14px; text-align: center; font-size: 13px; }
.co-remove { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 12.5px; cursor: pointer; margin-inline-start: 6px; padding: 4px; }
.co-item b { display: block; overflow: visible; -webkit-line-clamp: unset; text-align: start; }
.co-item .co-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
