/* Nabd — an electronics theme: devices whole on a cool grey panel, specs in a monospaced face,
   electric blue for what you can do, lime for deals and a night scheme for launches. Ten colour
   settings feed three schemes (default, surface, night) that sections choose; every component
   reads the scheme's tokens. Logical properties throughout so right-to-left languages mirror the
   layout; Arabic gets Readex Pro on taller lines. Settings arrive as custom properties
   (snippets/theme-variables.html). */

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

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

:root {
  --gutter: clamp(1rem, 3.4vw, 3rem);
  --space-section: clamp(3rem, 6vw, 4.5rem);
  --header-height: 8.5rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font-mono: "Nabd Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-display: clamp(2.5rem, 1.5rem + 3.4vw, 4rem);
  --text-h1: clamp(2rem, 1.55rem + 1.5vw, 2.5rem);
  --text-h2: clamp(1.5rem, 1.3rem + 0.7vw, 1.75rem);
  --text-h3: 1.25rem;
  --text-lead: 1.0625rem;
  --text-body: 0.9375rem;
  --text-small: 0.8125rem;
  --text-label: 0.8125rem;
  --text-caption: 0.75rem;
  --tracking-caps: 0.06em;
  --radius-control: calc(var(--radius) * 0.84);
  --radius-media: calc(var(--radius) * 0.67);
  --shadow-card: 0 1px 2px rgb(11 13 18 / 0.04), 0 8px 24px -8px rgb(11 13 18 / 0.12);
  --shadow-popover: 0 1px 2px rgb(11 13 18 / 0.06), 0 18px 48px -12px rgb(11 13 18 / 0.22);
  --shadow-overlay: 0 24px 64px -8px rgb(11 13 18 / 0.28);
  --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: 7.5rem;
  }
}

/* A section's colours. `body` is the default scheme. */
body,
.scheme-default {
  --bg: var(--color-background);
  --bg-raised: var(--color-surface);
  --media: var(--color-media);
  --fg: var(--color-text);
  --fg-muted: color-mix(in oklab, var(--color-text) 64%, var(--color-background));
  --fg-subtle: color-mix(in oklab, var(--color-text) 44%, var(--color-background));
  --line: color-mix(in oklab, var(--color-text) 10%, var(--color-background));
  --line-strong: color-mix(in oklab, var(--color-text) 22%, var(--color-background));
  --field: var(--color-background);
  --button: var(--color-accent);
  --button-fg: var(--color-accent-text);
  --accent: var(--color-accent);
  --accent-soft: color-mix(in oklab, var(--color-accent) 9%, var(--color-background));
  --deal: var(--color-deal);
  --deal-fg: #0b0d12;
  --sale: var(--color-sale);
  --success: #12805c;
}

.scheme-surface {
  --bg: var(--color-surface);
  --bg-raised: var(--color-background);
  --fg-muted: color-mix(in oklab, var(--color-text) 66%, var(--color-surface));
  --line: color-mix(in oklab, var(--color-text) 12%, var(--color-surface));
  --line-strong: color-mix(in oklab, var(--color-text) 24%, var(--color-surface));
  --field: var(--color-background);
}

.scheme-night {
  --bg: var(--color-night);
  --bg-raised: color-mix(in oklab, #fff 7%, var(--color-night));
  --media: color-mix(in oklab, var(--color-media) 92%, var(--color-night));
  --fg: #f4f6fa;
  --fg-muted: color-mix(in oklab, #f4f6fa 64%, var(--color-night));
  --fg-subtle: color-mix(in oklab, #f4f6fa 44%, var(--color-night));
  --line: color-mix(in oklab, #f4f6fa 12%, var(--color-night));
  --line-strong: color-mix(in oklab, #f4f6fa 26%, var(--color-night));
  --field: color-mix(in oklab, #fff 6%, var(--color-night));
  --button: color-mix(in oklab, var(--color-accent) 78%, #fff);
  --button-fg: #fff;
  --accent: color-mix(in oklab, var(--color-accent) 62%, #fff);
  --accent-soft: color-mix(in oklab, var(--color-accent) 22%, var(--color-night));
  --sale: color-mix(in oklab, var(--color-sale) 70%, #fff);
  --success: #3fcf95;
}

.scheme-default,
.scheme-surface,
.scheme-night {
  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);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  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.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

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

h3,
h4 {
  font-size: var(--text-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

/* Arabic: Readex Pro on taller lines, a step smaller where Latin would be tight. */
:lang(ar) body,
body:lang(ar) {
  line-height: 1.7;
}

:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3,
:lang(ar) .display {
  line-height: 1.4;
  font-weight: 600;
}

: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: color-mix(in oklab, var(--color-accent) 22%, transparent);
}

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;
}

kbd {
  font-family: var(--font-mono);
}

/* 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 label over a heading: small, bold capitals in the accent. */
.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-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  line-height: 1.35;
  text-transform: uppercase;
}

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

.eyebrow--deal {
  color: var(--deal);
}

.scheme-default .eyebrow--deal,
.scheme-surface .eyebrow--deal {
  color: var(--fg);
}

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

.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(--fg);
  color: var(--bg);
  font-weight: 500;
}

.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:
    linear-gradient(135deg, transparent 49.6%, var(--line) 49.6%, var(--line) 50.4%, transparent 50.4%),
    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. */
.shop-section:has(> .section.scheme-default) + .shop-section > .section.scheme-default > .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.75rem 1.5rem;
  border: 1px solid var(--button);
  border-radius: var(--radius-control);
  background: var(--button);
  color: var(--button-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  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) 86%, #000);
  border-color: color-mix(in oklab, var(--button) 86%, #000);
}

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

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

/* At night: a light button beside the blue one, and lime for deals. */
.button--night {
  border-color: #f4f6fa;
  background: #f4f6fa;
  color: #0b0d12;
}

.button--night:hover {
  background: #fff;
}

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

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

.button--large {
  min-height: 3.5rem;
  padding-inline: 1.75rem;
  font-size: 0.9375rem;
}

.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,
.product-card__add .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);
  border-radius: var(--radius-control);
}

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  transition: color 140ms ease-out;
}

.link:hover {
  text-decoration: underline;
}

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

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

.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: 1.125rem;
}

.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: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--field);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 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: 1px solid var(--accent);
  outline-offset: -2px;
  border-color: var(--accent);
}

.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,
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-body);
  cursor: pointer;
}

.checkbox input,
.choice 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(--accent);
  scale: 0;
  transition: scale 140ms var(--ease);
}

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

.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;
  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 photo's corner: white with ink, the sale in its colour. */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  background: #fff;
  color: #0b0d12;
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

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

.badge--dark {
  background: #0b0d12;
  color: #fff;
}

.badge--deal {
  background: var(--color-deal);
  color: #0b0d12;
}

.badge--info {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge--muted {
  background: #fff;
  color: #5f6573;
}

.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.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--text-small);
  text-decoration: none;
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}

.chip {
  border-color: transparent;
  background: var(--bg-raised);
}

.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-radius: var(--radius-control);
  background: var(--color-night);
  color: #f4f6fa;
  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;
}

.breadcrumbs__slash {
  color: var(--line-strong);
}

.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,
.gift-note > 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: 1rem;
  font-weight: 600;
}

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

.price--sale .price__current {
  color: var(--sale);
}

.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-size: 1.75rem;
  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(--fg) 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(--fg) calc(var(--rating, 0) / 5 * 100%), var(--line-strong) 0);
}

.rating__value {
  font-weight: 500;
}

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

/* ---------- Swatches ---------- */

/* A colour as a dot: the swatch list's colour, else the variant's photo. Light colours keep an
   edge so white never disappears on white. */
.swatch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--swatch, var(--bg-raised));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-text) 16%, transparent);
}

.swatch--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Product, collection and guide cards ---------- */

/* The device whole on its panel, then brand, name, the spec line in mono, rating, price and the
   pay-in-4 line. The panel lifts a little on hover; the whole name is the link. */
.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-content: start;
  gap: 0.875rem;
}

.product-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media);
}

.product-card__image {
  display: block;
  aspect-ratio: var(--card-ratio);
}

.product-card__image img,
.product-card__image .placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: scale 500ms var(--ease), opacity 300ms ease-out;
}

.product-card__second {
  position: absolute;
  inset: 0;
  opacity: 0;
}

@media (hover: hover) {
  .product-card:hover .product-card__image img {
    scale: 1.03;
  }

  .product-card:hover .product-card__second {
    opacity: 1;
  }
}

.product-card__media .badge {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
}

.product-card__info {
  display: grid;
  align-content: start;
  gap: 0.375rem;
  min-width: 0;
}

.product-card__vendor {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-caption);
}

.product-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.product-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__title a:hover {
  text-decoration: underline;
}

.product-card__specs {
  margin: 0;
  overflow: hidden;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .rating,
.product-card__add,
.compare-toggle {
  position: relative;
  z-index: 2;
}

.product-card--sold-out .product-card__image img {
  opacity: 0.55;
}

.product-card__add {
  align-self: end;
}

.product-card__add .button .icon {
  width: 1rem;
  height: 1rem;
}

/* The comparison box under a card: a small tick and the word. */
.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  min-height: 2rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
  cursor: pointer;
}

.compare-toggle input {
  width: 1.125rem;
  height: 1.125rem;
}

.compare-toggle:has(input:checked) {
  color: var(--fg);
}

.compare-toggle--inline {
  color: var(--fg);
  font-weight: 500;
}

.compare-toggle--inline .icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* As a list: the photo beside its details, wide enough to read the specs. */
.grid--list {
  grid-template-columns: 1fr !important;
  gap: 0;
}

.grid--list .product-card {
  grid-template-columns: clamp(7rem, 18vw, 11rem) minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--line);
}

.grid--list .product-card__media {
  grid-row: span 2;
}

.grid--list .product-card__specs {
  white-space: normal;
}

.grid--list .compare-toggle,
.grid--list .product-card__add {
  grid-column: 3;
}

.collection-card {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.collection-card__media {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media);
}

.collection-card__media img,
.collection-card__media .placeholder {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  object-fit: cover;
  transition: scale 500ms var(--ease);
}

.collection-card:hover .collection-card__media img {
  scale: 1.04;
}

.collection-card__title {
  font-size: var(--text-body);
  font-weight: 500;
  text-align: center;
}

.collection-card:hover .collection-card__title {
  text-decoration: underline;
}

.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 500ms var(--ease);
}

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

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

.article-card__tag {
  margin: 0;
}

.article-card__title {
  margin: 0;
  font-size: var(--text-h3);
  line-height: 1.3;
}

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

.article-card__title a:hover {
  text-decoration: underline;
}

.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);
}

/* ---------- Pay later ---------- */

/* "Or 4 interest-free payments of X" and the providers' marks, in their own colours. */
.pay-later {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.375rem;
  margin: 0;
  font-size: var(--text-small);
}

.pay-later--short {
  color: var(--fg-muted);
  font-size: var(--text-caption);
}

.pay-later__amount {
  color: var(--fg);
  font-weight: 600;
}

.pay-later__text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.375rem;
  margin-inline-end: auto;
}

.pay-later__marks {
  display: inline-flex;
  gap: 0.375rem;
}

.pay-later__mark {
  display: inline-flex;
  align-items: center;
  min-height: 1.125rem;
  padding: 0 0.3125rem;
  border-radius: 4px;
  color: #0b0d12;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
}

.pay-later__mark--tabby {
  background: #3bffc1;
}

.pay-later__mark--tamara {
  background: #f7c9b4;
}

/* ---------- Comparison ---------- */

/* The bar at the bottom once a product is ticked: the products, Clear and Compare now. */
.compare-bar {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: 0.625rem 0.75rem 0.625rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg);
  box-shadow: var(--shadow-popover);
  animation: rise 220ms var(--ease);
}

[dir='rtl'] .compare-bar {
  padding: 0.625rem 1.25rem 0.625rem 0.75rem;
}

.compare-bar__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
}

.compare-bar__title .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.compare-bar__items {
  display: flex;
  gap: 0.5rem;
}

.compare-bar__item,
.compare-bar__slot {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--media);
}

.compare-bar__slot {
  border-style: dashed;
  border-color: var(--line-strong);
  background: none;
}

.compare-bar__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-bar__remove {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(11 13 18 / 0.6);
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 140ms ease-out;
}

.compare-bar__item:hover .compare-bar__remove,
.compare-bar__item:focus-visible .compare-bar__remove {
  opacity: 1;
}

.compare-bar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.compare-bar .button.is-disabled {
  opacity: 0.4;
  pointer-events: auto;
  cursor: not-allowed;
}

.has-compare-bar .toast {
  inset-block-end: 6rem;
}

@media (max-width: 749px) {
  .compare-bar {
    gap: 0.75rem;
    width: calc(100% - 1.5rem);
    padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  }

  .compare-bar__title span:first-of-type {
    display: none;
  }

  .compare-bar__actions .link {
    display: none;
  }

  .compare-bar__actions {
    margin-inline-start: auto;
  }
}

/* ---------- Tabs and small pills ---------- */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-block-end: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab,
.pill-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out;
}

.tab:hover,
.pill-link:hover {
  border-color: var(--fg);
}

.tab[aria-selected='true'],
.pill-link[aria-current] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.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: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Announcement and header ---------- */

.announcement-bar__inner {
  font-size: var(--text-caption);
}

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

.announcement-bar__messages {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.announcement-bar__messages li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.announcement-bar__messages li + li::before {
  content: '·';
  margin-inline-end: 0.75rem;
  color: var(--fg-subtle);
}

.announcement-bar__messages .icon {
  width: 1rem;
  height: 1rem;
}

.announcement-bar__messages a,
.announcement-bar__links a {
  text-decoration: none;
}

.announcement-bar__links {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}

.announcement-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 989px) {
  .announcement-bar__row {
    justify-content: center;
    min-height: 2rem;
  }

  .announcement-bar__messages li + li,
  .announcement-bar__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;
}

.header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  min-height: 4.75rem;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

/* The store's name as the wordmark, with the lime pulse after it. */
.header__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.header__name::after {
  content: '';
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-inline-start: 0.1em;
  border-radius: 50%;
  background: var(--color-deal);
}

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

.header__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-inline: 0.625rem;
  border-radius: var(--radius-control);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 140ms ease-out;
}

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

.header__cart-icon {
  position: relative;
  display: grid;
}

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

/* 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.75rem;
  min-height: 3rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--bg-raised);
  transition: border-color 140ms ease-out, background-color 140ms ease-out, box-shadow 140ms ease-out;
}

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

.search-field > .icon {
  width: 1.25rem;
  height: 1.25rem;
  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-body);
}

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

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

.search-field:hover {
  border-color: var(--line-strong);
}

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

.search-field__key {
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-inline-end: 0.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--fg-muted);
  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);
}

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

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

.header-search {
  position: relative;
  width: 100%;
  max-width: 42rem;
  justify-self: center;
}

@media (max-width: 989px) {
  .header__bar {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 0.25rem 0.5rem;
    min-height: 3.5rem;
    padding-block-start: 0.375rem;
  }

  .header__end {
    justify-self: end;
  }

  .header__action span:not(.header__cart-icon):not(.cart-count) {
    display: none;
  }

  .header__action {
    padding-inline: 0.5rem;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    padding-block-end: 0.75rem;
  }

  .search-field--header {
    min-height: 2.75rem;
  }

  .search-field--header .search-field__key {
    display: none;
  }
}

/* The suggestions under the field: suggestions and collections, then products with their specs. */
.predictive {
  position: absolute;
  inset-block-start: calc(100% + 0.5rem);
  inset-inline-start: 50%;
  z-index: 40;
  width: min(52rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - var(--header-height) - 2rem);
  padding: 1.5rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg);
  box-shadow: var(--shadow-popover);
  translate: -50% 0;
  animation: rise 160ms var(--ease);
}

[dir='rtl'] .predictive {
  translate: 50% 0;
}

.predictive:empty {
  display: none;
}

.predictive__columns {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem 2rem;
}

.predictive__columns > :nth-child(3) {
  grid-column: 1;
}

.predictive__columns > :nth-child(2) {
  grid-row: span 2;
  padding-inline-start: 2rem;
  border-inline-start: 1px solid var(--line);
}

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

.predictive__group-title {
  margin: 0 0 0.5rem;
  color: var(--fg-muted);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0;
}

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

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

.predictive ul a:hover,
.predictive ul a:focus-visible {
  color: var(--accent);
}

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

.predictive strong {
  font-weight: 600;
}

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

.predictive ul .predictive__product {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.875rem;
  padding: 0.375rem;
  margin-inline: -0.375rem;
}

.predictive ul .predictive__product:hover,
.predictive ul .predictive__product:focus-visible {
  background: var(--bg-raised);
  color: inherit;
}

.predictive__product img,
.predictive__product .placeholder {
  width: 3.5rem;
  height: 3.5rem;
  min-height: 0;
  border-radius: var(--radius-media);
  background: var(--media);
  object-fit: cover;
}

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

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

.predictive__spec {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 400;
}

.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: 1.25rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

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

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

@media (max-width: 989px) {
  .predictive {
    position: fixed;
    inset-block-start: var(--predictive-top, 7.5rem);
    inset-block-end: 0;
    inset-inline: 0;
    width: auto;
    max-height: none;
    border: 0;
    border-block-start: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    translate: none;
  }

  [dir='rtl'] .predictive {
    translate: none;
  }

  .predictive__columns {
    grid-template-columns: 1fr;
  }

  .predictive__columns > :nth-child(2) {
    grid-row: auto;
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .predictive__keys {
    display: none;
  }

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

/* ---------- The category row ---------- */

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

.header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 3.5rem;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.header__links {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.header__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.header__links a::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  scale: 0 1;
  transition: scale 200ms var(--ease);
}

.header__links a:hover::after {
  scale: 1;
  background: var(--fg);
}

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

.header__links a[aria-current='page']::after,
.header__links a.is-current::after {
  scale: 1;
  background: var(--accent);
}

.all-categories > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-control);
  background: var(--bg-raised);
  font-size: 0.875rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}

.all-categories > summary .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.all-categories[open] > summary {
  background: var(--fg);
  color: var(--bg);
}

.deals-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  background: var(--color-deal);
  color: #0b0d12;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.deals-link .icon {
  width: 1rem;
  height: 1rem;
}

.deals-link:hover {
  background: color-mix(in oklab, var(--color-deal) 88%, #000);
}

/* The mega menu: the categories down the start side, the one under the pointer (else the
   first) spread out beside them, with a feature at the end. */
.mega-menu {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  border-block: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-popover);
  animation: rise 160ms var(--ease);
}

.mega-menu__inner {
  position: relative;
  min-height: 26rem;
  padding-block: 1.75rem 2.25rem;
}

.mega-menu__list {
  display: grid;
  gap: 0.125rem;
  width: 16.5rem;
  padding-inline-end: 1.5rem;
  border-inline-end: 1px solid var(--line);
}

.mega-menu__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border-radius: var(--radius-control);
  font-weight: 500;
  text-decoration: none;
}

.mega-menu__category .icon {
  width: 1rem;
  height: 1rem;
  color: var(--fg-subtle);
}

.mega-menu__panel {
  position: absolute;
  inset-block: 1.75rem 2.25rem;
  inset-inline: calc(var(--gutter) + 18.5rem) var(--gutter);
  display: none;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 2.5rem;
}

.mega-menu__item.is-default .mega-menu__panel,
.mega-menu__list:hover .mega-menu__item:hover .mega-menu__panel,
.mega-menu__item:focus-within .mega-menu__panel {
  display: grid;
}

.mega-menu__list:hover .mega-menu__item.is-default:not(:hover) .mega-menu__panel,
.mega-menu__list:focus-within .mega-menu__item.is-default:not(:focus-within) .mega-menu__panel {
  display: none;
}

.mega-menu__item.is-default > .mega-menu__category,
.mega-menu__list:hover .mega-menu__item:hover > .mega-menu__category,
.mega-menu__item:focus-within > .mega-menu__category {
  background: var(--bg-raised);
}

.mega-menu__list:hover .mega-menu__item.is-default:not(:hover) > .mega-menu__category {
  background: none;
}

.mega-menu__groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  align-content: start;
  gap: 1.5rem 2rem;
}

.mega-menu__group {
  display: grid;
  align-content: start;
  gap: 0.625rem;
}

.mega-menu__group ul {
  display: grid;
  gap: 0.625rem;
}

.mega-menu__link {
  font-size: var(--text-small);
  text-decoration: none;
}

.mega-menu__link--group {
  color: var(--fg-muted);
  font-size: var(--text-caption);
  font-weight: 500;
}

.mega-menu__link:hover,
.mega-menu__all:hover {
  color: var(--accent);
}

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

.mega-menu__all .icon {
  width: 1rem;
  height: 1rem;
}

.mega-feature {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  text-decoration: none;
}

.mega-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-block-end: 0.375rem;
  border-radius: var(--radius);
  background: var(--media);
  object-fit: cover;
}

.mega-feature .eyebrow {
  margin: 0;
}

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

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

@media (max-width: 989px) {
  .header__nav-row {
    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, 3.5rem) 0 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--bg);
  animation: rise 200ms var(--ease);
}

.menu-drawer__list {
  display: grid;
}

.menu-drawer__link,
.menu-drawer__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  border-block-end: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
  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;
  padding: 0.5rem 0 1rem;
}

.menu-drawer__children a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  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 .deals-link {
  justify-self: start;
  margin-block-start: 1.25rem;
}

.menu-drawer__nav {
  display: grid;
}

.menu-drawer__utilities {
  display: grid;
  gap: 0.25rem;
  margin-block-start: auto;
}

.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 ---------- */

/* The launch at night: the photo across the page, the words on the start side over a shade
   that follows the reading direction. */
.hero {
  position: relative;
  display: grid;
  min-height: clamp(30rem, 42vw, 37.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero--large {
  min-height: clamp(34rem, 52vw, 46rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgb(11 13 18 / calc(var(--hero-shade, 0.6) + 0.32)) 0%, rgb(11 13 18 / calc(var(--hero-shade, 0.6) * 0.6)) 55%, rgb(11 13 18 / 0) 100%);
}

[dir='rtl'] .hero--image::after {
  background: linear-gradient(to left, rgb(11 13 18 / calc(var(--hero-shade, 0.6) + 0.32)) 0%, rgb(11 13 18 / calc(var(--hero-shade, 0.6) * 0.6)) 55%, rgb(11 13 18 / 0) 100%);
}

.scheme-default.hero--image::after {
  background: linear-gradient(to right, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.4) 55%, rgb(255 255 255 / 0));
}

.hero__content {
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero__text {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  max-width: 38rem;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  font-size: var(--text-small);
  font-weight: 500;
}

.hero__heading {
  margin: 0;
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

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

.hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
}

.hero__amount {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

@media (max-width: 749px) {
  .hero {
    min-height: 35rem;
  }

  .hero--image::after,
  [dir='rtl'] .hero--image::after {
    background: linear-gradient(to top, rgb(11 13 18 / 0.96) 0%, rgb(11 13 18 / 0.5) 48%, rgb(11 13 18 / 0) 72%);
  }

  .hero__content {
    align-content: end;
    padding-block: 2rem;
  }

  .hero__lede {
    display: none;
  }

  .hero__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .hero__buttons .button--large {
    min-height: 3rem;
    padding-inline: 1rem;
  }
}

/* Arabic needs taller lines than the tight Latin display settings. */
:lang(ar) :is(.hero__heading, .deal__heading, .promotion__heading, .setup__heading, .statement__heading, .editorial__heading, .not-found h1, .article__title) {
  line-height: 1.35;
}

/* Shop by category: one row of photos with names, scrolling on phones. */
.category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (max-width: 989px) {
  .category-rail {
    grid-auto-columns: 6.5rem;
    gap: 0.75rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .category-rail > li {
    scroll-snap-align: start;
  }

  .category-rail .collection-card__title {
    font-size: var(--text-small);
  }
}

/* The deal at night: the clock on the start side, the products beside it. */
.deal__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 990px) {
  .deal__layout {
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.deal__intro {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.deal__intro .eyebrow {
  margin: 0;
}

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

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

.deal[data-ended] .countdown strong {
  color: var(--fg-muted);
}

.deal__products .product-card__media {
  background: var(--color-media);
}

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

  .deal__products.grid--2 {
    --deal-columns: 2;
  }

  .deal__products.grid--3 {
    --deal-columns: 3;
  }
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  direction: ltr;
}

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

.countdown__unit strong {
  display: grid;
  place-items: center;
  min-width: 3.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--deal);
  font-size: 2.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.scheme-default .countdown__unit strong,
.scheme-surface .countdown__unit strong {
  color: var(--fg);
}

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

.countdown__colon {
  padding-block-start: 0.625rem;
  color: var(--fg-subtle);
  font-size: 2rem;
  font-weight: 600;
}

.countdown--large {
  direction: inherit;
}

.countdown--large .countdown__unit strong {
  min-width: 5rem;
  padding: 0;
  background: none;
  color: var(--fg);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* Two or three promotions: a photo each, the words over a shade. */
.promotions {
  display: grid;
  gap: 1.25rem;
}

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

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

.promotion {
  position: relative;
  display: grid;
  min-height: clamp(18rem, 26vw, 24rem);
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--media);
  text-decoration: none;
  isolation: isolate;
}

.promotion__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 600ms var(--ease);
}

.promotion:hover .promotion__image {
  scale: 1.03;
}

.promotion::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgb(11 13 18 / 0.86), rgb(11 13 18 / 0.42) 50%, rgb(11 13 18 / 0) 80%);
}

[dir='rtl'] .promotion::after {
  background: linear-gradient(to left, rgb(11 13 18 / 0.86), rgb(11 13 18 / 0.42) 50%, rgb(11 13 18 / 0) 80%);
}

.promotion--day::after {
  background: linear-gradient(to right, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.55) 50%, rgb(255 255 255 / 0) 80%);
}

[dir='rtl'] .promotion--day::after {
  background: linear-gradient(to left, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.55) 50%, rgb(255 255 255 / 0) 80%);
}

.promotion__text {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.75rem;
  max-width: 21rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: #f4f6fa;
}

.promotion--day .promotion__text {
  color: #0b0d12;
}

.promotion .eyebrow {
  margin: 0;
  color: var(--color-deal);
}

.promotion--day .eyebrow {
  color: var(--color-accent);
}

.promotion__heading {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.promotion__lede {
  opacity: 0.78;
  font-size: var(--text-small);
}

.promotion .link {
  color: inherit;
}

@media (max-width: 749px) {
  .promotion::after,
  [dir='rtl'] .promotion::after {
    background: linear-gradient(to top, rgb(11 13 18 / 0.9), rgb(11 13 18 / 0) 65%);
  }

  .promotion--day::after,
  [dir='rtl'] .promotion--day::after {
    background: linear-gradient(to top, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0) 65%);
  }

  .promotion__text {
    align-self: end;
  }
}

/* Brands: their names (or logos) in one quiet line. */
.brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  padding-block: 2.25rem;
}

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

.brands__list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
}

.brand {
  display: block;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 140ms ease-out;
}

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

.brand__name {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand img {
  max-height: 2.5rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
}

.brand:hover img {
  filter: none;
  opacity: 1;
}

@media (max-width: 749px) {
  .brands {
    display: grid;
    gap: 1rem;
    padding-block: 1.75rem;
  }

  .brands__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .brand__name {
    font-size: var(--text-h3);
    white-space: nowrap;
  }
}

/* A setup in one photo, with the pieces in it beside. */
.setup {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 990px) {
  .setup {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

.setup__media img,
.setup__media .placeholder {
  width: 100%;
  aspect-ratio: 39 / 25;
  border-radius: calc(var(--radius) + 4px);
  object-fit: cover;
}

.setup__text {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.setup__text .eyebrow {
  margin: 0;
}

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

.setup__lede {
  margin: 0;
  color: var(--fg-muted);
}

.setup__pieces {
  width: 100%;
}

.piece {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.875rem;
  border-block-end: 1px solid var(--line);
}

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

.piece__image img,
.piece__image .placeholder {
  width: 4.5rem;
  height: 4.5rem;
  min-height: 0;
  border-radius: var(--radius-media);
  background: var(--media);
  object-fit: cover;
}

.piece__info {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.piece__title {
  font-weight: 500;
  text-decoration: none;
}

.piece__title:hover {
  text-decoration: underline;
}

.piece__specs {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
}

/* Promises: an icon, a line and a detail each. */
.promises {
  display: grid;
  gap: 1.5rem;
}

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

@media (min-width: 990px) {
  .promises {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  }
}

.promises__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.promises__item > .icon,
.promises__image {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.promises__title {
  margin: 0 0 0.25rem;
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0;
}

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

.section:has(> .page-width > .promises) .section-spacing,
.page-width.section-spacing:has(> .promises) {
  padding-block: 2.5rem;
}

/* 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);
}

/* An editorial: a photo and the words beside it. */
.editorial {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 990px) {
  .editorial {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .editorial--end .editorial__media {
    order: 2;
  }
}

.editorial__media img,
.editorial__media .placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) + 4px);
  object-fit: cover;
}

.editorial__content {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

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

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

.editorial__second img {
  width: 10rem;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
}

/* 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 {
  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.5rem;
}

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

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

.payment-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.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, 4rem) 2.5rem;
  font-size: var(--text-small);
}

.footer__top {
  display: grid;
  gap: 2.5rem;
  padding-block-end: 2.5rem;
  border-block-end: 1px solid var(--line);
}

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

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

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

.footer__lead {
  margin: 0;
  color: var(--fg-muted);
}

.footer__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 2rem;
}

@media (min-width: 990px) {
  .footer__top--signup .footer__blocks {
    justify-self: end;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 12rem));
    width: 100%;
    justify-content: end;
  }
}

.footer__heading {
  margin: 0 0 0.875rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0;
}

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

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__muted,
.footer__text {
  color: var(--fg-muted);
}

.footer__middle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.footer__middle:not(:has(*:not(.footer__brand):not(.footer__localization))) {
  padding-block: 0.5rem;
}

.footer__localization,
.footer__languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: var(--text-caption);
}

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

.footer__copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer__policies a {
  text-decoration: none;
}

.footer__policies a:hover {
  text-decoration: underline;
}

/* ---------- 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;
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-overlay);
}

[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(11 13 18 / 0.5);
  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-h3);
}

.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: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-block-start: 1px solid var(--line);
  background: var(--bg);
}

/* How far to free delivery: a line with a truck, and a bar that turns green when it's free. */
.delivery-progress {
  display: grid;
  gap: 0.75rem;
  font-size: var(--text-small);
}

.cart-drawer .delivery-progress {
  padding: 1rem 1.5rem 0;
}

.delivery-progress p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 500;
}

.delivery-progress p .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent);
}

.delivery-progress--done p .icon {
  color: var(--success);
}

.delivery-progress strong {
  font-weight: 600;
}

.delivery-progress__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.delivery-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 400ms var(--ease);
}

.delivery-progress--done .delivery-progress__bar span {
  background: var(--success);
}

.cart-items {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 5rem 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 {
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--media);
}

.cart-item__media img,
.cart-item__media .placeholder {
  width: 100%;
  aspect-ratio: 1;
  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: 500;
  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__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;
}

/* Gift wrap and a note: a box to tick, the note under it once ticked. */
.gift-note > summary {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  list-style: none;
  cursor: pointer;
}

.gift-note__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.gift-note__box .icon {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0;
}

.gift-note[open] .gift-note__box {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.gift-note[open] .gift-note__box .icon {
  opacity: 1;
}

.gift-note__label {
  flex: 1;
}

.gift-note > summary > .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.gift-note textarea {
  margin-block-start: 0.75rem;
}

.cart-totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-body);
  font-weight: 600;
}

.cart-drawer__tax {
  margin: -0.25rem 0 0.5rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.cart-drawer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-start: 0.25rem;
}

.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-size: var(--text-small);
  font-weight: 500;
}

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

.upsell__item {
  display: grid;
  grid-template-columns: 3.5rem 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%;
  aspect-ratio: 1;
  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;
}

.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-line,
.quick-view .delivery,
.quick-view .protection,
.quick-view .product__thumbs,
.quick-view .product__tools,
.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);
}

.rte blockquote {
  margin: 2rem 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid var(--accent);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
}

.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,
.rte ol {
  margin: 0 0 1em;
  padding-inline-start: 1.25em;
}

.rte 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;
  }
}


/* ---------- 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;
  }

  .collection-card__media img,
  .article-card__media img {
    scale: 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}
