/* Sufra — a theme for stores that feed people: the store reads like a menu laid on a table.
   Warm cream, date brown and terracotta; a soft serif for headings (Fraunces, El Messiri in
   Arabic) and a rounded sans for everything else (Rubik). Colour settings feed three schemes
   (default, surface, night) that sections choose; every component reads the scheme's tokens.
   Logical properties throughout so right-to-left languages mirror the layout. Settings arrive as
   custom properties (snippets/theme-variables.html). */

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

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

:root {
  --gutter: clamp(1.25rem, 4.6vw, 5rem);
  --space-section: clamp(2.75rem, 7vw, 5.5rem);
  --header-height: 7.25rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --text-display: clamp(2.75rem, 1.6rem + 4vw, 4.75rem);
  --text-h1: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --text-h2: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  --text-h3: clamp(1.25rem, 1.15rem + 0.3vw, 1.375rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-label: 0.875rem;
  --text-caption: 0.75rem;
  --radius-control: 999px;
  --radius-field: 0.875rem;
  --radius-media: var(--radius);
  --shadow-card: 0 1px 2px rgb(42 27 19 / 0.05), 0 10px 28px -10px rgb(42 27 19 / 0.14);
  --shadow-popover: 0 2px 6px rgb(42 27 19 / 0.06), 0 22px 56px -14px rgb(42 27 19 / 0.24);
  --shadow-overlay: 0 28px 64px -10px rgb(42 27 19 / 0.32);
  --riyal-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 113 126'%3E%3Cpath d='M69.95 111.27c-2 4.44-3.33 9.27-3.84 14.33l42.45-9.02c2-4.45 3.33-9.27 3.84-14.33l-42.45 9.02Z'/%3E%3Cpath d='M108.56 89.55c2-4.44 3.33-9.27 3.84-14.33l-33.06 7.03V68.73l29.22-6.21c2-4.44 3.33-9.27 3.84-14.33l-33.06 7.03V6.61a31.6 31.6 0 0 0-13.22 11.1v40.32l-13.23 2.81V0a31.6 31.6 0 0 0-13.22 11.1v52.55l-29.59 6.29c-2 4.44-3.33 9.27-3.84 14.33l33.43-7.1v17.02L3.84 101.8C1.83 106.24.51 111.07 0 116.13l37.5-7.97a11.63 11.63 0 0 0 7.38-4.92l6.88-10.19a8.98 8.98 0 0 0 1.13-3.7V74.35l13.22-2.81v27.03l42.45-9.03Z'/%3E%3C/svg%3E");
}

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

/* A section's colours. `body` is the default scheme. */
body,
.scheme-default {
  --bg: var(--color-background);
  --bg-raised: color-mix(in oklab, #fff 70%, var(--color-background));
  --media: var(--color-surface);
  --fg: var(--color-text);
  --fg-muted: color-mix(in oklab, var(--color-text) 70%, var(--color-background));
  --fg-subtle: color-mix(in oklab, var(--color-text) 48%, var(--color-background));
  --line: color-mix(in oklab, var(--color-text) 11%, var(--color-background));
  --line-strong: color-mix(in oklab, var(--color-text) 24%, var(--color-background));
  --field: color-mix(in oklab, #fff 70%, var(--color-background));
  --button: var(--color-accent);
  --button-fg: var(--color-accent-text);
  --accent: var(--color-accent);
  --accent-soft: color-mix(in oklab, var(--color-accent) 13%, var(--color-background));
  --fresh: var(--color-fresh);
  --fresh-soft: color-mix(in oklab, var(--color-fresh) 14%, var(--color-background));
  --gold: #d99a2b;
  --sale: var(--color-sale);
  --success: var(--color-fresh);
}

.scheme-surface {
  --bg: var(--color-surface);
  --bg-raised: var(--color-background);
  --media: color-mix(in oklab, var(--color-text) 6%, var(--color-surface));
  --fg-muted: color-mix(in oklab, var(--color-text) 72%, var(--color-surface));
  --line: color-mix(in oklab, var(--color-text) 13%, var(--color-surface));
  --line-strong: color-mix(in oklab, var(--color-text) 26%, var(--color-surface));
  --field: var(--color-background);
  --accent-soft: color-mix(in oklab, var(--color-accent) 14%, var(--color-surface));
  --fresh-soft: color-mix(in oklab, var(--color-fresh) 15%, var(--color-surface));
}

.scheme-night {
  --bg: var(--color-night);
  --bg-raised: color-mix(in oklab, #fff 7%, var(--color-night));
  --media: color-mix(in oklab, #fff 9%, var(--color-night));
  --fg: #fbf3e6;
  --fg-muted: color-mix(in oklab, #fbf3e6 72%, var(--color-night));
  --fg-subtle: color-mix(in oklab, #fbf3e6 50%, var(--color-night));
  --line: color-mix(in oklab, #fbf3e6 13%, var(--color-night));
  --line-strong: color-mix(in oklab, #fbf3e6 28%, var(--color-night));
  --field: color-mix(in oklab, #fff 7%, var(--color-night));
  --button: var(--color-highlight);
  --button-fg: var(--color-night);
  --accent: var(--color-highlight);
  --accent-soft: color-mix(in oklab, var(--color-highlight) 18%, var(--color-night));
  --fresh: color-mix(in oklab, var(--color-fresh) 45%, #fff);
  --fresh-soft: color-mix(in oklab, var(--color-fresh) 30%, var(--color-night));
  --sale: color-mix(in oklab, var(--color-sale) 60%, #fff);
  --success: color-mix(in oklab, var(--color-fresh) 45%, #fff);
}

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

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

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

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

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

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

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

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

/* Arabic: El Messiri for headings and Rubik for text, both on taller lines. */
:lang(ar) body,
body:lang(ar) {
  line-height: 1.75;
}

:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3,
:lang(ar) h4 {
  line-height: 1.45;
  font-weight: 600;
}

:lang(ar) .display {
  line-height: 1.25;
}

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

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

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

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

::selection {
  background: color-mix(in oklab, var(--color-accent) 22%, transparent);
}

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

dl,
dd {
  margin: 0;
}

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

legend {
  padding: 0;
}

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

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

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

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

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

/* A short line over a heading, in the heading face's italic and the accent (upright in Arabic). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: var(--text-lead);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

:lang(ar) .eyebrow {
  font-style: normal;
  font-weight: 500;
}

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

.display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 600;
  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;
  border-radius: var(--radius-control);
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
}

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

main:focus {
  outline: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* A soft button on the sand: on photos and for second choices. */
.button--quiet {
  border-color: transparent;
  background: var(--color-surface);
  color: var(--color-text);
}

.button--quiet:hover {
  border-color: transparent;
  background: color-mix(in oklab, var(--color-text) 8%, var(--color-surface));
}

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

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

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

.button--grow {
  flex: 1;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* The round add button: raised on photos, outlined in menu rows. */
.add-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: 0 4px 14px -4px rgb(42 27 19 / 0.28);
  color: var(--fg);
  transition: background-color 140ms ease-out, color 140ms ease-out, scale 140ms var(--ease);
}

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

.add-button:active {
  scale: 0.94;
}

.add-button .icon {
  width: 1.25rem;
  height: 1.25rem;
}

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

.add-button--outline {
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
}

.add-button--outline:hover {
  border-color: var(--fg);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.customer-inputs {
  display: grid;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.notice p {
  margin: 0;
}

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

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

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

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

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

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

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

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

.quantity__button:hover {
  opacity: 0.55;
}

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

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

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

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

/* Words on a photo's corner or over a name: a pill in the scheme's tones. */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--fg);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

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

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

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

.product-card__media .badge--accent,
.product-card__media .badge--fresh {
  background: color-mix(in oklab, #fff 82%, var(--accent-soft));
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.breadcrumbs a {
  text-decoration: none;
}

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.money {
  white-space: nowrap;
}

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

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

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

.price__current {
  font-size: 1rem;
  font-weight: 600;
}

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

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

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

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

.price--large .price__current {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

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

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

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

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

.rating__value {
  font-weight: 500;
}

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

/* ---------- Dishes, menu rows, categories and journal cards ---------- */

/* A dish: the photo on soft corners with its badge and the round add button, then the name, one
   line of what it is, serving size, calories and diet, and the price. The whole name is the
   link; the add button sits above it. */
.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0.875rem;
}

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

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

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

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

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

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

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

.product-card__add {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 2;
}

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

.product-card__title {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.product-card__line {
  margin: 0;
  overflow: hidden;
  color: var(--fg-muted);
  font-size: var(--text-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .price {
  margin-block-start: 0.375rem;
}

.product-card .rating {
  position: relative;
  z-index: 2;
}

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

/* Serving size, calories and diet: one quiet line, the diets in green with a leaf. */
.food-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.food-facts > span + span:not(.food-facts__diet)::before {
  content: '·';
  margin-inline-end: 0.75rem;
  color: var(--fg-subtle);
}

.food-facts__diet {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--fresh);
}

.food-facts__diet .icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* A dish as a line of a menu: photo, name, a dotted leader to the price, the line and facts under
   it, the add button at the end. */
.menu-row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
}

.menu-row__media {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.8);
  background: var(--media);
  aspect-ratio: 1;
}

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

.menu-row__body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.menu-row__top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.menu-row__name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row__name a {
  text-decoration: none;
}

.menu-row__name a:hover {
  text-decoration: underline;
}

.menu-row__leader {
  flex: 1;
  min-width: 1.5rem;
  border-block-end: 2px dotted var(--line-strong);
  translate: 0 -0.3em;
}

.menu-row .price {
  flex: none;
}

.menu-row__line {
  margin: 0;
  overflow: hidden;
  color: var(--fg-muted);
  font-size: var(--text-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row__sold-out {
  color: var(--fg-muted);
  font-size: var(--text-caption);
}

.menu-row--sold-out .menu-row__media img {
  opacity: 0.55;
}

.menu-list {
  display: grid;
  gap: 0 clamp(2rem, 6vw, 5rem);
}

.menu-list > li {
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--line);
}

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

  .menu-list > li:nth-last-child(-n + 2):nth-child(odd),
  .menu-list > li:last-child {
    border-block-end: 0;
  }
}

@media (max-width: 989px) {
  .menu-list > li:last-child {
    border-block-end: 0;
  }
}

@media (max-width: 749px) {
  .menu-row {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    gap: 0.875rem;
  }

  .menu-row__name {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .menu-row__top {
    align-items: flex-end;
  }

  .menu-row .price__from,
  .menu-row .price__compare {
    display: none;
  }

  .menu-row .add-button {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* The menu view of a collection: the same cards laid out as menu rows. */
.grid--products.is-menu {
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 990px) {
  .grid--products.is-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 6vw, 5rem);
  }
}

.is-menu .product-card {
  grid-template-columns: 6rem minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    'photo name price add'
    'photo line line add'
    'photo facts facts add';
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.125rem;
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--line);
}

.is-menu .product-card__media,
.is-menu .product-card__info {
  display: contents;
}

.is-menu .product-card__image {
  grid-area: photo;
  overflow: hidden;
  margin-inline-end: 0.5rem;
  border-radius: calc(var(--radius) * 0.8);
  background: var(--media);
  aspect-ratio: 1;
}

.is-menu .product-card__media .badge {
  display: none;
}

.is-menu .product-card__title {
  display: flex;
  grid-area: name;
  align-items: baseline;
  gap: 0.5rem;
}

.is-menu .product-card__title::after {
  content: '';
  flex: 1;
  min-width: 1.5rem;
  border-block-end: 2px dotted var(--line-strong);
  translate: 0 -0.3em;
}

.is-menu .product-card__line {
  grid-area: line;
}

.is-menu .food-facts {
  grid-area: facts;
}

.is-menu .price {
  grid-area: price;
  margin: 0;
}

.is-menu .product-card__add {
  position: static;
  grid-area: add;
  margin-inline-start: 0.75rem;
}

.is-menu .add-button {
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
}

.is-menu .rating {
  display: none;
}

@media (max-width: 749px) {
  .is-menu .product-card {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto auto;
  }
}

/* A category as a round photo with its name under it. */
.collection-card {
  display: grid;
  justify-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.circle-media {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: var(--media);
  aspect-ratio: 1;
}

.collection-card__media {
  width: 100%;
  max-width: 10.5rem;
}

.circle-media img,
.circle-media .placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: scale 600ms var(--ease);
}

.collection-card:hover .circle-media img {
  scale: 1.05;
}

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

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

/* A journal story: the photo, its tag in the italic, the title, a line. */
.article-card {
  display: grid;
  align-content: start;
  gap: 0.875rem;
}

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

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

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

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

.article-card__tag {
  margin: 0;
  font-size: var(--text-body);
}

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

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

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

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

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

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

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

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

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

.pill-link[aria-current] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

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

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

/* The night strip: open or closed on the start side, the cut-off in the middle, the language on
   the end. On phones only the open status. */
.announcement-bar__inner {
  font-size: var(--text-small);
}

.announcement-bar__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 2.5rem;
}

.announcement-bar__messages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.announcement-bar a {
  text-decoration: none;
}

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

.announcement-bar__links {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
}

.announcement-bar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Open now, with a green dot; closed, with a quiet one. */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.open-status__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--fresh);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--fresh) 25%, transparent);
}

.open-status.is-closed .open-status__dot {
  background: var(--fg-subtle);
  box-shadow: none;
}

@media (max-width: 989px) {
  .announcement-bar__row {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 2.25rem;
  }

  .announcement-bar__messages,
  .announcement-bar__links {
    display: none;
  }
}

.site-header {
  display: contents;
}

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

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

/* The menu on the start side, the logo in the middle, the tools on the end. */
.header__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 5.25rem;
}

.header__start {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header__logo {
  display: block;
  justify-self: center;
  text-decoration: none;
}

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

.header__name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

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

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

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

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

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

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

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

.header__links > li > a::after,
.header__dropdown > summary::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0.375rem;
  height: 2px;
  background: currentColor;
  scale: 0 1;
  transform-origin: inline-start;
  transition: scale 200ms var(--ease);
}

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

.header__dropdown > summary::after {
  inset-inline-end: 1.25rem;
}

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

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

.mega-menu__groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  flex: 1;
  gap: 1.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.mega-menu__group ul {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-menu__link {
  color: var(--fg-muted);
  text-decoration: none;
}

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

.mega-menu__link:hover,
.mega-menu__all:hover {
  color: var(--fg);
  text-decoration: underline;
}

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

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

.mega-feature {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 14rem);
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: calc(var(--radius) + 4px);
  text-decoration: none;
}

.mega-feature img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
}

.mega-feature__body {
  display: grid;
  gap: 0.5rem;
}

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

.mega-feature__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
}

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

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

  .header__bar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 4rem;
  }

  .header__account {
    display: none !important;
  }
}

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

/* Search opens as a bar over the header: the field, Close, and the suggestions under it; on
   phones it fills the screen. */
.header__search > summary {
  list-style: none;
}

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

.header-search {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: var(--shadow-popover);
  animation: rise 160ms var(--ease);
}

.header-search__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.25rem;
}

.header-search__bar .search-field {
  flex: 1;
}

@media (max-width: 989px) {
  .header-search {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    box-shadow: none;
  }

  .header-search__bar {
    gap: 0.75rem;
    min-height: 4.5rem;
    border-block-end: 1px solid var(--line);
  }

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

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

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

.search-field > .icon {
  width: 1.25rem;
  height: 1.25rem;
}

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

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

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

.search-field:focus-within {
  border-color: var(--fg);
}

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

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

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

/* The suggestions: suggested searches and categories, then dishes and stories. */
.predictive {
  padding-block: 1.75rem 2rem;
  border-block-start: 1px solid var(--line);
}

.predictive:empty {
  display: none;
}

.predictive__columns {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 32rem);
  gap: 1.5rem 5rem;
}

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

.predictive__columns > :nth-child(2) {
  grid-row: span 2;
}

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

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

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

.predictive ul a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  border-radius: var(--radius-field);
  text-decoration: none;
}

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

.predictive ul a:hover,
.predictive ul a:focus-visible {
  text-decoration: underline;
}

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

.predictive strong {
  font-weight: 600;
}

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

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

.predictive ul .predictive__product:hover,
.predictive ul .predictive__product:focus-visible {
  background: var(--bg-raised);
  text-decoration: none;
}

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

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

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

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

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

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

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

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

@media (max-width: 989px) {
  .predictive {
    padding-block: 1.25rem 2rem;
    border-block-start: 0;
  }

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

  .predictive__columns > :nth-child(2) {
    grid-row: auto;
  }

  .predictive__keys {
    display: none;
  }
}

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

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

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

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

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

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

.menu-drawer > * {
  padding-inline: var(--gutter);
}

.menu-drawer__status {
  padding-block: 0.75rem;
  background: var(--fresh-soft);
  font-size: var(--text-small);
}

.menu-drawer__circles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  list-style: none;
}

.menu-drawer__circles a {
  display: grid;
  justify-items: center;
  gap: 0.375rem;
  font-size: var(--text-caption);
  text-align: center;
  text-decoration: none;
}

.menu-drawer__circles .circle-media {
  width: 100%;
  max-width: 4.5rem;
}

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

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

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

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

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

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

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

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

.menu-drawer__nav {
  display: grid;
}

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

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

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

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

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

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

/* The table is set: the words on the start side, the photo large and rounded on the end; on
   phones the photo comes first. */
.hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(1.25rem, 3vw, 3rem) var(--space-section);
}

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

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

.hero__text .eyebrow {
  margin: 0;
}

.hero__heading {
  margin: 0;
  white-space: pre-line;
}

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

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

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

.hero__note .icon,
.feature__note .icon,
.subscription__intervals .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.hero__media {
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background: var(--media);
  aspect-ratio: 7 / 6;
}

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

@media (max-width: 989px) {
  .hero__media {
    order: -1;
    aspect-ratio: 7 / 6;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }
}

/* What are you craving: round photos in one row, scrolling on phones. */
.category-rail {
  display: grid;
  grid-template-columns: repeat(var(--rail-count, 6), minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 989px) {
  .category-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 5.5rem;
    gap: 0.75rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-rail::-webkit-scrollbar {
    display: none;
  }

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

/* Today's menu: the chips beside the heading, the rows in two columns, the link under them. */
.menu-section {
  border-block-start: 1px solid var(--line);
}

.menu-section .section-heading {
  flex-wrap: wrap;
}

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

.menu-section__more {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 0;
}

@media (max-width: 749px) {
  .menu-section .chips {
    width: calc(100% + var(--gutter));
    margin-inline-end: calc(-1 * var(--gutter));
  }

  .menu-section__more .button {
    width: 100%;
  }
}

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

/* A feature: a tall rounded photo beside the words; the words may carry two dishes, a note and a
   button. The subscription and the visit share it. */
.feature {
  display: grid;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
}

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

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

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

.feature__media--wide {
  aspect-ratio: 4 / 3;
}

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

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

.feature__content .eyebrow {
  margin: 0;
}

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

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

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

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

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

@media (max-width: 989px) {
  .feature__media {
    aspect-ratio: 6 / 5;
  }

  .feature__content {
    max-width: none;
  }

  .feature__content > .button,
  .feature__buttons .button {
    width: 100%;
  }
}

.subscription__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0;
}

.subscription__amount {
  font-size: 1.625rem;
  font-weight: 500;
}

/* Opening hours: a day and its hours on one ruled line. */
.hours {
  display: grid;
  width: 100%;
  max-width: 28rem;
}

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  border-block-end: 1px solid var(--line);
}

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

.hours dd {
  font-weight: 500;
}

/* Promises in type: a big figure, a line and a detail, with rules between. */
.promises {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

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

.promises__figure {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

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

.promises__text {
  max-width: 22rem;
  margin: 0;
  color: var(--fg-muted);
}

@media (max-width: 749px) {
  .promises__item {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: baseline;
    column-gap: 1rem;
    padding-block: 1rem;
  }

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

  .promises__figure {
    grid-row: span 2;
    font-size: 2rem;
  }
}

.promises-section {
  border-block: 1px solid var(--line);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.signup__submit {
  flex: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

.footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

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

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

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

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

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

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

.footer__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.sheet {
  width: min(27.5rem, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  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(42 27 19 / 0.5);
  animation: fade 200ms ease-out;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.cart-items {
  display: grid;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.gift-note__label {
  flex: 1;
}

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

.upsell__price {
  font-weight: 600;
}

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

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

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

  .cart-page .cart-item {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.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__summary.panel {
  gap: 1rem;
}

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

.cart-page__promises li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

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

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

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

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

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

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

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

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

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

.quick-view .breadcrumbs,
.quick-view .sticky-buy,
.quick-view .info-line,
.quick-view .add-ons__note,
.quick-view .product__thumbs,
.quick-view .accordion,
.quick-view .product__whatsapp,
.quick-view .product__app {
  display: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.article__image img {
  width: 100%;
}

.article__content {
  max-width: 42.5rem;
}

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

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

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

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

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

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

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

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

.not-found__chips {
  justify-content: center;
}

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

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

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

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

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

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