/* منتجات الخير — store styles, direction 1b «الليل الكحلي» */
:root {
  /* Brand */
  --navy-950: #00164a;
  --navy-900: #001D61;
  --navy-800: #022a80;
  --blue-700: #034AB2;
  --blue-500: #3F7EDB;
  --sky-100: #CFE4F7;
  --gold: #F0A808;
  --gold-hi: #ffbb1f;
  --white: #ffffff;

  /* Roles */
  --ink: #001D61;
  --ink-soft: #4a5a80;
  --on-dark-soft: #c3d8f0;
  --line-dark: rgba(207, 228, 247, .18);
  --line-dark-strong: rgba(207, 228, 247, .38);
  --glass: rgba(255, 255, 255, .07);
  --glass-2: rgba(255, 255, 255, .12);
  --field: #eef3fb;
  --field-line: #d3ddec;
  --danger: #ffb4a8;
  --danger-ink: #a8231a;
  --ok: #6fd38a;
  --ok-ink: #17602a;

  /* Type */
  --font: 'Cairo', system-ui, sans-serif;
  --num: 'Montserrat', 'Cairo', sans-serif;
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .875rem;    /* 14 */
  --fs-base: 1rem;     /* 16 */
  --fs-md: 1.125rem;   /* 18 */
  --fs-lg: 1.375rem;   /* 22 */
  --fs-xl: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-display: clamp(2.5rem, 1.3rem + 4.4vw, 4.75rem);

  /* Space and shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-float: 0 18px 44px rgba(0, 8, 30, .32);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--navy-900); color: var(--white); font-family: var(--font); font-size: var(--fs-base); line-height: 1.65; min-height: 100vh; caret-color: var(--gold); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: var(--blue-700) var(--navy-950); }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--blue-700); border-radius: 999px; border: 3px solid var(--navy-950); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--on-dark-soft); }

/* ---------- Header ---------- */
/* margin-bottom makes up for the bar shrinking when stuck (store.js); no scroll anchoring, so a resize can't move scrollY */
html { overflow-anchor: none; }
.site-head { position: sticky; top: 0; z-index: 30; background: var(--navy-900); transition: box-shadow .25s var(--ease-out), margin-bottom .25s var(--ease-out); }
.site-head.is-measuring, .site-head.is-measuring * { transition: none !important; }
.site-head.is-stuck { box-shadow: 0 1px 0 var(--line-dark), 0 10px 30px rgba(0, 8, 30, .35); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: 14px; transition: padding .25s var(--ease-out); }
.is-stuck .head-row { padding-block: 8px; }
.head-start { display: flex; align-items: center; gap: 40px; }
.logo-link img { height: 64px; width: auto; max-width: 160px; object-fit: contain; transition: height .25s var(--ease-out); }
.is-stuck .logo-link img { height: 52px; }
.main-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 700; }
.main-nav a, .mobile-nav a { color: var(--on-dark-soft); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); border-color: var(--gold); }
.mobile-nav { display: none; }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 44px; border: 1px solid var(--line-dark-strong); border-radius: 999px; background: transparent; font-size: var(--fs-sm); font-weight: 700; transition: background-color .15s, border-color .15s; }
.cart-pill:hover { background: var(--glass); border-color: var(--sky-100); }
.cart-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--gold); color: var(--navy-900); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 1; }
.cart-pill.bump .cart-count { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.35); } 60% { transform: scale(.92); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .15s, transform .12s var(--ease-out), opacity .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover:not([disabled]) { background: var(--gold-hi); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover:not([disabled]) { background: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line-dark-strong); }
.btn-ghost:hover { background: var(--glass); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--on-dark-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: var(--white); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark-strong); background: transparent; transition: background-color .15s; }
.icon-btn:hover { background: var(--glass-2); }

/* ---------- Home: hero ---------- */
.hero-band { background: linear-gradient(170deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-700) 100%); overflow: hidden; position: relative; }
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s7); align-items: center; padding-block: var(--s6) var(--s8); }
.hero-watermark { position: absolute; left: -140px; bottom: -220px; width: 620px; opacity: .07; filter: grayscale(1) brightness(3); pointer-events: none; }
.hero-copy { display: flex; flex-direction: column; gap: var(--s5); position: relative; }
.hero h1 { font-size: var(--fs-display); line-height: 1.08; font-weight: 900; color: var(--gold); letter-spacing: -.01em; }
.hero h1 .h1-lead { color: var(--white); }
.hero-sub { font-size: var(--fs-md); color: var(--on-dark-soft); max-width: 44ch; margin-top: calc(var(--s2) * -1); }
.search { display: flex; align-items: center; gap: 10px; padding: 7px; padding-inline-start: 20px; background: var(--white); border-radius: 999px; color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.search > .ico { color: var(--blue-700); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); padding: 8px 0; }
.search input::placeholder { color: #6a7896; }
.search input::-webkit-search-cancel-button { filter: hue-rotate(180deg); }
.search button { padding: 0 28px; min-height: 48px; background: var(--navy-900); color: var(--white); border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; transition: background-color .15s; }
.search button:hover { background: var(--blue-700); }
.search:focus-within { box-shadow: 0 20px 50px rgba(0, 0, 0, .25), 0 0 0 4px rgba(240, 168, 8, .55); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 16px; border: 1px solid var(--line-dark-strong); border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; background: transparent; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { background: var(--glass); border-color: var(--sky-100); }
.chip.is-on { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.hero-art { position: relative; height: 540px; }
.hero-art .shot { position: absolute; display: block; overflow: hidden; border-radius: var(--r-lg); border: 1px solid rgba(207, 228, 247, .25); background: var(--blue-700); }
.hero-art .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .6s var(--ease-out); }
.hero-art .shot:hover img { transform: scale(1.04); }
.hero-art .shot-a { top: 0; right: 0; width: 62%; height: 80%; animation: rise .8s var(--ease-out) both; }
.hero-art .shot-b { bottom: 0; left: 4%; width: 46%; height: 58%; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); animation: rise .8s .12s var(--ease-out) both; }
.hero-art .ph-shot { display: grid; place-items: center; }
.hero-art .ph-shot img { width: 46%; height: auto; opacity: .5; object-fit: contain; }
.price-tag { position: absolute; top: 32px; left: 0; padding: 12px 18px; background: var(--gold); color: var(--ink); border-radius: 14px; font-weight: 800; font-size: 15px; display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; box-shadow: var(--shadow-float); animation: rise .8s .24s var(--ease-out) both; transition: transform .15s var(--ease-out); }
.price-tag:hover { transform: translateY(-2px); }
.price-tag small { font-size: 12.5px; font-weight: 700; }
.price-tag .num { font-size: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Mascot stage: one navy canvas, a contained soft halo and a gold-lit podium.
   Everything is sized in cqh (the stage's height, like the rooster) and centred on it, so the podium top always meets
   the feet (6cqh above the stage bottom) whatever the stage's width. */
.hero-band:has(.stage) { background: linear-gradient(180deg, #061f59 0%, #092961 55%, #061f59 100%); }
.hero-band:has(.stage) .cats { position: relative; padding-top: 20px; border-top: 1px solid rgba(166, 197, 244, .12); }
.hero:has(.stage) .hero-copy { z-index: 1; }
.hero:has(.stage) .hero-watermark { display: none; }
.stage { position: relative; z-index: 0; container-type: size; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: visible; }
.stage > * { grid-area: 1 / 1; pointer-events: none; }
.stage::before { content: ''; position: absolute; pointer-events: none; z-index: 0; left: 50%; top: -3%; width: min(115cqh, 125%); height: 112%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 48%, rgba(57, 115, 199, .3), rgba(32, 79, 151, .12) 48%, transparent 72%); }
.stage::after { content: ''; position: absolute; pointer-events: none; z-index: 0; left: 50%; top: 7%; width: min(88cqh, 96%); height: 79%; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(138, 179, 233, .1); background: radial-gradient(ellipse at 50% 0%, rgba(255, 206, 119, .055), transparent 60%); }
.stage-fx, .stage-rings { display: none; }
.stage-gold { position: absolute; z-index: 1; left: 50%; top: 1%; width: min(91cqh, 98%); height: 93%; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 0 3px rgba(255, 190, 70, .7)) drop-shadow(0 0 9px rgba(255, 175, 40, .3)); }
.gold-arc { transform-origin: 200px 220px; animation: gold-drift 7s ease-in-out infinite alternate; }
.gold-arc-alt { animation-delay: -4s; animation-duration: 9s; }
@keyframes gold-drift { from { transform: rotate(-3deg); opacity: .45; } to { transform: rotate(3deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .stage .gold-arc { animation: none; opacity: .65; } }
.stage-pool { position: absolute; left: calc(50% - 45cqh); width: 90cqh; height: 13cqh; bottom: -12cqh; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 183, 67, .22), rgba(47, 107, 199, .12) 55%, transparent); filter: blur(9px); z-index: 0; }
.stage-disc { position: absolute; left: calc(50% - 41.5cqh); width: 83cqh; height: auto; bottom: -8.9cqh; overflow: visible; z-index: 1; animation: disc-on .6s 2.3s var(--ease-out) both; }
@keyframes disc-on { from { filter: brightness(.6) saturate(.8); } }
@keyframes rings-in { from { opacity: 0; transform: scale(.88) rotate(-10deg); } to { opacity: 1; transform: none; } }
/* Three poses stacked: walk (side view) slides in, stand (facing us) for a beat, then the thumbs-up pops. */
.mascot { position: relative; place-self: end center; display: grid; grid-template-columns: auto; grid-template-rows: minmax(0, 1fr); height: 96%; min-height: 0; margin-bottom: 6cqh; z-index: 2; filter: drop-shadow(0 26px 30px rgba(0, 8, 30, .55)) drop-shadow(0 0 22px rgba(63, 126, 219, .35)); transform-origin: 50% 100%; animation: mascot-walk 1.6s cubic-bezier(.3, .9, .4, 1) both, mascot-hop .45s 2.3s var(--ease-out) both; }
.pose { grid-area: 1 / 1; place-self: end center; height: 100%; min-height: 0; width: auto; max-width: none; transform-origin: 50% 100%; }
.pose-walk { animation: pose-walk 2.4s step-end both; }
.pose-stand { opacity: 0; animation: pose-stand 2.4s step-end both; }
.pose-like { opacity: 0; animation: pose-like .3s 2.35s var(--ease-out) both; }
@keyframes mascot-walk {
  0% { transform: translateX(-130%) rotate(-3deg); }
  14% { transform: translateX(-108%) rotate(3deg) translateY(-3%); }
  28% { transform: translateX(-86%) rotate(-3deg); }
  42% { transform: translateX(-64%) rotate(3deg) translateY(-3%); }
  56% { transform: translateX(-42%) rotate(-3deg); }
  70% { transform: translateX(-21%) rotate(3deg) translateY(-2%); }
  84% { transform: translateX(-4%) rotate(-1deg); }
  100% { transform: translateX(0) rotate(0); }
}
@keyframes pose-walk { 0%, 66% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes pose-stand { 0%, 66% { opacity: 0; } 67%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes pose-like { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes mascot-hop { 30% { transform: scale(1.05, .94); } 65% { transform: translateY(-4%) scale(.98, 1.03); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pose-walk, .pose-stand { display: none; } .pose-like, .stage-rings { opacity: 1; } }
/* Video walk-in (60fps transparent WebM): a real walk cycle replaces the three poses. pose-like stays as an
   invisible sizer; the video frame is 1:1 with the rooster centred, 81.5% of its height, feet 5.8% from the bottom. */
.pose-video { display: none; }
/* The alpha-stacked MP4 decodes off to the side and a WebGL canvas (.pose-video) draws it with its alpha. */
.pose-src { position: absolute; width: 2px; height: 2px; opacity: .01; }
.stage.has-video .pose-video { display: block; position: absolute; left: 50%; bottom: -7.1%; height: 122.7%; width: auto; aspect-ratio: 1; translate: -50% 0; }
.stage.has-video .pose-walk, .stage.has-video .pose-stand { display: none; }
.stage.has-video .pose-like { visibility: hidden; animation: none; opacity: 1; }
.stage.has-video .mascot { animation: mascot-stroll 2s cubic-bezier(.3, .35, .55, 1) both; }
.stage.has-video .stage-disc { animation-delay: 1.9s; }
.stage.has-video .stage-rings { animation-delay: 2.9s; }
.stage.has-video:not(.is-playing) *, .stage.has-video:not(.is-playing) .mascot { animation-play-state: paused; }
.stage.has-video:not(.is-playing) .mascot { opacity: 0; }
/* Until store.js has picked video or poses, nothing of the rooster shows and nothing on the stage starts moving:
   the walk pose used to paint for a moment, vanish when the video took over, then come back (index.php, store.js). */
.stage.is-pending .mascot { visibility: hidden; }
.stage.is-pending *, .stage.is-pending .mascot { animation-play-state: paused; }
@keyframes mascot-stroll { from { transform: translateX(-125%); } }
/* Live rooster after the entrance: same 1:1 frame as the video; the head tilts round the neck and the
   irises follow the pointer (store.js). Shown in place of the video's last frame, so the swap can't be seen. */
.mascot-live { display: none; position: absolute; left: 50%; bottom: -7.1%; height: 122.7%; width: auto; aspect-ratio: 1; translate: -50% 0; }
.mascot-live > img, .ml-head, .ml-head > img, .ml-eyes { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ml-head { transform-origin: 50% 46.35%; will-change: transform; }
.ml-eyes { overflow: visible; }
.ml-eyes image { will-change: transform; }
.stage.is-live .mascot-live { display: block; }
/* Laid out while the video plays; the video's last frame stays underneath until the live layers have painted
   (is-settled, store.js), so the swap never flashes an empty stage. */
.stage.has-video .mascot-live { display: block; opacity: 0; }
.stage.has-video.is-live .mascot-live { opacity: 1; }
.stage.is-live .pose-like, .stage.is-settled .pose-video { visibility: hidden; }
.stage.is-live:not(.has-video) .mascot-live { animation: live-in .35s var(--ease-out) both; }
@keyframes live-in { from { opacity: 0; } }

/* ---------- Home: category tiles ---------- */
/* Frosted glass tiles: a soft blue/gold light sits behind the row so the blur has something to catch. */
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s3); padding-bottom: var(--s8); position: relative; isolation: isolate; }
.cats::before { content: ''; position: absolute; inset: -16px -2% calc(var(--s8) - 16px); z-index: -1; pointer-events: none; filter: blur(30px);
  background: radial-gradient(28% 70% at 88% 50%, rgba(240, 168, 8, .3), transparent 70%), radial-gradient(30% 80% at 55% 40%, rgba(63, 126, 219, .55), transparent 70%), radial-gradient(26% 70% at 15% 60%, rgba(120, 180, 255, .4), transparent 70%); }
@media (min-width: 901px) { .cats:has(a[href="offers.php"]) { grid-template-columns: repeat(9, 1fr); } }
.cat { position: relative; isolation: isolate; overflow: hidden; padding: 20px 12px; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; text-decoration: none; min-height: 112px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .05) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 22px rgba(160, 200, 255, .07), 0 10px 28px -12px rgba(0, 8, 40, .7);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s; }
/* Edge light: a thin ring brighter at the top corner, like a pane catching light. */
.cat::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none; background: linear-gradient(200deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(150, 195, 255, .3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* Light sweep across the glass on hover. */
.cat::after { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 45%; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-18deg); opacity: 0; transition: transform .8s var(--ease-out), opacity .3s; }
.cat:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 26px rgba(160, 200, 255, .12), 0 16px 34px -12px rgba(0, 8, 40, .8); }
.cat:hover::after { opacity: 1; transform: skewX(-18deg) translateX(-420%); }
.cat b { font-size: 17px; font-weight: 800; line-height: 1.3; }
.cat span { font-size: var(--fs-xs); color: var(--on-dark-soft); line-height: 1.5; }
.cat.cat-offers { background: linear-gradient(160deg, rgba(255, 201, 77, .95), rgba(240, 168, 8, .82) 55%, rgba(214, 140, 0, .85)); color: var(--ink); border-color: rgba(255, 226, 150, .6); box-shadow: inset 0 1px 0 rgba(255, 245, 210, .85), inset 0 -8px 18px rgba(160, 90, 0, .22), 0 10px 28px -12px rgba(240, 168, 8, .55); }
.cat.cat-offers span { color: #3d2e00; }
.cat.cat-offers:hover { box-shadow: inset 0 1px 0 rgba(255, 245, 210, .95), inset 0 -8px 18px rgba(160, 90, 0, .18), 0 16px 34px -12px rgba(240, 168, 8, .7); }
@media (prefers-reduced-motion: reduce) { .cat, .cat::after { transition: none; } .cat:hover { transform: none; } .cat:hover::after { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--s8); }
.section-tight { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.sec-head h2 { font-size: var(--fs-xl); font-weight: 800; }
.sec-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-soft); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: color .15s, gap .2s var(--ease-out); }
.sec-head a:hover { color: var(--gold); gap: 10px; }
.sec-head a .ico { width: 18px; height: 18px; }

/* Delivery band: one surface, three ways */
.ways { display: grid; grid-template-columns: 1fr repeat(3, 1.15fr); gap: var(--s6); align-items: start; padding: var(--s7) var(--s6); border-radius: var(--r-lg); background: var(--navy-950); border: 1px solid var(--line-dark); }
.ways h2 { font-size: var(--fs-xl); font-weight: 800; color: var(--gold); align-self: center; }
.way { display: grid; gap: var(--s2); }
.way .ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: var(--s1); }
.way h3 { font-size: var(--fs-md); font-weight: 800; }
.way p { color: var(--on-dark-soft); font-size: 15px; line-height: 1.7; }

/* Branches */
.branches-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s6); align-items: start; }
.branches-intro { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.branches-intro h2 { font-size: var(--fs-xl); font-weight: 800; }
.branches-intro p { color: var(--on-dark-soft); max-width: 34ch; margin-bottom: var(--s2); }
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s4); }
.branch { position: relative; padding: var(--s5); border-radius: var(--r); background: var(--white); color: var(--ink); display: flex; flex-direction: column; gap: var(--s2); }
.branch h3 { font-size: var(--fs-md); font-weight: 800; margin-bottom: var(--s1); }
.branch p { display: flex; gap: var(--s2); align-items: flex-start; color: var(--ink-soft); font-size: 15px; }
.branch p .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-700); }
.branch p.muted { color: var(--ink-soft); }
.branch a { color: var(--blue-700); font-weight: 700; }
.tag { align-self: flex-start; margin-top: var(--s2); padding: 2px 12px; border-radius: 999px; background: #e6f6ea; color: var(--ok-ink); font-size: var(--fs-xs); font-weight: 700; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: var(--s4); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(224px, 248px); gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 6px var(--s2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline-offset: -3px; }
/* Rails (store.js): the edge with more cards behind it fades out; the site is RTL, so "next" is on the left.
   --fl / --fr are how wide each fade is (0 = no fade); the eased stops keep the edge soft instead of a hard cut,
   and registering them lets a fade grow or shrink smoothly when the rail reaches an end. */
@property --fl { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fr { syntax: "<length>"; inherits: false; initial-value: 0px; }
.rail {
  --rail-fade: clamp(44px, 9vw, 150px);
  mask-image: linear-gradient(to right,
    transparent 0, rgb(0 0 0 / .1) calc(var(--fl) * .3), rgb(0 0 0 / .42) calc(var(--fl) * .58), rgb(0 0 0 / .82) calc(var(--fl) * .84), #000 var(--fl),
    #000 calc(100% - var(--fr)), rgb(0 0 0 / .82) calc(100% - var(--fr) * .84), rgb(0 0 0 / .42) calc(100% - var(--fr) * .58), rgb(0 0 0 / .1) calc(100% - var(--fr) * .3), transparent 100%);
  transition: --fl .35s var(--ease-out), --fr .35s var(--ease-out);
}
.rail.can-next { --fl: var(--rail-fade); }
.rail.can-prev { --fr: var(--rail-fade); }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.is-dragging .pcard { pointer-events: none; }
.rail-wrap { position: relative; }
.rail-arrow { position: absolute; z-index: 3; top: 30%; translate: 0 -50%; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--navy-900); box-shadow: 0 12px 28px rgba(0, 8, 30, .4); cursor: pointer; transition: opacity .25s, transform .2s var(--ease-out), background-color .2s; }
.rail-arrow.prev { inset-inline-start: -22px; }
.rail-arrow.next { inset-inline-end: -22px; }
.rail-arrow:hover { background: var(--gold); transform: scale(1.08); }
.rail-arrow:active { transform: scale(.94); }
.rail-arrow:disabled { opacity: 0; transform: scale(.7); pointer-events: none; }
.rail-arrow .ico { width: 22px; height: 22px; stroke-width: 2.5; }
/* Page dots under a rail: the current one stretches into a gold pill. */
.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--s3); }
.rail-dots[hidden] { display: none; }
.rail-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(207, 228, 247, .3); cursor: pointer; transition: width .35s var(--ease-out), background-color .25s; }
.rail-dots button.on { width: 26px; background: var(--gold); }
.rail-dots button:hover:not(.on) { background: rgba(207, 228, 247, .6); }
.pcard { position: relative; border-radius: var(--r); overflow: hidden; background: var(--glass); border: 1px solid var(--line-dark); display: flex; flex-direction: column; transition: transform .25s var(--ease-out), border-color .2s, background-color .2s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--line-dark-strong); background: var(--glass-2); }
.pcard-media { display: block; aspect-ratio: 1; background: var(--blue-700); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .5s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard .ph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, rgba(63, 126, 219, .5), transparent 70%), var(--navy-800); }
.pcard .ph img { width: 40%; height: auto; opacity: .42; filter: saturate(.6); }
.pcard.no-img .pcard-media { aspect-ratio: 16 / 9; }
.pcard-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard h3 { font-size: var(--fs-base); font-weight: 800; line-height: 1.4; }
.pcard h3 a { text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard h3 a:focus-visible { outline: 0; }
.pcard:has(h3 a:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pcard .pack { font-size: var(--fs-xs); color: var(--on-dark-soft); }
/* Pack chips on a card (product_card): above the stretched card link so they can be tapped. */
.pack-chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pack-chip { min-height: 30px; padding: 0 12px; border: 1.5px solid var(--line-dark-strong); border-radius: 999px; background: transparent; color: var(--on-dark-soft); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.pack-chip:hover { border-color: var(--sky-100); color: var(--white); }
.pack-chip:active { transform: scale(.95); }
.pack-chip[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--navy-900); }
@media (max-width: 560px) { .pack-chips { gap: 4px; } .pack-chip { min-height: 28px; padding: 0 9px; font-size: 12px; } }
.price.is-swap { animation: price-swap .3s var(--ease-out); }
@keyframes price-swap { from { opacity: 0; transform: translateY(4px); } }
.pcard-foot { margin-top: auto; padding-top: var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.price { color: var(--gold); font-weight: 700; font-size: 17px; white-space: nowrap; }
.price:has(.offer-badge) { white-space: normal; }
.old-price { color: var(--on-dark-soft); font-size: .75em; font-weight: 600; text-decoration-thickness: 1px; }
.offer-badge { display: inline-block; color: var(--navy-900); background: var(--gold); border-radius: 999px; padding: 3px 7px; font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.price .num { font-size: 18px; }
.price small { font-family: var(--font); font-size: 12.5px; font-weight: 700; }
.price.muted { color: var(--on-dark-soft); font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; white-space: normal; line-height: 1.35; }
.add-btn { position: relative; z-index: 2; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); border: 0; display: grid; place-items: center; transition: transform .15s var(--ease-out), background-color .15s; }
.add-btn .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.add-btn:hover { background: var(--gold-hi); transform: scale(1.08); }
.add-btn:active { transform: scale(.9); }
/* Added: squish-and-pop, a soft green glow, and the check draws itself. Burst, «+1» and the flight to the cart are in .add-fx. */
.add-btn.added { background: var(--ok); color: #0b3d1c; box-shadow: 0 0 0 4px rgba(111, 211, 138, .22), 0 0 22px rgba(111, 211, 138, .55); animation: add-pop .6s var(--ease-out); }
.add-btn.added .ico path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: add-check .45s .12s var(--ease-out) forwards; }
.add-btn.is-back .ico { animation: add-back .4s var(--ease-out); }
@keyframes add-pop { 0% { transform: scale(.72); } 40% { transform: scale(1.2); } 65% { transform: scale(.94); } 85% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes add-check { to { stroke-dashoffset: 0; } }
@keyframes add-back { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
.add-fx, .add-fx-fly { position: fixed; z-index: 9999; width: 0; height: 0; pointer-events: none; }
.add-fx > span { position: absolute; left: 0; top: 0; }
.add-fx-ring { width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; border: 2px solid var(--ok); }
.add-fx-spark { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.add-fx-spark.is-gold { background: var(--gold-hi); box-shadow: 0 0 8px var(--gold); }
.add-fx-plus { direction: ltr; unicode-bidi: isolate; font-family: var(--num); font-size: 17px; font-weight: 800; color: var(--ok); text-shadow: 0 0 10px rgba(111, 211, 138, .6), 0 1px 2px rgba(0, 10, 40, .6); white-space: nowrap; }
.add-fx-fly i, .add-fx-fly b { display: block; }
.add-fx-fly b { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4cc, var(--gold-hi) 45%, var(--gold)); box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(240, 168, 8, .5); }
@media (prefers-reduced-motion: reduce) { .add-btn.added, .add-btn.added .ico path, .add-btn.is-back .ico { animation: none; stroke-dashoffset: 0; } }
.soldout { position: relative; z-index: 2; font-size: var(--fs-xs); font-weight: 700; color: var(--danger); }
.pcard.is-out .pcard-media img { filter: grayscale(.8) brightness(.7); }
.badge { align-self: flex-start; display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.6; }
.badge-own { background: var(--sky-100); color: var(--ink); }
.badge-partner { background: var(--gold); color: var(--ink); }
.badge-brand { background: var(--glass-2); color: var(--sky-100); }

/* ---------- Catalog page (1d) ---------- */
.page-top { padding-block: var(--s4) var(--s5); }
.page-top h1 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); font-weight: 900; color: var(--gold); line-height: 1.15; }
.page-top p { color: var(--on-dark-soft); margin-top: 6px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--on-dark-soft); margin-bottom: var(--s3); flex-wrap: wrap; }
.crumbs .ico { width: 16px; height: 16px; opacity: .7; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.page-search { margin-bottom: var(--s5); }
.catalog { display: grid; grid-template-columns: 256px 1fr; gap: var(--s6); align-items: start; padding-bottom: var(--s9); }
.filters { position: sticky; top: 96px; display: flex; flex-direction: column; gap: var(--s5); padding: 20px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-dark); max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; }
.filters .sec-head { margin: 0; }
.filters h2 { font-size: var(--fs-md); font-weight: 800; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.filters legend { font-size: var(--fs-xs); font-weight: 700; color: var(--on-dark-soft); margin-bottom: var(--s2); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px; transition: background-color .15s; }
.opt:hover { background: var(--glass); }
.opt.is-on { background: var(--gold); color: var(--ink); }
.opt small { font-family: var(--num); font-size: 12.5px; opacity: .75; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.list-head p { color: var(--on-dark-soft); font-weight: 700; }
.list-tools { display: flex; gap: var(--s2); align-items: center; }
.list-head select { appearance: none; background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CFE4F7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center / 16px; border: 1px solid var(--line-dark-strong); border-radius: 999px; padding: 0 16px 0 38px; min-height: 42px; color: var(--white); font-weight: 700; }
.list-head select option { color: var(--ink); background: var(--white); }
.filter-open { display: none; }
.cat-strip { display: none; }
.empty-state { padding: var(--s7) var(--s5); border-radius: var(--r); background: var(--glass); text-align: center; }
.empty-state h2 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--s2); }
.empty-state p { color: var(--on-dark-soft); margin-bottom: var(--s5); }

/* ---------- Product page (1e) ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: var(--s8); }
.product-media { border-radius: var(--r-lg); overflow: hidden; background: var(--blue-700); aspect-ratio: 1; position: sticky; top: 96px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(63, 126, 219, .55), transparent 70%), var(--navy-800); }
.product-media .ph img { width: 40%; height: auto; opacity: .5; }
.product-info { display: flex; flex-direction: column; gap: var(--s5); }
.product-info h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 900; line-height: 1.15; margin-block: 6px 8px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(111, 211, 138, .18); }
.stock.out { color: var(--danger); }
.stock.out::before { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 180, 168, .18); }
.big-price { font-family: var(--num); font-size: 36px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.big-price small { font-family: var(--font); font-size: var(--fs-base); font-weight: 700; }
.big-price.muted { font-family: var(--font); font-size: var(--fs-lg); color: var(--sky-100); }
.note { color: var(--on-dark-soft); font-size: var(--fs-sm); margin-top: 6px; }
.desc { font-size: 17px; line-height: 1.8; max-width: 60ch; }
.desc p { margin: 0 0 10px; text-align: justify; text-wrap: pretty; }
.desc p:last-child { margin-bottom: 0; }
.desc .desc-intro { font-weight: 700; margin-bottom: 8px; }
/* Ingredient-style lists (product_description_html): two even columns, so every line starts at the same place. */
.desc-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.desc-list:last-child { margin-bottom: 0; }
.desc-list li { display: flex; align-items: baseline; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--on-dark-soft); }
.desc-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); translate: 0 -2px; }
@media (max-width: 380px) { .desc-list { grid-template-columns: 1fr; } }
.field-label { font-weight: 700; font-size: 15px; margin-bottom: 10px; display: block; }
.packs { display: flex; flex-wrap: wrap; gap: 10px; }
.pack-opt { min-width: 132px; min-height: 60px; padding: 8px 18px; border-radius: 14px; border: 1.5px solid var(--line-dark-strong); background: transparent; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.35; font-weight: 700; transition: border-color .15s, background-color .15s; }
.pack-opt small { font-family: var(--num); font-weight: 600; color: var(--on-dark-soft); }
.pack-opt:hover:not([disabled]) { border-color: var(--sky-100); }
.pack-opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(240, 168, 8, .14); }
.pack-opt[aria-pressed="true"] small { color: var(--gold); }
.pack-opt[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-2); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; transition: background-color .15s; }
.stepper button:hover { background: var(--glass-2); }
.stepper output { min-width: 40px; text-align: center; font-family: var(--num); font-weight: 700; font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-dark); font-size: var(--fs-sm); font-weight: 700; color: var(--sky-100); }
.buy-bar { display: flex; align-items: center; gap: var(--s3); }
.buy-bar .btn { flex: 1; min-height: 58px; font-size: 17px; }
.buy-bar .approx { font-family: var(--num); }

/* ---------- Drawer (1f) ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0, 10, 40, .6); z-index: 40; opacity: 0; transition: opacity .25s; }
.drawer-scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(440px, 100%); z-index: 50; background: var(--navy-900); border-inline-start: 1px solid var(--line-dark); display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .35s var(--ease-out), visibility 0s .35s; visibility: hidden; box-shadow: 20px 0 60px rgba(0, 8, 30, .4); }
.drawer.open { transform: none; visibility: visible; transition: transform .35s var(--ease-out); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 12px; border-bottom: 1px solid var(--line-dark); }
.drawer-head h2 { font-size: var(--fs-lg); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.drawer-head h2 .num { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--gold); color: var(--navy-900); display: inline-grid; place-items: center; font-size: 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.drawer-body .empty { color: var(--on-dark-soft); padding: var(--s6) 0; text-align: center; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line-dark); animation: rise .3s var(--ease-out) both; }
.line-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--blue-700); }
.line-img.ph { display: grid; place-items: center; }
.line-img.ph img { width: 70%; opacity: .5; }
.line-name { font-weight: 700; line-height: 1.35; }
.line-meta { font-size: var(--fs-xs); color: var(--on-dark-soft); }
.line-price { font-family: var(--num); font-weight: 700; color: var(--gold); white-space: nowrap; }
.line-price.muted { font-family: var(--font); font-size: 12.5px; color: var(--on-dark-soft); }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mini-step { display: inline-flex; align-items: center; gap: 2px; background: var(--glass-2); border-radius: 999px; padding: 2px; }
.mini-step button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; transition: background-color .15s; }
.mini-step button .ico { width: 16px; height: 16px; }
.mini-step button:hover { background: var(--glass-2); }
.mini-step span { min-width: 22px; text-align: center; font-family: var(--num); font-weight: 700; }
.drawer-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 10px; background: var(--navy-950); }
.drawer-foot .link-btn { align-self: center; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 700; }
.sum-row b { font-family: var(--num); color: var(--gold); font-size: 24px; }
.fine { font-size: var(--fs-xs); color: var(--on-dark-soft); line-height: 1.6; }

.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 60; background: var(--white); color: var(--ink); padding: 12px 22px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-float); max-width: calc(100% - 32px); animation: toast-in .35s var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Light panels: checkout, tracking, my orders ---------- */
.panel { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: var(--s4); }
.panel h2 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--s4); }
.panel .muted { color: var(--ink-soft); }
.panel ::selection { background: var(--sky-100); color: var(--navy-900); }
.flow { display: grid; grid-template-columns: 1fr 400px; gap: var(--s5); align-items: start; padding-bottom: var(--s9); }
.flow-side { position: sticky; top: 96px; }
.empty-cart { max-width: 560px; margin: 0 auto var(--s9); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding-block: var(--s7); }
.empty-cart > .ico { width: 44px; height: 44px; color: var(--blue-700); }
.empty-cart h2 { margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: var(--field); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; font-weight: 700; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s; }
.seg input:checked + span { background: var(--navy-900); color: var(--white); }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); }
.f label { font-weight: 700; font-size: 15px; }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; border: 1.5px solid var(--field-line); border-radius: 14px; padding: 10px 16px; background: var(--white); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.f select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23034AB2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 18px; padding-left: 42px; }
.f input::placeholder, .f textarea::placeholder { color: #7a87a3; }
.f textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: #b7c6de; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(3, 74, 178, .14); }
.f .hint { font-size: var(--fs-xs); color: var(--ink-soft); }
.f .err { font-size: var(--fs-xs); color: var(--danger-ink); font-weight: 700; }
.phone-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.phone-channel { display: inline-flex; align-items: center; gap: 4px; color: var(--ok-ink); font-size: 12px; font-weight: 800; line-height: 1.6; }
.phone-channel .ico { width: 17px; height: 17px; }
.phone-whatsapp input { border-color: #98c9a5; }
.phone-notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px; margin-top: 4px; background: #e6f6ea; border: 1px solid #c0e4ca; border-inline-start: 4px solid var(--ok-ink); border-radius: 14px; color: var(--ok-ink); }
.phone-notice-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; background: var(--ok-ink); color: var(--white); border-radius: 50%; }
.phone-notice-icon .ico { width: 23px; height: 23px; }
.phone-notice strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.8; }
.phone-notice p { margin: 4px 0 0; font-size: 13px; line-height: 1.85; color: var(--ok-ink); }
.phone-whatsapp:focus-within .phone-notice { border-color: var(--ok-ink); }
.f.has-err input, .f.has-err select, .f.has-err textarea { border-color: var(--danger-ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.zone-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: calc(var(--s1) * -1) 0 var(--s4); }
.zone-facts div { padding: 10px 14px; border-radius: 12px; background: var(--field); }
.zone-facts small { display: block; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.zone-facts b { font-family: var(--num); font-weight: 700; }
.slots { display: flex; flex-wrap: wrap; gap: var(--s2); }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; }
.slot span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--field-line); font-weight: 700; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.slot span:hover { border-color: var(--blue-500); }
.slot input:checked + span { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.slot input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
/* «في أسرع وقت»: a full-width card leading the windows — gold scooter tile, live dot, estimate under the title. */
.slot-now { flex: 1 1 100%; }
.slot-now > span { display: flex; width: 100%; gap: 14px; min-height: 0; padding: 12px 16px 12px 22px; border-radius: var(--r); background: linear-gradient(100deg, #fff7e3, var(--white) 70%); border-color: var(--gold); }
.slot-now-icon { width: 84px; height: 55px; border-radius: 14px; background: linear-gradient(170deg, var(--gold-hi), var(--gold)); color: var(--navy-900); display: block; overflow: hidden; flex: none; align-self: center; box-shadow: inset 0 -2px 0 rgba(0, 29, 97, .12); transition: transform .35s var(--ease-out); }
/* The rider: drives with exhaust smoke, brakes, turns to the customer and waves, then rides off again (7s loop). */
.rider { --rd: 7s; display: block; width: 100%; height: 100%; }
.rider * { transform-box: view-box; }
.rd-ground { stroke: var(--navy-900); stroke-opacity: .22; stroke-width: 1; }
.rd-dash { stroke: var(--navy-900); stroke-opacity: .38; stroke-width: 1.3; stroke-dasharray: 6 6; animation: rdRoad var(--rd) infinite; }
.rd-body { fill: #fff; stroke: var(--navy-900); stroke-width: .9; stroke-linejoin: round; }
.rd-seat { fill: var(--navy-950); }
.rd-tire { fill: var(--navy-950); }
.rd-hub { fill: #dfe7f3; }
.rd-spoke { stroke: var(--navy-800); stroke-width: 1; }
.rd-wheel { transform-box: fill-box; transform-origin: center; animation: rdWheel var(--rd) infinite; }
.rd-pipe { fill: #8e9ab2; stroke: var(--navy-900); stroke-width: .6; }
.rd-box { fill: var(--blue-700); stroke: var(--navy-900); stroke-width: 1; }
.rd-light { fill: #fff4c4; stroke: var(--navy-950); stroke-width: .6; }
.rd-bar, .rd-shoe { stroke: var(--navy-950); stroke-linecap: round; fill: none; }
.rd-bar { stroke-width: 1.8; }
.rd-shoe { stroke-width: 2.6; }
.rd-leg { stroke: var(--navy-900); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.rd-torso { stroke: var(--blue-700); stroke-width: 7; stroke-linecap: round; }
.rd-sleeve { stroke: var(--blue-700); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.rd-skin { fill: #f2c094; }
.rd-helmet { fill: #fff; stroke: var(--navy-900); stroke-width: 1; }
.rd-visor { fill: var(--navy-900); }
.rd-stripe { stroke: var(--sky-100); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.rd-eye { fill: var(--navy-900); }
.rd-smile { stroke: var(--navy-900); stroke-width: .75; stroke-linecap: round; fill: none; }
.rd-puff { fill: #fff; stroke: rgba(0, 29, 97, .16); stroke-width: .6; opacity: 0; transform-box: fill-box; transform-origin: center; animation: rdPuff .875s ease-out infinite; }
.rd-puff:nth-child(2) { animation-delay: -.29s; }
.rd-puff:nth-child(3) { animation-delay: -.58s; }
.rd-smoke { animation: rdSmoke var(--rd) linear infinite; }
.rd-bounce { animation: rdBounce var(--rd) infinite; }
.rd-tilt { transform-origin: 20px 46px; animation: rdTilt var(--rd) cubic-bezier(.45, 0, .55, 1) infinite; }
.rd-head-side { transform-origin: 41.5px 10px; animation: rdHeadSide var(--rd) cubic-bezier(.45, 0, .55, 1) infinite; }
.rd-head-front { transform-origin: 41.5px 10px; opacity: 0; animation: rdHeadFront var(--rd) cubic-bezier(.45, 0, .55, 1) infinite; }
.rd-arm-drive { animation: rdArmDrive var(--rd) linear infinite; }
.rd-arm-wave { transform-origin: 43.5px 17.5px; opacity: 0; animation: rdArmWave var(--rd) cubic-bezier(.45, 0, .55, 1) infinite; }
.rd-forearm { transform-origin: 48.5px 12.5px; animation: rdWave var(--rd) cubic-bezier(.45, 0, .55, 1) infinite; }
.rider .rd-bounce, .rider .rd-tilt, .rider .rd-wheel, .rider .rd-puff { will-change: transform; }
/* 0–44% ride · 44–52% brake · 52–88% stop, look and wave · 88–100% pull away.
   The brake/pull-away curves start and end at the cruising speed, so there is no jolt at either seam. */
@keyframes rdRoad { 0% { stroke-dashoffset: 0; animation-timing-function: linear; } 44% { stroke-dashoffset: -96; animation-timing-function: cubic-bezier(.3, .44, .55, 1); } 52%, 88% { stroke-dashoffset: -108; animation-timing-function: cubic-bezier(.45, 0, .7, .35); } 100% { stroke-dashoffset: -120; } }
@keyframes rdWheel { 0% { transform: rotate(0); animation-timing-function: linear; } 44% { transform: rotate(-1080deg); animation-timing-function: cubic-bezier(.3, .44, .55, 1); } 52%, 88% { transform: rotate(-1170deg); animation-timing-function: cubic-bezier(.45, 0, .7, .35); } 100% { transform: rotate(-1260deg); } }
@keyframes rdSmoke { 0%, 44% { opacity: 1; } 51%, 88% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes rdPuff { 0% { opacity: .95; transform: translate(0, 0) scale(.45); } 100% { opacity: 0; transform: translate(11px, -7px) scale(1.7); } }
@keyframes rdBounce { 0%, 8%, 16%, 24%, 32%, 40%, 52%, 92%, 100% { transform: translateY(0); animation-timing-function: cubic-bezier(.37, 0, .63, 1); } 4%, 12%, 20%, 28%, 36%, 44%, 96% { transform: translateY(-.6px); animation-timing-function: cubic-bezier(.37, 0, .63, 1); } }
@keyframes rdTilt { 0%, 44% { transform: rotate(0); } 49.5% { transform: rotate(-3.5deg); } 55% { transform: rotate(.8deg); } 59%, 88% { transform: rotate(0); } 92% { transform: rotate(2.2deg); } 97%, 100% { transform: rotate(0); } }
@keyframes rdHeadSide { 0%, 53% { opacity: 1; transform: scaleX(1); } 56.5%, 84.5% { opacity: 0; transform: scaleX(.35); } 88%, 100% { opacity: 1; transform: scaleX(1); } }
@keyframes rdHeadFront { 0%, 54.5% { opacity: 0; transform: scaleX(.35); } 58%, 83% { opacity: 1; transform: scaleX(1); } 86.5%, 100% { opacity: 0; transform: scaleX(.35); } }
@keyframes rdArmDrive { 0%, 54% { opacity: 1; } 56%, 87% { opacity: 0; } 89%, 100% { opacity: 1; } }
@keyframes rdArmWave { 0%, 54% { opacity: 0; transform: rotate(-120deg); } 56% { opacity: 1; transform: rotate(-95deg); } 61%, 82% { opacity: 1; transform: rotate(0); } 87% { opacity: 1; transform: rotate(-110deg); } 89%, 100% { opacity: 0; transform: rotate(-120deg); } }
@keyframes rdWave { 0%, 61% { transform: rotate(0); } 64.5% { transform: rotate(-26deg); } 68% { transform: rotate(16deg); } 71.5% { transform: rotate(-26deg); } 75% { transform: rotate(16deg); } 78.5% { transform: rotate(-22deg); } 81% { transform: rotate(6deg); } 83%, 100% { transform: rotate(0); } }
.slot-now .slot-now-text { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; line-height: 1.4; }
.slot-now-text b { font-size: var(--fs-md); font-weight: 800; }
.slot-now-text small { color: var(--ink-soft); font-weight: 600; font-size: var(--fs-sm); }
.slot-now-pulse { width: 10px; height: 10px; border-radius: 50%; background: #22a447; box-shadow: 0 0 0 0 rgba(34, 164, 71, .5); animation: slotNowPulse 1.8s ease-out infinite; flex: none; }
@keyframes slotNowPulse { 70% { box-shadow: 0 0 0 9px rgba(34, 164, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 164, 71, 0); } }
.slot-now > span:hover .slot-now-icon { transform: translateX(-4px); }
.slot-now input:checked + span { background: var(--navy-900); border-color: var(--navy-900); }
.slot-now input:checked + span small { color: var(--sky-100); }
.slots-or { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; margin: 4px 0 0; color: var(--ink-soft); font-size: var(--fs-xs); font-weight: 700; }
.slots-or::after { content: ""; flex: 1; height: 1px; background: var(--field-line); }
@media (prefers-reduced-motion: reduce) { .slot-now-pulse, .rider * { animation: none; } .rd-smoke { opacity: 0; } .slot-now-icon { transition: none; } }
.pay { display: flex; flex-direction: column; gap: var(--s2); }
.pay-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--navy-900); font-weight: 700; }
.pay-opt .ico { color: var(--ok-ink); }
.pay-opt.off { border-color: var(--field-line); color: var(--ink-soft); }
.pay-opt small { font-weight: 700; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--field); }
.summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 6px; }
.summary-line .num { font-weight: 700; white-space: nowrap; }
.summary-line .qty-x { color: var(--ink-soft); font-family: var(--num); font-size: var(--fs-sm); }
.summary-line .tbd { font-family: var(--font); color: var(--ink-soft); font-weight: 700; }
/* A line the branch couldn't supply: struck through, with the branch's note, and out of the total */
.summary-line.is-missing > span:first-child { display: grid; gap: 2px; }
.summary-line.is-missing s { color: var(--ink-soft); text-decoration-thickness: 1.5px; }
.summary-line .missing-note { color: var(--danger-ink); font-size: var(--fs-xs); font-weight: 700; }
.summary-line .missing-tag { flex: none; padding: 2px 10px; border-radius: 999px; background: #fdecea; color: var(--danger-ink); font-size: var(--fs-xs); font-weight: 800; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 10px; border-top: 1.5px solid var(--field); font-size: var(--fs-md); font-weight: 800; }
.summary-total .num { font-size: 26px; color: var(--blue-700); }
.alert { padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 14px; line-height: 1.6; }
.alert-warn { background: #fff4d6; color: #6b4500; }
.alert-err { background: #fde8e6; color: #921c12; }
.alert-ok { background: #e6f6ea; color: var(--ok-ink); }
.alert-dev { background: var(--field); color: var(--blue-700); border: 1.5px dashed var(--blue-500); }

.otp-boxes { display: flex; gap: 8px; direction: ltr; justify-content: center; margin: 20px 0; }
.otp-boxes input { width: 52px; height: 62px; text-align: center; font-family: var(--num); font-size: 24px; font-weight: 700; border: 1.5px solid var(--field-line); border-radius: 14px; color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.otp-boxes input:focus { outline: 0; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(3, 74, 178, .14); }
.otp-panel { text-align: center; }
.otp-emblem { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--field); color: var(--blue-700); transition: background .25s, color .25s; }
.otp-emblem svg { position: absolute; width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.otp-emblem .otp-ring { width: 68px; height: 68px; fill: none; stroke-width: 1.5; stroke-dasharray: 42 140; transform: rotate(-90deg); opacity: .4; }
.otp-emblem .otp-check { opacity: 0; stroke-dasharray: 30; stroke-dashoffset: 30; }
.otp-panel .otp-boxes { gap: clamp(4px, 1.5vw, 8px); }
.otp-panel .otp-boxes input { min-width: 0; width: clamp(30px, 9vw, 52px); padding: 0; transition: border-color .2s, box-shadow .2s, background .2s, color .2s, transform .2s; }
.otp-boxes input[data-filled="true"] { border-color: var(--blue-700); background: #f4f8ff; animation: otp-digit .18s ease-out; }
.otp-submit { position: relative; overflow: hidden; transition: background .25s, opacity .2s; }
.otp-panel .otp-submit:disabled { opacity: 1; cursor: default; background: var(--field); color: var(--ink-soft); }
.otp-panel[data-state="editing"] .otp-submit:disabled, .otp-panel[data-state="error"] .otp-submit:disabled { background: linear-gradient(to right, var(--sky-100) var(--otp-progress, 0%), var(--field) var(--otp-progress, 0%)); }
.otp-submit::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); opacity: 0; }
.otp-status { min-height: 24px; margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-soft); }
.otp-error { color: var(--danger-ink); font-size: var(--fs-sm); font-weight: 700; margin: -4px 0 14px; }
.otp-panel[data-state="verifying"] .otp-ring { opacity: 1; animation: otp-spin 1s linear infinite; }
.otp-panel[data-state="verifying"] .otp-submit { background: var(--navy-900); color: var(--white); }
.otp-panel[data-state="verifying"] .otp-submit::before { opacity: 1; animation: otp-scan 1.2s ease-in-out infinite; }
.otp-panel[data-state="error"] .otp-emblem { color: var(--danger-ink); background: #fff0ee; }
.otp-panel[data-state="error"] .otp-boxes { animation: otp-shake .35s ease-in-out; }
.otp-panel[data-state="error"] .otp-boxes input { border-color: var(--danger-ink); color: var(--danger-ink); background: #fff7f6; }
.otp-panel[data-state="error"] .otp-boxes input:focus { box-shadow: 0 0 0 4px rgba(168,35,26,.12); }
.otp-panel[data-state="success"] .otp-emblem { color: var(--ok-ink); background: #e6f6ea; }
.otp-panel[data-state="success"] .otp-lock { opacity: 0; }
.otp-panel[data-state="success"] .otp-check { opacity: 1; animation: otp-check .35s ease-out forwards; }
.otp-panel[data-state="success"] .otp-ring { stroke-dasharray: 183; opacity: 1; }
.otp-panel[data-state="success"] .otp-boxes input { animation: otp-success .3s ease-out both; animation-delay: calc(var(--otp-index) * 75ms); }
.otp-panel[data-state="success"] .otp-submit { background: var(--ok-ink); color: var(--white); }
.otp-panel[data-state="success"] .small-note { visibility: hidden; }
@keyframes otp-spin { to { transform: rotate(270deg); } }
@keyframes otp-scan { from { transform: translateX(-100%); } to { transform: translateX(440%); } }
@keyframes otp-digit { 50% { transform: translateY(-3px); } }
@keyframes otp-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes otp-check { to { stroke-dashoffset: 0; } }
@keyframes otp-success { 0% { background: var(--field); } 60% { transform: translateY(-4px); } 100% { background: var(--ok-ink); border-color: var(--ok-ink); color: white; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .otp-panel *, .otp-panel *::before { animation: none !important; transition: none !important; }
  .otp-panel[data-state="success"] .otp-check { stroke-dashoffset: 0; }
  .otp-panel[data-state="success"] .otp-boxes input { background: var(--ok-ink); border-color: var(--ok-ink); color: white; box-shadow: none; }
}

/* Tracking (1h) */
.track { max-width: 760px; margin-inline: auto; padding-bottom: var(--s9); }
.track-head { text-align: center; padding-block: var(--s2) var(--s6); }
.track-head .num { color: var(--on-dark-soft); font-size: 15px; }
.track-head h1 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.5rem); font-weight: 900; color: var(--gold); margin-top: 6px; }
.track-head p { color: var(--on-dark-soft); margin-top: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-inline-start: 42px; padding-bottom: 24px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 10px; top: 28px; bottom: -2px; width: 2px; background: var(--field-line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c3cfe2; background: var(--white); display: grid; place-items: center; }
.timeline li.done .dot { background: var(--navy-900); border-color: var(--navy-900); }
.timeline li.done .dot::after { content: ""; width: 9px; height: 5px; border: solid var(--white); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.timeline li.done::before { background: var(--navy-900); }
.timeline li.now .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(240, 168, 8, .22); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(240, 168, 8, .08); } }
.timeline b { display: block; font-weight: 800; }
.timeline small { color: var(--ink-soft); font-size: var(--fs-sm); }
.timeline li.todo b { color: #7a87a3; font-weight: 700; }
/* Live tracking (order.php): the step that just changed pops in, and a quiet note says the page updates itself. */
.live-note { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live-ping 2s infinite; }
@keyframes live-ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.timeline li.is-new .dot { animation: step-in .7s var(--ease-out) both; }
.timeline li.is-new b { animation: step-text .7s var(--ease-out) both; }
.timeline li.now.is-new .dot { animation: step-in .7s var(--ease-out) both, pulse 2s .7s infinite; }
.track-head h1.is-new { animation: step-text .6s var(--ease-out) both; }
@keyframes step-in { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes step-text { from { opacity: 0; transform: translateY(6px); } }
.notify-btn { margin-top: var(--s2); display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-dark-strong); border-radius: 999px; background: var(--glass); color: var(--white); font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; transition: background-color .2s; }
.notify-btn:hover { background: var(--glass-2); }
/* The banner a status change brings while the page is in front. */
.track-toast { position: fixed; z-index: 60; inset-inline: 16px; top: 16px; margin-inline: auto; max-width: 460px; padding: 14px 18px; border-radius: 16px; background: var(--gold); color: var(--navy-900); font-weight: 800; text-align: center; box-shadow: 0 18px 40px rgba(0, 8, 30, .35); opacity: 0; transform: translateY(-120%); transition: transform .45s var(--ease-out), opacity .3s; pointer-events: none; }
.track-toast.is-quiet { background: var(--white); font-weight: 700; }
.track-toast.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .live-dot, .timeline li.is-new .dot, .timeline li.is-new b, .track-head h1.is-new { animation: none; } }
.stop { padding: 12px 16px; border-radius: 14px; background: #fde8e6; color: #921c12; font-weight: 700; margin-bottom: var(--s4); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.actions .btn-line, .btn-line { background: transparent; border: 1.5px solid var(--navy-900); color: var(--navy-900); }
.btn-line:hover { background: var(--field); }
.btn-danger { background: transparent; border: 1.5px solid #d6453a; color: var(--danger-ink); }
.btn-danger:hover { background: #fde8e6; }

/* My orders (1i) */
.orders { max-width: 760px; margin-inline: auto; padding-bottom: var(--s9); }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s4); padding: var(--s4) 0; border-top: 1.5px solid var(--field); }
.order-row:first-of-type { border-top: 0; padding-top: 0; }
.order-row .no { font-family: var(--num); font-weight: 700; }
.order-row .st { justify-self: end; font-size: var(--fs-xs); font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--field); }
.order-row .st.live { background: #fff4d6; color: #6b4500; }
.order-row .st.done { background: #e6f6ea; color: var(--ok-ink); }
.order-row .what { color: var(--ink-soft); font-size: var(--fs-sm); grid-column: 1 / -1; }
.order-row .row-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.order-row .row-actions .btn { min-height: 42px; padding: 0 18px; font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy-950); padding-block: var(--s8) var(--s6); border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s6); align-items: start; }
.foot-brand img { height: 76px; width: auto; max-width: 180px; object-fit: contain; }
.slogan { margin-top: var(--s3); font-size: var(--fs-lg); font-weight: 800; color: var(--gold); }
.foot-pitch { margin-top: 6px; color: var(--on-dark-soft); max-width: 30ch; font-size: 15px; }
.site-foot h2 { font-size: var(--fs-sm); font-weight: 800; color: var(--white); margin-bottom: var(--s3); }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--on-dark-soft); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .15s; }
.foot-links a:hover { color: var(--gold); }
.foot-branches { display: flex; flex-direction: column; gap: var(--s3); color: var(--on-dark-soft); font-size: 15px; }
.foot-branches p { display: flex; flex-direction: column; }
.foot-branches b { color: var(--white); }
.foot-branches a { color: var(--sky-100); text-decoration: none; }
.foot-note { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); color: rgba(207, 228, 247, .7); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.foot-credit { letter-spacing: .02em; }
.foot-credit a { color: var(--white); font-weight: 800; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .25s ease; }
.foot-credit a span { display: inline-block; margin-inline-start: 3px; color: var(--gold); transition: transform .2s ease; }
.foot-credit a:hover, .foot-credit a:focus-visible { color: var(--gold); background-size: 100% 1px; }
.foot-credit a:hover span, .foot-credit a:focus-visible span { transform: translate(2px, -2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .ways { grid-template-columns: repeat(3, 1fr); }
  .ways h2 { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .flow { grid-template-columns: 1fr; }
  .flow-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }
  .main-nav { display: none; }
  .mobile-nav { display: flex; gap: var(--s5); overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; font-size: var(--fs-sm); font-weight: 700; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { white-space: nowrap; }
  .mobile-nav a[aria-current="page"] { color: var(--white); border-color: var(--gold); }
  .is-stuck .mobile-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: var(--s4) var(--s7); }
  .hero-art { height: 380px; order: 2; }
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: flex; position: fixed; inset: auto 0 0 0; top: auto; z-index: 45; max-height: 85svh; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--navy-900); border-color: var(--line-dark-strong); padding-bottom: calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0, 8, 30, .5); animation: sheet .35s var(--ease-out); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .filter-open { display: inline-flex; }
  .list-head .filter-open { min-height: 42px; padding: 0 16px; }
  .cat-strip { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1) var(--s4); padding-inline: var(--gutter); scrollbar-width: none; }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-strip .chip { flex: none; }
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; aspect-ratio: 4 / 3; }
  .buy-bar { position: fixed; inset: auto 0 0 0; z-index: 30; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--navy-900); border-top: 1px solid var(--line-dark); box-shadow: 0 -10px 30px rgba(0, 8, 30, .35); }
  .has-buybar { padding-bottom: 92px; }
  .branches-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ways { grid-template-columns: 1fr; padding: var(--s6) var(--s5); gap: var(--s5); }
  .way { grid-template-columns: 30px 1fr; column-gap: var(--s3); }
  .way .ico { grid-row: span 2; margin: 2px 0 0; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 560px) {
  .logo-link img { height: 50px; }
  .is-stuck .logo-link img { height: 42px; }
  .head-row { padding-block: 10px; }
  .cart-pill > span:not(.cart-count) { display: none; }
  .cart-pill { padding: 0 12px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-sub { font-size: var(--fs-base); }
  .search { padding-inline-start: 14px; }
  .search input { font-size: 16px; }
  .search button { padding: 0 18px; min-height: 44px; }
  .hero-art:not(.stage) { display: none; }
  /* Phones keep the rooster, smaller and above the heading: everything on the stage is sized from its height (cqh). */
  .hero-art.stage { order: -1; height: clamp(210px, 58vw, 260px); margin-bottom: var(--s3); }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: var(--s7); }
  /* Two columns stack tall: the light runs down the middle instead of across. */
  .cats::before { inset: -12px -4% calc(var(--s7) - 12px); background: radial-gradient(70% 22% at 70% 8%, rgba(240, 168, 8, .22), transparent 70%), radial-gradient(60% 50% at 50% 45%, rgba(63, 126, 219, .5), transparent 70%), radial-gradient(60% 30% at 40% 90%, rgba(120, 180, 255, .35), transparent 70%); }
  .cat { padding: 16px; min-height: 48px; }
  .cat span { display: none; }
  .section { padding-block: var(--s7); }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rail { grid-auto-columns: 46%; gap: 10px; }
  .pcard-body { padding: 10px 10px 12px; }
  .pcard h3 { font-size: 15px; }
  .price .num { font-size: 16px; }
  .add-btn { width: 38px; height: 38px; }
  .two, .zone-facts { grid-template-columns: 1fr; }
  .otp-boxes { gap: 6px; }
  .otp-boxes input { width: 44px; height: 56px; }
  .page-search { margin-bottom: var(--s4); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Small shared utilities */
.small-note { font-size: var(--fs-xs); margin-top: 10px; }
.link-dark { color: var(--blue-700); }
.link-dark:hover { color: var(--navy-900); }
.panel .tbd, .tbd { font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); }
.f-flush { margin-bottom: 0; }
.f-top { margin-top: var(--s4); }
.actions.split { justify-content: space-between; }
.side-gap { margin-top: var(--s4); }
.flow-side [data-submit] { margin-top: var(--s4); }
picture { display: contents; }

/* Home: one product row per category */
.cat-section { padding-bottom: var(--s7); scroll-margin-top: 96px; }
.cat-section + .cat-section { padding-top: 0; }
.sec-sub { color: var(--on-dark-soft); font-size: var(--fs-sm); margin-top: 2px; }
.cat-section .sec-head { align-items: flex-end; }

/* Notice bar: announcement or store closed */
.notice-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px var(--gutter); background: var(--gold); color: var(--navy-900); font-weight: 800; font-size: var(--fs-sm); text-align: center; line-height: 1.5; }
.notice-bar.is-closed { background: #ffe1dc; color: #7d1d14; }
.notice-bar .ico { width: 18px; height: 18px; }

/* Floating WhatsApp button: WhatsApp's own green and glyph, with a label on wide screens */
.back-to-top { position: fixed; z-index: 35; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 25px rgba(0, 8, 30, .35); cursor: pointer; transition: transform .2s var(--ease-out), background-color .2s; }
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:hover { background: var(--gold-hi); transform: translateY(-3px); }
.back-to-top:active { transform: scale(.95); }
.has-buybar .back-to-top { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } .back-to-top:hover, .back-to-top:active { transform: none; } }
.wa-float { position: fixed; z-index: 35; bottom: calc(20px + env(safe-area-inset-bottom)); left: 20px; display: flex; align-items: center; gap: 12px; height: 60px; padding: 6px; padding-inline-start: 20px; border-radius: 999px; background: linear-gradient(135deg, #2fe274 0%, #25d366 45%, #1aae52 100%); color: #fff; text-decoration: none; box-shadow: 0 14px 30px rgba(10, 120, 60, .35), 0 3px 8px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s; }
.wa-float:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 18px 36px rgba(10, 120, 60, .45), 0 4px 10px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.wa-float:active { transform: translateY(-1px) scale(.98); }
.wa-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wa-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.wa-text b { font-size: 15px; font-weight: 800; }
.wa-text small { font-size: 12px; font-weight: 600; opacity: .9; }
.wa-badge { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #25d366; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.wa-badge svg { width: 28px; height: 28px; }
/* a soft ring every few seconds, so it reads as "live" without nagging */
.wa-badge::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); opacity: 0; animation: wa-ring 4s 2s ease-out infinite; }
@keyframes wa-ring { 0% { opacity: .9; transform: scale(.85); } 40%, 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 560px) {
  .wa-float { padding: 6px; height: 60px; }
  .wa-text { display: none; }
}
.has-buybar .wa-float { bottom: calc(96px + env(safe-area-inset-bottom)); }
.drawer.open ~ .wa-float { display: none; }

/* Footer socials */
.socials { display: flex; gap: 8px; margin-top: var(--s4); }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark-strong); color: var(--sky-100); transition: background-color .15s, color .15s; }
.socials a:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

/* Information pages */
.info-page { padding-bottom: var(--s9); }
.prose { max-width: 820px; }
.prose p { font-size: 17px; line-height: 1.9; margin-bottom: var(--s4); max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
.contact-grid .panel + .panel { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.contact-list li { display: grid; grid-template-columns: 22px 90px 1fr; align-items: center; gap: var(--s3); }
.contact-list .ico { color: var(--blue-700); }
.contact-list span { color: var(--ink-soft); font-weight: 700; }
.contact-list a { color: var(--blue-700); font-weight: 800; text-decoration: none; justify-self: start; }
.branch-line { display: flex; flex-direction: column; gap: 2px; padding-block: var(--s3); border-top: 1.5px solid var(--field); }
.branch-line:first-of-type { border-top: 0; padding-top: 0; }
.branch-line span { color: var(--ink-soft); }
.branch-line a { color: var(--blue-700); font-weight: 700; }
.actions.center { justify-content: center; }
.not-found { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.not-found h1 { font-size: var(--fs-xl); font-weight: 900; }
.not-found .search { width: 100%; margin-block: var(--s3); }
.nf-code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; color: var(--gold); line-height: 1; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Checkout: coupon and discount */
.coupon { margin: var(--s4) 0 0; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; font-family: var(--num); letter-spacing: .04em; }
/* The code is typed left-to-right in Latin, but the empty-field hint is Arabic: right-aligned, Cairo, no letter spacing (it breaks Arabic joins). */
.coupon-row input:placeholder-shown { direction: rtl; }
.coupon-row input::placeholder { font-family: var(--font); letter-spacing: 0; text-transform: none; }
.coupon-row .btn { min-height: 50px; padding: 0 18px; }
.coupon .ok-msg { font-size: var(--fs-xs); color: var(--ok-ink); font-weight: 700; }
.discount-line { color: var(--ok-ink); font-weight: 700; }
.discount-line .num { color: var(--ok-ink); }
.free-hint { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #e6f6ea; color: var(--ok-ink); font-size: var(--fs-xs); font-weight: 700; }
@media (hover: none) { .rail-arrow { display: none; } }

/* Loading feedback stays below the navigation, so the menu remains usable. */
.page-loading[hidden] { display: none; }
.page-loading { position: fixed; inset: 0; z-index: 20; overflow: auto; background: #001d61; }
.page-loading-inner { padding-block: 34px 60px; }
.loading-label { color: #cfe4f7; font-size: .9rem; font-weight: 700; }
.loading-shapes { margin-top: 20px; }
.loading-heading, .loading-line, .loading-picture, .loading-card-line, .image-loading::after {
  background: linear-gradient(100deg, #123b84 20%, #285ca6 45%, #123b84 70%);
  background-size: 220% 100%; animation: loading-shimmer 1.8s ease-in-out infinite;
}
.loading-heading { width: min(300px, 70%); height: 30px; border-radius: 8px; }
.loading-line { width: min(440px, 85%); height: 15px; margin-top: 16px; border-radius: 6px; }
.loading-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.loading-card { overflow: hidden; border: 1px solid rgba(207,228,247,.12); border-radius: 16px; background: #082b70; padding-bottom: 20px; }
.loading-picture { aspect-ratio: 1.25; }
.loading-card-line { height: 15px; margin: 18px 16px 0; border-radius: 5px; }
.loading-card-line.short { width: 48%; margin-top: 12px; }
.pcard-media { position: relative; }
.image-loading::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
@keyframes loading-shimmer { to { background-position: -220% 0; } }
@media (max-width: 700px) { .loading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .page-loading-inner { padding-top: 24px; } }
@media (prefers-reduced-motion: reduce) { .loading-heading, .loading-line, .loading-picture, .loading-card-line, .image-loading::after { animation: none; } }

.hero-watermark { height: auto; object-fit: contain; }
/* Phone navigation and footer; desktop rules stay above unchanged. */
@media (max-width: 700px) {
  .head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .head-start { grid-column: 2; justify-content: center; }
  .cart-pill { grid-column: 3; justify-self: end; }
  .mobile-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; font-size: clamp(11px, 3.2vw, 14px); }
  .mobile-nav a { text-align: center; padding: 10px 2px; }
  .is-stuck .mobile-nav { display: none; }
  .foot-grid { grid-template-columns: 1fr; text-align: center; gap: var(--s6); }
  .foot-brand { display: flex; flex-direction: column; align-items: center; }
  .foot-pitch { margin-inline: auto; }
  .site-foot .socials { justify-content: center; }
  .foot-links, .foot-branches, .foot-branches p { align-items: center; }
  .site-foot h2 { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; }
  .site-foot h2::after { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
  .foot-links a { padding-block: 3px; }
  .foot-branches { gap: var(--s4); }
  .foot-branches p { width: min(100%, 320px); gap: 4px; margin-inline: auto; }
  .foot-branches p + p { padding-top: var(--s4); border-top: 1px solid var(--line-dark); }
  .foot-branches a { display: inline-block; padding: 5px 14px; font-family: var(--num); font-variant-numeric: tabular-nums; }
}
