/* =====================================================================
   VICE SHOP — styles (mobile first)
   All brand values live in :root. Logical properties (inline/block)
   make the Arabic (RTL) layout mirror automatically.
   ===================================================================== */

/* ---------- fonts (self-hosted copies of Google Fonts: no third-party request) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cairo";
  src: url("../assets/fonts/cairo-arabic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  /* brand */
  --navy: #0B1638;
  --ink: #111111;
  --blue: #2F6FD6;
  --sky: #8FD0F5;
  --orange: #FF7A1A;

  /* neutrals */
  --bg: #FFFFFF;
  --surface: #F3F5F8;
  --line: #E3E7EE;
  --line-strong: #C9D0DC;
  --muted: #5B6475;
  --error: #C62828;
  --on-dark: #C9D2E6;

  /* type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Cairo", "Plus Jakarta Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  /* shape & spacing */
  --radius: 8px;
  --radius-lg: 16px;
  --gutter: 16px;
  --container: 1320px;
  --header-h: 60px;
  --section: 56px;
  --shadow: 0 18px 40px -18px rgba(11, 22, 56, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 72px; --section: 88px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 40px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.has-overlay { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: fixed;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.section { padding-block: var(--section); }
.section-surface { background: var(--surface); }
.section-title { font-size: clamp(1.7rem, 5.4vw, 2.75rem); margin-bottom: .35em; }
.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 28px; }
.eyebrow {
  margin: 0 0 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .75em 1.4em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn .icon { flex: none; width: 20px; height: 20px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2B2B2B; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--surface); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: not-allowed; transform: none; }

.link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  transition: background-color .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- ticker (top bar) ---------- */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  height: 34px;
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
}
html[lang="ar"] .ticker { letter-spacing: 0; font-size: .8125rem; }
.ticker-viewport { flex: 1; overflow: hidden; direction: ltr; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker var(--ticker-duration, 40s) linear infinite;
}
.ticker:hover .ticker-track,
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; }
.ticker-list li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-inline: 18px;
}
.ticker-list li::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline-start: 36px;
  border-radius: 50%;
  background: var(--sky);
}
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--navy);
  color: #fff;
  opacity: .8;
}
.ticker-toggle:hover { opacity: 1; }
.ticker-toggle svg { width: 14px; height: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-block-end: 2px solid var(--sky);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(12px); }
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}
@media (min-width: 768px) {
  .header-row { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}
.header-start, .header-end { display: flex; align-items: center; gap: 2px; }
.header-end { justify-content: flex-end; }
.header-logo { display: block; padding: 6px 4px; border-radius: var(--radius); }
.header-logo img { height: 20px; width: auto; }
@media (min-width: 400px) { .header-logo img { height: 22px; } }
@media (min-width: 768px) { .header-logo img { height: 28px; } }

.lang-mini { position: relative; display: inline-flex; }
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  padding-block: 0;
  padding-inline: 8px 22px;
  border: 0;
  border-radius: var(--radius);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}
[dir="rtl"] .lang-select { background-position: left 7px center; }
.lang-select:hover { background-color: var(--surface); }
.lang-select-dark {
  height: 44px;
  padding-inline: 12px 30px;
  border: 1px solid rgba(255, 255, 255, .3);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color: #fff;
}
.lang-select-dark:hover { background-color: rgba(255, 255, 255, .08); }
.lang-select-dark option { color: var(--ink); }

.cart-count {
  position: absolute;
  top: 4px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--orange);
  color: var(--ink);
  font-size: .6875rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.cart-count.is-empty { display: none; }
.cart-count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  65% { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* ---------- overlays: backdrop, drawers, search, modal ---------- */
.vs-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(11, 22, 56, .55);
  opacity: 0;
  transition: opacity .3s ease;
}
.vs-backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease);
}
.drawer-start { inset-inline-start: 0; width: min(360px, 88%); transform: translateX(-100%); }
.drawer-end { inset-inline-end: 0; transform: translateX(100%); }
[dir="rtl"] .drawer-start { transform: translateX(100%); }
[dir="rtl"] .drawer-end { transform: translateX(-100%); }
.drawer.is-open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: env(safe-area-inset-top) 12px 0 20px;
  border-block-end: 1px solid var(--line);
}
[dir="rtl"] .drawer-head { padding: env(safe-area-inset-top) 20px 0 12px; }
.drawer-head h2 { margin: 0; font-size: 1.125rem; letter-spacing: 0; }
.drawer-head img { height: 20px; width: auto; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.drawer-foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--line);
  background: #fff;
}

/* side menu */
.menu-label {
  margin: 8px 0 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .menu-label { letter-spacing: 0; }
.menu-list a, .menu-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-block-end: 1px solid var(--line);
  background: none;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: start;
  text-decoration: none;
}
.menu-list a:hover, .menu-list button:hover { color: var(--blue); }
.menu-list svg { width: 16px; height: 16px; opacity: .45; }
[dir="rtl"] .menu-list .chev { transform: scaleX(-1); }
.menu-list-secondary { margin-top: 20px; }
.menu-list-secondary a, .menu-list-secondary button { font-size: .9375rem; min-height: 44px; }
.menu-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.menu-langs button {
  min-width: 48px;
  min-height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 700;
  font-size: .8125rem;
}
.menu-langs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.menu-section { margin-top: 28px; }

.social { display: flex; gap: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: transform .15s ease, background-color .2s ease;
}
.social a:hover { transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* search */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background: #fff;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.search-overlay.is-open { opacity: 1; transform: none; }
.search-inner { padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 48px; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-block-end: 2px solid var(--ink);
}
.search-bar > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.search-bar input {
  flex: 1;
  min-width: 0;
  height: 60px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 600;
}
.search-bar input:focus { outline: none; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar:focus-within { border-block-end-color: var(--blue); }
.search-status { margin: 16px 0; color: var(--muted); font-size: .875rem; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.chip-link:hover { border-color: var(--ink); }
.search-results { display: grid; gap: 10px; }
@media (min-width: 768px) { .search-results { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .search-results { grid-template-columns: repeat(3, 1fr); } }
.search-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background-color .2s ease;
}
.search-card:hover { background: var(--surface); }
.search-card .thumb { flex: none; width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.search-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.search-card .ph-name { display: none; }
.search-card p { margin: 0; }
.search-card .sc-name { font-weight: 700; line-height: 1.3; }
.search-card .sc-meta { font-size: .8125rem; color: var(--muted); }
.search-card .sc-price { font-weight: 800; font-size: .9375rem; }
.search-empty { padding: 32px 0; }
.search-empty h3 { font-size: 1.5rem; }
.search-empty p { color: var(--muted); }

/* modal (size guide) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-box {
  position: relative;
  width: min(640px, 100%);
  max-height: min(86vh, 860px);
  overflow-y: auto;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(.98);
  transition: transform .3s var(--ease);
}
@media (min-width: 768px) { .modal-box { padding: 32px; } }
.modal.is-open .modal-box { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.modal-head h2 { font-size: 1.5rem; margin: 6px 0 0; }
.sg-note {
  margin-bottom: 20px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #FFF4EC;
  border: 1px dashed var(--orange);
  font-size: .875rem;
  font-weight: 600;
}
.sg-section + .sg-section { margin-top: 24px; }
.sg-section h3 { font-size: 1rem; letter-spacing: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.size-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.size-table th, .size-table td { padding: 10px 12px; text-align: start; border-block-end: 1px solid var(--line); white-space: nowrap; }
.size-table thead th { background: var(--surface); font-weight: 700; }
.size-table tbody tr:last-child td, .size-table tbody tr:last-child th { border-block-end: 0; }
.size-table.is-example td { color: var(--muted); font-style: italic; }
.sg-help { margin-top: 20px; color: var(--muted); font-size: .875rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast svg { width: 20px; height: 20px; color: var(--sky); flex: none; }
.toast button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: .8125rem;
  white-space: nowrap;
}

/* ---------- floating WhatsApp button ---------- */
.fab {
  position: fixed;
  z-index: 60;
  bottom: calc(16px + env(safe-area-inset-bottom));
  right: max(16px, calc(env(safe-area-inset-right) + 8px));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 12px 28px -8px rgba(11, 22, 56, .6);
  transition: transform .2s var(--ease), opacity .2s ease;
}
[dir="rtl"] .fab { right: auto; left: max(16px, calc(env(safe-area-inset-left) + 8px)); }
.fab svg { width: 28px; height: 28px; }
.fab:hover { transform: translateY(-3px); }
.fab:active { transform: scale(.94); }
html.has-overlay .fab { opacity: 0; pointer-events: none; }
@media (max-width: 599px) {
  html.nl-card-open .fab { opacity: 0; pointer-events: none; }
}

/* ---------- newsletter (form, slide-in card) ---------- */
.nl-form { display: grid; gap: 10px; }
.nl-row { display: flex; gap: 8px; }
.nl-row .input { flex: 1; min-width: 0; }
.nl-row .btn { flex: none; padding-inline: 16px; }
.nl-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-success { display: grid; gap: 8px; }
.nl-success p { margin: 0; }
.nl-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nl-code {
  display: inline-block;
  padding: 6px 14px;
  border: 2px dashed currentColor;
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.nl-copy { min-height: 44px; }
.nl-small { font-size: .8125rem; opacity: .85; }

.nl-card {
  position: fixed;
  z-index: 70;
  bottom: calc(16px + env(safe-area-inset-bottom));
  inset-inline-start: 16px;
  width: min(380px, calc(100% - 32px));
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: transform .5s var(--ease), opacity .3s ease;
}
.nl-card.is-open { transform: none; opacity: 1; }
.nl-card h2 { font-size: 1.25rem; margin: 0 0 4px; padding-inline-end: 36px; letter-spacing: -.01em; }
.nl-card > p { color: var(--muted); font-size: .875rem; margin-bottom: 12px; }
.nl-card .nl-close { position: absolute; top: 8px; inset-inline-end: 8px; }
.nl-card-accent { position: absolute; top: 0; inset-inline-start: 20px; width: 36px; height: 4px; background: var(--orange); border-radius: 0 0 4px 4px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .875rem; }
.field .req { color: var(--muted); font-weight: 400; }
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 214, .2); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; color: var(--error); font-size: .8125rem; font-weight: 600; }
.on-dark .field-error { color: #FFB4B4; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.check a { color: inherit; font-weight: 600; }

/* ---------- placeholder for missing images ---------- */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 12%;
  background: var(--surface);
  text-align: center;
}
.ph svg { width: 44%; height: auto; fill: #fff; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ph .ph-accent { fill: none; stroke: var(--sky); stroke-width: 4; }
.ph-name { max-width: 100%; font-size: .75rem; font-weight: 700; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 768px) { .ph-name { font-size: .8125rem; } }

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}
html[lang="ar"] .badge { letter-spacing: 0; font-size: .75rem; }
.badge-new { background: var(--orange); color: var(--ink); }
.badge-soldout { background: var(--ink); color: #fff; }
.badge-promo { background: var(--blue); color: #fff; }

/* ---------- product grid & card ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
}
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }

.pcard { display: block; text-decoration: none; border-radius: var(--radius); -webkit-tap-highlight-color: transparent; }
.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.section-surface .pcard-media, .section-surface .ph { background: #fff; }
.pcard-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pcard-img-alt { opacity: 0; transition: opacity .45s ease; }
.pcard-badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.pcard-info { padding-top: 12px; }
.pcard-name {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) { .pcard-name { font-size: .9375rem; } }
.price { margin: 0; font-weight: 800; font-size: .9375rem; }
.price s { margin-inline-end: 8px; color: var(--muted); font-weight: 500; }
.price .price-now-promo { color: var(--blue); }
.is-soldout .pcard-media > :not(.pcard-badges) { opacity: .55; }
@media (hover: hover) {
  .pcard:hover .pcard-media { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(11, 22, 56, .45); }
  .pcard:hover .pcard-img-alt { opacity: 1; }
}
.pcard:active .pcard-media { transform: scale(.98); }

/* ---------- category banner ---------- */
.cat-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  isolation: isolate;
  color: #fff;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(143, 208, 245, .22), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 9px);
}
@media (min-width: 768px) { .cat-banner { min-height: 320px; margin-bottom: 40px; } }
.cat-banner-img {
  position: absolute;
  inset-inline: 0;
  top: -12%;
  z-index: -2;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.cat-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 22, 56, .82), rgba(11, 22, 56, .25) 70%, rgba(11, 22, 56, .15));
}
.cat-banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 20px;
}
@media (min-width: 768px) { .cat-banner-content { padding: 40px; } }
.cat-banner-title {
  margin: 0;
  font-size: clamp(2.25rem, 11vw, 5.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.cat-banner-sub { margin: 10px 0 0; color: var(--on-dark); font-weight: 500; }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- swipe slider dots ---------- */
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
.dots button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
}
.dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
  transition: width .3s var(--ease), background-color .3s ease;
}
.dots button[aria-current="true"]::before { width: 22px; background: var(--ink); }
.on-dark .dots button::before, .dots-light button::before { background: rgba(255, 255, 255, .5); }
.on-dark .dots button[aria-current="true"]::before, .dots-light button[aria-current="true"]::before { background: #fff; }

.snap-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.snap-track::-webkit-scrollbar { display: none; }
.snap-track > * { flex: none; scroll-snap-align: start; }

/* ---------- accordion ---------- */
.acc { border-block-end: 1px solid var(--line); }
.acc:first-child { border-block-start: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-inline-end: 6px;
  /* physical borders on purpose: the chevron must point down in LTR and RTL */
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .25s var(--ease);
}
.acc[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.acc-body { padding-block-end: 18px; color: var(--muted); }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body ul { list-style: disc; padding-inline-start: 1.2em; }
.acc-body li + li { margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark);
  border-block-start: 2px solid var(--sky);
  padding-block: 48px calc(32px + env(safe-area-inset-bottom));
  font-size: .9375rem;
}
@media (max-width: 767px) { .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(240px, 1fr) 2.6fr; gap: 48px; } }
.footer-brand img { height: 26px; width: auto; }
.footer-tagline { margin: 12px 0 20px; color: #fff; font-weight: 800; letter-spacing: .2em; font-size: .8125rem; }
.footer-brand h2 { margin: 0 0 6px; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
html[lang="ar"] .footer-brand h2 { letter-spacing: 0; }
.footer-brand p { max-width: 30em; }
.footer-brand .social { margin-top: 18px; color: #fff; }
.footer-cols { display: grid; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 32px; } }
.fcol { border-block-end: 1px solid rgba(143, 208, 245, .18); }
.fcol:first-child { border-block-start: 1px solid rgba(143, 208, 245, .18); }
@media (min-width: 900px) { .fcol, .fcol:first-child { border: 0; } }
.fcol h2 { margin: 0; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
html[lang="ar"] .fcol h2 { letter-spacing: 0; }
.fcol-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: start;
}
.fcol-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.fcol-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.fcol-body { padding-bottom: 18px; }
.js .fcol-body { display: none; }
.js .fcol.is-open .fcol-body { display: block; }
@media (min-width: 900px) {
  .fcol-toggle { min-height: 0; margin-bottom: 14px; cursor: default; }
  .fcol-toggle svg { display: none; }
  .js .fcol-body, .fcol-body { display: block; padding: 0; }
}
.fcol-body li a, .fcol-body li button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: .9375rem;
  text-align: start;
  cursor: pointer;
}
.fcol-body li button:hover { text-decoration: underline; }
.fcol-body .nl-form .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); color: #fff; }
.fcol-body .nl-form .input::placeholder { color: rgba(255, 255, 255, .6); }
.fcol-body .nl-intro { margin-bottom: 12px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-block-start: 1px solid rgba(143, 208, 245, .18);
  font-size: .8125rem;
}
.footer-bottom p { margin: 0; }

/* =====================================================================
   PAGES
   ===================================================================== */

/* ---------- home: hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  height: 75vh;
  height: 75svh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(47, 111, 214, .45), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(143, 208, 245, .18), transparent 50%),
    linear-gradient(160deg, #0B1638 0%, #14265A 60%, #0B1638 100%);
  touch-action: pan-y;
}
@media (min-width: 768px) { .hero { height: 85vh; height: 85svh; min-height: 600px; } }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1.08); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 22, 56, .88) 0%, rgba(11, 22, 56, .45) 45%, rgba(11, 22, 56, .12) 100%);
}
.hero-content { width: 100%; padding-bottom: 72px; }
@media (min-width: 768px) { .hero-content { padding-bottom: 96px; } }
.hero-title {
  margin: 0;
  font-size: clamp(3.2rem, 15vw, 10rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title .dot { display: inline-block; width: .14em; height: .14em; margin-inline-start: .06em; background: var(--blue); vertical-align: baseline; }
.hero-sub { margin: 18px 0 28px; max-width: 30em; font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 400; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-controls {
  position: absolute;
  bottom: 16px;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-controls .dots { margin: 0; }
.hero-pause {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(11, 22, 56, .3);
  color: #fff;
}
.hero-pause svg { width: 12px; height: 12px; }

/* ---------- home: category bar ---------- */
.catbar { padding-block: 28px 8px; }
@media (min-width: 768px) { .catbar { padding-block: 48px 16px; } }
.catbar-list { gap: 14px; padding: 4px var(--gutter) 8px; scroll-snap-type: x proximity; }
.catbar-list li:first-child { margin-inline-start: auto; }
.catbar-list li:last-child { margin-inline-end: auto; }
.catbar-link {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 80px;
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}
@media (min-width: 768px) { .catbar-link { width: 112px; font-size: .875rem; } }
.catbar-img {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  transition: border-color .2s ease, transform .25s var(--ease);
}
@media (min-width: 768px) { .catbar-img { width: 104px; height: 104px; } }
.catbar-img img { width: 100%; height: 100%; object-fit: cover; }
.catbar-img .ph { padding: 18%; }
.catbar-img .ph svg { width: 100%; }
.catbar-img .ph-name { display: none; }
.catbar-link:hover .catbar-img { border-color: var(--ink); transform: translateY(-3px); }

.home-cat { padding-block: 28px; }
@media (min-width: 768px) { .home-cat { padding-block: 40px; } }

/* ---------- home: personalization ---------- */
.perso { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .perso { grid-template-columns: 1fr 1fr; gap: 64px; } }
.perso-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
}
.perso-media svg { width: 100%; height: 100%; }
.perso-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.perso p { color: var(--muted); }
.steps { display: grid; gap: 12px; margin: 20px 0 28px; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .8125rem;
  font-weight: 800;
}

/* ---------- home: lookbook ---------- */
.lookbook { overflow: hidden; }
.lookbook-head { text-align: center; }
.lookbook-head .section-lead { margin-inline: auto; }
.lookbook-viewport { overflow: hidden; direction: ltr; }
.lookbook-track {
  display: flex;
  width: max-content;
  animation: ticker var(--lookbook-duration, 60s) linear infinite;
}
.lookbook-viewport:hover .lookbook-track,
.lookbook-viewport:focus-within .lookbook-track { animation-play-state: paused; }
.lookbook-track figure {
  flex: none;
  width: 220px;
  height: 290px;
  margin: 0 6px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (min-width: 768px) { .lookbook-track figure { width: 300px; height: 400px; margin: 0 10px; } }
.lookbook-track img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lookbook-track figure:hover img { transform: scale(1.04); }

/* ---------- home: reviews ---------- */
.reviews-track { padding-bottom: 4px; }
.review {
  width: min(85%, 380px);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--ink); }
.stars svg { width: 18px; height: 18px; }
.stars .off { color: var(--line-strong); }
.review blockquote { margin: 0 0 18px; font-size: 1rem; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author img, .review-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}
.review-avatar { display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: var(--blue); }
.review-author p { margin: 0; line-height: 1.3; }
.review-name { font-weight: 700; }
.review-city { color: var(--muted); font-size: .875rem; }
.reviews-empty {
  max-width: 720px;
  margin-inline: auto;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.reviews-empty h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.reviews-empty p { color: var(--muted); }

/* ---------- home: benefits ---------- */
.benefits-track > li {
  width: 78%;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (min-width: 768px) {
  .benefits-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; overflow: visible; }
  .benefits-track > li { width: auto; }
  .benefits-dots { display: none; }
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefits-track h3 { font-size: 1.0625rem; letter-spacing: 0; margin-bottom: 6px; }
.benefits-track p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- home: FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-wrap .acc summary { font-size: 1.0625rem; }

/* ---------- category page ---------- */
.page-top { padding-top: 20px; }
@media (min-width: 768px) { .page-top { padding-top: 32px; } }
.breadcrumb { margin-bottom: 16px; font-size: .8125rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.toolbar p { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 600; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; }
.sort select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  padding-inline: 14px 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-weight: 600;
  cursor: pointer;
}
[dir="rtl"] .sort select { background-position: left 12px center; }
.empty-state { padding: 48px 0 72px; text-align: center; }
.empty-state h1, .empty-state h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.empty-state p { color: var(--muted); }

/* ---------- product page ---------- */
.product { display: grid; gap: 24px; padding-bottom: var(--section); }
@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
  .product-info { position: sticky; top: calc(var(--header-h) + 24px); }
}
.gallery { min-width: 0; }
@media (max-width: 959px) { .gallery { margin-inline: calc(-1 * var(--gutter)); } }
.gallery-track { gap: 0; }
.gallery-slide {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
}
@media (min-width: 960px) { .gallery-slide { border-radius: var(--radius-lg); } }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-slide .ph-name { font-size: 1rem; }
.gallery .dots { margin-top: 10px; }
.thumbs { display: none; gap: 10px; margin-top: 12px; }
@media (min-width: 960px) {
  .thumbs { display: flex; flex-wrap: wrap; }
  .gallery .dots { display: none; }
}
.thumbs button {
  width: 80px;
  height: 80px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease;
}
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumbs .ph { padding: 18%; }
.thumbs .ph svg { width: 100%; }
.thumbs .ph-name { display: none; }

.product-info .badges { display: flex; gap: 6px; margin-bottom: 12px; }
.product-title { font-size: clamp(1.6rem, 4.6vw, 2.5rem); margin-bottom: 10px; }
.product-price { margin-bottom: 20px; font-size: 1.375rem; }
.product-short { color: var(--muted); margin-bottom: 24px; }
.sizes {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  transition: outline-color .2s ease;
  outline: 2px solid transparent;
  outline-offset: 8px;
  min-width: 0;
}
.sizes.is-error { outline-color: var(--error); }
.sizes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; width: 100%; }
.sizes legend { padding: 0; font-weight: 700; float: inline-start; }
.sizes-head .link { font-size: .875rem; min-height: 44px; }
.size-list { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.size-opt { position: relative; display: inline-flex; }
.size-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.size-opt span {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 48px;
  padding-inline: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 700;
  font-size: .9375rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.size-opt:hover span { border-color: var(--ink); }
.size-opt input:active + span { transform: scale(.95); }
.size-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.size-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.size-opt input:disabled { cursor: not-allowed; }
.size-opt input:disabled + span {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.size-error { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--error); font-weight: 700; font-size: .875rem; }
.size-unique { margin: 0 0 20px; font-weight: 600; }
.size-unique span { color: var(--muted); font-weight: 500; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-row > span { font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.qty button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
}
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.qty-sm button { width: 36px; height: 36px; font-size: 1.0625rem; }
.qty-sm output { min-width: 22px; font-size: .875rem; }

.buy-actions { display: grid; gap: 10px; margin-bottom: 24px; }
.product-ship { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .875rem; color: var(--muted); }
.product-ship svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ---------- cart drawer ---------- */
.cart-items { display: grid; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.cart-thumb { display: block; width: 76px; height: 76px; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb .ph { padding: 16%; }
.cart-thumb .ph svg { width: 100%; }
.cart-thumb .ph-name { display: none; }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item-name { margin: 0; font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.cart-item-name a { text-decoration: none; }
.cart-item-meta { margin: 2px 0 8px; color: var(--muted); font-size: .8125rem; }
.cart-item-price { margin: 0; font-weight: 800; white-space: nowrap; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-remove { min-height: 36px; font-size: .8125rem; color: var(--muted); }
.cart-block { margin-top: 24px; padding-top: 20px; border-block-start: 1px solid var(--line); }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-ok { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 14px; border-radius: var(--radius); background: #EAF2FD; color: var(--blue); font-weight: 700; font-size: .875rem; }
.totals { margin: 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt, .totals dd { margin: 0; }
.totals .is-discount { color: var(--blue); font-weight: 600; }
.totals .is-total { margin-top: 6px; padding-top: 10px; border-block-start: 1px solid var(--line); font-weight: 800; font-size: 1.125rem; }
.cart-block h3 { font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
.cart-note { margin: 10px 0 0; font-size: .75rem; color: var(--muted); text-align: center; }
.cart-ship { margin: 10px 0 0; font-size: .8125rem; color: var(--muted); }
.cart-empty { padding: 40px 0; text-align: center; }
.cart-empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--line-strong); }
.cart-empty p { color: var(--muted); }
.cart-empty h3 { font-size: 1.25rem; letter-spacing: 0; }
.cart-foot-total { display: flex; justify-content: space-between; margin: 0 0 12px; font-weight: 800; font-size: 1.0625rem; }

/* ---------- legal & simple pages ---------- */
.page-head { padding-block: 40px 28px; border-block-end: 2px solid var(--sky); background: var(--surface); }
.page-head h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.25rem); }
.prose { max-width: 780px; padding-block: 40px 72px; }
.prose h2 { margin-top: 2em; font-size: 1.375rem; letter-spacing: -.01em; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { list-style: disc; padding-inline-start: 1.25em; margin-bottom: 1em; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--blue); }
.legal-note { display: inline-block; margin-bottom: 28px; padding: 8px 14px; border-radius: var(--radius); background: var(--surface); font-size: .875rem; font-weight: 600; }
.ph-text {
  padding: 0 .35em;
  border: 1px dashed var(--orange);
  border-radius: 4px;
  background: #FFF4EC;
  font-weight: 700;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.notfound { padding-block: 72px 96px; }
.notfound-code { margin: 0; font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.notfound-code span { color: var(--blue); }
.notfound p { color: var(--muted); max-width: 32em; }

/* ---------- reduced motion: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track, .lookbook-track { animation: none !important; }
  .lookbook-viewport { overflow-x: auto; }
  .hero-slide.is-active img { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .cat-banner-img { transform: none !important; }
}
