/* ==================================================================
   Minty4Toys — design system
   ------------------------------------------------------------------
   Direction: calm and premium. White and soft mist surfaces, one deep
   mint brand color for actions, and gentle pastel tints that come from
   the 3D toys themselves. Depth comes from soft shadows and light, never
   from outlines. Color sits on the toys and the tints, not on the text.

   Layout uses logical properties (inline-start / inline-end), so the
   Arabic right-to-left version mirrors itself automatically.

   Contents
     1. Fonts          7. Hero               13. Account
     2. Tokens         8. Category grid      14. Status pages
     3. Base           9. Animations         15. Messages
     4. Layout        10. Bands and footer   16. Setup page
     5. Controls      11. Forms              17. Motion preferences
     6. Header        12. Auth pages
   ================================================================== */

/* 1. Fonts (self-hosted) ------------------------------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  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: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  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: "Readex Pro";
  src: url("../fonts/readex-pro-arabic.woff2") format("woff2");
  font-weight: 160 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* The Collector fonts (the default theme since the 2026 redesign): Mona Sans has a width axis (75 to 125), so headings
   are set narrower from the same file; Arabic pages use Noto Kufi Arabic for headings and IBM Plex Sans Arabic for text. */
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  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: "Noto Kufi Arabic";
  src: url("../fonts/noto-kufi-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* The theme engine's other fonts (Grow your shop → Appearance); a browser downloads one only when the theme uses it. */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  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: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  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: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  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: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

/* 2. Tokens -------------------------------------------------------- */

:root {
  /* Text (the Vault theme's values; /theme.css sets the published theme's) */
  --ink: #0F1012;
  --ink-2: #575859;
  --ink-3: #6B6B6D;

  /* Surfaces */
  --paper: #FFFFFF;
  --mist: #F6F4EF;
  --mist-2: #EAE9E4;
  --line: #E5E3E1;
  --line-2: #B1B0AD;
  /* The warm well behind toys' photos */
  --well: #ECEAE5;

  /* Brand */
  --brand: #16181D;
  --brand-hover: #393B3F;
  --brand-press: #2A2C30;
  --brand-soft: #E3E3E4;
  --mint: #B08D57;
  --accent-ink: #7E653F;
  --logo-glyph: #CCB592;

  /* The header bar (dark) */
  --header: #0E0E10;
  --header-2: #262628;
  --header-text: #FFFFFF;
  --header-muted: #B7B7B7;

  /* Footer (dark, from the text color) */
  --footer: #0C0D0F;
  --footer-text: #CACACA;
  --footer-link: #B6B6B7;
  --footer-muted: #A8A8A9;
  --footer-dim: #8A8B8C;
  --footer-accent: #B08D57;

  /* The home page's welcome picture (from the brand color) */
  --hero-from: #EFEFEF;
  --hero-to: #DEDFDF;

  /* Soft tints taken from the toys (background / matching deep tone) */
  --mint-tint: #E4F6EE;   --mint-deep: #0B7A63;
  --peach-tint: #FFEEE6;  --peach-deep: #B4532A;
  --lilac-tint: #EFEBFF;  --lilac-deep: #5B45C4;
  --butter-tint: #FFF4D3; --butter-deep: #8A6100;
  --sky-tint: #E6F1FF;    --sky-deep: #2862B4;
  --rose-tint: #FFEAF1;   --rose-deep: #B23A63;

  --danger: #C8322B;
  --danger-tint: #FFF0EE;
  --sale: #C02B25;

  /* Type */
  --font-display: "Mona Sans", "Readex Pro", system-ui, sans-serif;
  --font-body: "Mona Sans", "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display-stretch: 86%;

  /* Shape and depth */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 14px;
  --shadow-xs: 0 1px 2px rgba(var(--ink-rgb), 0.06);
  --shadow-sm: 0 1px 2px rgba(var(--ink-rgb), 0.05), 0 2px 8px -2px rgba(var(--ink-rgb), 0.08);
  --shadow-md: 0 2px 6px rgba(var(--ink-rgb), 0.05), 0 12px 28px -10px rgba(var(--ink-rgb), 0.16);
  --shadow-lg: 0 8px 20px -8px rgba(var(--ink-rgb), 0.10), 0 28px 64px -24px rgba(var(--ink-rgb), 0.28);
  --ring: 0 0 0 4px rgba(var(--brand-rgb), 0.16);
  /* The same colors as red, green, blue numbers (for see-through shades); the theme engine sets them with the colors. */
  --brand-rgb: 22, 24, 29;
  --brand-press-rgb: 42, 44, 48;
  --ink-rgb: 15, 16, 18;
  --accent-rgb: 176, 141, 87;

  /* Motion: a strong ease-out for things that answer a tap (fast start, soft landing), an ease-in-out for things
     that move across the screen, the drawer curve for panels that slide in, and a gentle spring for playful touches.
     Interface motion stays under 300 milliseconds; pressing anything gives way slightly (scale 0.97). */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --dur-press: 160ms;
  --dur-ui: 200ms;
  --dur-panel: 280ms;

  /* Space */
  --container: 1280px;
  --gutter: clamp(16px, 3.5vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-height: 72px;
}

html[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "Readex Pro", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, Tahoma, sans-serif;
  --display-stretch: 100%;
}

/* Tint helpers: .tint-mint, .tint-peach and so on */
.tint-mint   { --tint: var(--mint-tint);   --tint-deep: var(--mint-deep); }
.tint-peach  { --tint: var(--peach-tint);  --tint-deep: var(--peach-deep); }
.tint-lilac  { --tint: var(--lilac-tint);  --tint-deep: var(--lilac-deep); }
.tint-butter { --tint: var(--butter-tint); --tint-deep: var(--butter-deep); }
.tint-sky    { --tint: var(--sky-tint);    --tint-deep: var(--sky-deep); }
.tint-rose   { --tint: var(--rose-tint);   --tint-deep: var(--rose-deep); }

/* 3. Base ---------------------------------------------------------- */

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

/* Anything marked hidden stays hidden, whatever display style it has. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body { line-height: 1.75; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

html[lang="ar"] :is(h1, h2, h3, h4) {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: var(--brand-soft); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-heart { fill: none; }

/* Arrows and chevrons point the other way in Arabic. */
[dir="rtl"] .icon-chevron,
[dir="rtl"] .icon-arrow,
[dir="rtl"] .icon-logout { transform: scaleX(-1); }
.icon-chevron.icon-back { transform: scaleX(-1); }
[dir="rtl"] .icon-chevron.icon-back { transform: none; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 4. Layout -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-top: var(--section); }
.page-end { padding-bottom: var(--section); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -0.03em; }
html[lang="ar"] .section-head h2 { letter-spacing: 0; }
.section-head p { margin-top: 10px; max-width: 46ch; color: var(--ink-2); font-size: 1.125rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon-arrow { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon-arrow { transform: scaleX(-1) translateX(4px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.3s var(--ease); }
[dir="rtl"] .link-arrow span { background-position: 100% 100%; }
.link-arrow:hover span { background-size: 100% 1.5px; }

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--brand-rgb), 0.35);
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

/* 5. Controls ------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s var(--ease), transform 0.2s var(--ease), color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(var(--brand-press-rgb), 0.3), 0 6px 16px -6px rgba(var(--brand-rgb), 0.55);
}
.btn-primary:hover { background: var(--brand-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 4px rgba(var(--brand-press-rgb), 0.3), 0 10px 24px -8px rgba(var(--brand-rgb), 0.6); }
.btn-primary:active { background: var(--brand-press); }

.btn-secondary { border-color: var(--line-2); background: var(--paper); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--mist); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--mist); }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.45); background: transparent; color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Waiting for the server: the label fades and a ring spins. */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading .icon { opacity: 0; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid #fff;
  border-color: #fff #fff transparent transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-secondary.is-loading::after,
.btn-ghost.is-loading::after,
.btn-light.is-loading::after { border-color: var(--ink) var(--ink) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.icon-btn:hover { background: var(--mist); }
.icon-btn .icon { width: 22px; height: 22px; }

.count-badge {
  position: absolute;
  top: 3px;
  inset-inline-end: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink-3); background: var(--mist); }
.chip:active { transform: scale(0.97); }
.chip .icon { width: 18px; height: 18px; }

.lang-switch { font-family: "Readex Pro", var(--font-body); }
html[lang="ar"] .lang-switch { font-family: "Figtree", var(--font-body); }

/* 6. Header -------------------------------------------------------- */

/* The utility strip: the shipping promise at the start, order tracking, help and the language at the end. */
.utility-bar { border-bottom: 1px solid var(--line); background: var(--mist); color: var(--ink-2); font-size: 0.8125rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.utility-promise { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-weight: 500; }
.utility-promise .icon { width: 16px; height: 16px; flex: none; color: var(--accent-ink); }
.utility-links { display: flex; align-items: center; gap: 2px; margin-inline-end: -10px; }
.utility-links a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-xs); color: var(--ink-2); font-weight: 500; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.utility-links a:hover { background: var(--mist-2); color: var(--ink); }
.utility-links .icon { width: 15px; height: 15px; }

/* The header: the dark main bar (logo, search, account, wishlist, bag), then the light department bar. It stays on
   top while the page scrolls. */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header); color: var(--header-text); transition: box-shadow 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.55); }
.header-main { background: var(--header); }
.header-bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-height); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: 20px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { width: 36px; height: 36px; flex: none; }
/* The mark's parts, in the theme's colors (see logo_mark() and Grow your shop → Appearance). */
.lm-tile, .lm-cut { fill: var(--brand); }
.lm-cut-line { fill: none; stroke: var(--brand); }
.lm-glyph { fill: var(--logo-glyph); }
.lm-dot { fill: #FFD66E; }
.lm-letters { fill: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.lm-letters.is-two { font-size: 16px; }
.logo-image { display: block; width: auto; height: auto; max-width: 200px; max-height: 44px; object-fit: contain; }
.logo-word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.logo-word b { color: var(--brand); font-weight: 800; }

/* On the dark bar the logo's mark becomes a brass tile and the highlighted letters brass. */
.site-header .logo, .drawer-head .logo { flex: none; }
.site-header .logo { margin-inline-end: 4px; color: var(--header-text); }
.site-header .lm-tile, .site-header .lm-cut { fill: var(--mint); }
.site-header .lm-cut-line { stroke: var(--mint); }
.site-header .lm-glyph { fill: var(--header); }
.site-header .lm-letters { fill: var(--header); }
.site-header .logo-word b { color: var(--mint); }

/* The search field: always open (shoppers search more when they can see the field), white on the dark bar, its
   button in the accent. Clicking or typing in it opens the search panel right over it (assets/js/app.js). */
.header-search { position: relative; flex: 1; max-width: 760px; margin-inline: auto; }
.header-search input {
  width: 100%;
  height: 46px;
  padding-inline: 18px 58px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--ink);
  font: 500 0.9375rem/1 var(--font-body);
  transition: box-shadow 0.2s ease;
}
.header-search input::placeholder { color: var(--ink-3); opacity: 1; }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.6); }
.header-search-go {
  position: absolute;
  inset-block: 4px;
  inset-inline-end: 4px;
  display: grid;
  place-items: center;
  width: 46px;
  border: 0;
  border-radius: calc(var(--radius-sm) - 3px);
  background: var(--mint);
  color: var(--header);
  cursor: pointer;
  transition: filter 0.2s ease, transform var(--dur-press) var(--ease);
}
.header-search-go:hover { filter: brightness(1.08); }
.header-search-go:active { transform: scale(0.96); }
.header-search-go .icon { width: 20px; height: 20px; }

.header-tools { display: flex; align-items: center; gap: 2px; }
.header-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--header-text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.header-tool:hover { background: var(--header-2); }
.header-tool .icon { width: 24px; height: 24px; }
.header-tool-icon { position: relative; display: inline-grid; place-items: center; }
.header-tool-text { display: grid; font-size: 0.875rem; font-weight: 650; line-height: 1.2; text-align: start; white-space: nowrap; }
.header-tool-small { color: var(--header-muted); font-size: 0.75rem; font-weight: 500; }
.header-tool-single { align-self: center; }

.site-header .icon-btn { color: var(--header-text); }
.site-header .icon-btn:hover { background: var(--header-2); }

.count-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--header);
  font-size: 0.6875rem;
  font-weight: 750;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--header);
}
.count-badge-soft { background: var(--header-text); }

.menu-toggle { display: none; }

/* Account menu */
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: var(--radius-pill); cursor: pointer; transition: background-color 0.2s ease; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: var(--mist); }
.account-menu summary .icon { width: 16px; height: 16px; color: var(--ink-2); transition: transform 0.25s var(--ease); }
.account-menu[open] summary .icon { transform: rotate(180deg); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--mint), var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; box-shadow: 0 10px 24px -10px rgba(var(--brand-rgb), 0.6); }

.popover {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  z-index: 50;
  width: 264px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
  animation: pop-in 0.22s var(--ease);
}
[dir="rtl"] .popover { transform-origin: top left; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.popover-head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.popover-head strong { display: block; }
.popover-head span { display: block; color: var(--ink-2); font-size: 0.875rem; overflow-wrap: anywhere; }
.popover a, .popover button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-weight: 500;
  text-align: start;
  text-decoration: none;
}
.popover a:hover, .popover button:hover { background: var(--mist); }
.popover .icon { width: 20px; height: 20px; color: var(--ink-2); }

/* On the dark bar the account button shows the greeting and "Account". */
.site-header .account-menu summary { gap: 10px; min-height: 48px; padding: 4px 10px 4px 6px; border-radius: var(--radius-sm); color: var(--header-text); }
.site-header .account-menu summary:hover { background: var(--header-2); }
.site-header .account-menu summary .icon { color: var(--header-muted); }
.site-header .popover { color: var(--ink); }
.site-header .avatar { width: 34px; height: 34px; background: var(--mint); color: var(--header); }

/* The department bar: "Shop all" (the category panel), the first categories, new arrivals and deals. */
.dept-bar { border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.dept-inner { display: flex; align-items: center; gap: 6px; min-height: 48px; }
.dept-list { display: flex; flex: 1; align-items: center; gap: 2px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.dept-list::-webkit-scrollbar { display: none; }
.dept-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--ink);
  font: 500 0.9375rem/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.dept-link:hover, .dept-link[aria-expanded="true"] { background: var(--mist); }
.dept-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.dept-all { flex: none; margin-inline-end: 6px; padding-inline: 10px 12px; font-weight: 700; }
.dept-all .icon { width: 18px; height: 18px; }
.dept-all .icon:last-child { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.dept-all[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
.dept-deals { color: var(--sale); font-weight: 650; }
/* While a seasonal look is on, its event page sits before Deals in the look's own colors. */
.dept-link.dept-event { border-radius: 999px; background: var(--header); color: var(--header-text); font-weight: 650; }
.dept-link.dept-event:hover { background: var(--header-2); }

/* The category panel: every category (and its sub-categories), brands, and quick links. It opens on a short hover
   (not on a pointer passing by), stays a moment after the pointer leaves, and has a clear edge. */
.mega {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 39;
  border-block: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(var(--ink-rgb), 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.24s var(--ease), visibility 0s linear 0.24s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.24s var(--ease), visibility 0s; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 200px 280px; gap: 32px; padding-block: 24px 28px; }
.mega-title { margin-bottom: 12px; color: var(--ink-2); font-size: 0.8125rem; font-weight: 650; }
.mega-title a { color: inherit; text-decoration: none; }
.mega-title a:hover { color: var(--ink); text-decoration: underline; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; margin: 0; padding: 0; list-style: none; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); text-decoration: none; transition: background-color 0.2s ease; }
.mega-item:hover { background: var(--mist); }
.mega-thumb { display: grid; place-items: center; width: 52px; height: 52px; flex: none; overflow: hidden; border-radius: var(--radius-sm); background: var(--well); }
.mega-thumb img { width: 56px; height: 56px; max-width: none; transition: transform 0.35s var(--ease); }
.mega-item:hover .mega-thumb img { transform: scale(1.08); }
.mega-item strong { display: block; font-weight: 650; }
.mega-item span { display: block; overflow: hidden; color: var(--ink-2); font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
.mega-children { display: grid; gap: 2px; margin: 0 0 8px; padding: 0; padding-inline-start: 72px; list-style: none; font-size: 0.875rem; }
.mega-children a { color: var(--ink-2); text-decoration: none; }
.mega-children a:hover { color: var(--ink); text-decoration: underline; }
.mega-brands ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mega-brands a { display: block; padding: 6px 8px; border-radius: var(--radius-xs); color: var(--ink); font-weight: 500; text-decoration: none; }
.mega-brands a:hover { background: var(--mist); }
.mega-side { align-self: start; padding: 20px; border-radius: var(--radius-lg); background: var(--mist); }
.mega-side .link-arrow { margin-top: 16px; }

/* Search panel (a native dialog: traps focus, closes with Escape) */
.search-dialog {
  width: calc(100% - 2 * var(--gutter));
  max-width: 680px;
  max-height: none;
  margin: 10vh auto auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.search-dialog::backdrop { background: rgba(var(--ink-rgb), 0.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.search-box {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop-in 0.24s var(--ease);
}
.search-form { display: flex; align-items: center; gap: 12px; padding-block: 8px; padding-inline: 20px 8px; border-bottom: 1px solid var(--line); }
.search-form > .icon { width: 22px; height: 22px; color: var(--ink-2); }
.search-form input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 0;
  background: transparent;
  font-size: 1.125rem;
  outline: none;
}
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form input::placeholder { color: var(--ink-3); }
.search-results { max-height: min(60vh, 520px); padding: 16px; overflow-y: auto; }
.search-label { margin: 4px 8px 10px; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.search-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.search-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; }
.search-list a:hover, .search-list a.is-active { background: var(--mist); }
.search-list .mega-thumb { width: 40px; height: 40px; border-radius: 10px; }
.search-list .mega-thumb img { width: 46px; height: 46px; }
.search-empty { margin: 4px 8px 16px; color: var(--ink-2); }
.search-tip { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--mist); color: var(--ink-2); font-size: 0.8125rem; }

/* Side drawers: phone menu and cart (native dialogs) */
.drawer {
  position: fixed;
  inset-block: 0;
  width: min(92vw, 400px);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.drawer-start { inset-inline-start: 0; inset-inline-end: auto; }
.drawer-end { inset-inline-end: 0; inset-inline-start: auto; }
.drawer::backdrop { background: rgba(var(--ink-rgb), 0.38); backdrop-filter: blur(3px); }
.drawer-start[open] { animation: slide-from-left var(--dur-panel) var(--ease-drawer); }
.drawer-end[open] { animation: slide-from-right var(--dur-panel) var(--ease-drawer); }
.drawer[open]::backdrop { animation: backdrop-in var(--dur-ui) ease-out; }
@keyframes backdrop-in { from { opacity: 0; } }
[dir="rtl"] .drawer-start[open] { animation-name: slide-from-right; }
[dir="rtl"] .drawer-end[open] { animation-name: slide-from-left; }
@keyframes slide-from-left { from { transform: translateX(-100%); } }
@keyframes slide-from-right { from { transform: translateX(100%); } }

.drawer-inner { display: flex; flex-direction: column; min-height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; padding-inline: 20px 12px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-head .logo { margin: 0; }
.drawer-body { display: grid; align-content: start; gap: 28px; padding: 20px; }
.drawer-section-title { margin-bottom: 8px; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.drawer-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.drawer-links a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; }
.drawer-links a:hover { background: var(--mist); }
.drawer-links .mega-thumb { width: 44px; height: 44px; border-radius: 12px; }
.drawer-links .mega-thumb img { width: 50px; height: 50px; }
.plain-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--mist); }
.plain-icon .icon { width: 22px; height: 22px; color: var(--ink-2); }
.drawer-actions { display: grid; gap: 10px; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid var(--line); }

.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 12px; text-align: center; }
.cart-empty img { width: 176px; height: 176px; margin-bottom: 6px; animation: float 6s ease-in-out infinite; }
.cart-empty h3 { font-size: 1.375rem; }
.cart-empty p { max-width: 28ch; color: var(--ink-2); }
.cart-empty .btn { margin-top: 12px; }

@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* Opened from the header's field on a computer, the search panel sits right over that field and drops down from it. */
@media (min-width: 901px) {
  .search-dialog.is-anchored {
    position: fixed;
    inset: auto;
    top: var(--search-top, 80px);
    left: var(--search-left, 50%);
    width: var(--search-width, 680px);
    max-width: none;
    margin: 0;
  }
  .search-dialog.is-anchored::backdrop { background: rgba(var(--ink-rgb), 0.3); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .search-dialog.is-anchored .search-box { max-width: none; border-radius: var(--radius-sm); animation: anchored-in 0.18s var(--ease); }
  .search-dialog.is-anchored .search-form { padding-block: 0; padding-inline: 18px 6px; }
  .search-dialog.is-anchored .search-form input { height: 46px; font-size: 0.9375rem; }
  .search-dialog.is-anchored .search-results { max-height: min(64vh, 560px); }
}
@keyframes anchored-in { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 1180px) {
  .header-tool-text, .site-header .account-menu .header-tool-text { display: none; }
  .header-tool, .site-header .account-menu summary { padding-inline: 10px; }
}

@media (max-width: 900px) {
  :root { --header-height: 60px; }
  .utility-links { display: none; }
  .utility-inner { justify-content: center; min-height: 32px; }
  .header-bar { flex-wrap: wrap; gap: 4px 8px; }
  .menu-toggle { display: inline-grid; margin-inline-start: -8px; }
  .site-header .logo { margin-inline-end: auto; }
  .header-search { flex-basis: 100%; order: 3; max-width: none; margin: 0 0 10px; }
  .header-wishlist { display: none; }
  .header-tool { min-height: 44px; padding-inline: 8px; }
  .site-header .account-menu summary { padding: 4px; }
  .site-header .account-menu summary .icon { display: none; }
  .dept-all, .mega { display: none; }
  .dept-inner { min-height: 44px; }
  .dept-list { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .search-list { grid-template-columns: 1fr; }
  .search-dialog { margin-top: 12px; }
}

/* 7. Hero ---------------------------------------------------------- */

.hero { padding-top: 16px; }

.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  /* At least this tall, and taller whenever the text and buttons need it (they are never cut off). */
  min-height: clamp(560px, 46vw, 660px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 78% 38%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(50% 70% at 0% 100%, #FFF1E8 0%, rgba(255, 241, 232, 0) 70%),
    linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 100%);
}
[dir="rtl"] .hero-stage {
  background:
    radial-gradient(60% 80% at 22% 38%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(50% 70% at 100% 100%, #FFF1E8 0%, rgba(255, 241, 232, 0) 70%),
    linear-gradient(200deg, var(--hero-from) 0%, var(--hero-to) 100%);
}

.hero-3d { position: absolute; inset: 0; z-index: 0; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity 0.7s ease; }
.hero-3d.is-ready .hero-poster img { opacity: 0; }
.hero-canvas { opacity: 0; transition: opacity 0.7s ease; }
.hero-3d.is-ready .hero-canvas { opacity: 1; }

.hero-toy-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.hero-toy-label.is-visible { opacity: 1; }

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  padding: clamp(32px, 5vw, 72px);
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }

.hero-title {
  font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.028em;
}
html[lang="ar"] .hero-title { font-size: clamp(2.3rem, 1.2rem + 3.2vw, 3.9rem); font-weight: 500; line-height: 1.32; letter-spacing: 0; }
html[lang="ar"] :is(.section-head h2, .auth-card h1, .account-hero h1, .status-page h1, .join-band h2, .track-band h2) { font-weight: 500; }

.hero-text {
  max-width: 40ch;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-ages { margin-top: 30px; }
.hero-ages p { margin-bottom: 10px; color: var(--ink-2); font-size: 0.875rem; font-weight: 600; }
.hero-ages .chip-row { max-width: 440px; }
.hero-ages .chip { border-color: rgba(var(--ink-rgb), 0.12); background: rgba(255, 255, 255, 0.7); }
.hero-ages .chip:hover { background: #fff; }

.hero-hint {
  position: absolute;
  bottom: 20px;
  inset-inline-end: 24px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  pointer-events: none;
}
.hero-hint .icon { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .hero-stage { display: block; height: auto; aspect-ratio: auto; min-height: 0; max-height: none; }
  .hero-3d { position: relative; inset: auto; aspect-ratio: 6 / 5; max-height: 460px; margin-inline: auto; }
  .hero-copy { width: 100%; max-width: 640px; padding: 0 clamp(20px, 5vw, 40px) clamp(28px, 6vw, 44px); }
  .hero-hint { display: none; }
}

/* 8. Category grid ------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bento > li { display: flex; }
.bento .is-large, .bento .is-tall { grid-column: span 2; grid-row: span 2; }
.bento .is-wide { grid-column: span 2; }
.bento .is-full { grid-column: 1 / -1; }

.cat-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--tint);
  text-decoration: none;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cat-card:hover { box-shadow: var(--shadow-md); }
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 70%) var(--glow-y, 30%), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cat-card:hover::before { opacity: 1; }

.cat-text { position: relative; z-index: 1; max-width: 22ch; }
.cat-card h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.cat-card p { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }

.cat-art {
  position: absolute;
  inset-inline-end: -2%;
  bottom: -8%;
  width: 54%;
  max-width: 240px;
  transition: transform 0.6s var(--spring);
  pointer-events: none;
}
.cat-card:hover .cat-art { transform: translateY(-6px) scale(1.06) rotate(-4deg); }

.cat-go {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--tint-deep);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--spring);
}
.cat-go .icon { width: 20px; height: 20px; }
.cat-card:hover .cat-go { background: var(--ink); color: #fff; transform: translateX(4px); }
[dir="rtl"] .cat-card:hover .cat-go { transform: translateX(-4px); }

.is-large .cat-card { padding: 32px; }
.is-large .cat-card h3 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; }
.is-large .cat-card p { font-size: 1.0625rem; }
.is-large .cat-art { width: 70%; max-width: 440px; inset-inline-end: -2%; bottom: -6%; }
.is-wide .cat-art, .is-full .cat-art, .is-tall .cat-art { width: 44%; max-width: 300px; inset-inline-end: 4%; bottom: -16%; }
.is-full .cat-art { width: 28%; }
html[lang="ar"] .cat-card h3 { letter-spacing: 0; }

/* Uploaded category photos (pictures with their own background). They fill their space instead of
   floating like the 3D toys, keep their subject in view (fx and fy come from the shop's look at the
   photo) and fade softly into the card color. Pictures with a transparent background keep the toy style. */
/* Positions (0 to 100%) and sizes (50 to 150%) chosen in the category picture editor. */
.fx-0{--fx:0%}.fy-0{--fy:0%} .fx-1{--fx:1%}.fy-1{--fy:1%} .fx-2{--fx:2%}.fy-2{--fy:2%} .fx-3{--fx:3%}.fy-3{--fy:3%} .fx-4{--fx:4%}.fy-4{--fy:4%} .fx-5{--fx:5%}.fy-5{--fy:5%}
.fx-6{--fx:6%}.fy-6{--fy:6%} .fx-7{--fx:7%}.fy-7{--fy:7%} .fx-8{--fx:8%}.fy-8{--fy:8%} .fx-9{--fx:9%}.fy-9{--fy:9%} .fx-10{--fx:10%}.fy-10{--fy:10%} .fx-11{--fx:11%}.fy-11{--fy:11%}
.fx-12{--fx:12%}.fy-12{--fy:12%} .fx-13{--fx:13%}.fy-13{--fy:13%} .fx-14{--fx:14%}.fy-14{--fy:14%} .fx-15{--fx:15%}.fy-15{--fy:15%} .fx-16{--fx:16%}.fy-16{--fy:16%} .fx-17{--fx:17%}.fy-17{--fy:17%}
.fx-18{--fx:18%}.fy-18{--fy:18%} .fx-19{--fx:19%}.fy-19{--fy:19%} .fx-20{--fx:20%}.fy-20{--fy:20%} .fx-21{--fx:21%}.fy-21{--fy:21%} .fx-22{--fx:22%}.fy-22{--fy:22%} .fx-23{--fx:23%}.fy-23{--fy:23%}
.fx-24{--fx:24%}.fy-24{--fy:24%} .fx-25{--fx:25%}.fy-25{--fy:25%} .fx-26{--fx:26%}.fy-26{--fy:26%} .fx-27{--fx:27%}.fy-27{--fy:27%} .fx-28{--fx:28%}.fy-28{--fy:28%} .fx-29{--fx:29%}.fy-29{--fy:29%}
.fx-30{--fx:30%}.fy-30{--fy:30%} .fx-31{--fx:31%}.fy-31{--fy:31%} .fx-32{--fx:32%}.fy-32{--fy:32%} .fx-33{--fx:33%}.fy-33{--fy:33%} .fx-34{--fx:34%}.fy-34{--fy:34%} .fx-35{--fx:35%}.fy-35{--fy:35%}
.fx-36{--fx:36%}.fy-36{--fy:36%} .fx-37{--fx:37%}.fy-37{--fy:37%} .fx-38{--fx:38%}.fy-38{--fy:38%} .fx-39{--fx:39%}.fy-39{--fy:39%} .fx-40{--fx:40%}.fy-40{--fy:40%} .fx-41{--fx:41%}.fy-41{--fy:41%}
.fx-42{--fx:42%}.fy-42{--fy:42%} .fx-43{--fx:43%}.fy-43{--fy:43%} .fx-44{--fx:44%}.fy-44{--fy:44%} .fx-45{--fx:45%}.fy-45{--fy:45%} .fx-46{--fx:46%}.fy-46{--fy:46%} .fx-47{--fx:47%}.fy-47{--fy:47%}
.fx-48{--fx:48%}.fy-48{--fy:48%} .fx-49{--fx:49%}.fy-49{--fy:49%} .fx-50{--fx:50%}.fy-50{--fy:50%} .fx-51{--fx:51%}.fy-51{--fy:51%} .fx-52{--fx:52%}.fy-52{--fy:52%} .fx-53{--fx:53%}.fy-53{--fy:53%}
.fx-54{--fx:54%}.fy-54{--fy:54%} .fx-55{--fx:55%}.fy-55{--fy:55%} .fx-56{--fx:56%}.fy-56{--fy:56%} .fx-57{--fx:57%}.fy-57{--fy:57%} .fx-58{--fx:58%}.fy-58{--fy:58%} .fx-59{--fx:59%}.fy-59{--fy:59%}
.fx-60{--fx:60%}.fy-60{--fy:60%} .fx-61{--fx:61%}.fy-61{--fy:61%} .fx-62{--fx:62%}.fy-62{--fy:62%} .fx-63{--fx:63%}.fy-63{--fy:63%} .fx-64{--fx:64%}.fy-64{--fy:64%} .fx-65{--fx:65%}.fy-65{--fy:65%}
.fx-66{--fx:66%}.fy-66{--fy:66%} .fx-67{--fx:67%}.fy-67{--fy:67%} .fx-68{--fx:68%}.fy-68{--fy:68%} .fx-69{--fx:69%}.fy-69{--fy:69%} .fx-70{--fx:70%}.fy-70{--fy:70%} .fx-71{--fx:71%}.fy-71{--fy:71%}
.fx-72{--fx:72%}.fy-72{--fy:72%} .fx-73{--fx:73%}.fy-73{--fy:73%} .fx-74{--fx:74%}.fy-74{--fy:74%} .fx-75{--fx:75%}.fy-75{--fy:75%} .fx-76{--fx:76%}.fy-76{--fy:76%} .fx-77{--fx:77%}.fy-77{--fy:77%}
.fx-78{--fx:78%}.fy-78{--fy:78%} .fx-79{--fx:79%}.fy-79{--fy:79%} .fx-80{--fx:80%}.fy-80{--fy:80%} .fx-81{--fx:81%}.fy-81{--fy:81%} .fx-82{--fx:82%}.fy-82{--fy:82%} .fx-83{--fx:83%}.fy-83{--fy:83%}
.fx-84{--fx:84%}.fy-84{--fy:84%} .fx-85{--fx:85%}.fy-85{--fy:85%} .fx-86{--fx:86%}.fy-86{--fy:86%} .fx-87{--fx:87%}.fy-87{--fy:87%} .fx-88{--fx:88%}.fy-88{--fy:88%} .fx-89{--fx:89%}.fy-89{--fy:89%}
.fx-90{--fx:90%}.fy-90{--fy:90%} .fx-91{--fx:91%}.fy-91{--fy:91%} .fx-92{--fx:92%}.fy-92{--fy:92%} .fx-93{--fx:93%}.fy-93{--fy:93%} .fx-94{--fx:94%}.fy-94{--fy:94%} .fx-95{--fx:95%}.fy-95{--fy:95%}
.fx-96{--fx:96%}.fy-96{--fy:96%} .fx-97{--fx:97%}.fy-97{--fy:97%} .fx-98{--fx:98%}.fy-98{--fy:98%} .fx-99{--fx:99%}.fy-99{--fy:99%} .fx-100{--fx:100%}.fy-100{--fy:100%}
.z-50{--z:0.5} .z-55{--z:0.55} .z-60{--z:0.6} .z-65{--z:0.65} .z-70{--z:0.7} .z-75{--z:0.75} .z-80{--z:0.8} .z-85{--z:0.85} .z-90{--z:0.9} .z-95{--z:0.95} .z-100{--z:1}
.z-105{--z:1.05} .z-110{--z:1.1} .z-115{--z:1.15} .z-120{--z:1.2} .z-125{--z:1.25} .z-130{--z:1.3} .z-135{--z:1.35} .z-140{--z:1.4} .z-145{--z:1.45} .z-150{--z:1.5}
/* 3D toys and cut-outs moved or resized in the picture editor. */
img.is-placed { translate: calc(var(--fx, 50%) - 50%) calc(var(--fy, 50%) - 50%); scale: var(--z, 1); }
/* In Arabic the toy sits on the other side of its tile, so left and right are mirrored too. */
[dir="rtl"] img.is-placed { translate: calc(50% - var(--fx, 50%)) calc(var(--fy, 50%) - 50%); }
/* Small round buttons keep 3D toys at their usual size. */
.chip-art img.is-placed { translate: none; scale: none; }
img.is-photo { object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.cat-card.has-photo .cat-text { max-width: 52%; }
.cat-card.has-photo .cat-art.is-photo {
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: 50%;
  height: 100%;
  max-width: none;
  transform-origin: 70% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.55) 20%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.55) 20%, #000 52%);
}
[dir="rtl"] .cat-card.has-photo .cat-art.is-photo {
  left: 0;
  right: auto;
  transform-origin: 30% 50%;
  -webkit-mask-image: linear-gradient(270deg, transparent 0, rgba(0, 0, 0, 0.55) 20%, #000 52%);
  mask-image: linear-gradient(270deg, transparent 0, rgba(0, 0, 0, 0.55) 20%, #000 52%);
}
.cat-card.has-photo:hover .cat-art.is-photo { transform: scale(1.04); }
.is-large .cat-card.has-photo .cat-art.is-photo, .is-tall .cat-card.has-photo .cat-art.is-photo { width: 58%; }
.is-large .cat-card.has-photo .cat-text, .is-tall .cat-card.has-photo .cat-text { max-width: 44%; }
.is-full .cat-card.has-photo .cat-art.is-photo { width: 40%; }
.is-full .cat-card.has-photo .cat-text { max-width: 58%; }
.mega-thumb img.is-photo { width: 100%; height: 100%; border-radius: inherit; }
.mega-item:hover .mega-thumb img.is-photo { transform: scale(1.06); }


@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); }
  .bento .is-large, .bento .is-tall { grid-row: span 1; }
  .is-large .cat-card { min-height: 300px; }
  .is-large .cat-art { width: 58%; max-width: 300px; }
}
@media (max-width: 560px) {
  .bento { gap: 12px; grid-auto-rows: minmax(180px, auto); }
  .bento .is-wide { grid-column: span 1; }
  .cat-card { min-height: 180px; padding: 16px; border-radius: 20px; }
  .cat-card h3 { font-size: 1.0625rem; }
  .cat-card p { display: none; }
  .cat-art, .is-wide .cat-art { width: 76%; inset-inline-end: -8%; bottom: -8%; }
  .bento .is-full { grid-column: span 1; }
  .bento > li.is-tail { grid-column: span 2; }
  .bento > li.is-tail .cat-art { width: 44%; inset-inline-end: 4%; }
  .cat-go { width: 36px; height: 36px; }
  .is-large .cat-card { min-height: 260px; padding: 22px; }
  .is-large .cat-card p { display: block; }
  .is-large .cat-text { max-width: 62%; }
  .is-large .cat-art { width: 48%; }
}

/* Phones: twelve compact tiles in three columns instead of tall cards. */
@media (max-width: 560px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .bento > li, .bento .is-large, .bento .is-wide, .bento .is-full, .bento .is-tall, .bento > li.is-tail { grid-column: span 1; grid-row: span 1; }
  .cat-card, .is-large .cat-card { min-height: 0; aspect-ratio: 1 / 1.14; padding: 10px 8px 12px; justify-content: flex-end; border-radius: 18px; text-align: center; transform: none; }
  .cat-text, .is-large .cat-text { max-width: none; }
  .cat-card h3, .is-large .cat-card h3 { font-size: 0.8125rem; line-height: 1.25; letter-spacing: 0; }
  html[lang="ar"] .cat-card h3 { font-size: 0.8125rem; line-height: 1.45; }
  .cat-card p, .is-large .cat-card p, .cat-go { display: none; }
  .cat-art, .is-large .cat-art, .is-wide .cat-art, .is-full .cat-art, .is-tall .cat-art, .bento > li.is-tail .cat-art {
    top: 6%;
    bottom: auto;
    /* Centered without a transform, so a size chosen in the picture editor grows from the middle. */
    left: 17%;
    right: auto;
    width: 66%;
    max-width: none;
    transform: none;
  }
  .cat-card:hover .cat-art { transform: scale(1.04); }
  /* Phone tiles: the photo fills the top of the tile and fades into the name below it. */
  .cat-card.has-photo .cat-text, .is-large .cat-card.has-photo .cat-text, .is-full .cat-card.has-photo .cat-text { max-width: none; }
  .cat-card.has-photo .cat-art.is-photo, [dir="rtl"] .cat-card.has-photo .cat-art.is-photo,
  .is-large .cat-card.has-photo .cat-art.is-photo, .is-tall .cat-card.has-photo .cat-art.is-photo, .is-full .cat-card.has-photo .cat-art.is-photo {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 70%;
    transform: none;
    transform-origin: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .cat-card.has-photo:hover .cat-art.is-photo { transform: scale(1.04); }
  .hero-actions .btn { flex: 1 1 0; padding-inline: 16px; }
}


/* Phones: the home page tiles' own layout, when the shop chose one in the category picture editor. */
@media (max-width: 560px) {
  .bento .px-0{--fx:0%}.bento .py-0{--fy:0%} .bento .px-1{--fx:1%}.bento .py-1{--fy:1%} .bento .px-2{--fx:2%}.bento .py-2{--fy:2%} .bento .px-3{--fx:3%}.bento .py-3{--fy:3%} .bento .px-4{--fx:4%}.bento .py-4{--fy:4%}
  .bento .px-5{--fx:5%}.bento .py-5{--fy:5%} .bento .px-6{--fx:6%}.bento .py-6{--fy:6%} .bento .px-7{--fx:7%}.bento .py-7{--fy:7%} .bento .px-8{--fx:8%}.bento .py-8{--fy:8%} .bento .px-9{--fx:9%}.bento .py-9{--fy:9%}
  .bento .px-10{--fx:10%}.bento .py-10{--fy:10%} .bento .px-11{--fx:11%}.bento .py-11{--fy:11%} .bento .px-12{--fx:12%}.bento .py-12{--fy:12%} .bento .px-13{--fx:13%}.bento .py-13{--fy:13%} .bento .px-14{--fx:14%}.bento .py-14{--fy:14%}
  .bento .px-15{--fx:15%}.bento .py-15{--fy:15%} .bento .px-16{--fx:16%}.bento .py-16{--fy:16%} .bento .px-17{--fx:17%}.bento .py-17{--fy:17%} .bento .px-18{--fx:18%}.bento .py-18{--fy:18%} .bento .px-19{--fx:19%}.bento .py-19{--fy:19%}
  .bento .px-20{--fx:20%}.bento .py-20{--fy:20%} .bento .px-21{--fx:21%}.bento .py-21{--fy:21%} .bento .px-22{--fx:22%}.bento .py-22{--fy:22%} .bento .px-23{--fx:23%}.bento .py-23{--fy:23%} .bento .px-24{--fx:24%}.bento .py-24{--fy:24%}
  .bento .px-25{--fx:25%}.bento .py-25{--fy:25%} .bento .px-26{--fx:26%}.bento .py-26{--fy:26%} .bento .px-27{--fx:27%}.bento .py-27{--fy:27%} .bento .px-28{--fx:28%}.bento .py-28{--fy:28%} .bento .px-29{--fx:29%}.bento .py-29{--fy:29%}
  .bento .px-30{--fx:30%}.bento .py-30{--fy:30%} .bento .px-31{--fx:31%}.bento .py-31{--fy:31%} .bento .px-32{--fx:32%}.bento .py-32{--fy:32%} .bento .px-33{--fx:33%}.bento .py-33{--fy:33%} .bento .px-34{--fx:34%}.bento .py-34{--fy:34%}
  .bento .px-35{--fx:35%}.bento .py-35{--fy:35%} .bento .px-36{--fx:36%}.bento .py-36{--fy:36%} .bento .px-37{--fx:37%}.bento .py-37{--fy:37%} .bento .px-38{--fx:38%}.bento .py-38{--fy:38%} .bento .px-39{--fx:39%}.bento .py-39{--fy:39%}
  .bento .px-40{--fx:40%}.bento .py-40{--fy:40%} .bento .px-41{--fx:41%}.bento .py-41{--fy:41%} .bento .px-42{--fx:42%}.bento .py-42{--fy:42%} .bento .px-43{--fx:43%}.bento .py-43{--fy:43%} .bento .px-44{--fx:44%}.bento .py-44{--fy:44%}
  .bento .px-45{--fx:45%}.bento .py-45{--fy:45%} .bento .px-46{--fx:46%}.bento .py-46{--fy:46%} .bento .px-47{--fx:47%}.bento .py-47{--fy:47%} .bento .px-48{--fx:48%}.bento .py-48{--fy:48%} .bento .px-49{--fx:49%}.bento .py-49{--fy:49%}
  .bento .px-50{--fx:50%}.bento .py-50{--fy:50%} .bento .px-51{--fx:51%}.bento .py-51{--fy:51%} .bento .px-52{--fx:52%}.bento .py-52{--fy:52%} .bento .px-53{--fx:53%}.bento .py-53{--fy:53%} .bento .px-54{--fx:54%}.bento .py-54{--fy:54%}
  .bento .px-55{--fx:55%}.bento .py-55{--fy:55%} .bento .px-56{--fx:56%}.bento .py-56{--fy:56%} .bento .px-57{--fx:57%}.bento .py-57{--fy:57%} .bento .px-58{--fx:58%}.bento .py-58{--fy:58%} .bento .px-59{--fx:59%}.bento .py-59{--fy:59%}
  .bento .px-60{--fx:60%}.bento .py-60{--fy:60%} .bento .px-61{--fx:61%}.bento .py-61{--fy:61%} .bento .px-62{--fx:62%}.bento .py-62{--fy:62%} .bento .px-63{--fx:63%}.bento .py-63{--fy:63%} .bento .px-64{--fx:64%}.bento .py-64{--fy:64%}
  .bento .px-65{--fx:65%}.bento .py-65{--fy:65%} .bento .px-66{--fx:66%}.bento .py-66{--fy:66%} .bento .px-67{--fx:67%}.bento .py-67{--fy:67%} .bento .px-68{--fx:68%}.bento .py-68{--fy:68%} .bento .px-69{--fx:69%}.bento .py-69{--fy:69%}
  .bento .px-70{--fx:70%}.bento .py-70{--fy:70%} .bento .px-71{--fx:71%}.bento .py-71{--fy:71%} .bento .px-72{--fx:72%}.bento .py-72{--fy:72%} .bento .px-73{--fx:73%}.bento .py-73{--fy:73%} .bento .px-74{--fx:74%}.bento .py-74{--fy:74%}
  .bento .px-75{--fx:75%}.bento .py-75{--fy:75%} .bento .px-76{--fx:76%}.bento .py-76{--fy:76%} .bento .px-77{--fx:77%}.bento .py-77{--fy:77%} .bento .px-78{--fx:78%}.bento .py-78{--fy:78%} .bento .px-79{--fx:79%}.bento .py-79{--fy:79%}
  .bento .px-80{--fx:80%}.bento .py-80{--fy:80%} .bento .px-81{--fx:81%}.bento .py-81{--fy:81%} .bento .px-82{--fx:82%}.bento .py-82{--fy:82%} .bento .px-83{--fx:83%}.bento .py-83{--fy:83%} .bento .px-84{--fx:84%}.bento .py-84{--fy:84%}
  .bento .px-85{--fx:85%}.bento .py-85{--fy:85%} .bento .px-86{--fx:86%}.bento .py-86{--fy:86%} .bento .px-87{--fx:87%}.bento .py-87{--fy:87%} .bento .px-88{--fx:88%}.bento .py-88{--fy:88%} .bento .px-89{--fx:89%}.bento .py-89{--fy:89%}
  .bento .px-90{--fx:90%}.bento .py-90{--fy:90%} .bento .px-91{--fx:91%}.bento .py-91{--fy:91%} .bento .px-92{--fx:92%}.bento .py-92{--fy:92%} .bento .px-93{--fx:93%}.bento .py-93{--fy:93%} .bento .px-94{--fx:94%}.bento .py-94{--fy:94%}
  .bento .px-95{--fx:95%}.bento .py-95{--fy:95%} .bento .px-96{--fx:96%}.bento .py-96{--fy:96%} .bento .px-97{--fx:97%}.bento .py-97{--fy:97%} .bento .px-98{--fx:98%}.bento .py-98{--fy:98%} .bento .px-99{--fx:99%}.bento .py-99{--fy:99%}
  .bento .px-100{--fx:100%}.bento .py-100{--fy:100%}
  .bento .pz-50{--z:0.5} .bento .pz-55{--z:0.55} .bento .pz-60{--z:0.6} .bento .pz-65{--z:0.65} .bento .pz-70{--z:0.7} .bento .pz-75{--z:0.75} .bento .pz-80{--z:0.8}
  .bento .pz-85{--z:0.85} .bento .pz-90{--z:0.9} .bento .pz-95{--z:0.95} .bento .pz-100{--z:1} .bento .pz-105{--z:1.05} .bento .pz-110{--z:1.1} .bento .pz-115{--z:1.15}
  .bento .pz-120{--z:1.2} .bento .pz-125{--z:1.25} .bento .pz-130{--z:1.3} .bento .pz-135{--z:1.35} .bento .pz-140{--z:1.4} .bento .pz-145{--z:1.45} .bento .pz-150{--z:1.5}
}

/* 9. Shared animations ------------------------------------------- */

@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

/* 10. Bands and footer --------------------------------------------- */

.track-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 24px 40px;
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.track-art { width: 112px; height: 112px; margin-block: -12px; }
.track-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -0.03em; }
html[lang="ar"] .track-band h2 { letter-spacing: 0; }
.track-band p { margin-top: 6px; color: var(--ink-2); }
.home-about-inner { max-width: 760px; }
.home-about-inner h2 { font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem); letter-spacing: -0.02em; }
html[lang="ar"] .home-about-inner h2 { letter-spacing: 0; font-weight: 500; }
.home-about-inner p { margin-top: 10px; color: var(--ink-2); line-height: 1.7; }
.home-about-inner .text-link { display: inline-block; margin-top: 10px; }
.track-form { display: flex; gap: 10px; }
.track-form .input { flex: 1; min-width: 0; }
@media (max-width: 960px) {
  .track-band { grid-template-columns: auto minmax(0, 1fr); }
  .track-form { grid-column: 1 / -1; }
  .track-art { width: 84px; height: 84px; }
}
@media (max-width: 480px) {
  .track-form { flex-direction: column; }
  .track-form .input { flex: none; }
}

.join-band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 24px 48px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 120% at 85% 10%, rgba(var(--accent-rgb), 0.5) 0%, rgba(var(--accent-rgb), 0) 65%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-press) 100%);
  color: #fff;
  overflow: hidden;
}
[dir="rtl"] .join-band {
  background:
    radial-gradient(60% 120% at 15% 10%, rgba(var(--accent-rgb), 0.5) 0%, rgba(var(--accent-rgb), 0) 65%),
    linear-gradient(225deg, var(--brand) 0%, var(--brand-press) 100%);
}
.join-band h2 { max-width: 18ch; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); letter-spacing: -0.03em; }
html[lang="ar"] .join-band h2 { letter-spacing: 0; }
.join-band p { max-width: 46ch; margin-top: 12px; color: rgba(255, 255, 255, 0.92); font-size: 1.125rem; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.join-art { position: relative; height: 100%; min-height: 240px; margin-block: calc(clamp(32px, 5vw, 64px) * -1); }
.join-art img { position: absolute; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25)); animation: float 7s ease-in-out infinite; }
.join-art .toy-a { inset-inline-start: 4%; top: 12%; width: 38%; max-width: 170px; animation-delay: -3s; }
.join-art .toy-b { inset-inline-end: 0; bottom: -8%; width: 72%; max-width: 330px; }
@media (max-width: 860px) {
  .join-band { grid-template-columns: 1fr; }
  .join-art { display: none; }
}

.site-footer { margin-top: var(--section); background: var(--footer); color: var(--footer-text); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding-block: 72px 48px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-word b { color: var(--footer-accent); }
/* An uploaded logo sits on a white plate in the dark footer, so a dark logo still shows. */
.footer-brand .logo-image { padding: 6px 10px; border-radius: var(--radius-sm); background: #fff; }
.footer-brand p { max-width: 34ch; margin-top: 16px; color: var(--footer-muted); }
.footer-brand .chip { margin-top: 24px; border-color: rgba(255, 255, 255, 0.24); background: transparent; color: #fff; }
.footer-brand .chip:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.site-footer h2 { margin-bottom: 16px; color: #fff; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--footer-link); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-summary { max-width: 80ch; padding-bottom: 20px; color: var(--footer-dim); font-size: 0.875rem; line-height: 1.6; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--footer-dim);
  font-size: 0.875rem;
}
/* The business behind the shop, the currency and the cards accepted (also at the bottom of the checkout). */
.business-line { display: grid; gap: 8px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; }
.business-line p { margin: 0; }
.business-contact, .business-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.business-contact > * + *::before, .business-pay > * + *::before { content: "·"; margin-inline: 10px; opacity: 0.6; }
.business-contact strong { font-weight: 600; color: #fff; }
.business-contact a { color: inherit; text-decoration: none; }
.business-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.business-cards { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-name { display: inline-block; padding: 1px 8px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 6px; font-size: 0.75rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.business-secure { display: inline-flex; align-items: center; gap: 6px; }
.business-secure svg { width: 14px; height: 14px; flex: none; }
.business-policies ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.checkout-footer .business-line { flex: 1 1 100%; padding-block: 0 12px; border-top: 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 0.8125rem; }
.checkout-footer .business-contact strong { color: var(--ink-2, #2E4541); }
.checkout-footer .business-contact a:hover { color: var(--ink); }
.checkout-footer .card-name { border-color: var(--line); background: #fff; color: var(--ink-2, #2E4541); }
.checkout-footer .business-policies a { color: var(--brand); }
@media (max-width: 520px) {
  .business-contact, .business-pay { display: grid; gap: 6px; }
  .business-contact > * + *::before, .business-pay > * + *::before { content: none; }
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 56px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* 10b. Home page sections chosen in Grow your shop → Home page → Page layout ------------------------------- */

/* A section shown only on phones, or only on wider screens. */
@media (max-width: 760px) { .home-only-wide { display: none; } }
@media (min-width: 761px) { .home-only-phone { display: none; } }

/* What every order gets: four short promises in one quiet band, right under the welcome picture. */
.home-promises { padding-top: clamp(20px, 2.6vw, 32px); }
.promise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}
.promise {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px clamp(12px, 2vw, 24px);
}
.promise + .promise { border-inline-start: 1px solid var(--line); }
.promise-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--well);
  color: var(--ink);
}
.promise-icon .icon { width: 22px; height: 22px; }
.promise-text { display: grid; gap: 2px; min-width: 0; }
.promise-title { color: var(--ink); font-weight: 650; text-decoration: none; }
a.promise-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.promise-text span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
/* Phones: two short promises a row, the title only. */
@media (max-width: 760px) {
  .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .promise { align-items: center; gap: 10px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .promise + .promise { border-inline-start: 0; }
  .promise:nth-child(even) { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
  .promise-icon { width: 32px; height: 32px; }
  .promise-icon .icon { width: 18px; height: 18px; }
  .promise-title { font-size: 0.875rem; line-height: 1.3; }
  .promise-text span { display: none; }
}

/* Toys in a grid (instead of a row that slides). */
.home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A banner the owner made: a picture with a title, a few words and a button. */
.home-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(260px, 30vw, 380px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--header);
  color: var(--header-text);
  isolation: isolate;
}
.home-banner.is-tall { min-height: clamp(360px, 46vw, 560px); }
.home-banner.is-light { background: var(--well); color: var(--ink); }
.home-banner-picture {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The shade keeps the words readable on any picture: dark under light words, light under dark words. */
.home-banner.has-picture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(15, 16, 18, 0.82), rgba(15, 16, 18, 0.35) 55%, rgba(15, 16, 18, 0.05));
}
.home-banner.is-light.has-picture::before { background: linear-gradient(to top, rgba(246, 244, 239, 0.94), rgba(246, 244, 239, 0.55) 55%, rgba(246, 244, 239, 0)); }
.home-banner-copy { display: grid; justify-items: start; gap: 12px; max-width: 620px; padding: clamp(24px, 4vw, 52px); }
.home-banner.is-center { justify-content: center; text-align: center; }
.home-banner.is-center .home-banner-copy { justify-items: center; }
.home-banner h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  font-stretch: var(--display-stretch, 100%);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
html[lang="ar"] .home-banner h2 { letter-spacing: 0; line-height: 1.25; }
.home-banner p { max-width: 48ch; font-size: 1.125rem; line-height: 1.55; opacity: 0.92; }
.home-banner .btn { margin-top: 6px; }
.home-banner-link { color: inherit; text-decoration: none; }
.home-banner-link::after { content: ""; position: absolute; inset: 0; }
.home-banner-link:focus-visible { outline: none; }
.home-banner:has(.home-banner-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .home-banner { min-height: 320px; border-radius: var(--radius-lg); }
  .home-banner.is-tall { min-height: 440px; }
}

/* A short text the owner wrote. */
.home-text-inner { display: grid; gap: 12px; max-width: 720px; }
.home-text.is-center .home-text-inner { margin-inline: auto; text-align: center; }
.home-text h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.03em; }
html[lang="ar"] .home-text h2 { letter-spacing: 0; }
.home-text p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }

/* 11. Forms -------------------------------------------------------- */

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 20px; } }

.field { display: grid; gap: 8px; }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label, .field .label { font-weight: 600; font-size: 0.875rem; }
.field-label-row a { font-size: 0.875rem; }

.input-wrap { position: relative; }

.input, .select {
  width: 100%;
  height: 52px;
  padding-inline: 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  font-size: 1rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.input::placeholder { color: var(--ink-3); }
.input:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input[readonly] { background: var(--mist); color: var(--ink-2); box-shadow: none; }
.input-wrap .input { padding-inline-end: 52px; }
.select {
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344605A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 16px center;
}
[dir="rtl"] .select { background-position: left 16px center; }
[dir="rtl"] .ltr { direction: ltr; text-align: right; }
/* Boxes that may hold English or Arabic (addresses) follow what is typed, but line up with the page. */
[dir="rtl"] .input[dir="auto"] { text-align: right; }

.reveal {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.reveal:hover { background: var(--mist); color: var(--ink); }
.reveal .icon { width: 20px; height: 20px; }
.reveal .icon-eye-off { display: none; }
.reveal[aria-pressed="true"] .icon-eye { display: none; }
.reveal[aria-pressed="true"] .icon-eye-off { display: block; }

.field-hint { color: var(--ink-2); font-size: 0.8125rem; }
.field-error {
  display: none;
  align-items: flex-start;
  gap: 6px;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 500;
}
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.field.has-error .field-error { display: flex; animation: panel-in 0.25s var(--ease); }
.field.has-error .input, .field.has-error .select { border-color: var(--danger); }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(200, 50, 43, 0.14); }

/* Phone number with a country picker. Numbers always read left to right. */
.phone-group { position: relative; display: flex; gap: 8px; direction: ltr; }
.phone-select { flex: none; width: 9.5rem; height: 52px; padding-inline: 12px 32px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); font-size: 0.9375rem; box-shadow: var(--shadow-xs); }
.phone-group .phone-input { flex: 1; min-width: 0; }
[dir="rtl"] .phone-group .phone-input { text-align: left; }

.phone-group.is-enhanced {
  gap: 0;
  height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phone-group.is-enhanced:hover { border-color: var(--ink-3); }
.phone-group.is-enhanced:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.field.has-error .phone-group.is-enhanced { border-color: var(--danger); }
.field.has-error .phone-group.is-enhanced:focus-within { box-shadow: 0 0 0 4px rgba(200, 50, 43, 0.14); }
.phone-group.is-enhanced .phone-input { height: 50px; border: 0; border-radius: 0 13px 13px 0; background: transparent; box-shadow: none; padding-inline: 12px 16px; }
.phone-group.is-enhanced .phone-input:focus { box-shadow: none; }

.phone-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 40px;
  margin: 5px 0 5px 5px;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.phone-country-btn:hover, .phone-country-btn[aria-expanded="true"] { background: var(--mist-2); }
.phone-country-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.phone-country-btn .icon { width: 16px; height: 16px; color: var(--ink-2); transition: transform 0.2s var(--ease); }
.phone-country-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.phone-flag { font-size: 1.25rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.phone-flag.is-code {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.phone-menu {
  position: absolute;
  z-index: 30;
  inset-inline: 0;
  top: calc(100% + 8px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(380px, 60vh);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  overflow: hidden;
  animation: pop-in 0.18s var(--ease);
}
.phone-menu[hidden] { display: none; }
.phone-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.phone-search .icon { width: 18px; height: 18px; color: var(--ink-3); }
.phone-search input { flex: 1; min-width: 0; height: 36px; border: 0; background: transparent; font: inherit; outline: none; }
.phone-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.phone-list { margin: 0; padding: 6px; list-style: none; }
.phone-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.phone-option .phone-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-option .phone-code { color: var(--ink-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.phone-option.is-active { background: var(--mist); }
.phone-option[aria-selected="true"] { color: var(--brand); font-weight: 600; }
.phone-option[aria-selected="true"] .phone-code { color: var(--brand); }
.phone-sep { margin: 6px 10px 4px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.phone-empty { padding: 18px 16px; color: var(--ink-2); font-size: 0.9375rem; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.check input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.check input::after {
  content: "";
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.18s var(--spring);
}
.check input:checked { border-color: var(--brand); background: var(--brand); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--danger-tint);
  color: var(--ink);
  font-size: 0.9375rem;
}
.form-alert .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--danger); }
.form-alert.is-success { background: var(--brand-soft); }
.form-alert.is-success .icon { color: var(--brand); }

.strength { display: grid; gap: 6px; }
.strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength-bars span { height: 4px; border-radius: 99px; background: var(--line); transition: background-color 0.3s ease; }
.strength-text { color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; }
.strength[data-level="1"] .strength-bars span:nth-child(-n+1) { background: #E5674F; }
.strength[data-level="2"] .strength-bars span:nth-child(-n+2) { background: #E9A23B; }
.strength[data-level="3"] .strength-bars span:nth-child(-n+3) { background: #4FB98F; }
.strength[data-level="4"] .strength-bars span:nth-child(-n+4) { background: var(--brand); }

/* Code boxes */
.code-boxes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(6px, 1.5vw, 10px);
  direction: ltr;
}
.code-box {
  width: 100%;
  height: clamp(56px, 13vw, 64px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 1.875rem);
  font-weight: 600;
  text-align: center;
  caret-color: var(--brand);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.code-box:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.code-box.is-filled { border-color: rgba(var(--brand-rgb), 0.45); background: var(--brand-soft); color: var(--brand-press); animation: digit-in 0.3s var(--spring); }
@keyframes digit-in { from { transform: scale(0.88); } }
.field.has-error .code-box { border-color: var(--danger); }
.code-boxes.is-shaking { animation: shake 0.42s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.resend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--brand-rgb), 0.35);
}
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn[disabled] { color: var(--ink-2); font-weight: 500; text-decoration: none; cursor: default; }
.timer { font-variant-numeric: tabular-nums; }

/* 12. Auth pages --------------------------------------------------- */

.auth-body { background: var(--paper); }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  min-height: 100vh;
}

.auth-aside {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px clamp(28px, 3.5vw, 56px) 48px;
  background:
    radial-gradient(70% 55% at 50% 45%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%),
    var(--tint);
  overflow: hidden;
}
.auth-art { position: relative; flex: 1; display: grid; place-items: center; min-height: 240px; }
.auth-art img { width: min(96%, 480px); animation: float 7s ease-in-out infinite; }
.auth-aside-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
html[lang="ar"] .auth-aside-title { font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.auth-aside-text { max-width: 36ch; margin-top: 10px; color: var(--ink-2); font-size: 1rem; }

.auth-main { display: flex; flex-direction: column; padding: 20px clamp(20px, 5vw, 64px) 40px; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(20px, 6vh, 64px); }
.auth-topbar .link-arrow { color: var(--ink-2); }

.auth-card { width: 100%; max-width: 440px; margin: auto; }
.auth-card h1 { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); letter-spacing: -0.03em; }
html[lang="ar"] .auth-card h1 { letter-spacing: 0; }
.auth-card .lead { margin-top: 10px; margin-bottom: 32px; color: var(--ink-2); font-size: 1.0625rem; }
.auth-card .lead strong { color: var(--ink); font-weight: 600; }
.email-chip { display: inline-block; max-width: 100%; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.auth-alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem; text-align: center; }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 10px var(--gutter);
  }
  .auth-aside-copy { display: none; }
  .auth-art { flex: none; min-height: 0; }
  .auth-art img { width: 64px; margin-block: -6px; }
  .auth-main { padding-top: 14px; }
  .auth-topbar { margin-bottom: 20px; }
}

/* 13. Account ------------------------------------------------------ */

.account-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-block: clamp(36px, 5vw, 64px) 32px; }
.account-hero h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); letter-spacing: -0.035em; }
html[lang="ar"] .account-hero h1 { letter-spacing: 0; }
.account-hero p { margin-top: 4px; color: var(--ink-2); }
.account-hero .account-wholesale { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--lilac-tint); color: var(--lilac-deep); font-size: 0.9375rem; }
.account-wholesale .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.account-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; padding: 0; list-style: none; }
@media (max-width: 1180px) { .account-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.account-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-block: 16px;
  padding-inline: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--tint);
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.account-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.account-tile img { width: 72px; height: 72px; flex: none; transition: transform 0.5s var(--spring); }
.account-tile:hover img { transform: scale(1.08) rotate(-5deg); }
.account-tile strong { display: block; font-size: 1.0625rem; }
.account-tile span span { color: var(--ink-2); font-size: 0.875rem; }
.account-tile > .icon { width: 20px; height: 20px; margin-inline-start: auto; color: var(--tint-deep); }

.account-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
html[lang="ar"] .panel h2 { letter-spacing: 0; }
.panel > p { margin-top: 6px; margin-bottom: 24px; color: var(--ink-2); }
@media (max-width: 960px) {
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .account-tiles { grid-template-columns: 1fr; }
}

/* 13b. Wholesale: sign-up choice, the Wholesale page, the account card ---- */

.account-type { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.account-type legend { margin-bottom: 10px; padding: 0; font-weight: 600; font-size: 0.875rem; }
.account-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-type-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.account-type-card:hover { border-color: var(--ink-3); }
.account-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.account-type-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.account-type-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.account-type-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--mist); color: var(--ink-2); }
.account-type-card:has(input:checked) .account-type-icon { background: var(--brand); color: #fff; }
.account-type-icon .icon { width: 20px; height: 20px; }
.account-type-text { display: grid; gap: 2px; padding-inline-end: 18px; }
.account-type-text strong { font-size: 0.9375rem; }
.account-type-text span { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.4; }
.account-type-check { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.25s var(--spring); }
.account-type-check .icon { width: 12px; height: 12px; }
.account-type-card:has(input:checked) .account-type-check { opacity: 1; transform: none; }
.account-type-extra[hidden] { display: none; }
@media (max-width: 420px) { .account-type-options { grid-template-columns: minmax(0, 1fr); } }

.account-wholesale-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -16px 0 40px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--lilac-tint);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.account-wholesale-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.account-wholesale-card.is-pending { background: var(--butter-tint); }
.account-wholesale-card.is-rejected { background: var(--rose-tint); }
.account-wholesale-card > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.account-wholesale-card strong { font-size: 1.0625rem; }
.account-wholesale-card > span:nth-child(2) > span { color: var(--ink-2); font-size: 0.9375rem; overflow-wrap: anywhere; }
.account-wholesale-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, 0.7); color: var(--lilac-deep); }
.account-wholesale-card.is-pending .account-wholesale-icon { color: var(--butter-deep); }
.account-wholesale-card.is-rejected .account-wholesale-icon { color: var(--rose-deep); }
.account-wholesale-icon .icon { width: 22px; height: 22px; }
.account-wholesale-card > .icon { width: 20px; height: 20px; flex: none; margin-inline-start: auto; color: var(--ink-3); }

.wholesale-page { padding-top: clamp(20px, 3vw, 32px); }
.wholesale-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.wholesale-main { display: grid; gap: 24px; min-width: 0; }
.wholesale-main .panel + .panel { margin-top: 0; }
.wholesale-status { display: flex; align-items: flex-start; gap: 18px; }
.wholesale-status > div { min-width: 0; flex: 1; }
.wholesale-status h2 { font-size: 1.375rem; }
.wholesale-status p { margin-top: 6px; color: var(--ink-2); }
.wholesale-status .btn { margin-top: 18px; }
.wholesale-status-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--sky-tint); color: var(--sky-deep); }
.wholesale-status-icon .icon { width: 24px; height: 24px; }
.wholesale-status.is-approved .wholesale-status-icon { background: var(--brand-soft); color: var(--brand); }
.wholesale-status.is-pending .wholesale-status-icon { background: var(--butter-tint); color: var(--butter-deep); }
.wholesale-status.is-rejected { border-color: #F4C9D6; }
.wholesale-status.is-rejected .wholesale-status-icon { background: var(--rose-tint); color: var(--rose-deep); }
.wholesale-facts { display: grid; gap: 8px; margin: 16px 0 0; }
.wholesale-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.wholesale-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.wholesale-facts dt { color: var(--ink-2); }
.wholesale-facts dd { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.wholesale-facts dd .icon { width: 16px; height: 16px; flex: none; color: var(--brand); }
.wholesale-reason { margin: 14px 0 0; padding: 12px 16px; border-inline-start: 3px solid var(--rose-deep); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--rose-tint); color: var(--ink); overflow-wrap: anywhere; }
[dir="rtl"] .wholesale-reason { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.wholesale-again { font-size: 0.9375rem; }
.wholesale-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wholesale-start > p { margin-bottom: 20px; }
.wholesale-form-panel h2 { font-size: 1.5rem; }
.wholesale-files { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.wholesale-files legend { margin-bottom: 4px; padding: 0; font-weight: 600; font-size: 0.875rem; }
.wholesale-files > .field-hint { margin-top: -6px; }
.wholesale-file { gap: 6px; }
.wholesale-file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--mist);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.wholesale-file-card:hover { border-color: var(--brand); }
.wholesale-file:focus-within .wholesale-file-card { outline: 2px solid var(--brand); outline-offset: 2px; }
.wholesale-file.has-file .wholesale-file-card { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.wholesale-file.has-error .wholesale-file-card { border-color: var(--danger); background: var(--danger-tint); }
.wholesale-file-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--paper); color: var(--brand); }
.wholesale-file-icon .icon { width: 22px; height: 22px; }
.wholesale-file-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.wholesale-file-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wholesale-file-hint { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.45; }
.wholesale-file-name { color: var(--ink-3); font-size: 0.8125rem; font-weight: 500; overflow-wrap: anywhere; }
.wholesale-file.has-file .wholesale-file-name { color: var(--brand-press); }
.wholesale-file-button { flex: none; pointer-events: none; }
.wholesale-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.wholesale-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; }
.wholesale-chip.is-required { background: var(--peach-tint); color: var(--peach-deep); }
.wholesale-chip.is-optional { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.wholesale-note { height: auto; min-height: 110px; padding-block: 12px; resize: vertical; }
.wholesale-agree { align-items: flex-start; font-weight: 400; }
.wholesale-agree input { margin-top: 2px; flex: none; }
.wholesale-form-panel .form > .btn { justify-self: start; }
.wholesale-side { position: sticky; top: 96px; display: grid; gap: 14px; padding: clamp(20px, 2.5vw, 28px); border-radius: var(--radius-lg); background: var(--mist); }
.wholesale-side h2 { font-size: 1.25rem; }
.wholesale-side h3 { margin-top: 6px; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }
.wholesale-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: wholesale-step; }
.wholesale-steps li { position: relative; display: grid; gap: 2px; padding-inline-start: 40px; counter-increment: wholesale-step; }
.wholesale-steps li::before { content: counter(wholesale-step); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); color: var(--brand-press); font-size: 0.875rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.wholesale-steps strong { font-size: 0.9375rem; }
.wholesale-steps span { color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }
.wholesale-needs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.wholesale-needs li { display: flex; align-items: flex-start; gap: 8px; }
.wholesale-needs .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }
.wholesale-needs em { color: var(--ink-3); font-style: normal; }
.wholesale-private { display: flex; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; }
.wholesale-private .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brand); }
@media (max-width: 900px) {
  .wholesale-layout { grid-template-columns: minmax(0, 1fr); }
  .wholesale-side { position: static; }
}
@media (max-width: 560px) {
  .wholesale-status { flex-direction: column; gap: 12px; }
  .wholesale-file-card { flex-wrap: wrap; }
  .wholesale-file-button { width: 100%; }
  .wholesale-actions .btn, .wholesale-form-panel .form > .btn { width: 100%; justify-self: stretch; }
  .account-wholesale-card { margin-top: -24px; }
}

/* 14. Status pages (placeholder and errors) ------------------------ */

.status-page { display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 56vh; padding-top: clamp(40px, 6vw, 80px); text-align: center; }
.status-art { width: clamp(200px, 28vw, 300px); margin-block: -24px -8px; animation: float 7s ease-in-out infinite; }
.status-code { color: var(--brand); font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; }
.status-page h1 { max-width: 18ch; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); letter-spacing: -0.035em; }
html[lang="ar"] .status-page h1 { letter-spacing: 0; }
.status-page p { max-width: 46ch; color: var(--ink-2); font-size: 1.125rem; }
.status-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.debug { width: 100%; max-width: 900px; margin-top: 24px; padding: 16px; border-radius: var(--radius); background: var(--danger-tint); font-size: 0.8125rem; text-align: start; overflow-x: auto; direction: ltr; }

/* 15. Messages ----------------------------------------------------- */

.toasts {
  position: fixed;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 14px;
  padding-inline: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toast-in 0.42s var(--spring);
}
.toast.is-leaving { animation: toast-out 0.22s ease forwards; }
.toast-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.toast-icon .icon { width: 16px; height: 16px; }
.toast-error .toast-icon { background: var(--danger-tint); color: var(--danger); }
.toast-info .toast-icon { background: var(--sky-tint); color: var(--sky-deep); }
.toast p { flex: 1; padding-top: 3px; }
.toast-close { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); }
.toast-close:hover { background: var(--mist); color: var(--ink); }
.toast-close .icon { width: 16px; height: 16px; }
/* Under the header: its main bar, the department bar (48 pixels) and a gap. */
body:has(.site-header) .toasts { top: calc(var(--header-height) + 48px + 16px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.97); } }
@keyframes toast-up { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(0.98); } }
@media (max-width: 600px) {
  .toasts, body:has(.site-header) .toasts { top: auto; bottom: 16px; inset-inline: 16px; width: auto; }
  .toast { animation-name: toast-up; }
}

.confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

/* 16. Setup page --------------------------------------------------- */

.install-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.plain-body { background: var(--mist); }
.plain-header { padding-block: 22px; }
.plain-main { display: grid; gap: 20px; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.plain-main h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); letter-spacing: -0.03em; }
.plain-main > div > p { margin-top: 8px; color: var(--ink-2); }
.checks { display: grid; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.check-state { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.check-state .icon { width: 14px; height: 14px; }
.checks .is-bad .check-state { background: var(--danger-tint); color: var(--danger); }
.checks small { display: block; color: var(--ink-2); font-size: 0.8125rem; }
.transcript { max-height: 260px; margin-top: 12px; padding: 12px; overflow: auto; border-radius: var(--radius-sm); background: var(--ink); color: #DCE8E3; font-size: 0.8125rem; white-space: pre-wrap; direction: ltr; text-align: left; }

/* 16b. Store pages and help (Step 6) ---------------------------------- */

.store-page .breadcrumbs, .help-page { padding-top: clamp(20px, 3vw, 32px); }
.store-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 32px; padding: clamp(22px, 3vw, 36px) clamp(22px, 3.5vw, 44px); border-radius: var(--radius-xl); background: var(--tint); overflow: hidden; }
.store-page-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); letter-spacing: -0.035em; }
html[lang="ar"] .store-page-head h1 { letter-spacing: 0; font-weight: 500; }
.store-page-head p { margin-top: 6px; color: var(--ink-2); }
.store-page-head img { width: clamp(96px, 12vw, 150px); height: auto; flex: none; margin-block: -16px; filter: drop-shadow(0 16px 22px rgba(var(--ink-rgb), 0.14)); }
.store-page-layout { display: grid; gap: clamp(24px, 4vw, 56px); }
.store-page-layout.has-contents { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); align-items: start; }
.store-page-contents { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.store-page-contents p { margin-bottom: 8px; color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
.store-page-contents ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: section; }
.store-page-contents a { display: block; padding: 6px 8px; border-radius: 10px; color: var(--ink-2); font-size: 0.9375rem; text-decoration: none; }
.store-page-contents a:hover { background: var(--mist); color: var(--ink); }
.store-page-main { display: grid; gap: 28px; min-width: 0; max-width: 760px; }
.store-page-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sky-tint); color: var(--sky-deep); font-size: 0.9375rem; }
.store-page-note .icon { width: 18px; height: 18px; flex: none; }
.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { margin: 1.6em 0 0.5em; color: var(--ink); font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.02em; scroll-margin-top: 96px; }
html[lang="ar"] .prose h2 { letter-spacing: 0; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 0.9em; }
.prose ul { display: grid; gap: 8px; margin: 0.6em 0; padding-inline-start: 1.3em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.contact-card { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm); scroll-margin-top: 96px; }
.contact-card .form > .btn { justify-self: start; }
@media (max-width: 560px) { .contact-card .form > .btn { justify-self: stretch; } }
.contact-card h2 { font-size: 1.375rem; }
.contact-message { min-height: 150px; resize: vertical; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.store-page-others h2 { margin-bottom: 12px; font-size: 1.125rem; }
.store-page-others ul { margin: 0; padding: 0; list-style: none; }
.help-head { margin-bottom: 28px; }
.help-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.help-subtitle { margin-bottom: 14px; font-size: 1.375rem; }
.help-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.help-page-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); text-decoration: none; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.help-page-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.help-page-card img { width: 56px; height: 56px; flex: none; }
.help-page-card .icon { width: 18px; height: 18px; margin-inline-start: auto; color: var(--ink-3); }
.help-email { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.help-email .icon { width: 18px; height: 18px; flex: none; color: var(--brand); }
@media (max-width: 900px) {
  .store-page-layout.has-contents { grid-template-columns: minmax(0, 1fr); }
  .store-page-contents { position: static; }
  .help-tiles, .help-pages { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .store-page-head img { width: 84px; }
}

/* 17. Motion preferences ------------------------------------------- */

/* Less motion, not none: nothing slides, scales or spins, but colors and fades still change softly, so a shopper
   still sees what their tap did. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, text-decoration-color !important;
    transition-duration: 150ms !important;
    transition-timing-function: ease-out !important;
  }
}

/* ==================================================================
   Collectors update: newsletter sign-up, email choices in the
   account, alerts list
   ================================================================== */

.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px 32px;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 20px);
  background: rgba(255, 255, 255, 0.04);
}
.footer-newsletter-text h2 { margin-bottom: 6px; }
.footer-newsletter-text p { margin: 0; color: var(--footer-muted); font-size: 0.9375rem; }
.footer-newsletter-row { display: flex; gap: 8px; }
.footer-newsletter-row .input { flex: 1; min-width: 0; border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; }
.footer-newsletter-row .input::placeholder { color: var(--footer-dim); }
.footer-newsletter-row .input:focus { border-color: var(--footer-accent); }
.footer-newsletter-status,
.footer-newsletter-note { grid-column: 2; margin: 0; font-size: 0.8125rem; }
.footer-newsletter-status { color: var(--footer-accent); font-weight: 600; }
.footer-newsletter-status.is-error { color: #FFB4AE; }
.footer-newsletter-note { color: var(--footer-dim); }
.footer-newsletter.is-done .footer-newsletter-row { display: none; }
@media (max-width: 860px) {
  .footer-newsletter { grid-template-columns: 1fr; padding: 20px; }
  .footer-newsletter-status,
  .footer-newsletter-note { grid-column: 1; }
}
@media (max-width: 420px) { .footer-newsletter-row { flex-direction: column; } }

/* A checkbox with a title and a line of text under it */
.check-row { align-items: flex-start; }
.check-row input { flex: none; margin-top: 2px; }
.check-row > span { display: grid; gap: 2px; }
.check-row > span > span { color: var(--ink-2); font-size: 0.875rem; font-weight: 400; }

/* "Tell me when" alerts in the account */
.account-alerts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.account-alerts li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.account-alert-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.account-alert-icon .icon { width: 17px; height: 17px; }
.account-alert-text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.account-alert-text a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.account-alert-text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-alert-text small { color: var(--ink-3); font-size: 0.8125rem; }

/* Choking-hazard warnings (United States law): the official statement with its safety alert symbol,
   set apart from the text around it by its box, color and weight. */
.choking-warning { display: grid; gap: 12px; margin: 0 0 22px; padding: 16px 18px; border: 2px solid #D9A400; border-radius: var(--radius); background: #FFF6D8; color: var(--ink); }
.choking-statement { display: flex; align-items: flex-start; gap: 12px; }
.choking-statement + .choking-statement { padding-top: 12px; border-top: 1px solid rgba(138, 97, 0, 0.28); }
.choking-symbol { width: 26px; height: 26px; flex: none; color: var(--ink); }
.choking-text { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.5; }
.choking-text strong { font-weight: 800; letter-spacing: 0.01em; }
.choking-english { margin: 6px 0 0; color: var(--ink-2); font-size: 0.875rem; font-weight: 600; line-height: 1.45; }
.choking-english strong { font-weight: 800; }
.choking-warning.is-compact { gap: 10px; margin: 0 0 16px; padding: 12px 14px; }
.choking-warning.is-compact .choking-symbol { width: 22px; height: 22px; }
.choking-warning.is-compact .choking-text { font-size: 0.9375rem; }
.choking-line { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--ink); font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }
.choking-line .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--ink); }
.summary-name .choking-line { color: var(--ink); font-size: 0.75rem; }
.summary-name .choking-line span { color: var(--ink); font-size: inherit; }

/* A delayed pre-order's page (from its email): the new month and the customer's choice. */
.delay-card { display: grid; gap: 12px; width: min(100%, 560px); padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm); text-align: start; }
.delay-state { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.5; }
.delay-state .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--sky-deep); }
.delay-state.is-kept .icon { color: var(--brand); }
.delay-state.is-ask { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--butter-tint); color: #6B4B00; }
.delay-state.is-ask .icon { color: var(--butter-deep); }
.delay-whole { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.delay-card .actions { justify-content: flex-start; margin-top: 4px; }
.delay-card .actions form { display: contents; }
.status-page .delay-card p { max-width: none; font-size: 0.9375rem; }
.status-page .delay-card .delay-state { color: var(--ink); font-size: 1rem; }
.status-page .delay-card .delay-state.is-ask { color: #6B4B00; }

/* The bar a team member sees on the shop while trying a theme (Grow your shop → Appearance). */
.theme-bar {
  position: fixed;
  inset-inline: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 760px;
  margin-inline: auto;
  padding: 10px 12px 10px 18px;
  border-radius: 18px;
  background: var(--footer);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}
.theme-bar-text { margin: 0; }
.theme-bar-text span { color: var(--footer-text); }
.theme-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.theme-bar-actions form { margin: 0; }
.theme-bar-link { padding: 8px 6px; color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.theme-bar-btn { min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--radius-pill); background: #FFFFFF; color: var(--footer); font: inherit; font-weight: 700; cursor: pointer; }
.theme-bar-btn.is-ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); color: #FFFFFF; }
.theme-bar-btn:focus-visible, .theme-bar-link:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
body:has(.theme-bar) { padding-bottom: 96px; }

/* Help: common questions, answered from the shop's own settings. */
.help-answers { margin-block: 8px 40px; }
.help-answer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.help-answer { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.help-answer h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.help-answer p { margin: 0; color: var(--ink-2); line-height: 1.6; }

/* Sign in with Google or Apple: their buttons (each in its own colors, as their guidelines ask), "or", the first
   sign-in's email, and My account → Sign-in methods. */
.social-sign-in { display: grid; gap: 10px; margin: 4px 0 18px; }
.btn-social { gap: 10px; font-weight: 600; }
.btn-social-mark { flex: none; width: 20px; height: 20px; }
.btn-social-google { border: 1px solid #747775; background: #FFFFFF; color: #1F1F1F; }
.btn-social-google:hover { background: #F2F2F2; color: #1F1F1F; }
.btn-social-apple { border: 1px solid #000000; background: #000000; color: #FFFFFF; }
.btn-social-apple:hover { background: #1F1F1F; color: #FFFFFF; }
.social-or { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; color: var(--ink-3); font-size: 0.875rem; }
.social-or::before, .social-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-finish-email { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--mist); }
.social-finish-email strong { overflow-wrap: anywhere; }
.sign-in-methods { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.sign-in-method { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.sign-in-method-text { display: grid; gap: 2px; min-width: 0; }
.sign-in-method-text span { color: var(--ink-2); font-size: 0.875rem; overflow-wrap: anywhere; }

/* A marketing campaign's bar above the header: the shop's own header colors (so it follows the theme), a thin line of
   the accent color under it, the message, the time left and the link to the offer. */
.promo-bar { background: var(--header); color: var(--header-text); border-bottom: 2px solid var(--mint); font-size: 0.875rem; line-height: 1.35; }
.promo-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; min-height: 42px; padding-block: 6px; }
.promo-message { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.promo-countdown { display: flex; align-items: baseline; gap: 6px; margin: 0; font-variant-numeric: tabular-nums; }
.promo-countdown-label { color: var(--header-muted); }
.promo-countdown time { font-weight: 800; }
.promo-link { display: inline-flex; align-items: center; gap: 6px; color: var(--header-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.promo-link .icon { width: 16px; height: 16px; }
[dir="rtl"] .promo-link .icon { transform: scaleX(-1); }
.promo-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 600px) { .promo-inner { justify-content: flex-start; } }

/* The second step after the password (owner and team accounts) */
.second-step-remember { margin: 4px 0 18px; }
.second-step-backup { margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
.second-step-backup summary { color: var(--ink-2); font-weight: 600; cursor: pointer; }
.second-step-backup[open] summary { margin-bottom: 14px; }
.second-step-lost { margin: 14px 0 0; color: var(--ink-3, var(--ink-2)); font-size: 0.8125rem; line-height: 1.5; }

/* In-person orders of a wholesaler linked to this account (the Point of Sale) */
.inperson-owed { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--butter-tint); color: var(--butter-deep); font-weight: 600; }
.inperson-owed .icon { flex: none; width: 20px; height: 20px; }
