/* Shouffing — web design system.
 *
 * Same structure as the Tonoloc site (tokens, light/dark swap, RTL via logical
 * properties), recoloured with the Shouffing brand: the logo's deep blue
 * #001993 and its lighter #0071BC.
 *
 * Hand-written, no build step: one file, served as-is by nginx.
 */

/* ---------------------------------------------------------------- tokens */
:root {
  --surface: #f7f8fd;
  --surface-dim: #d3d9f2;
  --sc-lowest: #ffffff;
  --sc-low: #f0f2fb;
  --sc: #e7eaf8;
  --sc-high: #dde2f5;
  --sc-highest: #d4daf1;

  --on-surface: #10162b;
  --on-surface-variant: #454a5e;
  --muted: #6f7488;
  --outline-variant: #d6d9e6;

  --primary: #001993;
  --on-primary: #ffffff;
  --primary-container: #1631b8;
  --primary-hover: #10279f;
  --interactive: #1d4ed8;
  --accent: #0071bc;

  --success: #0b6b47;
  --success-ink: #12a36b;
  --success-bg: #e3f6ee;
  --warning: #9a4a00;
  --warning-bg: #fff1df;
  --error: #b3261e;
  --error-bg: #fde3e1;
  --sale: #d1243b;
  --sale-bg: #ffe4e8;

  --r-sm: .25rem; --r: .5rem; --r-md: .75rem; --r-lg: 1rem; --r-xl: 1.5rem; --r-full: 9999px;
  --s-xs: .25rem; --s-sm: .5rem; --s-md: 1rem; --s-lg: 1.5rem; --s-xl: 2rem;

  --head: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --lift-1: 0 1px 3px 0 rgb(12 20 60 / .06), 0 1px 2px -1px rgb(12 20 60 / .05);
  --lift-2: 0 12px 20px -6px rgb(12 20 60 / .12), 0 4px 8px -4px rgb(12 20 60 / .06);
  --lift-3: 0 22px 36px -10px rgb(12 20 60 / .18);

  --container: 1280px;
  --header-h: 72px;
  --header-bg: rgb(247 248 253 / .88);
  --footer-bg: #0a0f24;
  --frost-bg: rgb(10 15 36 / .66);
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23454a5e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
:root[dir="rtl"] { --head: 'Cairo', system-ui, sans-serif; --body: 'Tajawal', system-ui, sans-serif; }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--on-surface);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .h2, .h3, .h4 { font-family: var(--head); margin: 0; letter-spacing: -.02em; }
h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.15; }
h2, .h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; }
h3, .h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.27; letter-spacing: -.01em; }
h4, .h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.33; letter-spacing: -.005em; }
h4, .h4 { margin-bottom: .25rem; }
@media (max-width: 767px) { h1 { font-size: 2rem; } h2, .h2 { font-size: 1.5rem; } h3, .h3 { font-size: 1.25rem; } }
p { margin: 0 0 var(--s-md); }
a { color: var(--interactive); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 3px solid var(--interactive); outline-offset: 2px; border-radius: var(--r-sm); }
.skip { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; z-index: 100; inset-block-start: 0; inset-inline-start: 0; background: var(--primary); color: #fff; padding: .75rem 1rem; }
/* Arrows point "forward" in both reading directions. */
:root[dir="rtl"] .flip svg { transform: scaleX(-1); }
.flip { display: inline-flex; }

/* --------------------------------------------------------------- layout */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--s-md); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-lg); } }
@media (min-width: 1024px) { .wrap { padding-inline: 3rem; } }
.narrow { max-width: 860px; }
.section { padding-block: 3.5rem; }
.section--tight { padding-block: 2rem; }
@media (max-width: 767px) { .section { padding-block: 2.5rem; } }
.stack > * + * { margin-top: var(--s-md); }
.stack-lg > * + * { margin-top: var(--s-lg); }
.row { display: flex; align-items: center; gap: var(--s-sm); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); }
.wrap-row { display: flex; flex-wrap: wrap; gap: var(--s-sm); align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.grid { display: grid; gap: var(--s-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-md); }
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-lg); } }
.layout-browse .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .layout-browse .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-shops { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-md); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-md); flex-wrap: wrap; margin-bottom: var(--s-lg); }
.section-intro { max-width: 58ch; margin-bottom: var(--s-xl); }
.count { font-weight: 500; }
.layout-browse { display: grid; gap: var(--s-xl); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .layout-browse { grid-template-columns: 280px 1fr; align-items: start; } }
.layout-app { display: grid; gap: var(--s-xl); grid-template-columns: 1fr; }
@media (min-width: 900px) { .layout-app { grid-template-columns: 250px 1fr; align-items: start; } }
.layout-product { display: grid; gap: var(--s-xl); grid-template-columns: 1fr; margin-top: var(--s-md); }
@media (min-width: 960px) { .layout-product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
/* Grid children default to min-width:auto, so one long <option> or word
 * would widen the column past a phone screen. */
.layout-browse > *, .layout-app > *, .layout-product > *, .layout-reviews > *, .hero-grid > * { min-width: 0; }
.select { max-width: 100%; }
.layout-reviews { display: grid; gap: var(--s-xl); grid-template-columns: 1fr; }
@media (min-width: 900px) { .layout-reviews { grid-template-columns: 1fr 360px; align-items: start; } }

/* ------------------------------------------------------------ typography */
.micro { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--head); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.lead { font-size: 1.125rem; color: var(--on-surface-variant); }
.small { font-size: .875rem; } .tiny { font-size: .75rem; }
.dim { color: var(--on-surface-variant); } .dimmer { color: var(--muted); }
.strong { font-weight: 600; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------------- cards */
.card { background: var(--sc-lowest); border: 1px solid var(--outline-variant); border-radius: var(--r-lg); box-shadow: var(--lift-1); }
.card-pad { padding: var(--s-lg); }
.card-pad-sm { padding: var(--s-md); }
.card-link { display: block; color: inherit; text-decoration: none; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.card-link:hover { text-decoration: none; box-shadow: var(--lift-2); border-color: var(--surface-dim); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card-link, .card-link:hover { transition: none; transform: none; } }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-size: .9375rem; font-weight: 600;
  padding: .75rem 1.25rem; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--sc); color: var(--primary); }
.btn-secondary:hover { background: var(--sc-high); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--outline-variant); }
.btn-outline:hover { background: var(--sc-low); border-color: var(--surface-dim); }
.btn-ghost { background: transparent; color: var(--on-surface-variant); }
.btn-ghost:hover { background: var(--sc-low); }
.btn-white { background: #fff; color: #001993; }
.btn-white:hover { background: #eef1ff; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm { padding: .5rem .875rem; font-size: .8125rem; border-radius: var(--r); }
.btn-block { display: flex; width: 100%; }
.btn.is-fav { color: var(--sale); }
.btn.is-fav svg { fill: currentColor; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; padding: 0; cursor: pointer;
  background: transparent; color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant); border-radius: var(--r-md);
}
.icon-btn:hover { background: var(--sc-low); color: var(--on-surface); text-decoration: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--interactive); cursor: pointer; font: inherit; }
.link-btn:hover { text-decoration: underline; }

/* ----------------------------------------------------------- chips, tags */
.chip {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem .875rem; border-radius: var(--r-full);
  background: var(--sc); color: var(--on-surface-variant);
  font-size: .875rem; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--sc-high); text-decoration: none; }
.chip.is-active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip-x { background: var(--sc-lowest); border-color: var(--outline-variant); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .3125rem .625rem; border-radius: var(--r-full); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-neutral { background: var(--sc); color: var(--on-surface-variant); }
.badge-primary { background: var(--primary); color: var(--on-primary); }
.badge-sale { background: var(--sale); color: #fff; }

/* Radio/checkbox styled as a pill. */
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; padding: .45rem .8rem; border-radius: var(--r-full); background: var(--sc); color: var(--on-surface-variant); font-size: .875rem; font-weight: 500; border: 1px solid transparent; }
.pill input:checked + span { background: var(--primary); color: var(--on-primary); }
.pill input:focus-visible + span { outline: 3px solid var(--interactive); outline-offset: 2px; }

/* ---------------------------------------------------------------- prices */
.price { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; color: var(--primary); }
.price-lg { font-size: 1.5rem; }
.price-xl { font-size: 2.25rem; }
.price-was { color: var(--muted); font-size: .875rem; }

/* ---------------------------------------------------------------- forms */
.field { display: block; margin-bottom: var(--s-md); }
.field > label, .label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 600; color: var(--on-surface); }
.input, .select, .textarea {
  width: 100%; padding: .75rem .875rem; font-family: var(--body); font-size: 1rem; color: var(--on-surface);
  background: var(--sc-lowest); border: 1px solid var(--outline-variant); border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--interactive); box-shadow: 0 0 0 3px rgb(29 78 216 / .15); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.textarea { min-height: 84px; resize: vertical; }
.select { appearance: none; padding-inline-end: 2.25rem; background-image: var(--caret); background-repeat: no-repeat; background-position: right .75rem center; }
:root[dir="rtl"] .select { background-position: left .75rem center; }
.select-sm { width: auto; padding-block: .45rem; font-size: .875rem; }
.input-code { font-family: var(--head); font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.hint { font-size: .8125rem; color: var(--muted); margin: .375rem 0 0; }
.check { display: flex; align-items: flex-start; gap: .625rem; cursor: pointer; font-size: .9375rem; }
.check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.grid-form { display: grid; gap: 0 var(--s-md); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-form { grid-template-columns: 1fr 1fr; } .grid-form .span-2 { grid-column: span 2; } }
.price-range { display: flex; align-items: center; gap: .5rem; }
.alert { display: flex; align-items: flex-start; gap: .625rem; padding: .875rem 1rem; border-radius: var(--r-md); font-size: .9375rem; margin-bottom: var(--s-sm); }
.alert svg { flex: none; margin-top: .1rem; }
.alert-error { background: var(--error-bg); color: var(--error); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-info { background: var(--sc); color: var(--on-surface-variant); }
.flashes { margin-top: var(--s-md); }

/* --------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--outline-variant); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-md); min-height: var(--header-h); flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--primary); white-space: nowrap; }
:root[dir="rtl"] .brand-name { font-family: 'Space Grotesk', system-ui, sans-serif; }
.brand-tag { font-family: var(--head); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.logo-dark { display: none; }
.nav { display: none; gap: .125rem; }
@media (min-width: 1180px) { .nav { display: flex; } }
.nav a { padding: .5rem .7rem; border-radius: var(--r); color: var(--on-surface-variant); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--sc); color: var(--on-surface); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; background: var(--sc); }
.header-search { flex: 1 1 220px; min-width: 180px; max-width: 340px; display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; border: 1px solid var(--outline-variant); border-radius: var(--r-full); background: var(--sc-lowest); color: var(--muted); }
.header-search input { border: 0; outline: 0; background: transparent; padding: .6rem 0; width: 100%; font: inherit; font-size: .9rem; color: var(--on-surface); }
.header-search:focus-within { border-color: var(--interactive); box-shadow: 0 0 0 3px rgb(29 78 216 / .12); }
@media (max-width: 899px), (min-width: 1180px) { .hide-md { display: none !important; } }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { padding: .5rem .875rem; font-size: .875rem; }
.show-xs { display: none; }
@media (max-width: 599px) { .hide-xs { display: none !important; } .show-xs { display: inline; } }
@media (max-width: 767px) { .hide-sm { display: none !important; } }
@media (max-width: 599px) {
  .brand-tag { display: none; } .brand img { width: 38px; height: 38px; } .brand-name { font-size: 1.15rem; }
  .header-actions { gap: .375rem; } .header-actions .btn { padding: .5rem .7rem; font-size: .8125rem; }
}
.select-lang { width: auto; font-size: .8125rem; border-radius: var(--r); padding-block: .45rem; padding-inline-start: .7rem; padding-inline-end: 2rem; }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-md); background: transparent; color: var(--on-surface); border: 1px solid var(--outline-variant); cursor: pointer; }
@media (min-width: 1180px) { .burger { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--outline-variant); background: var(--sc-lowest); }
.mobile-nav.open { display: block; }
.mobile-nav > a, .mobile-nav-btn { display: block; width: 100%; text-align: start; padding: .875rem var(--s-md); color: var(--on-surface); text-decoration: none; border: 0; border-bottom: 1px solid var(--sc); font: inherit; font-weight: 500; background: none; cursor: pointer; }
.mobile-nav > a:hover { background: var(--sc-low); text-decoration: none; }
.mobile-nav form { margin: 0; }
.mobile-search { display: flex; align-items: center; gap: .5rem; margin: .75rem var(--s-md); padding: 0 .75rem; border: 1px solid var(--outline-variant); border-radius: var(--r-full); color: var(--muted); }
.mobile-search input { border: 0; outline: 0; background: transparent; padding: .65rem 0; width: 100%; font: inherit; color: var(--on-surface); }
.mobile-langs { padding: .75rem var(--s-md); border-bottom: 1px solid var(--sc); gap: .375rem; }
.avatar { width: 44px; height: 44px; border-radius: var(--r-md); flex: none; background: var(--sc); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 1.125rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: .875rem; border-radius: var(--r); }
.avatar-lg { width: 56px; height: 56px; font-size: 1.4rem; border-radius: var(--r-lg); }
.avatar-xl { width: 112px; height: 112px; font-size: 2.5rem; border-radius: var(--r-xl); border: 4px solid var(--sc-lowest); box-shadow: var(--lift-2); }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(900px 420px at 80% -10%, rgb(0 113 188 / .65), transparent 62%),
    linear-gradient(135deg, #000c52 0%, #001993 42%, #0a37b8 76%, #0071bc 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / .9) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .9) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 15%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 15%, #000 10%, transparent 72%);
}
.hero-grid { display: grid; gap: var(--s-xl); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hero-inner { padding-block: 4.5rem 4rem; max-width: 60ch; }
@media (max-width: 767px) { .hero-inner { padding-block: 2.5rem 3rem; } }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: rgb(255 255 255 / .86); max-width: 54ch; margin-top: var(--s-md); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--s-md) var(--s-lg); margin-top: var(--s-lg); }
.hero-trust > div { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: rgb(255 255 255 / .92); }
.hero--small .hero-inner { padding-block: 3.5rem 3rem; }
/* Four real product photos, fanned like cards on a table. */
.hero-mosaic { display: none; position: relative; height: 360px; margin-block: 2.5rem 4rem; }
@media (min-width: 1024px) { .hero-mosaic { display: block; } }
.hero-mosaic .tile { position: absolute; width: 46%; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 24px 48px -12px rgb(0 0 0 / .45); border: 4px solid rgb(255 255 255 / .9); background: #fff; }
.hero-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .t0 { inset-inline-start: 4%; top: 6%; transform: rotate(-6deg); z-index: 2; }
.hero-mosaic .t1 { inset-inline-start: 46%; top: 0; transform: rotate(5deg); z-index: 3; }
.hero-mosaic .t2 { inset-inline-start: 22%; top: 42%; transform: rotate(3deg); z-index: 4; width: 40%; }
.hero-mosaic .t3 { inset-inline-start: 60%; top: 48%; transform: rotate(-4deg); z-index: 1; width: 36%; }
.hero-badge { display: none; justify-content: center; }
.hero-badge img { width: 180px; height: 180px; border-radius: 40px; background: #fff; padding: 18px; box-shadow: 0 24px 48px -12px rgb(0 0 0 / .45); }
@media (min-width: 1024px) { .hero-badge { display: flex; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .375rem; font-family: var(--head); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .8);
  padding: .3125rem .625rem; border-radius: var(--r-full); background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2);
  margin-bottom: var(--s-md);
}
.eyebrow--dark { color: var(--primary); background: var(--sc); border-color: transparent; }
.eyebrow--sale { color: var(--sale); background: var(--sale-bg); border-color: transparent; }
.searchbar-wrap { margin-top: -2.5rem; position: relative; z-index: 2; }
.searchbar { background: var(--sc-lowest); border-radius: var(--r-xl); box-shadow: var(--lift-3); padding: var(--s-md); display: grid; gap: var(--s-sm); grid-template-columns: 1fr; border: 1px solid var(--outline-variant); }
@media (min-width: 860px) { .searchbar { grid-template-columns: 1.6fr 1fr 1fr auto; align-items: end; padding: var(--s-lg); gap: var(--s-md); } }
.searchbar .field { margin: 0; }
.claims { display: grid; gap: var(--s-lg); grid-template-columns: 1fr; padding: var(--s-lg); border-radius: var(--r-xl); background: var(--sc-lowest); border: 1px solid var(--outline-variant); box-shadow: var(--lift-1); }
@media (min-width: 820px) { .claims { grid-template-columns: 1fr 1fr; gap: var(--s-xl); } }
.claim { display: flex; gap: var(--s-md); align-items: flex-start; }
.claim strong { display: block; margin-bottom: .2rem; font-size: 1.0625rem; }
.claim-ic, .feature-ic { flex: none; width: 46px; height: 46px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: var(--sc); color: var(--primary); }
.feature { display: flex; gap: var(--s-md); align-items: flex-start; }
.band { background: var(--sc-low); }

/* --------------------------------------------------------- product card */
.product-card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease; }
.product-card:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }
.product-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.product-link:hover { text-decoration: none; }
.photo { position: relative; width: 100%; aspect-ratio: 4 / 5; background: var(--sc-highest); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .photo img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .product-card, .product-card:hover, .photo img, .product-card:hover .photo img { transition: none; transform: none; } }
.photo-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); }
.photo-tl { position: absolute; top: .625rem; inset-inline-start: .625rem; }
.photo-bl { position: absolute; bottom: .625rem; inset-inline-start: .625rem; }
.frost { display: inline-flex; align-items: center; gap: .25rem; background: var(--frost-bg); color: #fff; backdrop-filter: blur(6px); padding: .25rem .55rem; border-radius: var(--r-full); font-size: .75rem; font-weight: 600; }
.product-body { padding: .75rem .875rem .875rem; display: flex; flex-direction: column; gap: .25rem; }
.product-title { font-family: var(--head); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; text-transform: capitalize; }
.product-meta { display: flex; gap: .3rem; font-size: .8125rem; color: var(--on-surface-variant); min-width: 0; }
.product-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .125rem; }
.product-price .price { font-size: 1.125rem; }
.fav-form { position: absolute; top: .5rem; inset-inline-end: .5rem; margin: 0; }
.fav-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; cursor: pointer; background: rgb(255 255 255 / .92); color: #33384d; box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.fav-btn:hover { color: var(--sale); }
.fav-btn.is-on { color: var(--sale); }
.fav-btn.is-on svg { fill: currentColor; }
@media (max-width: 599px) { .product-body { padding: .625rem .7rem .75rem; } .product-title { font-size: .9375rem; } .product-price .price { font-size: 1rem; } }

/* ------------------------------------------------------------ shop card */
.shop-card { overflow: hidden; display: flex; flex-direction: column; }
.shop-previews { display: grid; gap: 2px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; background: var(--sc-highest); }
.shop-previews img { width: 100%; height: 100%; object-fit: cover; }
.shop-previews.n3 img:first-child { grid-row: span 2; }
.shop-previews.n1, .shop-previews.n0 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.shop-previews.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.shop-card-body { display: flex; align-items: center; gap: .75rem; padding: .875rem var(--s-md) .5rem; }
.shop-card-stats { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; padding: 0 var(--s-md) var(--s-md); }
.shop-card-stats > span { display: inline-flex; align-items: center; gap: .3rem; }
.stars-inline { color: #b07800; font-weight: 600; }
.stars-inline svg { fill: currentColor; }

/* ---------------------------------------------------- audiences (home) */
.aud-row { grid-template-columns: repeat(2, 1fr); gap: var(--s-md); }
@media (min-width: 768px) { .aud-row { grid-template-columns: repeat(4, 1fr); } }
.aud-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: var(--s-lg); position: relative; overflow: hidden; }
.aud-tile::after { content: ''; position: absolute; inset-inline-end: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--sc); z-index: 0; }
.aud-tile > * { position: relative; z-index: 1; }
.aud-ic { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: .5rem; background: var(--primary); }
.aud-women .aud-ic { background: #b5179e; } .aud-kids .aud-ic { background: #0071bc; } .aud-baby .aud-ic { background: #f08a24; }
.aud-tile .strong { font-family: var(--head); font-size: 1.125rem; }

/* ------------------------------------------------------------ browse page */
.page-head { padding-block: 2rem 1rem; background: linear-gradient(180deg, var(--sc-low), transparent); }
.crumbs { display: flex; gap: .4rem; align-items: center; color: var(--muted); margin-bottom: .5rem; min-width: 0; }
.crumbs a { color: var(--on-surface-variant); }
.filters { padding: 0; overflow: hidden; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 1rem); } }
.filters-toggle { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: var(--s-md) var(--s-lg); font-weight: 600; border-bottom: 1px solid var(--sc); }
.filters-toggle::-webkit-details-marker { display: none; }
@media (min-width: 1024px) { .filters-toggle { pointer-events: none; } }
.filters-form { padding: var(--s-md) var(--s-lg) var(--s-lg); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); flex-wrap: wrap; margin-bottom: var(--s-md); min-height: 40px; }
.sort-form { display: flex; align-items: center; gap: .5rem; margin: 0; margin-inline-start: auto; }
.inline-search { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-md); max-width: 760px; }
.inline-search .field { margin: 0; }
.pagination { display: flex; gap: .375rem; justify-content: center; flex-wrap: wrap; margin-top: var(--s-xl); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: .5rem .75rem; border-radius: var(--r-md); border: 1px solid var(--outline-variant); background: var(--sc-lowest); color: var(--on-surface-variant); text-decoration: none; font-weight: 500; }
.pagination a:hover { background: var(--sc-low); }
.pagination [aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.pagination .gap { border: 0; background: none; min-width: 0; padding-inline: .25rem; }
.empty { text-align: center; padding: 3.5rem var(--s-md); color: var(--on-surface-variant); }
.empty > svg { color: var(--surface-dim); margin: 0 auto var(--s-md); }
.empty h3 { margin-bottom: .5rem; color: var(--on-surface); }
.empty-inline { display: flex; align-items: center; gap: var(--s-md); color: var(--on-surface-variant); }
.empty-inline > svg { flex: none; color: var(--primary); }

/* ----------------------------------------------------------- product page */
.gallery { display: grid; gap: .625rem; }
@media (min-width: 960px) { .gallery { position: sticky; top: calc(var(--header-h) + 1rem); } }
.gallery-main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--sc-highest); aspect-ratio: 4 / 5; border: 1px solid var(--outline-variant); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 76px; aspect-ratio: 4 / 5; padding: 0; cursor: pointer; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: var(--sc-highest); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-h1 { font-size: 2.1rem; text-transform: capitalize; }
@media (max-width: 767px) { .product-h1 { font-size: 1.6rem; } }
.shop-line { display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem; color: var(--on-surface); }
.shop-line:hover { text-decoration: none; }
.shop-line:hover .strong { text-decoration: underline; }
.price-block { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin: var(--s-md) 0; }
.price-block .price-was { font-size: 1.1rem; }
.spec-group { margin-bottom: var(--s-md); }
.spec-group .micro { margin-bottom: .5rem; }
.size-chip { min-width: 44px; text-align: center; padding: .45rem .7rem; border: 1px solid var(--outline-variant); border-radius: var(--r); font-weight: 600; font-size: .9rem; background: var(--sc-lowest); }
.color-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: var(--r-full); background: var(--sc); font-size: .875rem; text-transform: capitalize; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .18); }
.product-desc { color: var(--on-surface-variant); white-space: normal; }
.product-actions { flex-wrap: wrap; margin-bottom: var(--s-lg); }
.product-actions form { margin: 0; }
.order-card { margin-bottom: var(--s-lg); border-color: var(--surface-dim); }
.order-card h3 { display: flex; align-items: center; gap: .5rem; }
.order-total { display: flex; align-items: baseline; justify-content: space-between; padding: .75rem 0; border-top: 1px dashed var(--outline-variant); margin-top: .25rem; }
.shop-box { overflow: hidden; }
.static-map { direction: ltr; position: relative; display: block; overflow: hidden; aspect-ratio: var(--cols) / var(--rows); background: #e6e2da; }
.static-map .tiles { position: absolute; display: grid; grid-template-columns: repeat(var(--gc), 1fr); grid-auto-rows: 1fr; }
.static-map .tiles img { width: 100%; height: 100%; object-fit: cover; }
.static-map--wide { border-radius: var(--r-xl); border: 1px solid var(--outline-variant); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--sale); filter: drop-shadow(0 3px 4px rgb(0 0 0 / .35)); }
.map-pin svg { fill: #fff; }

.map-credit { position: absolute; bottom: 0; inset-inline-end: 0; font-size: 10px; padding: 1px 6px; background: rgb(255 255 255 / .8); color: #333; }
.fits-row { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.fit { flex: none; width: 170px; margin: 0; }
.fit img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.fit figcaption { margin-top: .375rem; color: var(--on-surface-variant); }

/* -------------------------------------------------------------- shop page */
.shop-hero { padding-bottom: var(--s-lg); border-bottom: 1px solid var(--outline-variant); background: var(--sc-lowest); }
.shop-cover { height: 220px; background: linear-gradient(135deg, #000c52, #001993 50%, #0071bc); background-size: cover; background-position: center; }
@media (max-width: 767px) { .shop-cover { height: 150px; } }
.shop-head { display: flex; align-items: flex-end; gap: var(--s-lg); margin-top: -56px; flex-wrap: wrap; }
.shop-head h1 { font-size: 2rem; margin-top: 64px; }
@media (max-width: 767px) { .shop-head { gap: var(--s-md); } .shop-head h1 { margin-top: 0; font-size: 1.6rem; } .shop-head .grow { flex-basis: 100%; } }
.shop-head-actions form { margin: 0; }
.shop-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); margin-top: var(--s-lg); max-width: 720px; }
.shop-stats > div { display: flex; flex-direction: column; gap: .125rem; }
.stat-n { font-family: var(--head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--primary); display: inline-flex; align-items: center; direction: ltr; align-self: flex-start; }
.stat-n small { font-size: .9rem; color: var(--muted); font-weight: 600; }
@media (max-width: 599px) { .shop-stats { grid-template-columns: repeat(2, 1fr); } }
.review { padding: var(--s-md); border-radius: var(--r-lg); background: var(--sc-lowest); border: 1px solid var(--outline-variant); }
.stars { display: inline-flex; gap: 1px; color: var(--surface-dim); }
.stars .on { color: #e8a400; }
.stars .on svg { fill: currentColor; }
.rate-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; margin-bottom: var(--s-md); }
:root[dir="rtl"] .rate-input { justify-content: flex-start; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { cursor: pointer; color: var(--surface-dim); }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: #e8a400; }
.rate-input label:hover svg, .rate-input label:hover ~ label svg, .rate-input input:checked ~ label svg { fill: currentColor; }
.rate-input input:focus-visible + label { outline: 3px solid var(--interactive); border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: s; display: grid; gap: var(--s-lg); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { position: relative; padding-top: 3.25rem; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 1.125rem; }
.step h3 { margin-bottom: .375rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.timeline li { display: flex; gap: .75rem; align-items: flex-start; padding: var(--s-md); background: var(--sc-lowest); border: 1px solid var(--outline-variant); border-radius: var(--r-lg); }
.timeline-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); }

/* ------------------------------------------------------------ FAQ etc. */
.disclosure summary { cursor: pointer; list-style: none; padding: .875rem var(--s-md); font-weight: 600; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: space-between; gap: var(--s-sm); }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: '⌄'; font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.disclosure[open] summary::after { transform: rotate(180deg); }
.faq-a { padding: 0 var(--s-md) var(--s-md); margin: 0; }
.app-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-xl); flex-wrap: wrap; background: linear-gradient(135deg, var(--sc-low), var(--sc-high)); border: 0; }
.app-art { width: 150px; height: 150px; border-radius: 34px; box-shadow: var(--lift-3); flex: none; background: #fff; }
@media (max-width: 700px) { .app-art { display: none; } }
.cta-card { padding: var(--s-xl); border-radius: var(--r-xl); color: #fff; position: relative; overflow: hidden; background: radial-gradient(640px 300px at 88% 0%, rgb(0 113 188 / .6), transparent 60%), linear-gradient(135deg, #001993, #0a37b8); box-shadow: var(--lift-2); }
.store-buttons { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: var(--s-md); }
.store-btn { display: inline-flex; align-items: center; gap: .625rem; padding: .55rem 1rem; border-radius: var(--r-md); background: #0b0f1f; color: #fff; text-decoration: none; border: 1px solid #0b0f1f; }
.store-btn:hover { text-decoration: none; background: #1b2140; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1rem; }
.store-btn small { font-weight: 500; font-size: .6875rem; opacity: .8; }
.store-btn--light { background: #fff; color: #0b0f1f; border-color: #fff; }
.store-btn--light:hover { background: #eef1ff; }

/* ------------------------------------------------------------ guide page */
.hero--guide .hero-inner { padding-top: 2rem; }
.app-switch { display: inline-flex; gap: .25rem; padding: .25rem; margin-top: 2rem; border-radius: var(--r-full); background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); }
.app-switch a { padding: .5rem 1.1rem; border-radius: var(--r-full); color: rgb(255 255 255 / .85); font-weight: 600; font-size: .9rem; text-decoration: none; }
.app-switch a.is-active { background: #fff; color: #001993; }
.phone-mock { display: none; justify-content: center; padding-block: 2rem; }
@media (min-width: 1024px) { .phone-mock { display: flex; } }
.phone-screen { width: 250px; height: 480px; border-radius: 40px; background: #fff; border: 10px solid #0b0f1f; box-shadow: 0 30px 60px -15px rgb(0 0 0 / .5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: #001993; text-align: center; padding: 1.5rem; }
.phone-screen strong { font-family: var(--head); font-size: 1.4rem; }
.phone-screen span { color: #5a6075; font-size: .9rem; }
@media (min-width: 768px) { .center-md { text-align: start; } }

/* ------------------------------------------------------------- account */
.account-hello { display: flex; align-items: center; gap: .75rem; margin-bottom: var(--s-md); min-width: 0; }
.account-hello > div { min-width: 0; }
.side-nav { display: flex; flex-direction: column; gap: .125rem; }
.side-nav a, .side-nav-btn { display: flex; align-items: center; gap: .625rem; padding: .75rem .875rem; border-radius: var(--r-md); color: var(--on-surface-variant); font-weight: 500; font-size: .9375rem; text-decoration: none; width: 100%; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: start; }
.side-nav a:hover, .side-nav-btn:hover { background: var(--sc-low); color: var(--on-surface); text-decoration: none; }
.side-nav a[aria-current="page"] { background: var(--sc); color: var(--primary); font-weight: 600; }
.side-nav form { margin: 0; }
@media (max-width: 899px) { .side-nav { flex-direction: row; overflow-x: auto; gap: .375rem; padding-bottom: .25rem; } .side-nav a, .side-nav-btn { white-space: nowrap; width: auto; } .account-hello { display: none; } }
.kpi { display: grid; gap: var(--s-md); grid-template-columns: repeat(3, 1fr); }
.kpi-tile { background: var(--sc-lowest); border: 1px solid var(--outline-variant); border-radius: var(--r-lg); padding: var(--s-md); display: flex; flex-direction: column; }
.kpi-val { font-family: var(--head); font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.order-row { display: flex; gap: var(--s-md); padding: var(--s-md); }
.order-img { flex: none; width: 88px; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--sc-highest); }
.order-img img { width: 100%; height: 100%; object-fit: cover; }
.order-main { flex: 1; min-width: 0; }
.order-main .strong { color: var(--on-surface); text-transform: capitalize; }
.order-main form { margin: 0; }
.order-main .wrap-row span { display: inline-flex; align-items: center; gap: .25rem; }
.notif-list { overflow: hidden; }
.notif { display: flex; gap: .875rem; padding: var(--s-md); color: inherit; border-bottom: 1px solid var(--sc); text-decoration: none; }
.notif:last-child { border-bottom: 0; }
a.notif:hover { background: var(--sc-low); text-decoration: none; }
.notif .grow { display: flex; flex-direction: column; gap: .125rem; }
.notif.is-unread { background: color-mix(in srgb, var(--sc) 55%, transparent); }
.notif.is-unread .strong::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-inline-end: .4rem; vertical-align: middle; }
.danger-zone { border-color: var(--error-bg); }

/* ----------------------------------------------------------------- auth */
.auth-page { min-height: calc(100vh - var(--header-h) - 200px); display: flex; align-items: center; justify-content: center; padding: 2.5rem var(--s-md); background: radial-gradient(700px 360px at 50% 0%, var(--sc-high), transparent 70%); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card--wide { max-width: 640px; }
.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; margin-bottom: var(--s-lg); }
.auth-head img { border-radius: 14px; }
.auth-foot { margin: var(--s-md) 0 .25rem; }
.dots { display: flex; gap: .375rem; list-style: none; padding: 0; margin: .25rem 0 0; }
.dots li { width: 28px; height: 5px; border-radius: 3px; background: var(--sc-high); }
.dots li.on { background: var(--primary); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--footer-bg); color: #c3c7d9; padding-block: 3rem var(--s-lg); margin-top: 3rem; }
.site-footer h4 { color: #fff; font-size: .9375rem; margin-bottom: .875rem; }
.site-footer a { color: #c3c7d9; font-size: .9375rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .5rem; }
.footer-name { color: #fff; }
.footer-copy { color: #9aa0b8; max-width: 36ch; }
.footer-social { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgb(255 255 255 / .08); }
.footer-social:hover { background: rgb(255 255 255 / .16); }
.footer-grid { display: grid; gap: var(--s-xl); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-bottom { margin-top: var(--s-xl); padding-top: var(--s-lg); border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: var(--s-md); justify-content: space-between; font-size: .875rem; color: #8a90a8; }

/* --------------------------------------------------------------- app bar */
.app-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem; padding-bottom: calc(.625rem + env(safe-area-inset-bottom, 0px)); background: var(--sc-lowest); border-top: 1px solid var(--outline-variant); box-shadow: 0 -6px 24px -8px rgb(2 8 36 / .22); }
@media (min-width: 768px) { .app-bar { display: none; } }
.app-bar img { width: 38px; height: 38px; border-radius: var(--r); flex: none; }
.app-bar-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.app-bar-text strong, .app-bar-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar .btn { flex: none; }
.app-bar-close { margin: 0; flex: none; }
.app-bar-close button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; cursor: pointer; background: transparent; border: 0; color: var(--muted); border-radius: var(--r); }
@media (max-width: 767px) { .site-footer { padding-bottom: 5.5rem; } }

@media print { .site-header, .site-footer, .btn, .app-bar, .fav-form { display: none; } }

/* ============================================================ dark mode ==
 * The palette is written once as --d-*; two short blocks map it onto the
 * live tokens, one for "follow the device", one for "the reader chose dark"
 * (data-theme is set server-side from a cookie: right theme on first paint).
 */
:root {
  --d-surface: #0a0e1d; --d-surface-dim: #060913;
  --d-sc-lowest: #121830; --d-sc-low: #0f1428; --d-sc: #19203b; --d-sc-high: #212a49; --d-sc-highest: #29335a;
  --d-on-surface: #e7e9f5; --d-on-surface-variant: #aab0c7; --d-muted: #8a90a8; --d-outline-variant: #2a3253;
  --d-primary: #aebcff; --d-on-primary: #00125e; --d-primary-container: #1f3bbf; --d-primary-hover: #c6d0ff;
  --d-interactive: #8fb0ff; --d-success: #35d29a; --d-success-bg: #06281d; --d-warning: #fbbf24; --d-warning-bg: #2a1f05;
  --d-error: #ffb4ab; --d-error-bg: #3a0b08; --d-sale: #ff6b81; --d-sale-bg: #3a0b14;
  --d-header-bg: rgb(10 14 29 / .9); --d-footer-bg: #05080f; --d-frost-bg: rgb(0 0 0 / .62);
  --d-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23aab0c7' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: var(--d-surface); --surface-dim: var(--d-surface-dim);
    --sc-lowest: var(--d-sc-lowest); --sc-low: var(--d-sc-low); --sc: var(--d-sc); --sc-high: var(--d-sc-high); --sc-highest: var(--d-sc-highest);
    --on-surface: var(--d-on-surface); --on-surface-variant: var(--d-on-surface-variant); --muted: var(--d-muted); --outline-variant: var(--d-outline-variant);
    --primary: var(--d-primary); --on-primary: var(--d-on-primary); --primary-container: var(--d-primary-container); --primary-hover: var(--d-primary-hover);
    --interactive: var(--d-interactive); --success: var(--d-success); --success-ink: var(--d-success); --success-bg: var(--d-success-bg);
    --warning: var(--d-warning); --warning-bg: var(--d-warning-bg); --error: var(--d-error); --error-bg: var(--d-error-bg);
    --sale: var(--d-sale); --sale-bg: var(--d-sale-bg);
    --header-bg: var(--d-header-bg); --footer-bg: var(--d-footer-bg); --frost-bg: var(--d-frost-bg); --caret: var(--d-caret);
    --lift-1: 0 1px 2px rgb(0 0 0 / .4); --lift-2: 0 10px 20px -6px rgb(0 0 0 / .55); --lift-3: 0 20px 36px -10px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] {
  --surface: var(--d-surface); --surface-dim: var(--d-surface-dim);
  --sc-lowest: var(--d-sc-lowest); --sc-low: var(--d-sc-low); --sc: var(--d-sc); --sc-high: var(--d-sc-high); --sc-highest: var(--d-sc-highest);
  --on-surface: var(--d-on-surface); --on-surface-variant: var(--d-on-surface-variant); --muted: var(--d-muted); --outline-variant: var(--d-outline-variant);
  --primary: var(--d-primary); --on-primary: var(--d-on-primary); --primary-container: var(--d-primary-container); --primary-hover: var(--d-primary-hover);
  --interactive: var(--d-interactive); --success: var(--d-success); --success-ink: var(--d-success); --success-bg: var(--d-success-bg);
  --warning: var(--d-warning); --warning-bg: var(--d-warning-bg); --error: var(--d-error); --error-bg: var(--d-error-bg);
  --sale: var(--d-sale); --sale-bg: var(--d-sale-bg);
  --header-bg: var(--d-header-bg); --footer-bg: var(--d-footer-bg); --frost-bg: var(--d-frost-bg); --caret: var(--d-caret);
  --lift-1: 0 1px 2px rgb(0 0 0 / .4); --lift-2: 0 10px 20px -6px rgb(0 0 0 / .55); --lift-3: 0 20px 36px -10px rgb(0 0 0 / .6);
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Theme switch: only the button for the opposite theme is shown. */
.theme-form { display: flex; margin: 0; }
.theme-form .icon-btn { display: none; }
:root:not([data-theme="dark"]) .theme-to-dark { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-to-dark { display: none; }
  :root:not([data-theme="light"]) .theme-to-light { display: inline-flex; }
}
:root[data-theme="dark"] .theme-to-dark { display: none; }
:root[data-theme="dark"] .theme-to-light { display: inline-flex; }
:root[data-theme="light"] .theme-to-light { display: none; }
:root[data-theme="light"] .theme-to-dark { display: inline-flex; }
