/* Libas — a fashion theme: white and ink, square corners, a high-contrast display face for
   headings and a geometric sans for everything else, with small tracked capitals for labels.
   Six colour settings feed three colour schemes (default, stone, ink) that sections choose;
   every component reads the scheme's tokens. Logical properties throughout so right-to-left
   languages mirror the layout; Arabic gets its own faces, line heights and no tracking.
   Settings arrive as custom properties (snippets/theme-variables.html). */

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

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

:root {
  --gutter: clamp(1.25rem, 3.4vw, 3rem);
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --header-height: 4.75rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --text-display: clamp(2.75rem, 1.6rem + 4.1vw, 4.75rem);
  --text-h1: clamp(2.25rem, 1.7rem + 2vw, 3.25rem);
  --text-h2: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  --text-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --text-lead: 1.0625rem;
  --text-body: 0.9375rem;
  --text-small: 0.8125rem;
  --text-label: 0.75rem;
  --tracking-caps: 0.12em;
  --shadow-popover: 0 1px 2px rgb(21 21 21 / 0.05), 0 16px 40px -8px rgb(21 21 21 / 0.14);
  --shadow-overlay: 0 24px 64px -8px rgb(21 21 21 / 0.2);
  --riyal-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 113 126'%3E%3Cpath d='M69.95 111.27c-2 4.44-3.33 9.27-3.84 14.33l42.45-9.02c2-4.45 3.33-9.27 3.84-14.33l-42.45 9.02Z'/%3E%3Cpath d='M108.56 89.55c2-4.44 3.33-9.27 3.84-14.33l-33.06 7.03V68.73l29.22-6.21c2-4.44 3.33-9.27 3.84-14.33l-33.06 7.03V6.61a31.6 31.6 0 0 0-13.22 11.1v40.32l-13.23 2.81V0a31.6 31.6 0 0 0-13.22 11.1v52.55l-29.59 6.29c-2 4.44-3.33 9.27-3.84 14.33l33.43-7.1v17.02L3.84 101.8C1.83 106.24.51 111.07 0 116.13l37.5-7.97a11.63 11.63 0 0 0 7.38-4.92l6.88-10.19a8.98 8.98 0 0 0 1.13-3.7V74.35l13.22-2.81v27.03l42.45-9.03Z'/%3E%3C/svg%3E");
}

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

/* 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) 62%, var(--color-background));
  --line: color-mix(in oklab, var(--color-text) 11%, var(--color-background));
  --line-strong: color-mix(in oklab, var(--color-text) 40%, var(--color-background));
  --field: var(--color-background);
  --button: var(--color-accent);
  --button-fg: var(--color-accent-text);
  --sale: var(--color-sale);
}

.scheme-stone {
  --bg: var(--color-surface);
  --bg-raised: var(--color-background);
  --fg: var(--color-text);
  --fg-muted: color-mix(in oklab, var(--color-text) 64%, var(--color-surface));
  --line: color-mix(in oklab, var(--color-text) 13%, var(--color-surface));
  --line-strong: color-mix(in oklab, var(--color-text) 42%, var(--color-surface));
  --field: var(--color-surface);
  --button: var(--color-accent);
  --button-fg: var(--color-accent-text);
  --sale: var(--color-sale);
}

.scheme-ink,
.scheme-inverse {
  --bg: var(--color-text);
  --bg-raised: color-mix(in oklab, var(--color-background) 8%, var(--color-text));
  --fg: var(--color-background);
  --fg-muted: color-mix(in oklab, var(--color-background) 68%, var(--color-text));
  --line: color-mix(in oklab, var(--color-background) 18%, var(--color-text));
  --line-strong: color-mix(in oklab, var(--color-background) 46%, var(--color-text));
  --field: var(--color-text);
  --button: var(--color-background);
  --button-fg: var(--color-text);
  --sale: color-mix(in oklab, var(--color-sale) 40%, #fff);
}

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

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

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

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

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

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

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

/* Arabic: its own faces on taller lines; tracking and capitals mean nothing to it. */
:lang(ar) body,
body:lang(ar) {
  line-height: 1.75;
}

:lang(ar) h1,
:lang(ar) h2,
:lang(ar) .display {
  line-height: 1.45;
  letter-spacing: 0;
}

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

/* Arabic letters run smaller than Latin capitals at the same size. */
:lang(ar) {
  --text-small: 0.875rem;
  --text-label: 0.8125rem;
}

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

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 1.5px solid var(--fg);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in oklab, var(--color-text) 16%, 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.375rem;
  height: 1.375rem;
  flex: none;
}

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

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

/* Small tracked capitals: section labels, filters, buttons. */
.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  line-height: 1.4;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

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

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

main:focus {
  outline: none;
}

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

.placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--line) 49.6%, var(--line) 50.4%, transparent 50.4%),
    var(--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);
}

/* Two default sections in a row share the space between them. */
.section.scheme-default + .section.scheme-default > .section-spacing,
.shop-section:has(> .section.scheme-default) + .shop-section > .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, 2.6vw, 2.25rem);
}

.section-heading h2 {
  margin: 0;
}

.section-heading .link--caps {
  margin-block-end: 0.35rem;
}

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

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

  .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: 70%;
    grid-template-columns: none;
    gap: 0.625rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

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

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

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

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

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

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

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

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

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

.empty-state--large p {
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: 1.25;
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.875rem 2rem;
  border: 1px solid var(--button);
  border-radius: var(--radius);
  background: var(--button);
  color: var(--button-fg);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out, opacity 140ms ease-out;
}

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

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

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

/* On photos: white, and white outlined. */
.button--light {
  border-color: #fff;
  background: #fff;
  color: #151515;
}

.button--light:hover {
  background: color-mix(in oklab, #fff 86%, #151515);
}

.button--outline-light {
  border-color: rgb(255 255 255 / 0.85);
  background: transparent;
  color: #fff;
}

.button--outline-light:hover {
  background: #fff;
  color: #151515;
}

.button--large {
  min-height: 3.5rem;
  font-size: 0.875rem;
}

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

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

.button--grow {
  flex: 1;
}

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

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

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

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

.icon-button:hover {
  opacity: 0.6;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--text-small);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 140ms ease-out;
}

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

.link--caps {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

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

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

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

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

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

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

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

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

.field > label,
.field-label,
.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.875rem;
}

@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 {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  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 140ms ease-out;
}

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

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

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

.input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: -2px;
  border-color: var(--fg);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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-inline-start: 2px solid var(--fg);
  background: var(--bg-raised);
  font-size: var(--text-small);
}

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

.notice p {
  margin: 0;
}

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

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

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

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

/* 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.625rem 1rem;
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

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

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

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

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

.quantity__button:hover {
  opacity: 0.55;
}

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

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

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

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

/* Words on a photo's corner: white with ink, the sale in its colour. */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.25rem 0.5rem;
  background: #fff;
  color: #151515;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  line-height: 1.2;
  text-transform: uppercase;
}

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

.badge--sold-out {
  background: #151515;
  color: #fff;
}

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

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line-strong);
  font-size: var(--text-small);
  text-decoration: none;
  transition: border-color 140ms ease-out;
}

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

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

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

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

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

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

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

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

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

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

.breadcrumbs a {
  text-decoration: none;
}

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

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

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

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

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

.pagination__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-decoration: none;
  text-transform: uppercase;
}

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

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

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

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

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

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

.accordion > summary::-webkit-details-marker,
.disclosure > summary::-webkit-details-marker,
.gift-note > summary::-webkit-details-marker,
.filter > summary::-webkit-details-marker,
.sort > summary::-webkit-details-marker,
.hotspot > summary::-webkit-details-marker {
  display: none;
}

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

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

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

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

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

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

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

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

.table th,
.table td {
  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-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

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

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

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

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

.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-variant-numeric: tabular-nums;
}

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

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

.price__compare {
  color: var(--fg-muted);
  text-decoration-thickness: 1px;
}

.price--large {
  font-size: 1.125rem;
}

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

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  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: 5rem;
  height: 0.9375rem;
  background: linear-gradient(to right, var(--fg) calc(var(--rating, 0) / 5 * 100%), var(--line-strong) 0);
  -webkit-mask: var(--star) 0 0 / 1rem 0.9375rem repeat-x;
  mask: var(--star) 0 0 / 1rem 0.9375rem 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__count {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

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

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

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

.card-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-block-start: 0.375rem;
}

.card-swatches li {
  display: flex;
}

.card-swatches__more {
  color: var(--fg-muted);
  font-size: 0.6875rem;
  line-height: 1;
}

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

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

.product-card__media {
  position: relative;
  overflow: hidden;
  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 500ms ease;
}

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

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

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

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

/* Quick add: a white panel at the photo's foot. With sizes, every size is a button. */
.quick-add {
  position: absolute;
  inset-inline: 0.75rem;
  inset-block-end: 0.75rem;
  z-index: 2;
}

.quick-add--sizes {
  display: grid;
  gap: 0.375rem;
  padding: 0.75rem 0.875rem 0.5rem;
  background: #fff;
  color: #151515;
}

.quick-add__prompt {
  margin: 0;
  color: #6e6e6e;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.quick-add__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin-inline: -0.5rem;
}

.quick-add__size {
  position: relative;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.5rem;
  border: 0;
  background: none;
  color: inherit;
  font-size: var(--text-small);
  font-weight: 500;
}

.quick-add__size::before {
  content: '';
  position: absolute;
  inset-inline: 0.5rem;
  inset-block-end: 0.375rem;
  height: 1px;
  background: currentColor;
  scale: 0 1;
  transition: scale 160ms var(--ease);
}

.quick-add__size:hover::before {
  scale: 1 1;
}

.quick-add__size:disabled {
  color: #9a9a9a;
  font-weight: 400;
  cursor: not-allowed;
}

.quick-add__size:disabled::before {
  display: none;
}

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

.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;
  background: #fff;
  color: #151515;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-decoration: none;
  text-transform: uppercase;
}

.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: #151515;
  border-inline-end-color: transparent;
}

/* With a mouse, quick add shows on hover or keyboard focus; touch goes to the product. */
@media (hover: hover) {
  .quick-add {
    opacity: 0;
    translate: 0 6px;
    transition: opacity 180ms ease-out, translate 220ms var(--ease);
  }

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

@media (hover: none) {
  .quick-add {
    display: none;
  }
}

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

.product-card__vendor {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.product-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  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: 0.875rem;
}

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

/* Categories stack on phones: each photo deserves the width. */
@media (max-width: 749px) {
  .grid--collections {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }
}

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

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

.collection-ratio--portrait .collection-card__media {
  aspect-ratio: 4 / 5;
}

.collection-ratio--square .collection-card__media {
  aspect-ratio: 1;
}

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

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

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

.collection-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.collection-card__shop {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-transform: uppercase;
}

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

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

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 900ms 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-label);
}

.article-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.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: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-align: center;
  text-transform: uppercase;
}

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

.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.5rem;
  padding-block: 0.5rem;
  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);
  transition: background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;
}

/* Over the home page's photo: clear and white until the page scrolls, the pointer comes over
   it, or a menu opens. */
.site-header:has(.header--overlay) {
  margin-block-end: calc(-1 * var(--header-height));
}

.header--overlay:not(.is-scrolled, :hover, :focus-within, :has([open])) {
  border-color: rgb(255 255 255 / 0.22);
  background: transparent;
  color: #fff;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
}

.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: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.header__cart {
  display: inline-flex;
  gap: 0.25rem;
  width: auto;
  min-width: 2.75rem;
  padding-inline: 0.5rem;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
}

.header--overlay:not(.is-scrolled, :hover, :focus-within, :has([open])) .cart-count {
  background: #fff;
  color: #151515;
}

@media (min-width: 990px) {
  .header__inner {
    gap: 2rem;
  }

  .header__drawer,
  .header__search-mobile {
    display: none;
  }

  .header__nav {
    display: flex;
  }

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

  .header__nav > ul > li > a,
  .header__dropdown > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    font-size: var(--text-small);
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
  }

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

  /* Menus open on hover; the chevron would only repeat that. */
  .header__dropdown > summary .icon {
    display: none;
  }

  .header__nav > ul > li > a::after,
  .header__dropdown > summary::after {
    content: '';
    position: absolute;
    inset: auto 0 calc(50% - 0.875rem);
    height: 1px;
    background: currentColor;
    scale: 0 1;
    transform-origin: inline-start;
    transition: scale 220ms 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: calc(50% - 1rem) -0.5rem;
    border: 1.5px solid currentColor;
  }

  .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: 0.8125rem;
    text-decoration: none;
  }

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

.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);
  list-style: none;
  cursor: pointer;
}

.header__language-list {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  min-width: 10rem;
  padding: 0.5rem 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-popover);
}

.header__language-list a {
  display: block;
  padding: 0.625rem 1rem;
  text-decoration: none;
}

.header__language-list a:hover,
.header__language-list [aria-current] {
  text-decoration: underline;
}

/* The mega menu: link groups from the menu as columns, up to two photographs at the end. */
.mega-menu {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  border-block-end: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  animation: drop 180ms 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.875rem 4rem;
}

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

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

.mega-menu__link {
  font-size: 0.9375rem;
  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-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.mega-menu__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-transform: uppercase;
}

.mega-menu__all .icon {
  display: none;
}

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

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

.mega-feature img,
.mega-feature .placeholder {
  aspect-ratio: 3 / 4;
  margin-block-end: 0.625rem;
  object-fit: cover;
}

.mega-feature__title {
  font-size: 0.875rem;
  font-weight: 500;
}

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

/* The menu drawer on phones and tablets: departments in the display face, line by line. */
.menu-drawer {
  position: fixed;
  inset: calc(var(--drawer-top, 3.5rem)) 0 0;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: 1.75rem;
  padding: 0.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  background: var(--bg);
  color: var(--fg);
  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.25rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.2;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}

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

.menu-drawer__group > summary .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: rotate 220ms var(--ease);
}

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

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

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

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

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

/* The page you're on: underlined, like the bar's links. */
.menu-drawer__link[aria-current='page'],
.menu-drawer__group > summary.is-current > :not(.icon) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.menu-drawer__group > summary.is-current {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.drawer-feature {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.drawer-feature img,
.drawer-feature .placeholder {
  aspect-ratio: 3 / 4;
  min-height: 0;
  object-fit: cover;
}

.drawer-feature__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.drawer-feature__text {
  display: block;
  margin-block: 0.25rem 0.625rem;
  color: var(--fg-muted);
  font-size: var(--text-small);
}

.drawer-feature__shop {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-transform: uppercase;
}

.menu-drawer__utilities {
  display: grid;
}

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

.menu-drawer__languages {
  display: flex;
  gap: 1.5rem;
}

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

.menu-drawer__languages [aria-current] {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

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

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

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

/* An underlined line: the icon, what's typed (large, in the display face), and Clear. */
.search-field,
.search-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.5rem;
  border-block-end: 1px solid var(--fg);
}

.search-field > .icon,
.search-line > .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.search-field input,
.search-line input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  line-height: 1.2;
  outline: none;
}

.search-field input::placeholder,
.search-line input::placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}

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

.search-field:has(input:focus-visible),
.search-line:has(input:focus-visible) {
  border-block-end-width: 2px;
  margin-block-end: -1px;
}

.search-field__clear {
  flex: none;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-muted);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-transform: uppercase;
}

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

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

.search-line__submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
}

.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(21 21 21 / 0.45);
  animation: fade 200ms ease-out;
}

.search-modal__panel {
  max-height: 100%;
  overflow-y: auto;
  background: var(--bg);
  color: var(--fg);
  animation: drop 180ms var(--ease);
}

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

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

.search-modal__logo {
  display: none;
}

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

  .search-modal__logo {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

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

.predictive:empty {
  display: none;
}

.predictive {
  display: grid;
  gap: 2rem;
  padding-block: 1.5rem 2.5rem;
}

.predictive__group-title {
  margin: 0 0 1rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

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

.predictive__suggestions a,
.predictive__recent a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 2.625rem;
  font-size: 1.0625rem;
  font-weight: 500;
  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: 3 / 4;
  width: 100%;
  min-height: 0;
  margin-block-end: 0.375rem;
  object-fit: cover;
  background: var(--bg-raised);
}

.predictive__links a {
  display: block;
  padding-block: 0.5rem;
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

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

.predictive__footer .icon {
  display: none;
}

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

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

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

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

  .predictive__keys {
    display: none;
  }
}

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

/* The campaign photo, with the words at its foot over a soft shade. */
.hero {
  position: relative;
  display: grid;
  min-height: clamp(32rem, 72vh, 46rem);
  overflow: hidden;
  background: var(--bg-raised);
  color: var(--fg);
}

.hero--image {
  background: #2a2723;
  color: #fff;
}

.hero--large {
  min-height: clamp(36rem, 92vh, 56rem);
}

.hero--full {
  min-height: 100svh;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media picture,
.hero__image {
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / var(--hero-shade, 0.35)), rgb(0 0 0 / calc(var(--hero-shade, 0.35) * 0.3)) 55%, rgb(0 0 0 / calc(var(--hero-shade, 0.35) * 0.45)));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-height) + 2rem) clamp(3rem, 6vw, 5rem);
}

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

.hero__text {
  max-width: 42rem;
}

.hero__heading {
  margin: 0 0 1.25rem;
  font-size: var(--text-display);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero__lede {
  max-width: 30rem;
  margin: 0;
  font-size: var(--text-lead);
  line-height: 1.6;
}

.hero--center .hero__lede {
  margin-inline: auto;
}

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

.hero--center .hero__buttons {
  justify-content: center;
}

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

  .hero__buttons .button {
    flex: 1;
    padding-inline: 1rem;
  }
}

/* An editorial: the large photo, and beside it the words with a smaller photo under them. */
.editorial {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.editorial__media img,
.editorial__media .placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.editorial__text {
  max-width: 30rem;
  margin-block-end: 1.75rem;
  color: var(--fg-muted);
  font-size: var(--text-lead);
}

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

.editorial__second {
  width: min(15rem, 46%);
  margin-block-start: 2.5rem;
}

.editorial__second img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (min-width: 990px) {
  .editorial {
    grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
    gap: clamp(4rem, 9vw, 8rem);
  }

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

/* A statement: one line in the display face. */
.statement__inner {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  max-width: calc(60rem + 2 * var(--gutter));
  text-align: center;
}

.statement__heading {
  margin: 0;
  font-size: var(--text-h1);
  line-height: 1.12;
}

.statement--italic .statement__heading {
  font-style: italic;
}

.statement__text {
  max-width: 36rem;
  color: var(--fg-muted);
  font-size: var(--text-lead);
}

.statement .eyebrow {
  margin: 0;
}

/* Promises in a row between two rules. */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 2rem;
  padding-block: 2rem;
  border-block: 1px solid var(--line);
}

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

.promises__item .icon,
.promises__image {
  width: 1.375rem;
  height: 1.375rem;
}

.promises__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
}

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

/* The lookbook: looks alternate sides; dots on a photo name the pieces. */
.lookbook {
  display: grid;
  gap: clamp(3.5rem, 8vw, 7rem);
}

.lookbook__intro {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.lookbook__title {
  margin-block-end: 1rem;
  font-size: var(--text-display);
  line-height: 1.04;
}

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

.look {
  display: grid;
  gap: 2rem;
  align-items: center;
}

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

  .look--flipped {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  }

  .look--flipped .look__media {
    order: 2;
  }
}

.look__media {
  position: relative;
}

.look__media > img,
.look__media > .placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Photos don't mirror in Arabic, so the dots sit by physical position. */
.hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 1;
  translate: -50% -50%;
}

.hotspot__dot {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.375rem rgb(255 255 255 / 0.35);
  list-style: none;
  cursor: pointer;
  transition: box-shadow 220ms var(--ease);
}

.hotspot__dot::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #151515;
}

.hotspot__dot:hover,
.hotspot[open] .hotspot__dot {
  box-shadow: 0 0 0 0.5rem rgb(255 255 255 / 0.45);
}

.hotspot__card {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.625rem);
  display: none;
  gap: 0.125rem;
  padding: 0.625rem 0.875rem;
  background: #fff;
  color: #151515;
  font-size: var(--text-label);
  text-decoration: none;
  white-space: nowrap;
  translate: 0 -50%;
}

.hotspot--flip .hotspot__card {
  right: calc(100% + 0.625rem);
  left: auto;
}

.hotspot[open] .hotspot__card {
  display: grid;
}

@media (hover: hover) {
  .hotspot:hover .hotspot__card {
    display: grid;
  }
}

.look__panel {
  display: grid;
  align-content: center;
  gap: 1.25rem;
}

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

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

.look-piece:first-child {
  padding-block-start: 0;
}

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

.look-piece__info {
  display: grid;
  gap: 0.25rem;
}

.look-piece__title {
  font-size: var(--text-small);
  text-decoration: none;
}

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

.add-piece--sold-out {
  color: var(--fg-muted);
  font-size: var(--text-label);
}

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

.look-pair__media img,
.look-pair__media .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

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

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

/* The signup: an underlined field with an arrow. */
.signup {
  display: grid;
  gap: 0.875rem;
}

.signup__row {
  display: flex;
  align-items: center;
  border-block-end: 1px solid var(--fg);
}

.signup__row:focus-within {
  box-shadow: 0 1px 0 var(--fg);
}

.signup__row .input {
  flex: 1;
  min-width: 0;
  padding-inline: 0;
  border: 0;
  background: transparent;
}

.signup__row .input:focus-visible {
  outline: none;
}

.signup__submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline-end: -0.75rem;
  padding: 0;
  border: 0;
  background: none;
}

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

.signup__submit[aria-busy='true'] .icon {
  opacity: 0.3;
}

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

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

.footer a {
  text-decoration: none;
}

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

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

.footer__title {
  margin-block-end: 0.875rem;
  font-size: var(--text-h3);
}

.footer__lead {
  max-width: 26rem;
  margin-block-end: 1.75rem;
  color: var(--fg-muted);
  font-size: var(--text-body);
}

.footer__signup .signup {
  max-width: 26rem;
}

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

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

@media (max-width: 749px) {
  .footer__block--text,
  .footer__block--contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 750px) {
  .footer__blocks {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(8rem, max-content);
    gap: 4rem;
  }
}

@media (min-width: 990px) {
  .footer__top--signup {
    grid-template-columns: minmax(0, 26rem) auto;
    justify-content: space-between;
    gap: 4rem;
  }
}

.footer__heading {
  margin-block-end: 1.25rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

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

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

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

.footer__brand:empty {
  display: none;
}

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

.footer .select--pill {
  padding-inline-start: 0;
  border: 0;
}

.footer__languages {
  display: flex;
  gap: 1rem;
}

.footer__languages a {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block-start: 1.75rem;
  color: var(--fg-muted);
  font-size: var(--text-label);
}

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

.footer__copyright > span + span::before {
  content: '·';
  margin-inline-end: 0.75rem;
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-block-start: 0.5rem;
}

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

.payment-marks li {
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  font-size: 0.6875rem;
  line-height: 1.5;
  white-space: nowrap;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -0.625rem;
}

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

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

.sheet {
  width: min(27.5rem, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-overlay);
}

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

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

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

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

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

.sheet::backdrop {
  background: rgb(21 21 21 / 0.45);
  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: 4rem;
  padding-inline: 1.875rem 1.125rem;
  border-block-end: 1px solid var(--line);
}

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

.sheet__header h2 {
  margin: 0;
  font-size: 1.75rem;
}

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

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

/* How far to free delivery: a band under the title with a thin bar. */
.delivery-progress {
  display: grid;
  gap: 0.75rem;
  font-size: var(--text-small);
}

.cart-drawer .delivery-progress {
  padding: 1.125rem 1.875rem 1.25rem;
  background: var(--bg-raised);
}

.delivery-progress p {
  margin: 0;
}

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

.delivery-progress__bar {
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

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

.cart-items {
  display: grid;
}

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

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

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

.cart-item__media {
  background: var(--bg-raised);
}

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

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

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

.cart-item__title {
  font-size: 0.875rem;
  text-decoration: none;
}

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

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

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

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

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

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

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

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

.gift-note[open] .gift-note__box {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

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

.gift-note__label {
  flex: 1;
}

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

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

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

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

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

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

.cart-drawer__empty-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.2;
}

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

/* Complete the look, in the bag: two photos side by side. */
.upsell {
  display: grid;
  gap: 1rem;
  width: 100%;
  text-align: start;
}

.upsell__title {
  margin: 0.5rem 0 0;
  color: var(--fg-muted);
}

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

.upsell__item {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.25rem;
  font-size: var(--text-small);
}

.upsell__media {
  width: 100%;
  margin-block-end: 0.5rem;
  background: var(--bg-raised);
}

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

.upsell__name {
  text-decoration: none;
}

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

.upsell .add-piece {
  margin-block-start: 0.375rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.quick-view .breadcrumbs,
.quick-view .sticky-buy,
.quick-view .promise,
.quick-view .accordion,
.quick-view .product__whatsapp,
.quick-view .product__app,
.quick-view .size-guide {
  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 {
    scroll-snap-align: start;
  }

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

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

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

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

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

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

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

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

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

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

.rte h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 400;
}

.rte blockquote {
  margin: 2.5rem 0;
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-style: italic;
  line-height: 1.3;
}

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

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

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

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

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

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

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

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

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

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

.article__image img {
  width: 100%;
}

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

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

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

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

.not-found .eyebrow {
  margin: 0;
  color: var(--fg-muted);
}

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

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

.not-found .search-line {
  width: min(100%, 32rem);
  margin-block: 0.75rem 1rem;
}

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

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

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

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

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

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

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