/* Ramz — a theme for stores that sell digital game cards, wallet top-ups, in-game currency and
   memberships. The card is the interface: every product shows as a card at 1.586 : 1, and the
   product page draws the chosen value on it. Dark by default with one acid accent; Unbounded for
   English headings, amounts and values, Alexandria for everything else and for Arabic headings,
   JetBrains Mono for codes. Colour settings feed three schemes (default, surface, light) that
   sections choose; every component reads the scheme's tokens. Logical properties throughout so
   right-to-left languages mirror the layout. Settings arrive as custom properties
   (snippets/theme-variables.html). */

/* ---------- Foundations ---------- */

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

:root {
  --gutter: clamp(1.25rem, 5.6vw, 5rem);
  --space-section: clamp(3rem, 7vw, 5.5rem);
  --header-height: 7.0625rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --card-ratio: 1.586 / 1;
  --text-display-xl: clamp(2.25rem, 1.2rem + 3.9vw, 4rem);
  --text-display: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
  --text-h1: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
  --text-h2: 1.375rem;
  --text-h3: 1.125rem;
  --text-lead: 1.125rem;
  --text-body: 0.9375rem;
  --text-small: 0.8125rem;
  --text-label: 0.9375rem;
  --text-caption: 0.75rem;
  --text-eyebrow: 0.75rem;
  --text-price: 1rem;
  --text-price-large: 1.75rem;
  --text-amount: clamp(1.625rem, 1.5rem + 0.4vw, 1.875rem);
  --text-amount-small: 1.125rem;
  --text-code: 1.125rem;
  --radius-control: 12px;
  --radius-chip: 10px;
  --radius-badge: 6px;
  --radius-field: 12px;
  --radius-media: var(--radius);
  --shadow-card: 0 18px 40px -8px rgb(0 0 0 / 0.45);
  --shadow-popover: 0 2px 8px rgb(0 0 0 / 0.3), 0 24px 56px -12px rgb(0 0 0 / 0.55);
  --shadow-overlay: 0 24px 56px rgb(0 0 0 / 0.55);
  --riyal-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 113 126'%3E%3Cpath d='M69.95 111.27c-2 4.44-3.33 9.27-3.84 14.33l42.45-9.02c2-4.45 3.33-9.27 3.84-14.33l-42.45 9.02Z'/%3E%3Cpath d='M108.56 89.55c2-4.44 3.33-9.27 3.84-14.33l-33.06 7.03V68.73l29.22-6.21c2-4.44 3.33-9.27 3.84-14.33l-33.06 7.03V6.61a31.6 31.6 0 0 0-13.22 11.1v40.32l-13.23 2.81V0a31.6 31.6 0 0 0-13.22 11.1v52.55l-29.59 6.29c-2 4.44-3.33 9.27-3.84 14.33l33.43-7.1v17.02L3.84 101.8C1.83 106.24.51 111.07 0 116.13l37.5-7.97a11.63 11.63 0 0 0 7.38-4.92l6.88-10.19a8.98 8.98 0 0 0 1.13-3.7V74.35l13.22-2.81v27.03l42.45-9.03Z'/%3E%3C/svg%3E");
}

@media (max-width: 989px) {
  :root {
    --header-height: 6.25rem;
  }
}

/* A section's colours. `body` is the default scheme: near black, the accent on buttons. */
body,
.scheme-default {
  --bg: var(--color-background);
  --bg-raised: var(--color-surface);
  --bg-raised-2: color-mix(in oklab, var(--color-text) 5%, var(--color-surface));
  --media: color-mix(in oklab, var(--color-text) 5%, var(--color-background));
  --fg: var(--color-text);
  --fg-muted: color-mix(in oklab, var(--color-text) 62%, var(--color-background));
  --fg-subtle: color-mix(in oklab, var(--color-text) 40%, var(--color-background));
  --line: color-mix(in oklab, var(--color-text) 11%, var(--color-background));
  --line-strong: color-mix(in oklab, var(--color-text) 22%, var(--color-background));
  --field: var(--color-surface);
  --button: var(--color-accent);
  --button-fg: var(--color-accent-text);
  --accent: var(--color-accent);
  --accent-soft: color-mix(in oklab, var(--color-accent) 14%, var(--color-background));
  --sale: var(--color-sale);
  --warning: #ffb547;
  --success: var(--color-accent);
}

/* Raised dark: panels and bands a step above the page. */
.scheme-surface {
  --bg: var(--color-surface);
  --bg-raised: color-mix(in oklab, var(--color-text) 5%, var(--color-surface));
  --bg-raised-2: color-mix(in oklab, var(--color-text) 10%, var(--color-surface));
  --media: color-mix(in oklab, var(--color-text) 7%, var(--color-surface));
  --fg-muted: color-mix(in oklab, var(--color-text) 64%, var(--color-surface));
  --fg-subtle: color-mix(in oklab, var(--color-text) 42%, var(--color-surface));
  --line: color-mix(in oklab, var(--color-text) 13%, var(--color-surface));
  --line-strong: color-mix(in oklab, var(--color-text) 25%, var(--color-surface));
  --field: var(--color-background);
  --accent-soft: color-mix(in oklab, var(--color-accent) 15%, var(--color-surface));
  --sale: color-mix(in oklab, var(--color-sale) 88%, #fff);
  --warning: #ffbe5c;
}

/* Paper: the dark turned over, buttons black with the accent for their text. */
.scheme-light {
  --bg: var(--color-light);
  --bg-raised: #fff;
  --bg-raised-2: color-mix(in oklab, var(--color-background) 5%, var(--color-light));
  --media: color-mix(in oklab, var(--color-background) 7%, var(--color-light));
  --fg: var(--color-background);
  --fg-muted: color-mix(in oklab, var(--color-background) 68%, var(--color-light));
  --fg-subtle: color-mix(in oklab, var(--color-background) 50%, var(--color-light));
  --line: color-mix(in oklab, var(--color-background) 10%, var(--color-light));
  --line-strong: color-mix(in oklab, var(--color-background) 22%, var(--color-light));
  --field: #fff;
  --button: var(--color-background);
  --button-fg: var(--color-accent);
  --accent: color-mix(in oklab, var(--color-accent) 32%, #0b1400);
  --accent-soft: color-mix(in oklab, var(--color-accent) 30%, var(--color-light));
  --sale: color-mix(in oklab, var(--color-sale) 78%, #000);
  --warning: #9a5b00;
  --success: color-mix(in oklab, var(--color-accent) 32%, #0b1400);
}

body,
.scheme-default,
.scheme-surface {
  color-scheme: dark;
}

.scheme-light {
  color-scheme: light;
}

.scheme-default,
.scheme-surface,
.scheme-light {
  background: var(--bg);
  color: var(--fg);
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: calc(100% * var(--font-scale, 1));
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background: var(--color-background);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.27;
  letter-spacing: -0.01em;
}

h3,
h4 {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  line-height: 1.33;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

/* Arabic: Alexandria for every line, bold headings on taller lines (Unbounded has no Arabic). */
:lang(ar) body,
body:lang(ar) {
  line-height: 1.73;
}

:lang(ar) h1 {
  font-weight: 700;
  line-height: 1.5;
}

:lang(ar) h2 {
  line-height: 1.55;
}

:lang(ar) h3,
:lang(ar) h4 {
  line-height: 1.65;
}

:lang(ar) * {
  letter-spacing: 0 !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

ul[role='list'],
ol[role='list'] {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

/* Elements focused by script (an error summary, the main region) need no ring. */
[tabindex='-1']:focus {
  outline: none;
}

hr {
  border: 0;
  border-block-start: 1px solid var(--line);
  margin: 1.5rem 0;
}

.icon {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
}

[dir='rtl'] .flip-rtl,
[dir='rtl'] .icon--flip-rtl {
  transform: scaleX(-1);
}

.subtle {
  color: var(--fg-muted);
}

/* A short line over a heading: spaced small capitals in the accent (plain in Arabic). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:lang(ar) .eyebrow {
  font-size: 0.8125rem;
  text-transform: none;
}

.eyebrow .icon {
  width: 1rem;
  height: 1rem;
}

.display {
  font-family: var(--font-heading);
  font-size: var(--text-display-xl);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

:lang(ar) .display {
  font-size: clamp(2rem, 1.3rem + 2.7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.45;
}

/* Amounts and values: a card's $50, a pack's 1,800, a total. */
.amount {
  font-family: var(--font-heading);
  font-size: var(--text-amount);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.code-text {
  font-family: var(--font-mono);
  font-size: var(--text-code);
  font-weight: 500;
  letter-spacing: 0.04em;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-control);
  background: var(--button);
  color: var(--button-fg);
  font-weight: 600;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

main:focus {
  outline: none;
}

[hidden],
.js [data-no-js-only] {
  display: none !important;
}

.placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background: var(--media);
}

/* ---------- Layout ---------- */

.page-width {
  width: 100%;
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-width--narrow {
  max-width: calc(46rem + 2 * var(--gutter));
}

.page-width--form {
  max-width: calc(27rem + 2 * var(--gutter));
}

.section-spacing {
  padding-block: var(--space-section);
}

.section-spacing--tight {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

/* Two default sections in a row share the space between them; after the promises' rules, and
   under the menu's, a section keeps its own. */
.shop-section:has(> .section.scheme-default:not(.promises-section)) + .shop-section > .section.scheme-default:not(.menu-section) > .section-spacing:not(.section-spacing--tight) {
  padding-block-start: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-block-end: clamp(1.25rem, 2.2vw, 1.75rem);
}

.section-heading h2,
.section-title {
  margin: 0;
  font-size: var(--text-h2);
}

.section-title {
  margin-block-end: clamp(1.25rem, 2.2vw, 1.75rem);
}

.page-header {
  margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.page-header h1 {
  margin-block-end: 0.35em;
}

.page-header--center {
  text-align: center;
}

.page-header--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.page-header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-header__description {
  max-width: 40rem;
  color: var(--fg-muted);
  font-size: var(--text-lead);
}

.page-header > :last-child,
.page-header > div > :last-child {
  margin-block-end: 0;
}

.page-header--center .page-header__description {
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 0.75rem;
}

@media (min-width: 750px) {
  .grid {
    gap: 2.5rem 1.25rem;
  }

  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 990px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid--articles.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* On phones, card rows that mark themselves scroll sideways with the next card peeking. */
@media (max-width: 749px) {
  [data-scroller] {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    grid-template-columns: none;
    gap: 0.75rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  [data-scroller]::-webkit-scrollbar {
    display: none;
  }

  [data-scroller] > * {
    scroll-snap-align: start;
  }

  .grid--articles[data-scroller] {
    grid-auto-columns: 72%;
  }
}

.stack > * + * {
  margin-block-start: 1rem;
}

.panel,
.surface {
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.empty-state {
  padding-block: 2rem;
  color: var(--fg-muted);
}

.empty-state--large {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-block: clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.empty-state__icon .icon,
.empty-state--large > .icon {
  width: 2rem;
  height: 2rem;
  color: var(--fg-muted);
}

.empty-state--large p {
  max-width: 32rem;
  color: var(--fg);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Controls ---------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8125rem 1.25rem;
  border: 1px solid var(--button);
  border-radius: var(--radius-control);
  background: var(--button);
  color: var(--button-fg);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.33;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out, opacity 140ms ease-out;
}

.button:hover {
  background: color-mix(in oklab, var(--button) 88%, #fff);
  border-color: color-mix(in oklab, var(--button) 88%, #fff);
}

.scheme-light .button:not(.button--secondary, .button--quiet, .button--ghost):hover {
  background: color-mix(in oklab, var(--button) 82%, #fff);
}

.button--secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
}

.button--secondary:hover {
  border-color: var(--fg);
  background: transparent;
}

/* A soft raised button: second choices on a panel. */
.button--quiet {
  border-color: transparent;
  background: var(--bg-raised-2);
  color: var(--fg);
}

.button--quiet:hover {
  border-color: transparent;
  background: color-mix(in oklab, var(--fg) 12%, var(--bg-raised-2));
}

.button--large {
  min-height: 3.5rem;
  padding: 1.0625rem 1.5rem;
}

.button--small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: var(--text-small);
}

.button--full {
  width: 100%;
}

.button--grow {
  flex: 1;
}

.button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--fg);
}

.button--ghost:hover {
  border-color: transparent;
  background: var(--bg-raised);
}

.button .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.button:disabled,
.button[aria-disabled='true'] {
  opacity: 0.36;
  cursor: not-allowed;
}

.button[aria-busy='true'] {
  color: transparent;
  pointer-events: none;
}

.button[aria-busy='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: auto;
  border: 1.5px solid var(--button-fg);
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.button--secondary[aria-busy='true']::after,
.icon-button[aria-busy='true']::after {
  border-color: var(--fg);
  border-inline-end-color: transparent;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  transition: background-color 140ms ease-out, border-color 140ms ease-out;
}

.icon-button:hover {
  background: var(--bg-raised);
}

.icon-button--outline {
  border: 1px solid var(--line-strong);
}

.icon-button--outline:hover {
  border-color: var(--fg);
  background: none;
}

/* The round add button: raised on photos, outlined in menu rows. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
  transition: text-decoration-color 140ms ease-out;
}

.link:hover {
  text-decoration-color: currentColor;
}

.link--icon {
  text-decoration: none;
}

.link--icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.link--arrow {
  color: var(--fg);
  font-size: var(--text-label);
  text-decoration: none;
}

.link--arrow span,
.link--arrow:not(:has(span)) {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
}

.link--arrow .icon {
  width: 1rem;
  height: 1rem;
  transition: translate 180ms var(--ease);
}

.link--arrow:hover .icon {
  translate: 3px 0;
}

[dir='rtl'] .link--arrow:hover .icon {
  translate: -3px 0;
}

.link--muted {
  color: var(--fg-muted);
}

.link--muted:hover {
  color: var(--fg);
}

.link--danger {
  color: var(--sale);
}

.field {
  display: grid;
  gap: 0.5rem;
  margin-block-end: 1rem;
}

.field > label,
.field-label,
.field__hint {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

/* What the product asks the buyer (ADR-0065): its fields sit above the buy button. */
.field__optional {
  color: var(--fg-muted);
  font-weight: 400;
}

.customer-inputs {
  display: grid;
}

.input,
.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea {
  width: 100%;
  min-height: 3.375rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  background: var(--field);
  color: var(--fg);
  font-size: var(--text-body);
  line-height: 1.6;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

textarea.input,
.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.9;
}

.input:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--fg);
}

.input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* A field with an icon at its start: a player ID's #. */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > .icon {
  position: absolute;
  inset-inline-start: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--fg-muted);
  pointer-events: none;
}

.field .input-with-icon input {
  padding-inline-start: 2.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.input--error,
[aria-invalid='true'] {
  border-color: var(--sale) !important;
}

.select {
  position: relative;
  display: flex;
  align-items: center;
}

.select select {
  appearance: none;
  padding-inline-end: 2.75rem;
}

.select > .icon:last-child {
  position: absolute;
  inset-inline-end: 1rem;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.select--pill {
  gap: 0.5rem;
  padding-inline-start: 0.875rem;
  border: 1px solid var(--line-strong);
}

.select--pill select {
  min-height: 2.75rem;
  padding: 0.25rem 2.25rem 0.25rem 0;
  border: 0;
  background: none;
  font-size: var(--text-small);
  cursor: pointer;
}

[dir='rtl'] .select--pill select {
  padding: 0.25rem 0 0.25rem 2.25rem;
}

.select--pill > .icon:first-child {
  width: 1rem;
  height: 1rem;
}

input[type='checkbox'],
input[type='radio'] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--accent);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-body);
  cursor: pointer;
}

.checkbox input {
  margin-block-start: 0.2rem;
}

/* A round radio with a dot, as the filter sheet draws it. */
.radio {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 2.5rem;
  cursor: pointer;
}

.radio input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--field);
}

.radio input::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--fg);
  scale: 0;
  transition: scale 140ms var(--ease);
}

.radio input:checked {
  border-color: var(--fg);
}

/* A switch for one on/off choice ("Available today"). */
.switch {
  appearance: none;
  position: relative;
  flex: none;
  width: 2.75rem !important;
  height: 1.625rem !important;
  margin: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.switch::after {
  content: '';
  position: absolute;
  inset-block-start: 0.1875rem;
  inset-inline-start: 0.1875rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(42 27 19 / 0.25);
  transition: translate 160ms var(--ease);
}

.switch:checked {
  background: var(--accent);
}

.switch:checked::after {
  translate: 1.125rem 0;
}

[dir='rtl'] .switch:checked::after {
  translate: -1.125rem 0;
}

.radio input:checked::after {
  scale: 1;
}

.form-message {
  margin: 0.75rem 0 0;
  color: var(--sale);
  font-size: var(--text-small);
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-control);
  background: var(--bg-raised);
  font-size: var(--text-small);
}

.notice:has(> .icon) {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.notice p {
  margin: 0;
}

.notice ul {
  margin: 0.375rem 0 0;
  padding-inline-start: 1.1rem;
}

.notice--error {
  border-color: var(--sale);
  background: color-mix(in oklab, var(--sale) 6%, var(--bg));
  color: var(--sale);
}

.notice .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.notice--success .icon {
  color: color-mix(in oklab, #2f6b4f 100%, var(--fg));
}

.quantity {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  padding-inline: 0.125rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
}

.quantity--large {
  height: 3.5rem;
}

.quantity--small {
  height: 2.75rem;
}

.quantity__button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  transition: opacity 140ms ease-out;
}

.quantity__button:hover {
  opacity: 0.55;
}

.quantity__button:focus-visible,
.quantity__input:focus-visible {
  outline-offset: -3px;
}

.quantity__button .icon {
  width: 1rem;
  height: 1rem;
}

.quantity__input {
  width: 2.25rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity__input::-webkit-outer-spin-button,
.quantity__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* Words on a card's corner or beside a name: small, square-cornered labels. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-badge);
  background: var(--bg-raised-2);
  color: var(--fg);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.33;
  white-space: nowrap;
}

.badge--sale {
  background: var(--color-sale);
  color: #1a0703;
}

.badge--hot {
  background: var(--accent);
  color: var(--button-fg);
}

.scheme-light .badge--hot {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.badge--warn {
  border: 1px solid color-mix(in oklab, var(--warning) 55%, transparent);
  background: transparent;
  color: var(--warning);
}

.badge--muted {
  background: var(--bg-raised-2);
  color: var(--fg-muted);
}

/* "Instant": a zap and the word in the accent, beside a price. */
.instant {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  font-size: var(--text-caption);
  font-weight: 600;
  white-space: nowrap;
}

.instant .icon {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
  stroke-width: 1.25;
}

/* A region's two-letter code: SA, AE, GL. */
.region-code {
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.25rem;
  padding-inline: 0.25rem;
  border-radius: 4px;
  background: var(--bg-raised-2);
  color: var(--fg);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Done: a ticked circle and the word, in the accent. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-small);
  font-weight: 500;
}

.status .icon {
  width: 1rem;
  height: 1rem;
}

.status--done {
  color: var(--success);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-chip);
  background: transparent;
  color: var(--fg);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out;
}

.chip[aria-selected='true'],
.chip[aria-current] {
  border-color: transparent;
  background: var(--bg-raised-2);
  color: var(--fg);
  font-weight: 600;
}

/* A collection's image as a small square on its chip: a platform's colour. */
.chip__swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  object-fit: cover;
  object-position: 30% 40%;
}

.chip .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--fg-muted);
}

.chip:hover,
.tag:hover {
  border-color: var(--fg);
}

.tag--active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

.article__tags .tag-list,
.tag-list:last-child {
  margin-block-end: 0;
}

.toast {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline: 0;
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-overlay);
  font-size: var(--text-small);
  animation: rise 200ms var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

.breadcrumbs {
  margin-block-end: 1.25rem;
  font-size: var(--text-label);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--fg);
}

.breadcrumbs [aria-current] {
  color: var(--fg);
}

.breadcrumbs .icon {
  width: 0.75rem;
  height: 0.75rem;
}


.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--text-small);
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
}

.pagination__link[aria-disabled='true'] {
  opacity: 0.36;
}

.pagination__link .icon {
  width: 1rem;
  height: 1rem;
}

.pagination__status {
  color: var(--fg-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1.25rem;
  font-size: var(--text-small);
  text-decoration: none;
}

.accordion,
.disclosure {
  border-block-end: 1px solid var(--line);
}

.accordion > summary,
.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.75rem;
  font-size: var(--text-body);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.accordion > summary::-webkit-details-marker,
.disclosure > summary::-webkit-details-marker,
.filter > summary::-webkit-details-marker,
.filter__more > summary::-webkit-details-marker,
.sort > summary::-webkit-details-marker,
.header__dropdown > summary::-webkit-details-marker,
.password-gate > summary::-webkit-details-marker {
  display: none;
}

.accordion__icon {
  position: relative;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
  transition: rotate 220ms var(--ease);
}

.accordion__icon::after {
  rotate: 90deg;
}

details[open] > summary .accordion__icon::after {
  rotate: 0deg;
}

.accordion__content {
  padding-block-end: 1.5rem;
  color: var(--fg);
}

.accordion__content > :last-child {
  margin-block-end: 0;
}

/* ---------- Money and prices ---------- */

.money {
  white-space: nowrap;
}

.money--sar {
  display: inline-flex;
  align-items: center;
  align-self: baseline;
  gap: 0.22em;
  direction: ltr;
  unicode-bidi: isolate;
}

/* The official riyal sign, 0.72 em tall, in the amount's colour, left of it in both languages. */
.money--sar::before {
  content: '';
  flex: none;
  width: 0.65em;
  height: 0.72em;
  margin-block-start: -0.08em;
  background: currentColor;
  -webkit-mask: var(--riyal-mark) center / contain no-repeat;
  mask: var(--riyal-mark) center / contain no-repeat;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.5rem;
  font-variant-numeric: tabular-nums;
}

.price__current {
  font-size: var(--text-price);
  font-weight: 600;
}

.price__from {
  color: var(--fg-muted);
  font-size: var(--text-small);
  font-weight: 400;
}

/* On sale the badge says so; the price stays white beside the struck-out one. */
.price--sale .price__current {
  color: var(--fg);
}

.price__compare {
  color: var(--fg-subtle);
  font-size: 0.875rem;
  text-decoration-thickness: 1px;
}

.price--large {
  gap: 0.25rem 0.75rem;
}

.price--large .price__current {
  font-family: var(--font-heading);
  font-size: var(--text-price-large);
  letter-spacing: -0.02em;
}

.price--small .price__current {
  font-size: 0.875rem;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-caption);
}

.rating__stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.5 2.3a.5.5 0 0 1 1 0l2.3 4.7a2 2 0 0 0 1.6 1.2l5.2.7a.5.5 0 0 1 .3.9l-3.8 3.7a2 2 0 0 0-.6 1.9l.9 5.1a.5.5 0 0 1-.8.6l-4.6-2.4a2 2 0 0 0-2 0L6.4 21a.5.5 0 0 1-.8-.6l.9-5.1a2 2 0 0 0-.6-1.9L2.2 9.8a.5.5 0 0 1 .3-.9l5.1-.7a2 2 0 0 0 1.6-1.2z'/%3E%3C/svg%3E");
  position: relative;
  width: 4.5rem;
  height: 0.875rem;
  background: linear-gradient(to right, var(--accent) calc(var(--rating, 0) / 5 * 100%), var(--line-strong) 0);
  -webkit-mask: var(--star) 0 0 / 0.9rem 0.875rem repeat-x;
  mask: var(--star) 0 0 / 0.9rem 0.875rem repeat-x;
}

/* Half stars fill from where the visitor starts reading. */
[dir='rtl'] .rating__stars {
  background: linear-gradient(to left, var(--accent) calc(var(--rating, 0) / 5 * 100%), var(--line-strong) 0);
}

.rating__value {
  font-weight: 500;
}

.rating__count {
  color: var(--fg-muted);
}

/* ---------- Cards: products, collections and journal stories ---------- */

/* Art at the shape of a real gift card, 1.586 : 1: a platform's card face or a game's key art. */
.card-art {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--card-ratio);
  border-radius: var(--radius);
  background: var(--media);
  isolation: isolate;
}

.card-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  pointer-events: none;
}

/* No art yet: the platform's name on a quiet card, never an empty grey box. */
.card-art__blank {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 1rem 1.125rem;
  background:
    radial-gradient(120% 90% at 100% 100%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%),
    var(--bg-raised-2);
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.875rem;
}

.product-card__art {
  transition: translate 220ms var(--ease), box-shadow 220ms var(--ease);
}

.product-card:hover .product-card__art {
  translate: 0 -3px;
  box-shadow: var(--shadow-card);
}

.product-card__art .badge {
  position: absolute;
  inset-block-end: 0.625rem;
  inset-inline-end: 0.625rem;
}

.product-card__info {
  display: grid;
  gap: 0.25rem;
}

.product-card__vendor {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:lang(ar) .product-card__vendor {
  text-transform: none;
}

.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-card__title a {
  text-decoration: none;
}

/* The whole card is the link; the title carries it for keyboards and screen readers. */
.product-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__title a:focus-visible {
  outline: none;
}

.product-card:has(.product-card__title a:focus-visible) .product-card__art {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product-card__line {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
  line-height: 1.5;
}

.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-block-start: 0.25rem;
}

.product-card .price__current {
  font-size: var(--text-label);
}

.product-card--sold-out .product-card__art img {
  opacity: 0.45;
  filter: grayscale(0.6);
}

/* Compact cards (rows of platforms and top-ups): the title and the price, the mark beside them. */
.product-card--compact {
  gap: 0.75rem;
}

.product-card--compact .product-card__head .badge,
.product-card--compact .product-card__head .instant {
  margin-block-start: 0.25rem;
}

.grid--compact.grid--3 .product-card__art {
  border-radius: calc(var(--radius) + 2px);
}

/* The card with its value drawn on it: the value large in the bottom corner, the region on top. */
/* Card art reads left to right in both languages, so its marks keep their corners. */
.card-face {
  container-type: inline-size;
  box-shadow: var(--shadow-card);
  direction: ltr;
}

.card-face__value,
.card-face__region {
  position: absolute;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.28);
  pointer-events: none;
}

.card-face__value {
  inset-block-end: 7.5cqi;
  inset-inline-start: 7cqi;
  font-family: var(--font-heading);
  font-size: 13cqi;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  direction: ltr;
}

.card-face__region {
  inset-block-start: 7cqi;
  inset-inline-end: 7cqi;
  font-size: max(0.625rem, 3.6cqi);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* A collection as its card: the face, its name and its lowest price. */
.collection-rail {
  display: grid;
  grid-template-columns: repeat(var(--rail-count, 6), minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 750px) and (max-width: 989px) {
  .collection-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 749px) {
  .collection-rail[data-scroller] {
    grid-template-columns: none;
    grid-auto-columns: 42%;
  }
}

.collection-card {
  display: grid;
  gap: 0.375rem;
  text-decoration: none;
}

.collection-card__art {
  margin-block-end: 0.5rem;
  transition: translate 220ms var(--ease), box-shadow 220ms var(--ease);
}

.collection-card:hover .collection-card__art {
  translate: 0 -3px;
  box-shadow: var(--shadow-card);
}

.collection-card__title {
  font-size: var(--text-label);
  font-weight: 600;
}

.collection-card__price {
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.collection-card__price .money {
  color: var(--fg);
}

.grid--products {
  row-gap: clamp(2rem, 3.4vw, 2.75rem);
}

@media (max-width: 749px) {
  .grid--products[data-scroller] {
    grid-auto-columns: 72%;
  }

  .grid--compact[data-scroller] {
    grid-auto-columns: 80%;
  }
}

.article-card {
  display: grid;
  align-content: start;
  gap: 0.875rem;
}

.article-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media);
}

.article-card__media img,
.article-card__media .placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 0;
  object-fit: cover;
  transition: scale 600ms var(--ease);
}

.article-card:hover .article-card__media img {
  scale: 1.03;
}

.article-card__info {
  display: grid;
  gap: 0.375rem;
}

.article-card__tag {
  margin: 0;
  color: var(--accent);
  font-size: var(--text-caption);
  font-weight: 600;
}

.article-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.33;
}

.article-card__title a {
  text-decoration: none;
}

.article-card__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}

.article-card__excerpt {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-caption);
}

/* ---------- Chips as tabs ---------- */

.tab-panel[hidden] {
  display: none;
}

.chip:hover {
  border-color: var(--fg);
}

.chip[aria-current]:hover,
.chip[aria-selected='true']:hover {
  border-color: transparent;
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.3125rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-fg);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- The strip and the header ---------- */

/* One line over the header: the store's message with its icon, then help, language, currency. */
.strip {
  border-block-end: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: var(--text-caption);
}

.strip__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.5rem;
}

.strip__messages {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip__messages li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.strip__messages li > :last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip__messages .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent);
}

.strip__messages .icon--zap {
  fill: currentColor;
  stroke-width: 1.25;
}

.strip a {
  text-decoration: none;
}

.strip a:hover {
  color: var(--fg);
}

.strip__links {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.5rem;
  color: var(--fg);
}

.strip__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
}

.strip__links .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--fg-muted);
}

.strip__currency {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.strip .country-selector .select--pill {
  min-height: 0;
  border: 0;
  padding: 0;
}

@media (max-width: 749px) {
  .strip__row {
    justify-content: center;
    min-height: 2.25rem;
  }

  .strip__messages li + li,
  .strip__links {
    display: none;
  }
}

.site-header {
  display: contents;
}

.header {
  position: relative;
  z-index: 30;
  border-block-end: 1px solid var(--line);
  background: var(--bg);
}

.header--sticky {
  position: sticky;
  inset-block-start: 0;
}

/* The logo, the menu after it, the search field filling the rest, then account and the cart. */
.header__bar {
  display: flex;
  align-items: center;
  gap: 1rem 2.5rem;
  min-height: 4.5rem;
}

.header__logo {
  display: block;
  flex: none;
  text-decoration: none;
}

.header__logo img {
  height: auto;
  max-height: 3rem;
  object-fit: contain;
}

/* Without a logo the store's name is the wordmark, followed by a blinking cursor in the accent. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.wordmark--lower {
  text-transform: lowercase;
}

.wordmark__cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.header__end {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.25rem;
}

.header__end > .icon-button {
  width: 2.75rem;
  height: 2.75rem;
}

.header__search-button {
  display: none;
}

.cart-count {
  position: absolute;
  inset-block-start: 0.125rem;
  inset-inline-end: 0.125rem;
  display: grid;
  place-items: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-fg);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

/* The first level of the menu; an item with children opens its panel. */
.header__nav {
  min-width: 0;
}

.header__links {
  display: flex;
  align-items: center;
  gap: 0.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__links > li > a,
.header__dropdown > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 4.5rem;
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}

.header__dropdown > summary::-webkit-details-marker {
  display: none;
}

.header__dropdown > summary .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--fg-muted);
  transition: rotate 200ms var(--ease);
}

.header__dropdown[open] > summary .icon {
  rotate: 180deg;
}

/* The current page and the open panel: a line in the accent along the header's bottom edge. */
.header__links > li > a::after,
.header__dropdown > summary::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: inline-start;
  transition: scale 200ms var(--ease);
}

.header__links > li > a:hover::after,
.header__dropdown > summary:hover::after,
.header__dropdown[open] > summary::after,
.header__links > li > a[aria-current='page']::after,
.header__links > li > .is-current::after,
.header__dropdown > summary.is-current::after {
  scale: 1 1;
}

.header__links > li > a:hover::after,
.header__dropdown > summary:hover::after {
  background: var(--line-strong);
}

.header__dropdown[open] > summary::after,
.header__links > li > a[aria-current='page']::after,
.header__links > li > .is-current::after,
.header__dropdown > summary.is-current::after {
  background: var(--accent);
}

/* A menu item's children as columns under the header, with a card on the end. */
.mega-menu {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  z-index: 40;
  border-block-end: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-popover);
  animation: rise 180ms var(--ease);
}

.mega-menu__inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-block: 2rem 2.5rem;
}

.mega-menu__columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  flex: 1;
  gap: 2rem;
}

.mega-menu__column {
  display: grid;
  align-content: start;
  gap: 0.875rem;
}

.mega-menu__heading {
  color: var(--fg-muted);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

:lang(ar) .mega-menu__heading {
  text-transform: none;
}

.mega-menu__heading:hover {
  color: var(--fg);
}

.mega-menu__list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-menu__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.25rem;
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
}

.mega-menu__link:hover span:last-child,
.mega-menu__link[aria-current] span:last-child {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
}

.mega-menu__thumb {
  flex: none;
  width: 3.5rem;
  height: auto;
  aspect-ratio: var(--card-ratio);
  border-radius: 5px;
  object-fit: cover;
}

.mega-menu__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-feature {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  width: 18rem;
  flex: none;
  text-decoration: none;
}

.mega-feature__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.mega-feature__text {
  display: grid;
  gap: 0.125rem;
}

.mega-feature__eyebrow {
  color: var(--fg-muted);
  font-size: var(--text-caption);
}

.mega-feature__title {
  font-size: var(--text-small);
  font-weight: 600;
}

.mega-feature__variant {
  font-weight: 500;
}

.mega-feature__price {
  font-weight: 600;
}

@media (max-width: 989px) {
  .header__nav,
  .mega-menu {
    display: none;
  }

  .header__bar {
    gap: 0.5rem;
    min-height: 3.75rem;
  }

  .header__logo {
    margin-inline-end: auto;
  }

  .header__search-button {
    display: inline-grid;
  }

  .header__account {
    display: none !important;
  }
}

/* ---------- Search ---------- */

/* The header's search field fills the room between the menu and the tools; the suggestions open
   in a panel under it. On phones the field opens over the header from the search button. */
.header__search {
  position: relative;
  flex: 1;
  max-width: 26rem;
  margin-inline-start: auto;
}

.header__search-close {
  display: none;
}

/* The search field: padding gives it its height, the icon sits in it at its own size. */
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.375rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--field);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

[dir='rtl'] .search-field {
  padding: 0.5rem 1rem 0.5rem 0.75rem;
}

.search-field > .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--fg-muted);
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 2rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: var(--text-small);
}

.search-field input::placeholder,
.search-field--link span {
  color: var(--fg-subtle);
  opacity: 1;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.search-field--header {
  min-height: 2.75rem;
  padding-block: 0.25rem;
  border-color: var(--line);
  background: var(--bg-raised);
}

.search-field__key {
  display: grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--fg-muted);
  font-family: inherit;
  font-size: var(--text-caption);
}

.search-field:focus-within .search-field__key {
  display: none;
}

.search-field__clear {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-raised-2);
}

.search-field__clear .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.search-field--page {
  max-width: 40rem;
}

.search-field--page .button {
  min-height: 2.5rem;
}

/* The suggestions: what to search, then products, then all results. */
.predictive {
  position: absolute;
  inset-block-start: calc(100% + 0.5rem);
  inset-inline: 0;
  z-index: 50;
  min-width: min(36rem, calc(100vw - 2 * var(--gutter)));
  padding: 1.125rem 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow-popover);
  animation: rise 160ms var(--ease);
}

[dir='rtl'] .predictive {
  inset-inline: 0 auto;
}

.predictive:empty {
  display: none;
}

.predictive__columns {
  display: grid;
  gap: 1.25rem;
}

.predictive__columns > div:empty {
  display: none;
}

.predictive__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.predictive__group-title {
  margin: 0 0 0.375rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:lang(ar) .predictive__group-title {
  text-transform: none;
}

.predictive ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.predictive ul a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.25rem;
  padding-inline: 0.5rem;
  margin-inline: -0.5rem;
  border-radius: var(--radius-chip);
  font-size: var(--text-small);
  text-decoration: none;
}

.predictive ul a .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--fg-subtle);
}

.predictive ul a:hover,
.predictive ul a:focus-visible {
  background: var(--bg-raised-2);
  outline: none;
}

.predictive .typed {
  color: var(--fg);
}

.predictive strong {
  color: var(--fg-muted);
  font-weight: 400;
}

.predictive .typed,
.predictive ul a span > :only-child {
  font-weight: 600;
}

.predictive__products {
  display: grid;
  gap: 0.125rem;
}

.predictive ul .predictive__product {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.75rem;
  padding: 0.375rem 0.5rem;
}

.predictive__product img,
.predictive__product .placeholder {
  width: 4.75rem;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--card-ratio);
  border-radius: 5px;
  background: var(--media);
  object-fit: cover;
}

.predictive__name {
  display: grid;
  min-width: 0;
  font-weight: 600;
}

.predictive__name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.predictive__spec {
  overflow: hidden;
  color: var(--fg-muted);
  font-size: var(--text-caption);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.predictive__product .price__current {
  font-size: var(--text-small);
}

.predictive__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.predictive__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 1rem;
  padding-block-start: 0.875rem;
  border-block-start: 1px solid var(--line);
}

.predictive__footer .link {
  font-weight: 600;
}

.predictive__keys {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  color: var(--fg-subtle);
  font-size: var(--text-caption);
}

.predictive__keys kbd {
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: inherit;
}

@media (max-width: 989px) {
  .header__search {
    display: none;
  }

  /* Opened from the search button: the field over the header, the suggestions filling the page. */
  .header__search.is-shown {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: start;
    gap: 0 0.75rem;
    max-width: none;
    padding: 0.75rem var(--gutter);
    overflow-y: auto;
    background: var(--bg);
  }

  .header__search.is-shown .header__search-close {
    display: inline-flex;
  }

  .header__search.is-shown .predictive {
    position: static;
    grid-column: 1 / -1;
    min-width: 0;
    margin-block-start: 1rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    animation: none;
  }

  .search-is-open {
    overflow: hidden;
  }

  .predictive__keys {
    display: none;
  }
}

/* ---------- The menu drawer on phones and tablets ---------- */

.header__drawer > summary {
  list-style: none;
}

.header__drawer > summary::-webkit-details-marker {
  display: none;
}

.header__menu-button .icon--close,
.header__drawer[open] .header__menu-button .icon--open {
  display: none;
}

.header__drawer[open] .header__menu-button .icon--close {
  display: block;
}

.menu-drawer {
  position: fixed;
  inset: var(--drawer-top, 4rem) 0 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0 2rem;
  overflow-y: auto;
  background: var(--bg);
  animation: rise 200ms var(--ease);
}

.menu-drawer > :not(.search-field) {
  padding-inline: var(--gutter);
}

/* The search link at the top of the drawer opens the search over the header. */
.menu-drawer .search-field--link {
  margin-inline: var(--gutter);
  padding-inline: 1rem;
}

.menu-drawer__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-drawer__link,
.menu-drawer__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  border-block-end: 1px solid var(--line);
  font-size: var(--text-lead);
  font-weight: 600;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}

.menu-drawer__group > summary::-webkit-details-marker {
  display: none;
}

.menu-drawer__link .icon,
.menu-drawer__group > summary .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--fg-subtle);
  transition: rotate 200ms var(--ease);
}

.menu-drawer__group[open] > summary .icon {
  rotate: 180deg;
}

.menu-drawer__children {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0.5rem 0 1rem;
  list-style: none;
}

.menu-drawer__children a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--fg-muted);
  text-decoration: none;
}

.menu-drawer__children a[aria-current],
.menu-drawer [aria-current='page'],
.menu-drawer .is-current {
  color: var(--accent);
}

.menu-drawer__nav {
  display: grid;
}

.menu-drawer__utilities {
  display: grid;
  gap: 0.25rem;
  margin: auto 0 0;
  list-style: none;
}

.menu-drawer__utilities a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.menu-drawer__utilities .icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 990px) {
  .header__drawer {
    display: none;
  }
}

.country-selector {
  display: grid;
  gap: 0.5rem;
  font-size: var(--text-small);
}

/* ---------- Sections ---------- */

/* Every game, in seconds: the words on the start side, a photo on the end with a product's card
   laid over its corner; on phones the photo comes first and the card sits under its edge. */
.hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 4.5rem) var(--space-section);
}

@media (min-width: 990px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.hero__text {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
}

.hero__text .eyebrow {
  margin: 0;
}

.hero__heading {
  margin: 0;
}

.hero__lede {
  max-width: 31rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 0.25rem;
}

.hero__promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
  list-style: none;
}

.hero__promises li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__promises .icon {
  width: 1rem;
  height: 1rem;
}

.hero__media {
  position: relative;
}

.hero__media > picture,
.hero__media > .placeholder {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: var(--media);
  aspect-ratio: 13 / 10;
}

.hero__media img,
.hero__media .placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.hero__media--card {
  padding-block-end: 2.5rem;
}

/* The card hangs over the photo's bottom corner on the start side, casting its shadow on it. */
.hero__card {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: -2.5rem;
  z-index: 1;
  width: min(48%, 18.5rem);
  border-radius: var(--radius);
  text-decoration: none;
  rotate: -2deg;
  transition: rotate 300ms var(--ease), translate 300ms var(--ease);
}

[dir='rtl'] .hero__card {
  rotate: 2deg;
}

.hero__card:hover {
  rotate: 0deg;
  translate: 0 -4px;
}

.hero__card .card-face {
  box-shadow: 0 30px 60px -12px rgb(0 0 0 / 0.65);
}

@media (max-width: 989px) {
  .hero__media {
    order: -1;
  }

  .hero__card {
    inset-inline-start: 1rem;
    width: 52%;
  }

  .hero__buttons {
    width: 100%;
  }

  .hero__buttons .button {
    flex: 1 1 12rem;
  }
}

/* A heading row: the eyebrow and title on the start side, a link, tabs or the clock on the end. */
.section-heading {
  flex-wrap: wrap;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  line-height: 1.2;
}

:lang(ar) .section-heading h2 {
  font-weight: 700;
}

.section-heading .eyebrow {
  margin-block-end: 0.625rem;
}

.chips--tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips--tabs::-webkit-scrollbar {
  display: none;
}

/* Deals: the time left until they end, counting down. */
.deal-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.deal-clock .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--warning);
}

.deal-clock__left {
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* A photo beside the words: giving a code, a new season. */
.feature {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 990px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .feature--end .feature__media {
    order: 1;
  }
}

.feature__media {
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: var(--media);
  aspect-ratio: 4 / 3;
}

.feature__media img,
.feature__media .placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.feature__content {
  display: grid;
  justify-items: start;
  gap: 1rem;
  max-width: 30rem;
}

.feature__content .eyebrow {
  margin: 0;
}

.feature__heading {
  margin: 0;
  font-size: var(--text-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

:lang(ar) .feature__heading {
  font-weight: 700;
  line-height: 1.45;
}

.feature__text {
  color: var(--fg-muted);
  font-size: var(--text-body);
}

.feature__text > :last-child {
  margin-block-end: 0;
}

.feature__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.feature__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.feature__note .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.feature .button {
  margin-block-start: 0.5rem;
}

/* Steps: a big number in the accent, a title and a line each, with rules between. */
.promises {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 750px) {
  .promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .promises__item + .promises__item {
    padding-inline-start: clamp(1.5rem, 3vw, 2.5rem);
    border-inline-start: 1px solid var(--line);
  }

  .promises__item {
    padding-inline-end: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.promises__item {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.promises__figure {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: var(--text-amount);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.promises__title {
  margin: 0;
  font-size: var(--text-h3);
}

.promises__text {
  margin: 0;
  max-width: 22rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
  line-height: 1.6;
}

/* Questions: the heading and where to ask on the start side, the answers on the end. */
.faq {
  display: grid;
  gap: 2rem;
}

@media (min-width: 990px) {
  .faq {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 5rem;
  }
}

.faq__intro {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1rem;
}

.faq__intro h2 {
  margin: 0;
  font-size: var(--text-h1);
}

.faq__intro p {
  max-width: 22rem;
  margin: 0;
}

.faq__list {
  border-block-start: 1px solid var(--line);
}

.faq__item {
  border-block-end: 1px solid var(--line);
}

.faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary .icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--fg-muted);
  transition: rotate 200ms var(--ease);
}

.faq__item[open] > summary .icon {
  rotate: 45deg;
  color: var(--accent);
}

.faq__item > summary:hover {
  color: color-mix(in oklab, var(--fg) 80%, var(--accent));
}

.faq__answer {
  max-width: 40rem;
  padding-block-end: 1.25rem;
  color: var(--fg-muted);
}

.faq__answer > :last-child {
  margin-block-end: 0;
}



/* What players say: stars, the quote in the lead size, who and what. */
.quotes {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 750px) {
  .quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
  }
}

@media (max-width: 749px) {
  .quotes[data-scroller] {
    grid-auto-columns: 84%;
    gap: 1.5rem;
  }
}

.quote {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.quote__stars {
  display: flex;
  gap: 0.125rem;
  margin: 0;
  color: var(--line-strong);
  direction: ltr;
}

.quote__stars .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.quote__stars .is-filled {
  color: var(--accent);
  fill: currentColor;
}

[dir='rtl'] .quote__stars {
  justify-content: flex-end;
}

.quote__text {
  margin: 0;
  font-size: var(--text-lead);
  line-height: 1.6;
}

.quote__who {
  margin: 0;
  font-size: var(--text-small);
}

/* A countdown: big figures with their units (the opening soon page). */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin: 0;
}

.countdown__unit {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.countdown__unit strong {
  min-width: 4.5rem;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.countdown__unit small {
  color: var(--fg-muted);
  font-size: var(--text-small);
}

/* A statement: one large line, centred. */
.statement__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.statement__heading {
  max-width: 48rem;
  margin: 0;
  font-size: var(--text-h1);
}

.statement__text {
  max-width: 38rem;
  color: var(--fg-muted);
}

/* The email signup: a field and Subscribe. */
.email-signup {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 990px) {
  .email-signup {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    gap: 4rem;
  }
}

.email-signup h2 {
  margin: 0 0 0.5rem;
}

.email-signup__lead,
.email-signup__text {
  margin: 0;
  color: var(--fg-muted);
}

.signup {
  display: grid;
  gap: 0.625rem;
  max-width: 28rem;
}

.signup__row {
  display: flex;
  gap: 0.5rem;
}

.signup__row .input {
  flex: 1;
  min-width: 0;
  background: var(--field);
}

.signup__submit {
  flex: none;
}

.signup__note {
  margin: 0;
  color: var(--fg-subtle);
  font-size: var(--text-caption);
}

.signup__message {
  display: none;
  margin: 0;
  font-size: var(--text-small);
}

.signup__message.is-visible,
.signup__message:target {
  display: block;
}

.signup__message--done {
  color: var(--success);
}

.signup__message--error {
  color: var(--sale);
}

.signup.is-done .signup__row,
.signup.is-done .signup__note {
  display: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links {
  gap: 0.5rem;
}

.social-links .icon-button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
}

.social-links .icon-button:hover {
  border-color: var(--fg);
  background: none;
}

.social-links .icon {
  width: 1rem;
  height: 1rem;
}

.payment-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-marks li {
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--fg-muted);
  font-size: var(--text-caption);
  white-space: nowrap;
}

.apps-section {
  display: grid;
  gap: 1.5rem;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-block-start: 1px solid var(--line);
}

.footer__columns {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 750px) {
  .footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .footer__columns {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
  }
}

@media (max-width: 749px) {
  .footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand,
  .footer__signup,
  .footer__block:not(.footer__block--menu) {
    grid-column: 1 / -1;
  }
}

.footer__brand {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.footer__logo {
  justify-self: start;
  text-decoration: none;
}

.footer__about {
  max-width: 18rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.footer__block {
  display: grid;
  align-content: start;
  gap: 0.875rem;
}

.footer__heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0;
}

.footer__links {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-small);
}

.footer__links a {
  color: var(--fg-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer__muted {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--fg) !important;
  text-decoration: underline !important;
}

.footer__whatsapp .icon {
  width: 1rem;
  height: 1rem;
}

.footer__signup .signup {
  max-width: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-block-start: 2.5rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}

.footer__legal {
  display: grid;
  gap: 0.5rem;
}

.footer__copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-caption);
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-caption);
}

.footer__policies a {
  color: var(--fg-muted);
}

.footer__policies a:hover {
  color: var(--fg);
}

.footer__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.footer__languages a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-small);
  text-decoration: none;
}

.footer__languages .icon {
  width: 1rem;
  height: 1rem;
}

/* ---------- Sheets, the cart and quick view ---------- */

.sheet {
  width: min(27.5rem, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--line);
  background: var(--color-surface);
  color: var(--fg);
  box-shadow: var(--shadow-overlay);
  --bg: var(--color-surface);
  --bg-raised: color-mix(in oklab, var(--color-text) 5%, var(--color-surface));
  --bg-raised-2: color-mix(in oklab, var(--color-text) 10%, var(--color-surface));
  --line: color-mix(in oklab, var(--color-text) 13%, var(--color-surface));
  --line-strong: color-mix(in oklab, var(--color-text) 25%, var(--color-surface));
}

[dir='rtl'] .sheet {
  margin: 0 auto 0 0;
}

.sheet[open] {
  animation: slide-in 340ms var(--ease);
}

[dir='rtl'] .sheet[open] {
  animation-name: slide-in-rtl;
}

@keyframes slide-in {
  from {
    translate: 100% 0;
  }
}

@keyframes slide-in-rtl {
  from {
    translate: -100% 0;
  }
}

.sheet::backdrop {
  background: rgb(5 6 8 / 0.62);
  animation: fade 200ms ease-out;
}

.sheet__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-inline: 1.5rem 1rem;
  border-block-end: 1px solid var(--line);
}

[dir='rtl'] .sheet__header {
  padding-inline: 1.5rem 1rem;
}

.sheet__header h2 {
  margin: 0;
  font-size: var(--text-h2);
}

.sheet__header h2 .subtle {
  font-family: var(--font-body);
  font-weight: 400;
}

.sheet__body {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}

.sheet__footer {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-block-start: 1px solid var(--line);
  background: var(--bg);
}

/* Codes need no shipping: one line on the raised surface under the cart's title. */
.cart-note-line {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 1rem 1.5rem 0;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-chip);
  background: var(--bg-raised);
  font-size: var(--text-small);
}

.cart-note-line .icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  fill: currentColor;
  stroke-width: 1.25;
}

/* Totals: label and amount on each line, the total large under a rule. */
.cart-summary {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  font-size: var(--text-small);
}

.cart-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.cart-summary dt {
  color: var(--fg-muted);
}

.cart-summary dd {
  margin: 0;
  font-weight: 500;
}

.cart-summary__total {
  margin-block-start: 0.25rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.cart-summary__total dt {
  color: var(--fg);
  font-size: var(--text-lead);
  font-weight: 600;
}

.cart-summary__total .amount {
  font-size: var(--text-price-large);
}

.cart-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-caption);
  text-align: center;
}

.cart-footnote .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.cart-items {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--line);
}

.cart-item:first-child {
  padding-block-start: 0;
}

.cart-item[aria-busy='true'] {
  opacity: 0.5;
  pointer-events: none;
}

.cart-item__media {
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--media);
}

.cart-item__media img,
.cart-item__media .placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: var(--card-ratio);
  min-height: 0;
  object-fit: cover;
}

.cart-item__details {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.cart-item__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-small);
}

.cart-item__title {
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
}

.cart-item__title:hover {
  text-decoration: underline;
}

.cart-item__variant,
.cart-item__plan,
.cart-item__rule {
  margin: 0.25rem 0 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.cart-item__rule {
  color: var(--sale);
}

.cart-item__answer {
  margin-block-start: 0.125rem;
  color: color-mix(in oklab, var(--fg) 82%, var(--fg-muted));
}

.cart-item__total {
  font-size: var(--text-body);
  font-weight: 600;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item__remove {
  color: var(--fg-muted);
  font-size: var(--text-small);
  font-weight: 400;
}

.cart-drawer__empty {
  justify-items: center;
  padding-block-start: 4rem;
  text-align: center;
}

.cart-drawer__empty-title {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
}

.cart-drawer__empty-text {
  max-width: 18rem;
  margin: -0.75rem 0 0.5rem;
  color: var(--fg-muted);
}

/* Goes well with, in the cart: a row each, added in one click. */
.upsell {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  text-align: start;
}

.upsell__title {
  margin: 0.5rem 0 0;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:lang(ar) .upsell__title {
  text-transform: none;
}

.upsell__list {
  display: grid;
  gap: 0.75rem;
}

.upsell__item {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  font-size: var(--text-small);
}

.upsell__media {
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--media);
}

.upsell__media img,
.upsell__media .placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: var(--card-ratio);
  min-height: 0;
  object-fit: cover;
}

.upsell__text {
  display: grid;
  gap: 0.125rem;
}

.upsell__name {
  overflow: hidden;
  font-weight: 500;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upsell__price {
  font-weight: 600;
}

/* The cart page */
.cart-page {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 990px) {
  .cart-page {
    grid-template-columns: minmax(0, 1fr) 25rem;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
  }

  .cart-page__summary {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 1.5rem);
  }

  .cart-page .cart-item {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.cart-page__summary {
  display: grid;
  gap: 1rem;
}

.cart-page__summary form {
  display: grid;
  gap: 0.75rem;
}

.cart-page__summary .subtle {
  margin: 0;
  font-size: var(--text-small);
}

.cart-page__company {
  margin: 0;
  font-size: var(--text-small);
}

.cart-page__summary.panel {
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
}

.cart-page__summary form {
  gap: 1.25rem;
}

.cart-page__upsell {
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
}

.cart-page__continue {
  margin-block-start: 1.5rem;
}

.quick-view {
  width: min(56rem, calc(100% - 2rem));
  height: auto;
  max-height: min(42rem, calc(100% - 2rem));
  margin: auto;
  overflow: hidden;
}

[dir='rtl'] .quick-view {
  margin: auto;
}

.quick-view[open] {
  animation: zoom 220ms var(--ease);
}

@keyframes zoom {
  from {
    opacity: 0;
    scale: 0.98;
  }
}

.quick-view__panel {
  display: block;
  max-height: inherit;
  overflow-y: auto;
}

.quick-view .product-section {
  padding: 0;
}

.quick-view .breadcrumbs,
.quick-view .sticky-buy,
.quick-view .info-lines,
.quick-view .info-line,
.quick-view .product__caption,
.quick-view .accordion,
.quick-view .product__whatsapp,
.quick-view .product__app {
  display: none;
}

.quick-view .product {
  gap: 0;
}

@media (min-width: 750px) {
  .quick-view .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .quick-view .product__info {
    position: static;
    padding: 2.5rem 2rem 2rem;
  }
}

.quick-view__close {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  z-index: 2;
  background: var(--bg);
  box-shadow: var(--shadow-card);
}

.quick-view__more {
  justify-self: start;
}

@media (max-width: 749px) {
  .quick-view {
    width: 100%;
    max-height: 88vh;
    margin: auto 0 0;
  }

  .quick-view .product__info {
    padding: 1.5rem var(--gutter) 2rem;
  }

  .quick-view .product__gallery {
    margin: 0;
  }
}

/* ---------- Content pages ---------- */

.rte > :first-child {
  margin-block-start: 0;
}

.rte > :last-child {
  margin-block-end: 0;
}

.rte h2,
.rte h3 {
  margin-block-start: 1.75em;
}

.rte h3 {
  font-size: var(--text-h3);
}

.rte a {
  color: var(--accent);
}

/* A note set apart: a raised panel, the first line strong. */
.rte blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-chip);
  background: var(--bg-raised);
  color: var(--fg-muted);
  font-size: var(--text-small);
  line-height: 1.6;
}

.rte blockquote > :first-child {
  color: var(--fg);
  font-weight: 600;
}

.rte blockquote > :last-child {
  margin-block-end: 0;
}

/* Numbered steps: the number in the accent, a rule under each. */
.rte ol {
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.rte ol > li {
  display: flex;
  gap: 1rem;
  padding-block: 0.875rem;
  border-block-end: 1px solid var(--line);
  counter-increment: step;
}

.rte ol > li::before {
  content: counter(step);
  flex: none;
  min-width: 1.25rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
}

.rte table {
  width: 100%;
  border-collapse: collapse;
}

.rte th,
.rte td {
  padding: 0.75rem 0.625rem;
  border-block-end: 1px solid var(--line);
  text-align: start;
}

/* The editor writes a paragraph inside each list item and table cell (ADR-0072). */
.rte :is(li, th, td) > p {
  margin: 0;
}

.rte :is(li, th, td) > p + p {
  margin-block-start: 0.5em;
}

.rte ul {
  margin: 0 0 1em;
  padding-inline-start: 1.25em;
}

.rte ul > li + li {
  margin-block-start: 0.375em;
}

.rte img,
.rte table {
  margin-block: 1.5rem;
}

/* A wide table (a size chart) scrolls sideways on a phone instead of widening the page. */
@media (max-width: 749px) {
  .rte table {
    display: block;
    overflow-x: auto;
  }
}

.article {
  display: grid;
  gap: 2.25rem;
}

.article__title {
  font-size: var(--text-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.article__image img {
  border-radius: var(--radius);
}

.article__image img {
  width: 100%;
}

.article__content {
  max-width: 42.5rem;
}

.article__content {
  font-size: var(--text-lead);
  line-height: 1.8;
}

:lang(ar) .article__content {
  line-height: 1.95;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.not-found {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.not-found .eyebrow {
  margin: 0;
}

.not-found__code {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 3rem + 10vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* The cursor after 404: a bar in the accent on the baseline, blinking like the wordmark's. */
.not-found__cursor {
  display: inline-block;
  width: 0.36em;
  height: 0.085em;
  margin-inline-start: 0.06em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

.not-found h1 {
  max-width: 52rem;
  margin: 0;
  font-size: var(--text-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

:lang(ar) .not-found h1 {
  font-weight: 700;
  line-height: 1.5;
}

.not-found__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.not-found__text {
  max-width: 32rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-lead);
}

.not-found .search-field {
  width: min(100%, 40rem);
  margin-block: 0.75rem 0.25rem;
}


/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    scroll-behavior: auto !important;
  }

  .article-card__media img {
    scale: none !important;
  }

  .wordmark__cursor,
  .not-found__cursor {
    animation: none !important;
  }

  .sheet[open],
  .quick-view[open],
  .password-gate__dialog,
  .mega-menu,
  .predictive,
  .filters__panel:modal {
    animation-name: fade !important;
  }
}

/* Wishlist hearts; cart lines' parts and pre-orders (ADR-0084, ADR-0081, ADR-0085). */
.wishlist-toggle__button{display:inline-grid;place-items:center;width:2.5rem;height:2.5rem;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}
.wishlist-toggle__button svg{width:1.25rem;height:1.25rem}
.wishlist-toggle__button[aria-pressed=true]{color:var(--sale)}
.wishlist-toggle__button[aria-pressed=true] svg{fill:currentColor}
.wishlist-toggle--card{position:absolute;inset-block-start:.5rem;inset-inline-end:.5rem;z-index:2}
.wishlist-toggle--card .wishlist-toggle__button{background:var(--bg)}
.cart-item__parts,.cart-item__preorder,.cart-item__answer-price{margin:.25rem 0 0;color:var(--fg-muted);font-size:var(--text-caption)}
.cart-item__parts{padding-inline-start:1rem}
.product-card:has(> .wishlist-toggle--card){position:relative}

/* Tabby's and Tamara's widgets under prices (ADR-0098) */
.pay-later-widget { display: grid; gap: 0.5rem; margin-block-start: 0.75rem; }
.pay-later-widget[hidden] { display: none; }

.cart-next-tier {
  margin-block: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}
