/* Nour — the platform's default theme.
   Six colour settings feed three colour schemes (default, tinted, inverse) that sections choose;
   every component reads the scheme's tokens. Logical properties throughout (inline-start,
   block-end…) so right-to-left languages mirror the layout without extra rules; Arabic gets its
   own line heights. Settings arrive as custom properties (snippets/theme-variables.html). */

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

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

:root {
  --gutter: clamp(1.25rem, 3.6vw, 2.5rem);
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --header-height: 4.5rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --text-display: clamp(2.5rem, 1.55rem + 3.4vw, 4rem);
  --text-h1: clamp(2rem, 1.55rem + 1.6vw, 2.75rem);
  --text-h2: clamp(1.625rem, 1.45rem + 0.7vw, 2rem);
  --text-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --text-h4: 1.1875rem;
  --text-lead: 1.0625rem;
  --text-body: 0.9375rem;
  --text-small: 0.8125rem;
  --text-label: 0.875rem;
  --text-caption: 0.75rem;
  --shadow-popover: 0 1px 2px rgb(28 27 24 / 0.06), 0 12px 32px -4px rgb(28 27 24 / 0.1);
  --shadow-overlay: 0 24px 64px -8px rgb(28 27 24 / 0.18);
  --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");
}

/* A section's colours. `body` is the default scheme. */
body,
.scheme-default {
  --bg: var(--color-background);
  --bg-raised: var(--color-surface);
  --fg: var(--color-text);
  --fg-muted: color-mix(in oklab, var(--color-text) 66%, var(--color-background));
  --line: color-mix(in oklab, var(--color-text) 12%, var(--color-background));
  --line-strong: color-mix(in oklab, var(--color-text) 48%, var(--color-background));
  --field: color-mix(in oklab, var(--color-background) 35%, #fff);
  --button: var(--color-accent);
  --button-fg: var(--color-accent-text);
  --sale: var(--color-sale);
}

.scheme-tinted {
  --bg: var(--color-surface);
  --bg-raised: var(--color-background);
  --fg: var(--color-text);
  --fg-muted: color-mix(in oklab, var(--color-text) 68%, var(--color-surface));
  --line: color-mix(in oklab, var(--color-text) 14%, var(--color-surface));
  --line-strong: color-mix(in oklab, var(--color-text) 50%, var(--color-surface));
  --field: #fff;
  --button: var(--color-accent);
  --button-fg: var(--color-accent-text);
  --sale: var(--color-sale);
}

.scheme-inverse {
  --bg: var(--color-text);
  --bg-raised: color-mix(in oklab, var(--color-background) 9%, var(--color-text));
  --fg: var(--color-background);
  --fg-muted: color-mix(in oklab, var(--color-background) 70%, var(--color-text));
  --line: color-mix(in oklab, var(--color-background) 16%, var(--color-text));
  --line-strong: color-mix(in oklab, var(--color-background) 45%, var(--color-text));
  --field: color-mix(in oklab, var(--color-background) 8%, var(--color-text));
  --button: var(--color-background);
  --button-fg: var(--color-text);
  --sale: color-mix(in oklab, var(--color-sale) 45%, #fff);
}

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

/* Names the family's themes read, following the section's scheme. */
body,
.scheme-default,
.scheme-tinted,
.scheme-inverse {
  --color-text-subtle: var(--fg-muted);
  --color-border: var(--line);
}

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.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: 500;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

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

h3 {
  font-size: var(--text-h4);
  letter-spacing: 0;
}

h4 {
  font-size: var(--text-body);
  letter-spacing: 0;
}

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

/* Arabic: the same sizes on taller lines, never tracked tighter. */
:lang(ar) body,
body:lang(ar) {
  line-height: 1.7;
}

:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3,
:lang(ar) h4,
:lang(ar) .hero__heading,
:lang(ar) .display {
  letter-spacing: 0;
}

:lang(ar) h1,
:lang(ar) .hero__heading {
  line-height: 1.32;
}

:lang(ar) h2,
:lang(ar) h3 {
  line-height: 1.4;
}

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

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(--fg);
  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;
}

/* 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.25rem;
  height: 1.25rem;
  flex: none;
}

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

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

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

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

main:focus {
  outline: none;
}

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

.placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%),
    var(--bg-raised);
}

/* ---------- 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(44rem + 2 * var(--gutter));
}

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

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

.section-spacing--compact {
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.section + .section.scheme-default > .section-spacing,
.section.scheme-default + .section.scheme-default > .section-spacing {
  padding-block-start: 0;
}

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

.section-heading h2 {
  margin: 0;
}

.section-heading--center {
  justify-content: center;
  text-align: center;
}

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

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

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

.page-header--row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

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

.grid--products {
  gap: 2rem 0.75rem;
}

@media (min-width: 750px) {
  .grid {
    gap: 3rem 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--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .grid--1 {
    grid-template-columns: 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: 72%;
    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--collections[data-scroller] {
    grid-auto-columns: 78%;
  }
}

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

.panel,
.surface {
  border-radius: calc(var(--radius) + 2px);
  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.5rem;
  padding-block: clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.empty-state__icon .icon {
  width: 2rem;
  height: 2rem;
}

.empty-state--large p {
  color: var(--fg);
  font-size: var(--text-h4);
}

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

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

.button:hover {
  background: color-mix(in oklab, var(--button) 86%, var(--button-fg));
}

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

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

.button--large {
  min-height: 3.25rem;
  padding-inline: 1.75rem;
}

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

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

.button--grow {
  flex: 1;
}

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

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

.button[aria-busy='true']::after,
.quick-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 {
  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: 50%;
  background: none;
  color: inherit;
  transition: background-color 120ms ease-out;
}

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--text-label);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

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

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

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

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

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

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

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

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

.field-row {
  display: grid;
  gap: 0 0.75rem;
}

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

.input,
.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea,
.facets__price input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 120ms ease-out, box-shadow 120ms 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.85;
}

.input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--fg) 14%, transparent);
}

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

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

.select--inline select {
  min-height: 2.5rem;
  padding: 0.25rem 2rem 0.25rem 0;
  border: 0;
  background: none;
  font-size: var(--text-label);
  font-weight: 500;
}

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

.select--inline > .icon:last-child {
  inset-inline-end: 0.25rem;
}

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

.select--pill select {
  min-height: 2.5rem;
  padding: 0.25rem 2.25rem 0.25rem 0;
  border: 0;
  background: none;
  font-size: var(--text-small);
  font-weight: 500;
  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(--fg);
}

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

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

.choice-group {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.form-footer {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  margin-block-start: 1.5rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
  text-align: center;
}

.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);
  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 {
  background: color-mix(in oklab, var(--sale) 8%, var(--bg));
}

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

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

/* A file picker that matches the other fields. */
input[type='file'] {
  width: 100%;
  font-size: var(--text-small);
}

input[type='file']::file-selector-button {
  margin-inline-end: 0.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) * 0.66);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

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

.quantity {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

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

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

.quantity__button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.quantity--small .quantity__button {
  width: 2.25rem;
}

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

/* Inside the rounded box, which clips: the ring sits within the button. */
.quantity__button:focus-visible,
.quantity__input:focus-visible {
  outline-offset: -3px;
  border-radius: calc(var(--radius) - 1px);
}

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

.quantity__input {
  width: 2.25rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  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;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--radius) * 0.66);
  background: var(--bg);
  color: var(--fg);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.33;
}

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

.badge--sold-out {
  background: var(--fg);
  color: var(--bg);
}

.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: 2rem;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
}

.chip .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.chip:hover,
.tag:hover {
  background: color-mix(in oklab, var(--bg-raised) 80%, var(--fg));
}

.tag--active {
  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: calc(var(--radius) + 2px);
  background: var(--color-text);
  color: var(--color-background);
  box-shadow: var(--shadow-overlay);
  font-size: var(--text-label);
  font-weight: 500;
  animation: rise 200ms var(--ease);
}

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

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

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

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  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-label);
}

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

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

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

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

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

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

.accordion > summary,
.disclosure > summary,
.cart-note > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.accordion > summary::-webkit-details-marker,
.disclosure > summary::-webkit-details-marker,
.cart-note > summary::-webkit-details-marker {
  display: none;
}

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

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  margin-block-start: -0.75px;
  border-radius: 1px;
  background: currentColor;
  transition: rotate 200ms var(--ease);
}

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

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

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

.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
}

.table th {
  padding: 1rem 1rem 1rem 0;
  border-block-end: 1px solid var(--line);
  font-weight: 400;
  text-align: start;
  vertical-align: top;
}

.table thead th {
  padding-block: 0 0.75rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
  font-weight: 500;
}

.table th:last-child,
.table td:last-child {
  padding-inline-end: 0;
  text-align: end;
}

.table tfoot th,
.table tfoot td {
  padding-block: 0.375rem;
  border-block-end: 0;
  color: var(--fg-muted);
}

.table tfoot tr:first-child > * {
  padding-block-start: 1rem;
}

[dir='rtl'] .table th,
[dir='rtl'] .table td {
  padding-inline: 0 1rem;
}

.table td {
  padding: 1rem 1rem 1rem 0;
  border-block-end: 1px solid var(--line);
  vertical-align: top;
}

.table tfoot .table__total > * {
  padding-block: 0.75rem 0;
  color: var(--fg);
  font-weight: 500;
}

.table td .money,
.table th .money {
  justify-content: flex-end;
}

/* ---------- 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.25rem 0.625rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

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

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

.price__compare {
  color: var(--fg-muted);
  font-size: 0.9em;
  font-weight: 400;
  text-decoration-thickness: 1px;
}

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

.price--large .price__compare {
  font-size: var(--text-lead);
}

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

.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: 5.25rem;
  height: 1rem;
  background: linear-gradient(to right, var(--fg) calc(var(--rating, 0) / 5 * 100%), var(--line-strong) 0);
  -webkit-mask: var(--star) 0 0 / 1.05rem 1rem repeat-x;
  mask: var(--star) 0 0 / 1.05rem 1rem 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);
}

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

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

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

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

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 400ms ease, scale 700ms var(--ease);
}

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

@media (hover: hover) {
  .product-card:hover .product-card__second {
    opacity: 1;
  }

  .product-card:hover .product-card__image img:first-child:not(:only-child) {
    opacity: 0;
  }

  .product-card:hover .product-card__image img:only-child {
    scale: 1.03;
  }
}

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

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

.quick-add {
  position: absolute;
  inset-inline: 0.75rem;
  inset-block-end: 0.75rem;
  z-index: 1;
}

.quick-add__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.94);
  color: #1c1b18;
  font-size: var(--text-label);
  font-weight: 500;
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgb(28 27 24 / 0.08);
}

.quick-add__button:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgb(28 27 24 / 0.14);
}

.quick-add__button .icon {
  width: 1rem;
  height: 1rem;
}

.quick-add__button[aria-busy='true'] > * {
  visibility: hidden;
}

.quick-add__button[aria-busy='true']::after {
  border-color: #1c1b18;
  border-inline-end-color: transparent;
}

@media (hover: hover) and (min-width: 750px) {
  .quick-add {
    opacity: 0;
    translate: 0 6px;
    transition: opacity 160ms ease-out, translate 200ms var(--ease);
  }

  .product-card:hover .quick-add,
  .quick-add:focus-within {
    opacity: 1;
    translate: 0 0;
  }
}

/* Touch screens without room show a round add button instead of the bar. */
@media (max-width: 749px) {
  .quick-add {
    inset-inline: auto 0.5rem;
    inset-block-end: 0.5rem;
  }

  .quick-add__button {
    width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .quick-add__button > span {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

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

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

.product-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

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

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

.product-card .price {
  font-size: var(--text-body);
}

.product-card .rating {
  position: relative;
}

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

.collection-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 700ms var(--ease);
}

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

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

.collection-card__text {
  display: grid;
}

.collection-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 500;
}

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

.collection-card__caption > .icon {
  transition: translate 200ms var(--ease);
}

.collection-card:hover .collection-card__caption > .icon {
  translate: 4px 0;
}

[dir='rtl'] .collection-card:hover .collection-card__caption > .icon {
  translate: -4px 0;
}

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

.article-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 700ms var(--ease);
}

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

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

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

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

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

.article-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.article-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--fg-muted);
  font-size: var(--text-small);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.announcement-bar__inner {
  font-size: var(--text-small);
  text-align: center;
}

.announcement-bar__inner .page-width {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

.announcement-bar__inner p {
  margin: 0;
  padding-block: 0.5rem;
  text-wrap: balance;
}

.announcement-bar__inner a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
}

.announcement-bar__inner .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.site-header {
  position: relative;
  z-index: 30;
}

.site-header:has(.header--sticky) {
  position: sticky;
  inset-block-start: 0;
}

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

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 3.5rem;
}

.header__start,
.header__end {
  display: flex;
  align-items: center;
}

.header__end {
  justify-content: flex-end;
  gap: 0.125rem;
}

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

.header__logo img {
  max-width: min(var(--logo-width, 160px), 40vw);
  height: auto;
}

.header__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header__nav,
.header__language,
.header__languages,
.header__search,
.header__account {
  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;
}

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

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

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

.cart-count[hidden] {
  display: none;
}

@media (min-width: 990px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    min-height: var(--header-height);
  }

  .header__inner--center {
    grid-template-columns: 1fr auto 1fr;
  }

  .header__inner--center .header__logo {
    grid-column: 2;
    grid-row: 1;
  }

  .header__inner--center .header__nav {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .header__start {
    display: none;
  }

  .header__inner--start .header__logo {
    justify-self: start;
  }

  .header__nav {
    display: flex;
    justify-content: center;
  }

  .header__nav > ul {
    display: flex;
    align-items: center;
    gap: 0.25rem 1.75rem;
  }

  .header__nav > ul > li > a,
  .header__dropdown > summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: var(--header-height);
    font-size: var(--text-label);
    font-weight: 500;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
  }

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

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

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

  .header__nav > ul > li > a::after,
  .header__dropdown > summary::after {
    content: '';
    position: absolute;
    inset: auto 0 1.25rem;
    height: 1.5px;
    background: currentColor;
    scale: 0 1;
    transition: scale 200ms var(--ease);
  }

  /* The links are as tall as the header; the focus ring hugs the words instead. */
  .header__nav > ul > li > a:focus-visible,
  .header__dropdown > summary:focus-visible {
    outline: none;
  }

  .header__nav > ul > li > a:focus-visible::before,
  .header__dropdown > summary:focus-visible::before {
    content: '';
    position: absolute;
    inset: 1.125rem -0.5rem;
    border: 2px solid currentColor;
    border-radius: calc(var(--radius) * 0.66);
  }

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

  .header__language,
  .header__languages {
    display: inline-flex;
  }

  .header__search,
  .header__account {
    display: inline-grid;
  }

  .header__language {
    align-items: center;
    min-height: 2.75rem;
    margin-inline-end: 0.75rem;
    font-size: var(--text-label);
    font-weight: 500;
    text-decoration: none;
  }

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

  .header__language:lang(ar) {
    font-family: var(--font-body);
  }
}

.header__languages {
  position: relative;
}

.header__languages > summary {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  margin-inline-end: 0.5rem;
  font-size: var(--text-small);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.header__language-list {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  min-width: 10rem;
  padding: 0.5rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg);
  box-shadow: var(--shadow-popover);
}

.header__language-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.header__language-list a:hover,
.header__language-list [aria-current] {
  background: var(--bg-raised);
}

/* The mega menu: link groups from the menu, up to two featured cards. */
.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: drop 160ms var(--ease);
}

@keyframes drop {
  from {
    opacity: 0;
    translate: 0 -4px;
  }
}

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

.mega-menu__nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1.75rem;
}

/* A flat list runs down in columns of six; a menu with groups gets one column per group. */
.mega-menu__groups {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  align-content: start;
  gap: 0.75rem 3rem;
}

.mega-menu__groups--columns {
  grid-template-rows: none;
  grid-auto-columns: minmax(9rem, max-content);
  align-items: start;
  gap: 0 3rem;
}

.mega-menu__group > ul {
  display: grid;
  gap: 0.5rem;
  margin-block-start: 0.625rem;
}

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

.mega-menu__link:hover,
.mega-menu__link[aria-current='page'],
.mega-menu__all[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

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

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

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

.mega-menu__features {
  display: flex;
  gap: 1.25rem;
}

.mega-feature {
  display: grid;
  gap: 0.375rem;
  width: 18.75rem;
  text-decoration: none;
}

.mega-feature img,
.mega-feature .placeholder {
  aspect-ratio: 4 / 3;
  margin-block-end: 0.375rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.mega-feature__title {
  font-size: var(--text-label);
  font-weight: 500;
}

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

/* The menu drawer on phones and tablets. */
.menu-drawer {
  position: fixed;
  inset: calc(var(--drawer-top, 3.5rem)) 0 0;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: 1.5rem;
  padding: 1.25rem var(--gutter) 2.5rem;
  overflow-y: auto;
  background: var(--bg);
  animation: fade 200ms ease-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.menu-drawer__list > li {
  border-block-end: 1px solid var(--line);
}

.menu-drawer__link,
.menu-drawer__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 500;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}

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

.menu-drawer__group > summary .icon {
  transition: rotate 200ms var(--ease);
}

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

.menu-drawer__children {
  display: grid;
  gap: 0.25rem;
  padding-block-end: 1rem;
}

.menu-drawer__children a {
  display: block;
  padding-block: 0.5rem;
  color: var(--fg-muted);
  font-size: var(--text-lead);
  text-decoration: none;
}

.menu-drawer__children a:hover,
.menu-drawer__children [aria-current] {
  color: var(--fg);
}

/* The page you're on: a short bar at the start of its row. */
.menu-drawer__link[aria-current='page'],
.menu-drawer__group > summary.is-current {
  position: relative;
}

.menu-drawer__link[aria-current='page']::before,
.menu-drawer__group > summary.is-current::before {
  content: '';
  position: absolute;
  inset-inline-start: calc(-1 * var(--gutter));
  inset-block: 1rem;
  width: 3px;
  border-start-end-radius: 2px;
  border-end-end-radius: 2px;
  background: currentColor;
}

.menu-drawer__utilities {
  display: grid;
  gap: 0.25rem;
}

.menu-drawer__utilities a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 2.75rem;
  font-size: var(--text-lead);
  text-decoration: none;
}

.menu-drawer__languages {
  display: flex;
  padding: 0.25rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-raised);
}

.menu-drawer__languages a {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius);
  font-size: var(--text-label);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.menu-drawer__languages [aria-current] {
  background: var(--field);
  box-shadow: var(--shadow-popover);
}

.menu-drawer .country-selector .select {
  width: 100%;
}

.menu-drawer .country-selector select {
  width: 100%;
}

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

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

.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bg-raised);
  transition: background-color 120ms ease-out, border-color 120ms ease-out, box-shadow 120ms ease-out;
}

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

.search-field:focus-within {
  border-color: var(--fg);
  background: var(--field);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--fg) 10%, transparent);
}

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

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

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

.search-field__clear,
.search-field__submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
}

.search-field__submit {
  background: var(--button);
  color: var(--button-fg);
}

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

.search-field:has(input:placeholder-shown) .search-field__clear {
  visibility: hidden;
}

.search-field--page {
  max-width: 40rem;
  margin: 1.5rem auto 0;
}

.search-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.search-modal::backdrop {
  background: rgb(28 27 24 / 0.42);
  animation: fade 200ms ease-out;
}

.search-modal__panel {
  max-height: 100%;
  overflow-y: auto;
  border-block-end: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-popover);
  animation: drop 160ms var(--ease);
}

.search-modal__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.search-modal__bar .search-field {
  flex: 1;
}

.search-modal__logo {
  display: none;
}

.search-modal__cancel {
  text-decoration: none;
}

@media (min-width: 990px) {
  .search-modal__bar {
    display: grid;
    grid-template-columns: 1fr minmax(0, 40rem) 1fr;
    min-height: 5rem;
    gap: 2rem;
  }

  .search-modal__logo {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .search-modal__cancel {
    justify-self: end;
  }
}

.predictive:empty {
  display: none;
}

.predictive {
  display: grid;
  gap: 1.75rem;
  padding-block: 1.5rem 2.25rem;
}

.predictive__group-title {
  margin: 0 0 0.75rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
  font-weight: 400;
}

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

.predictive__suggestions a,
.predictive__recent a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  font-size: var(--text-lead);
  font-weight: 600;
  text-decoration: none;
}

.predictive__suggestions a .typed {
  font-weight: 400;
}

.predictive__suggestions .icon,
.predictive__recent .icon {
  width: 1rem;
  height: 1rem;
  color: var(--fg-muted);
}

.predictive__recent a {
  font-weight: 400;
}

.predictive__products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 8.5rem;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.predictive__product {
  display: grid;
  gap: 0.375rem;
  font-size: var(--text-small);
  text-decoration: none;
}

.predictive__product img,
.predictive__product .placeholder {
  aspect-ratio: 4 / 5;
  width: 100%;
  min-height: 0;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg-raised);
}

.predictive__product .price {
  color: var(--fg-muted);
  font-weight: 400;
}

.predictive__links a {
  display: block;
  padding-block: 0.375rem;
  font-size: var(--text-lead);
  text-decoration: none;
}

.predictive__links a:hover,
.predictive__suggestions a:hover,
.predictive__recent a:hover {
  text-decoration: underline;
}

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

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

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

@media (min-width: 990px) {
  .predictive__columns {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) auto minmax(14rem, 1fr);
    gap: 3.5rem;
  }

  .predictive__products {
    grid-auto-columns: 9.5rem;
    overflow: visible;
  }
}

@media (max-width: 989px) {
  .predictive__columns {
    display: grid;
    gap: 1.75rem;
  }

  .predictive__keys {
    display: none;
  }
}

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

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
}

.hero__media {
  position: relative;
  grid-area: 1 / 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 40%, rgb(28 27 24 / var(--hero-overlay, 0.45))),
    linear-gradient(to right, rgb(28 27 24 / calc(var(--hero-overlay, 0.45) * 0.8)), transparent 68%);
}

[dir='rtl'] .hero__overlay {
  background:
    linear-gradient(to bottom, transparent 40%, rgb(28 27 24 / var(--hero-overlay, 0.45))),
    linear-gradient(to left, rgb(28 27 24 / calc(var(--hero-overlay, 0.45) * 0.8)), transparent 68%);
}

.hero__content {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero--center .hero__content {
  justify-content: center;
  text-align: center;
}

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

.hero--center .hero__text-block {
  justify-items: center;
}

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

.hero__text {
  margin: 0;
  font-size: var(--text-lead);
}

.hero__button {
  margin-block-start: 0.75rem;
}

.hero--image {
  color: #fff;
}

.hero--image .hero__button {
  border-color: #fff;
  background: #fff;
  color: #1c1b18;
}

.hero--image .hero__button:hover {
  background: rgb(255 255 255 / 0.88);
}

.hero--small .hero__media {
  min-height: clamp(22rem, 45vw, 32rem);
}

.hero--medium .hero__media {
  min-height: clamp(26rem, 55vw, 40rem);
}

.hero--large .hero__media {
  min-height: clamp(30rem, 70vw, 45rem);
}

.hero:not(.hero--image) {
  background: var(--bg-raised);
}

.hero:not(.hero--image) .hero__content {
  min-height: clamp(20rem, 40vw, 30rem);
}

/* On phones the text sits under the photo, where it can always be read. */
@media (max-width: 749px) {
  .hero--phone-stack.hero--image {
    color: var(--fg);
  }

  .hero--phone-stack .hero__media {
    min-height: 0 !important;
    aspect-ratio: 9 / 10;
  }

  .hero--phone-stack .hero__overlay {
    display: none;
  }

  .hero--phone-stack .hero__content {
    grid-area: 2 / 1;
    padding-block: 1.75rem 3rem;
  }

  .hero--phone-stack.hero--image .hero__button {
    width: 100%;
    border-color: var(--button);
    background: var(--button);
    color: var(--button-fg);
  }

  .hero--phone-stack .hero__text {
    color: var(--fg-muted);
  }

  .hero--phone-overlay .hero__media {
    min-height: 34rem;
  }
}

.image-with-text {
  display: grid;
  align-items: center;
  gap: 2rem;
}

.image-with-text__media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.image-with-text__media img,
.image-with-text__media .placeholder {
  width: 100%;
  aspect-ratio: 7 / 8;
  object-fit: cover;
}

.image-with-text__content {
  display: grid;
  justify-items: start;
  max-width: 30rem;
}

.image-with-text__text {
  color: var(--fg-muted);
  font-size: var(--text-lead);
}

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  width: 100%;
  margin-block: 0.5rem 1.75rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}

.figures__item {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
}

.figures__value {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.1;
}

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

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

  .image-with-text--end .image-with-text__media {
    order: 2;
  }
}

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

.multicolumn__list {
  display: grid;
  gap: 2rem 1.25rem;
}

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

.multicolumn__item {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.multicolumn__icon .icon,
.multicolumn__image {
  width: 1.5rem;
  height: 1.5rem;
  margin-block-end: 0.75rem;
}

.multicolumn__item h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
}

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

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

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

.rich-text--center .rich-text__inner {
  justify-items: center;
  text-align: center;
}

.rich-text__heading {
  max-width: 52rem;
  margin: 0;
}

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

.email-signup {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.email-signup h2 {
  margin-block-end: 0.375rem;
}

.email-signup__lead {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-lead);
}

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

.signup {
  display: grid;
  gap: 0.625rem;
}

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

.signup__row .input {
  flex: 1;
  min-width: 0;
}

.signup__row .button {
  min-height: 3rem;
}

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

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

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

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

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

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

.footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  font-size: var(--text-body);
}

.footer a {
  text-decoration: none;
}

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

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

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

.footer__lead {
  max-width: 28rem;
  color: var(--fg-muted);
}

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

.footer__block--text {
  max-width: 22rem;
}

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

  .footer__block--text,
  .footer__block--contact {
    grid-column: 1 / -1;
  }
}

.footer__heading {
  margin-block-end: 1rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
}

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

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

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

.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer__localization {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer__languages {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-small);
  font-weight: 500;
}

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

.footer__languages [aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

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

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

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

.payment-marks li {
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.66);
  font-size: var(--text-caption);
  font-weight: 600;
  white-space: nowrap;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
}

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

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

  .footer__top--signup .footer__blocks {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
}

/* ---------- Product page ---------- */

.product-section {
  padding-block: 1.25rem var(--space-section);
}

.product {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 990px) {
  .product {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 5.5vw, 5rem);
    align-items: start;
  }

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

.product__media {
  position: relative;
  min-width: 0;
}

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

.product__slide {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
}

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

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

  /* An odd number of photos leads with the first one across both columns. */
  .product__media--grid .product__slide:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }

  .gallery-status {
    display: none;
  }
}

/* Phones swipe through the gallery. */
@media (max-width: 989px) {
  .product__gallery {
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0;
    margin-inline: calc(-1 * var(--gutter));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product__gallery::-webkit-scrollbar {
    display: none;
  }

  .product__slide {
    border-radius: 0;
    scroll-snap-align: start;
  }

  .gallery-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-block-start: 0.75rem;
  }

  .gallery-status__count {
    position: absolute;
    inset-block-end: 2.5rem;
    inset-inline-end: 0;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.9);
    color: #1c1b18;
    font-size: var(--text-caption);
    font-weight: 500;
  }

  .gallery-status__dots {
    display: flex;
    gap: 0.375rem;
  }

  .gallery-status__dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 999px;
    background: var(--line);
    transition: width 200ms var(--ease), background-color 200ms;
  }

  .gallery-status__dot.is-current {
    width: 1rem;
    background: var(--fg);
  }
}

.product__placeholder {
  aspect-ratio: 4 / 5;
}

.product__info {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

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

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

.product__rating {
  text-decoration: none;
}

.product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

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

.product__description {
  font-size: var(--text-lead);
}

.product__sku,
.product__text--subtle {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.product__text {
  margin: 0;
}

.product__text--accent {
  color: var(--sale);
  font-weight: 500;
}

.variant-picker {
  display: grid;
  gap: 1rem;
}

.variant-picker__option {
  margin: 0;
  padding: 0;
  border: 0;
}

.variant-picker__option legend {
  margin-block-end: 0.625rem;
  font-size: var(--text-label);
  font-weight: 500;
}

.variant-picker__value {
  margin-inline-start: 0.5rem;
  color: var(--fg-muted);
  font-weight: 400;
  unicode-bidi: isolate;
}

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

.pill {
  position: relative;
}

.pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.pill span {
  display: grid;
  place-items: center;
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-label);
  font-weight: 500;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

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

.pill input:checked + span {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.pill input:focus-visible + span {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.pill--unavailable span {
  color: var(--fg-muted);
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line-strong) calc(50% - 0.5px), var(--line-strong) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.pill--unavailable input:checked + span {
  background: var(--fg-muted);
}

.purchase-options {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.purchase-options legend {
  margin-block-end: 0.5rem;
  font-size: var(--text-label);
  font-weight: 500;
}

.purchase-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.purchase-option:has(input:checked) {
  border-color: var(--fg);
  box-shadow: inset 0 0 0 0.5px var(--fg);
}

.purchase-option strong {
  color: var(--sale);
  font-weight: 500;
}

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

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

.buy-row {
  display: flex;
  gap: 0.625rem;
}

.promise {
  display: flex;
  gap: 1rem;
  padding-block: 1rem;
  border-block-start: 1px solid var(--line);
}

.promise + .promise {
  margin-block-start: -1rem;
}

.promise:not(:has(+ .promise)) {
  border-block-end: 1px solid var(--line);
}

.promise__icon .icon {
  margin-block-start: 0.125rem;
}

.promise__text p {
  margin: 0;
}

.promise__title {
  font-weight: 500;
}

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

.product__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-label);
  font-weight: 500;
  text-decoration: none;
}

.product__whatsapp:hover span {
  text-decoration: underline;
}

.product__info .accordion:first-of-type {
  border-block-start: 1px solid var(--line);
}

.sticky-buy {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 -8px 24px rgb(28 27 24 / 0.08);
  translate: 0 calc(100% + 2rem);
  visibility: hidden;
  transition: translate 240ms var(--ease), visibility 0s linear 240ms;
}

.sticky-buy.is-visible {
  translate: 0 0;
  visibility: visible;
  transition: translate 240ms var(--ease);
}

.sticky-buy__summary {
  display: grid;
  min-width: 0;
}

.sticky-buy__title {
  overflow: hidden;
  font-size: var(--text-small);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sticky-buy__price {
  font-weight: 500;
}

@media (min-width: 990px) {
  .sticky-buy {
    inset-inline: auto var(--gutter);
    inset-block-end: 1.25rem;
    width: 26rem;
    padding: 0.75rem 0.75rem 0.75rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
  }

  [dir='rtl'] .sticky-buy {
    padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  }
}

/* Reviews */
.product-reviews {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 990px) {
  .product-reviews {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: clamp(3rem, 10vw, 10rem);
  }

  .product-reviews__summary {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 1.5rem);
    align-self: start;
  }
}

/* No reviews yet: the heading and a line, not two empty columns. */
.product-reviews--empty {
  grid-template-columns: minmax(0, 36rem) !important;
}

.product-reviews--empty .product-reviews__summary {
  position: static;
}

.product-reviews__none {
  margin: 0;
  font-size: var(--text-lead);
}

.product-reviews__average {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1;
}

.product-reviews__summary .rating__stars {
  width: 6.3rem;
  height: 1.2rem;
  -webkit-mask-size: 1.26rem 1.2rem;
  mask-size: 1.26rem 1.2rem;
}

.product-reviews__summary .subtle {
  margin: 0.5rem 0 0;
  font-size: var(--text-small);
}

.review {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-block-start: 1px solid var(--line);
}

.review__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
}

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

.review__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  margin: 0.25rem 0 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.review__author {
  color: var(--fg);
}

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

.review__photos img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.review__reply {
  margin-block-start: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-raised);
  font-size: var(--text-small);
}

.review__reply p {
  margin: 0;
}

.review__reply-label {
  margin-block-end: 0.25rem !important;
  font-weight: 500;
}

/* ---------- Collection and search ---------- */

.collection-banner {
  margin-block-end: 2rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.collection-banner img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 2.75rem;
  margin-block-end: 1.5rem;
}

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

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.sort-menu {
  position: relative;
}

.sort-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
  list-style: none;
  cursor: pointer;
}

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

.sort-menu > summary strong {
  color: var(--fg);
  font-weight: 500;
}

.sort-menu > summary .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.sort-menu__list {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  z-index: 10;
  min-width: 13rem;
  padding: 0.5rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg);
  box-shadow: var(--shadow-popover);
}

.sort-menu__list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: var(--text-label);
  text-decoration: none;
}

.sort-menu__list a:hover,
.sort-menu__list [aria-current] {
  background: var(--bg-raised);
}

.search-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 990px) {
  .search-layout--filters {
    grid-template-columns: 16.25rem minmax(0, 1fr);
    gap: 3rem;
  }

  .facets__toggle {
    display: none !important;
  }
}

.facets__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-label);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.facets__toggle::-webkit-details-marker {
  display: none;
}

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

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

.facets__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  font-size: var(--text-label);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.facets__summary::-webkit-details-marker {
  display: none;
}

.facets__summary .icon {
  width: 1rem;
  height: 1rem;
  transition: rotate 200ms var(--ease);
}

.facets__group[open] .facets__summary .icon {
  rotate: 180deg;
}

.facets__list {
  display: grid;
  gap: 0.125rem;
  padding-block-end: 1rem;
}

.facets__value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.25rem;
  font-size: var(--text-body);
  text-decoration: none;
}

.facets__check {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) * 0.66);
}

.facets__value.is-active .facets__check {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.facets__check .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.facets__name {
  flex: 1;
}

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

.facets__price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-block-end: 1.25rem;
}

.facets__price-field {
  display: grid;
  gap: 0.375rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.facets__price .button {
  grid-column: 1 / -1;
}

@media (max-width: 989px) {
  .facets:not([open]) > .facets__panel {
    display: none;
  }

  .facets[open] > .facets__panel {
    margin-block-start: 1rem;
  }
}

.search-page__suggestions {
  margin-block-start: var(--space-section);
}

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

.not-found h1 {
  margin: 0;
  font-size: var(--text-display);
}

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

.not-found .search-field--page {
  width: 100%;
  margin: 0.5rem 0;
}

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

.sheet {
  width: min(28rem, 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 320ms 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(28 27 24 / 0.42);
  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.25rem;
  padding-inline: 1.5rem 1rem;
  border-block-end: 1px solid var(--line);
}

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

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

.delivery-progress {
  display: grid;
  gap: 0.625rem;
  font-size: var(--text-small);
}

.delivery-progress p {
  margin: 0;
}

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

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

.delivery-progress--done .delivery-progress__bar span {
  background: #2f6b4f;
}

.cart-items {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  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: calc(var(--radius) * 0.66);
  background: var(--bg-raised);
}

.cart-item__media img,
.cart-item__media .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  object-fit: cover;
}

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

.cart-item__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

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

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

.cart-item__total {
  font-weight: 500;
}

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

.cart-item__remove {
  font-size: var(--text-small);
  text-decoration: none;
}

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

.cart-note > summary {
  justify-content: flex-start;
  min-height: 3rem;
  font-size: var(--text-label);
}

.cart-note > summary .accordion__icon {
  margin-inline-start: auto;
}

.cart-note textarea {
  margin-block-end: 0.75rem;
}

.cart-totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
}

.cart-totals__amount {
  font-size: var(--text-h4);
}

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

.cart-drawer__view {
  justify-self: center;
  font-size: var(--text-small);
}

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

.cart-drawer__empty-icon .icon {
  width: 2rem;
  height: 2rem;
  color: var(--fg-muted);
}

.cart-drawer__empty-title {
  margin: 0;
  font-size: var(--text-h4);
}

.upsell {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  text-align: start;
}

.upsell__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-label);
  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;
}

.upsell__media {
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.66);
  background: var(--bg-raised);
}

.upsell__media img,
.upsell__media .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  object-fit: cover;
}

.upsell__info {
  display: grid;
  font-size: var(--text-small);
}

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

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

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

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

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

.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__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

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

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

.quick-view {
  width: min(55rem, calc(100% - 2rem));
  height: auto;
  max-height: min(40rem, calc(100% - 2rem));
  margin: auto;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
}

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

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

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

.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 .product__description,
.quick-view .promise,
.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__gallery {
    grid-template-columns: 1fr !important;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0;
    margin: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .quick-view .product__slide {
    border-radius: 0;
    scroll-snap-align: start;
  }

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

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

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

@media (max-width: 749px) {
  .quick-view {
    width: 100%;
    max-height: 85vh;
    margin: auto 0 0;
    border-radius: calc(var(--radius) + 8px) calc(var(--radius) + 8px) 0 0;
  }

  .quick-view .product__info {
    padding: 1.25rem 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 img {
  border-radius: var(--radius);
}

.rte blockquote {
  margin: 2rem 0;
  padding-inline-start: 1.5rem;
  border-inline-start: 2px solid var(--fg);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: 1.35;
}

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

.rte th,
.rte td {
  padding: 0.625rem;
  border: 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;
  }
}

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

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

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

.article__image img {
  width: 100%;
}

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

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

.article__content h2 {
  margin-block-start: 2em;
}

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

/* ---------- Account ---------- */

.account {
  display: grid;
  gap: 2.5rem;
}

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

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

.account__details {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.625rem;
}

.account__details h2 {
  margin: 0 0 0.25rem;
  font-size: var(--text-h3);
}

.account__details h3 {
  margin: 0.875rem 0 0;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
}

.account__details p {
  margin: 0;
}

.account__credit {
  width: 100%;
  margin-block-start: 0.75rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}

.address-list {
  display: grid;
  gap: 1rem;
}

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

.address {
  display: grid;
  color: var(--fg-muted);
  font-style: normal;
}

.address-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.75rem;
}

.address-card .address {
  color: var(--fg);
}

.address-card .address-form {
  width: 100%;
}

/* Disclosures opened by a button or a link, not by a full-width row. */
.disclosure:has(> summary.button),
.disclosure:has(> summary.link) {
  border: 0;
}

.disclosure > summary.button {
  display: inline-flex;
  justify-content: center;
  min-height: 2.75rem;
}

.disclosure > summary.link {
  display: inline-flex;
  min-height: 2.25rem;
}

.disclosure[open] > .address-form {
  margin-block-start: 1rem;
}

.address-new {
  margin-block-end: 1.5rem;
}

.address-form {
  display: grid;
}

.address-new {
  margin-block-start: 2rem;
}

.subscriptions {
  display: grid;
  gap: 1rem;
}

.subscription__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.subscription__lines {
  margin: 0.75rem 0;
}

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

.subscription__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-block-start: 1rem;
}

.order-digital,
.order-return,
.return-instructions {
  margin-block-start: 2rem;
}

.order-digital__list {
  display: grid;
  gap: 0.75rem;
}

.order-digital__item {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
}

.order-digital__item h3 {
  margin-block-end: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
}

.order-digital__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

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

.order-return {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  width: 100%;
  padding-block: 0 0.75rem;
  border-block-end: 1px solid var(--line);
}

.order-return p {
  margin: 0;
}

.order-return__lines {
  margin: 0;
  padding-inline-start: 1.1rem;
  font-size: var(--text-small);
}

.order-digital__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.return-lines {
  display: grid;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
}

.return-line {
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 2px);
}

.return-line:has(input:checked) {
  border-color: var(--fg);
}

.return-line__title {
  font-weight: 500;
}

.review-request {
  display: grid;
  gap: 1.5rem;
  margin-block-end: 1rem;
}

.review-request__product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-request__product h2 {
  margin: 0;
  font-size: var(--text-h4);
}

.review-request__product img {
  width: 3.5rem;
  border-radius: calc(var(--radius) * 0.66);
}

.star-input {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.star-input__options {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
}

.star-input__options input {
  position: absolute;
  opacity: 0;
}

.star-input__options label {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--line-strong);
  font-size: 1.75rem;
  cursor: pointer;
}

.star-input__options input:checked ~ label,
.star-input__options label:hover,
.star-input__options label:hover ~ label {
  color: var(--fg);
}

.star-input__options input:focus-visible + label {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* ---------- Password page ---------- */

.password-layout {
  min-height: 100vh;
}

.password-page {
  display: grid;
  min-height: 100vh;
}

.password-page__content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter);
}

.password-page__main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  max-width: 28rem;
}

.password-page__main h1 {
  margin: 0;
  font-size: var(--text-display);
  line-height: 1.04;
}

.password-page__message {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-lead);
}

.password-page__main .signup {
  width: 100%;
  margin-block-start: 0.5rem;
}

.password-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 990px) {
  .password-page--image {
    grid-template-columns: 1fr 1fr;
  }

  [dir='rtl'] .password-page--image .password-page__media {
    order: -1;
  }

  .password-page__content {
    padding-inline: clamp(3rem, 8vw, 7.5rem);
  }
}

@media (max-width: 989px) {
  .password-page__media {
    order: -1;
    max-height: 22rem;
    overflow: hidden;
  }
}

.password-gate > summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
  list-style: none;
  cursor: pointer;
}

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

.password-gate > summary .icon {
  width: 1rem;
  height: 1rem;
}

.password-gate > summary .link {
  color: var(--fg);
}

.password-gate__overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(28 27 24 / 0.42);
  animation: fade 200ms ease-out;
}

.password-gate__dialog {
  display: grid;
  gap: 0.75rem;
  width: min(28rem, 100%);
  padding: 1.75rem 2rem 2rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg);
  box-shadow: var(--shadow-overlay);
  animation: zoom 220ms var(--ease);
}

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

.password-gate__head h2 {
  margin: 0;
  font-size: var(--text-h3);
}

.password-gate__dialog .subtle {
  margin: 0 0 0.5rem;
}

@media (max-width: 749px) {
  .password-gate__overlay {
    align-items: end;
    padding: 0;
  }

  .password-gate__dialog {
    width: 100%;
    padding: 1.5rem var(--gutter) 2.25rem;
    border-radius: calc(var(--radius) + 8px) calc(var(--radius) + 8px) 0 0;
  }
}

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

  .product-card__image img,
  .collection-card__media img,
  .article-card__media img {
    scale: none !important;
  }

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

/* Quantity limits under the price (ADR-0076). */
.product__quantity-rule {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

/* ---------- Wishlist (ADR-0084) ---------- */

.wishlist-toggle {
  margin: 0;
}

.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;
  transition: color 120ms ease-out, transform 160ms var(--ease);
}

.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__button:active {
  transform: scale(0.9);
}

.wishlist-toggle__button[aria-busy='true'] {
  opacity: 0.6;
}

.wishlist-toggle--card {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  z-index: 2;
}

.wishlist-toggle--card .wishlist-toggle__button {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
}

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

.wishlist-toggle--page .wishlist-toggle__button {
  margin-block-start: 0.25rem;
  border: 1px solid var(--line);
}

.wishlist-page__note {
  margin-block-start: 2rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

/* ---------- Pre-orders and bundles (ADR-0085, ADR-0081) ---------- */

.preorder-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.875rem;
  font-size: var(--text-small);
}

.preorder-note[hidden] {
  display: none;
}

.preorder-note svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-block-start: 0.0625rem;
}

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

.bundle-items {
  margin: 0 0 1.25rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}

.bundle-items__title {
  margin: 0 0 0.75rem;
  font-size: var(--text-label);
  font-weight: 600;
}

.bundle-items__list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-small);
}

.bundle-item__image {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: calc(var(--radius) * 0.66);
  object-fit: cover;
  background: var(--bg-raised);
}

.bundle-item__quantity {
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
}

.bundle-item a {
  color: inherit;
}

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

.bundle-items__savings {
  margin: 0.875rem 0 0;
  font-size: var(--text-small);
  color: var(--sale);
}

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

.field--checkbox .checkbox {
  align-items: center;
}

/* ---------- Back-in-stock requests (ADR-0083) ---------- */

.stock-alert {
  display: grid;
  gap: 0.75rem;
  margin-block-start: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stock-alert[hidden] {
  display: none;
}

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

.stock-alert__title svg {
  width: 1.125rem;
  height: 1.125rem;
}

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

.stock-alert__row input {
  flex: 1 1 12rem;
  min-height: 3rem;
}

.stock-alert__done,
.stock-alert__error {
  display: none;
  margin: 0;
  font-size: var(--text-small);
}

.stock-alert__error {
  color: var(--sale);
}

.stock-alert.is-done .stock-alert__done,
.stock-alert.is-error .stock-alert__error,
.stock-alert__done:target,
.stock-alert__error:target {
  display: block;
}

.stock-alert.is-done .stock-alert__row {
  display: none;
}

/* ---------- Cart lines: parts, pre-orders and priced answers ---------- */

.cart-item__parts {
  margin: 0.25rem 0 0;
  padding-inline-start: 1rem;
  color: var(--fg-muted);
  font-size: var(--text-caption, 0.75rem);
}

.cart-item__preorder {
  margin: 0.25rem 0 0;
  color: var(--fg-muted);
  font-size: var(--text-caption, 0.75rem);
}

.cart-item__answer-price {
  color: var(--fg-muted);
}

/* ---------- Contact page (ADR-0102) ---------- */

.contact__intro {
  margin-block-end: 1.5rem;
}

.contact-form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}

.contact-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form__message {
  display: none;
  margin: 0;
  font-weight: 500;
}

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

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

.contact-form.is-done .contact-form__fields {
  display: none;
}

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

/* Your data (ADR-0100) */
.privacy-choices {
  display: grid;
  gap: 2rem;
  max-width: 40rem;
}

.privacy-choice h2,
.privacy-requests__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-h4);
}

.privacy-choice p {
  margin: 0 0 1rem;
}

.privacy-requests__title {
  margin-block-start: 3rem;
}

.privacy-requests {
  display: grid;
  max-width: 40rem;
  border-block-start: 1px solid var(--line);
}

.privacy-request {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--line);
}

.privacy-request > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

/* Rewards (ADR-0131) */
.rewards {
  display: grid;
  gap: 2.5rem;
  max-inline-size: 44rem;
}

.rewards h2 {
  margin-block: 0 0.75rem;
  font-size: var(--text-h3);
}

.rewards .rewards__label {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-small);
  font-weight: inherit;
}

.rewards__figure {
  margin-block: 0.25rem 0.5rem;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.rewards__tier {
  margin-block: 1rem 0;
}

.rewards__progress {
  display: grid;
  gap: 0.5rem;
  margin-block-start: 1rem;
  font-size: var(--text-small);
}

.rewards__progress progress {
  inline-size: 100%;
  block-size: 0.375rem;
  accent-color: currentColor;
}

.rewards__form,
.rewards__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.rewards__form .field,
.rewards__dates .field {
  flex: 1 1 8rem;
  margin: 0;
}

.rewards__earn ul,
.rewards__history ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rewards__earn li {
  padding-block: 0.25rem;
}

.rewards__entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
  border-block-end: 1px solid var(--line);
}

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

.rewards__entry--voided {
  opacity: 0.55;
  text-decoration: line-through;
}

.rewards__amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rewards__amount--gain {
  font-weight: 600;
}

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

.orders__again .button {
  white-space: nowrap;
}

/* The order's own page has Buy again too; a phone has no room for it in the table. */
@media (max-width: 40rem) {
  .orders__again {
    display: none;
  }
}

/* A long email can't push the page wider than a phone. */
.account__orders,
.account__details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.price-breaks {
  width: 100%;
  margin-block: 0.75rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.price-breaks caption {
  padding-block-end: 0.375rem;
  font-weight: 600;
  text-align: start;
}
.price-breaks th,
.price-breaks td {
  padding-block: 0.375rem;
  border-block-start: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  font-weight: 400;
  text-align: start;
}
.price-breaks td:last-child {
  text-align: end;
}

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