/* CASA London storefront. Tokens mirror the Figma variables (Primitives, Color, Spacing, Typography). */

:root {
  --espresso: #291b12;
  --ink: #1f1e20;
  --ink-hover: #3b3a3d; /* a black button never turns white on hover: it eases to this charcoal */
  --black: #000000;
  --white: #ffffff;
  --ivory: #fffff0;
  --sand-100: #f8f4ec;
  --sand-200: #e2ddd0;
  --grey-400: #8f8e8d;
  --swatch-gold: #d49a06;
  --swatch-rhodium: #d3d3d3;

  --bg-page: var(--white);
  --bg-inverse: var(--espresso);
  --bg-badge: var(--sand-100);
  --bg-highlight: #f4eddf; /* the cream strip behind a hovered or highlighted menu row: warm enough not to read as grey */
  --bg-scrim: rgb(0 0 0 / 0.4);
  --text-primary: var(--espresso);
  --text-inverse: var(--white);
  --text-inverse-ivory: var(--ivory);
  --text-inverse-muted: rgb(255 255 240 / 0.6);
  --text-placeholder: rgb(0 0 0 / 0.6);
  --border-default: var(--sand-200);
  --border-input: var(--ink);
  --border-soft: var(--grey-400); /* outlined buttons and the quantity stepper: lighter than ink for an elegant line */
  --border-quiet: rgb(31 30 32 / 0.4); /* the thin grey outline of a dropdown: the same when idle, hovered or open */
  --border-on-image: rgb(225 225 225 / 0.2);

  --page-margin: 80px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --header-height: 72px;
  --grid-gap: 4px; /* the one gap used between every grid of photographs */
}

@media (max-width: 900px) {
  :root {
    --page-margin: 24px;
    --header-height: 56px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--espresso) var(--sand-100);
  scrollbar-width: none; /* the page itself uses the custom bar below, so it fills the full width of the screen */
}

html::-webkit-scrollbar {
  display: none;
}

/* Brand-coloured scrollbar for scrollable panels (menu, cart): espresso thumb on a sand track, 10px wide. */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--sand-100);
  border-left: 1px solid var(--sand-200);
}

::-webkit-scrollbar-thumb {
  background: var(--espresso);
  border: 2px solid var(--sand-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
}

/* Page scrollbar: hidden at rest so the page runs edge to edge; a 10px brand bar fades in while scrolling or when the pointer nears the right edge. */
.scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  width: 10px;
  background: var(--sand-100);
  border-left: 1px solid var(--sand-200);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scrollbar[hidden] {
  display: none;
}

.scrollbar.is-active {
  opacity: 1;
  pointer-events: auto;
}

.scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: var(--espresso);
  border: 2px solid var(--sand-100);
  cursor: grab;
}

.scrollbar__thumb:hover,
.scrollbar.is-dragging .scrollbar__thumb {
  background: var(--ink);
}

.scrollbar.is-dragging {
  user-select: none;
}

@media (pointer: coarse) {
  .scrollbar {
    display: none;
  }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 21px;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Form fields already have a 1px border: draw the focus ring over it so it reads as one line, not a double border. */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}

.search__input:focus-visible {
  outline: 0;
}

.on-dark :focus-visible,
.site-header:not(.is-solid) :focus-visible {
  outline-color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type styles ---------- */
.t-display-xl { font: 500 56px/62px var(--font-display); }
.t-display-l { font: 500 40px/48px var(--font-display); }
.t-display-m { font: 500 32px/40px var(--font-display); }
.t-display-s { font: 500 26px/32px var(--font-display); }
.t-heading-h4 { font: 500 20px/28px var(--font-body); }
.t-body-l { font: 400 16px/24px var(--font-body); }
.t-body-m { font: 400 14px/21px var(--font-body); }
.t-body-s { font: 400 13px/20px var(--font-body); }
.t-label-m { font: 500 13px/18px var(--font-body); letter-spacing: 0.6px; text-transform: uppercase; }
.t-label-strong { font: 700 13px/18px var(--font-body); letter-spacing: 0.6px; text-transform: uppercase; }
.t-label-s { font: 400 12px/16px var(--font-body); text-transform: uppercase; }
.t-product-name { font: 600 13px/18px var(--font-body); letter-spacing: 0.6px; text-transform: capitalize; }
.t-caption { font: 400 12px/18px var(--font-body); }

@media (max-width: 900px) {
  .t-display-xl { font: 500 32px/40px var(--font-display); }
  .t-display-l { font: 500 26px/32px var(--font-display); }
  .t-display-m { font: 500 26px/32px var(--font-display); }
}

/* ---------- Icons ---------- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
}

.mask {
  display: block;
  background: currentColor;
  mask: var(--src) center / contain no-repeat;
  -webkit-mask: var(--src) center / contain no-repeat;
}

@font-face {
  font-family: "Nexa Script";
  src: url("/fonts/nexa-script.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border: 1px solid var(--ink);
  font: 400 14px/16px var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-soft);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn--inverse {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn--inverse:hover {
  background: transparent;
  color: var(--white);
}

.btn--m {
  height: 40px;
  padding: 0 24px;
  font-size: 13px;
}

.btn--full {
  width: 100%;
}

/* Editorial call to action: an underlined, slightly heavier label instead of a box */
.btn--link {
  align-self: flex-start;
  height: auto;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: opacity 0.2s, border-color 0.2s;
}

.btn--link:hover {
  background: transparent;
  color: var(--ink);
  opacity: 0.65;
}

.btn--link-inverse,
.btn--link-inverse:hover {
  color: var(--text-inverse);
}

.btn--link-quiet {
  font-weight: 500;
  opacity: 0.7;
}

.btn--link-quiet:hover {
  opacity: 1;
}

.link {
  font: 400 14px/21px var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Region suggestion + announcement ---------- */
.region-suggestion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px var(--page-margin);
  background: var(--bg-badge);
  border-bottom: 1px solid var(--border-default);
}

.region-suggestion[hidden] {
  display: none;
}

.region-suggestion__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.region-suggestion__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  background: var(--black);
  color: var(--text-inverse-ivory);
  text-align: center;
}

@media (max-width: 900px) {
  .region-suggestion {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .region-suggestion__close {
    position: absolute;
    right: 8px;
    margin-top: -4px;
  }

  .region-suggestion {
    position: relative;
  }

  .announcement .t-label-strong {
    font-size: 12px;
  }
}

/* Lighter and smaller than the shared label style, so the line has air above and below it in the 32px bar, on every screen size. */
.announcement [data-announcement] {
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  transition: opacity 0.3s ease;
}

.announcement [data-announcement].is-fading {
  opacity: 0;
}

.announcement__part + .announcement__part::before {
  content: "\00a0\00a0|\00a0\00a0";
}

@media (max-width: 700px) {
  .announcement__part {
    display: block;
  }

  .announcement__part + .announcement__part::before {
    content: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-margin);
  color: var(--text-inverse);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s;
}

.site-header.is-solid {
  background: var(--bg-page);
  color: var(--text-primary);
  border-bottom-color: var(--border-default);
}

body[data-header-style="over"] .site-header + main > :first-child {
  margin-top: calc(var(--header-height) * -1);
}

.site-header__side {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header__side--right {
  justify-content: flex-end;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  min-width: 40px;
  padding: 8px;
  justify-content: center;
}

.icon-btn__count {
  font: 500 12px/18px var(--font-body);
  letter-spacing: 0.6px;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 12px 8px;
}

.menu-btn__icon {
  display: none;
}

.site-header__search-left {
  display: none; /* phones only: see the 900px rules below */
}

/* Desktop: the main categories are visible in the header, with the full menu behind "More". Narrower screens keep "Explore". */
.site-nav {
  display: none;
}

.menu-btn__more {
  display: none;
}

.site-nav__link {
  position: relative;
  padding: 8px 10px;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

@media (min-width: 1360px) {
  .site-nav {
    display: flex;
    align-items: center;
    margin-left: -10px;
  }

  .menu-btn__explore {
    display: none;
  }

  .menu-btn__more {
    display: inline;
  }
}

.logo {
  display: block;
  width: 140px;
  height: 45px;
  --src: url("/images/logo-wordmark.svg");
}

@media (max-width: 900px) {
  .logo {
    width: 112px;
    height: 36px;
  }

  .menu-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .menu-btn__label,
  .site-header__desktop-only {
    display: none;
  }

  /* On a phone search sits beside the menu button, so the right side (wishlist, bag) leaves the logo room. */
  .site-header__search-left {
    display: inline-flex;
  }

  .site-header__side--right [data-search-open] {
    display: none;
  }

  .menu-btn__icon {
    display: block;
  }

  .site-header {
    padding: 0 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 760px;
  padding: 48px var(--page-margin) 80px;
  color: var(--text-inverse);
  background: var(--bg-badge) var(--hero-desktop) center / cover no-repeat;
}

.hero--dark {
  color: var(--text-primary);
}

.hero__title,
.hero__text {
  max-width: 640px;
}

.hero__action {
  align-self: flex-start;
}

/* Film hero: the video fills the section behind the copy; the poster (the section background) shows while it loads. */
.hero--video {
  overflow: hidden;
  isolation: isolate;
}

/* On desktop the film fills the screen below the announcement bar (32px). */
@media (min-width: 901px) {
  .hero--video {
    min-height: max(760px, calc(100svh - 32px));
  }
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A soft dark fade under the header so the white nav labels stay readable over bright sky, and under the copy at the bottom. */
.hero--video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0) 220px), linear-gradient(to top, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

/* Minimal film controls: pause/play and sound, bottom right. */
.hero__controls {
  position: absolute;
  right: var(--page-margin);
  bottom: 32px;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.hero__control {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text-inverse);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.5);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.hero__control:hover,
.hero__control:focus-visible {
  background: rgb(255 255 255 / 0.18);
  border-color: var(--white);
}

.hero__icon {
  grid-area: 1 / 1;
}

/* Show only the icon for the current state. */
.hero__control[data-state="playing"] .hero__icon--play,
.hero__control[data-state="paused"] .hero__icon--pause,
.hero__control[data-state="muted"] .hero__icon--sound-on,
.hero__control[data-state="sound"] .hero__icon--sound-off {
  display: none;
}

@media (max-width: 900px) {
  .hero__controls {
    right: 24px;
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video,
  .hero__controls {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 620px;
    padding: 48px 24px;
    background-image: var(--hero-mobile);
  }
}

/* ---------- Feature split ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr); /* hold the row to the section height so the photo crops instead of spilling onto the next section */
  align-items: stretch;
  height: 800px;
  background: var(--bg-page);
}

.feature__photo {
  height: 100%;
  width: 100%;
  object-fit: cover;
  background: var(--bg-badge);
}

.feature__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px 96px;
}

.feature--right .feature__photo {
  order: 2;
}

.feature__eyebrow {
  color: var(--text-placeholder);
}

.feature__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 900px) {
  .feature {
    display: block;
    height: auto;
  }

  .feature__photo {
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .feature__text {
    padding: 40px 24px 48px;
  }

  .feature__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .feature__actions .link {
    align-self: flex-start;
  }
}

/* ---------- Collection tiles ---------- */
.collections {
  padding: 96px 0;
}

.collections__title {
  margin-bottom: 48px;
  padding: 0 24px;
}

.collections__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

.tile__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-badge);
}

.tile__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* The same quiet label as a product name on a card, so the two read as one family */
.tile__name {
  font: 600 12px/16px var(--font-body);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tile:hover .tile__name {
  text-decoration-thickness: 2px;
}

@media (max-width: 900px) {
  .collections {
    padding: 48px 0 16px;
  }

  .collections__title {
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .collections__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile__label {
    padding: 0 12px;
  }

}

/* ---------- Product row + card ---------- */
.product-row {
  padding: 80px 0;
}

.product-row__title {
  margin-bottom: 40px;
  padding: 0 24px;
}

.product-row__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-badge);
}

.card__link {
  position: absolute;
  inset: 0;
}

.card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card photos: one strip that slides. Swipe on touch, drag with a mouse (as on PDPAOLA); arrows only appear with a mouse. */
.card__track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  user-select: none;
  cursor: pointer;
}

.card__track::-webkit-scrollbar {
  display: none;
}

.card__track.is-dragging,
.card__track.is-sliding {
  scroll-snap-type: none;
  cursor: grabbing;
}

.card__image .card__slide {
  position: static;
  flex: 0 0 var(--slide, 100%);
  width: var(--slide, 100%);
  max-width: none; /* the page-wide img rule would otherwise cap it at the card width */
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  -webkit-user-drag: none;
}

/* Arrows: no box, just a thin chevron. Dark over a light photo, off-white over a dark one (set from the photo itself). */
.card__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s;
}

.card__arrow[data-tone="dark"] {
  color: rgb(255 255 240 / 0.92);
}

.card__arrow--prev {
  left: 2px;
}

.card__arrow--next {
  right: 2px;
}

.card__arrow .icon {
  width: 24px;
  height: 24px;
}

.card__arrow--prev .icon {
  transform: rotate(90deg);
}

.card__arrow--next .icon {
  transform: rotate(-90deg);
}

.card__image:hover .card__arrow:not(:disabled) {
  opacity: 0.45;
}

.card__image:hover .card__arrow:not(:disabled):hover,
.card__arrow:focus-visible {
  opacity: 0.9;
}

.card__image:hover .card__arrow:disabled {
  opacity: 0.18;
  cursor: default;
}

@media (hover: none), (pointer: coarse) {
  .card__arrow {
    display: none;
  }
}

.card__badge {
  z-index: 2;
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 8px;
  font: 500 10px/11px var(--font-body);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--white);
  color: #2b2b2b;
}

.card__badge--sold-out {
  background: var(--ink);
  color: var(--white);
}

.card__quick-add {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 48px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s, transform 0.15s;
}

.card:hover .card__quick-add,
.card:focus-within .card__quick-add {
  opacity: 1;
  transform: none;
}

/* Sold-out cards: a grey "Email me when available" bar, with an email panel above it (on hover with a mouse, on the first tap with touch). */
.card__notify {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
}

.card__notify-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 14px;
  background: rgb(255 255 255 / 0.94);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.card__image:hover .card__notify-fields,
.card__notify:focus-within .card__notify-fields,
.card__notify.is-open .card__notify-fields {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.card__notify-input {
  width: 100%;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
}

.card__notify-input::placeholder {
  color: var(--text-placeholder);
}

.card__notify-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}

.card__notify-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.card__notify-message {
  margin: 0;
  font-weight: 600;
}

.card__notify-message:empty {
  display: none;
}

.card__notify-thanks {
  margin: 0;
}

.card__notify-submit {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  color: var(--white);
  background: #666;
  border: 0;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background-color 0.3s;
}

.card__image:hover .card__notify-submit,
.card__notify:focus-within .card__notify-submit,
.card__notify.is-open .card__notify-submit {
  opacity: 1;
}

.card__notify-submit:hover:not(:disabled) {
  background: #4d4d4d;
}

.card__notify-submit:disabled {
  cursor: default;
}

@media (hover: none), (pointer: coarse) {
  .card__notify-submit {
    opacity: 1;
  }
}

/* The quick-add bar never turns white: on hover it eases from black to a deep charcoal. */
.card__quick-add {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  transition: opacity 0.15s, transform 0.15s, background-color 0.3s, border-color 0.3s;
}

.card__quick-add:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  color: var(--white);
}

.card__quick-add.is-added {
  opacity: 1;
  transform: none;
}

.card__name {
  font: 600 12px/16px var(--font-body);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card__finish {
  color: var(--text-primary);
}

.card__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px;
}

/* The finish and price lines are set smaller, as on PDPAOLA, so the name leads. */
.card__details > p {
  font-size: 12px;
  line-height: 16px;
}

.card__details > p.t-body-m {
  font-weight: 500;
}

.card__swatches {
  display: flex;
  gap: 12px;
  padding: 10px 0 4px;
}

/* Flat square swatches (as on PDPaola); the finish shown or chosen has a short line under it */
.card__swatches .swatch {
  position: relative;
  width: 14px;
  height: 14px;
}

.card__swatches .swatch.is-shown::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--ink);
}

.swatch {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}

.swatch--gold {
  background: var(--swatch-gold);
}

.swatch--rhodium {
  background: var(--swatch-rhodium);
}

/* Swatches on cards are buttons now (so a click can change the photo); they look exactly as before. */
button.swatch {
  padding: 0;
  border: 0;
  cursor: pointer;
}

button.swatch:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .product-row {
    padding: 48px 0;
  }

  .product-row__title {
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .product-row__cards {
    display: flex;
    gap: var(--grid-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-row__cards::-webkit-scrollbar {
    display: none;
  }

  .product-row__cards .card {
    flex: none;
    width: calc(50vw - 2px);
    scroll-snap-align: start;
  }

  .card__details {
    padding: 0 12px;
  }

  .card__quick-add {
    display: none;
  }
}

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 48px var(--page-margin);
  background: var(--bg-badge);
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.trust__text {
  color: var(--text-placeholder);
}

/* The homepage reassurance bar sits just under the film: white with hairlines, so it never merges with the sand quote section. */
.trust--lined {
  background: var(--bg-page);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

@media (max-width: 900px) {
  .trust {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Pull quote ---------- */
.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 96px var(--page-margin);
  background: var(--bg-badge);
  text-align: center;
}

.quote__symbol {
  width: 44px;
  height: 51px;
  --src: url("/images/symbol-gye-nyame.svg");
}

.quote__text {
  max-width: 900px;
}

/* Homepage editorial quote: a large mark, the statement, then who said it. */
.quote--editorial {
  gap: 0;
  padding: 120px var(--page-margin) 112px;
}

.quote__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1040px;
  margin: 0;
}

.quote__mark {
  display: block;
  height: 64px;
  margin-bottom: 20px;
  font: 500 128px/1 var(--font-display);
  color: var(--espresso);
}

.quote__statement {
  margin: 0;
  font: 500 clamp(30px, 3.4vw, 56px) / 1.2 var(--font-display);
  text-wrap: balance;
}

.quote__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
}

.quote__role {
  color: var(--text-placeholder);
}

@media (max-width: 900px) {
  .quote--editorial {
    padding: 80px 24px 72px;
  }

  .quote__mark {
    height: 44px;
    margin-bottom: 16px;
    font-size: 88px;
  }

  .quote__author {
    margin-top: 32px;
  }
}

@media (max-width: 900px) {
  .quote {
    gap: 24px;
    padding: 64px 24px;
  }
}

/* ---------- Homepage reviews and email sign-up ---------- */
.reviews {
  padding: 96px var(--page-margin);
  text-align: center;
}

.reviews[hidden] {
  display: none;
}

.reviews__summary {
  margin-top: 8px;
  color: var(--text-placeholder);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
  text-align: left;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
}

.review__stars {
  margin: 0;
  font-size: 14px;
  letter-spacing: 3px;
}

.review__text {
  margin: 0;
}

.review__by {
  color: var(--text-placeholder);
}

/* The homepage cards are laid out here; the product page's own .review rules further down must not reshape them. */
.reviews__grid .review {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  padding: 24px 0 0;
}

/* The product's own main picture sits above the review: shoppers cannot add photos, so every card looks the same. */
.review__thumb {
  display: block;
  flex: none;
  width: 96px;
  aspect-ratio: 4 / 5;
  background: var(--bg-badge);
  overflow: hidden;
}

.review__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Read more / Read less runs on at the end of the review's last line, in the text's own size and weight. */
.review__more {
  display: inline;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.review__more:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .reviews {
    padding: 64px 24px;
  }

  /* On a phone the three reviews sit in a row and swipe sideways, the next one peeking in from the edge. */
  .reviews__grid {
    display: flex;
    align-self: stretch; /* the section is a centred column: without this the row sizes to its cards and spills past a 320px screen */
    gap: 16px;
    margin: 40px -24px 0;
    padding: 0 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .reviews__grid::-webkit-scrollbar {
    display: none;
  }

  .reviews__grid .review {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-inverse);
  color: var(--text-inverse-ivory);
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__upper {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 72px var(--page-margin) 64px;
}

.footer__nav {
  display: block;
}

.select {
  position: relative;
}

.select select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  appearance: none;
  background: transparent;
  color: var(--text-inverse-ivory);
  border: 1px solid var(--white);
  border-radius: 0;
  font: 400 14px/21px var(--font-body);
}

.select select option {
  color: var(--ink);
}

.select .icon {
  position: absolute;
  right: 12px;
  top: 16px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.footer__columns {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

/* the logo sits in the middle of the row, with two menus either side of it; on a phone the accordion is used and the logo goes beneath it */
.footer__logo--centre {
  align-self: center;
}

.footer__logo.footer__logo--phone {
  display: none;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__heading {
  font: 600 13px/18px var(--font-body);
}

.footer__column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__column a {
  color: var(--text-inverse-muted);
}

.footer__column a:hover {
  color: var(--text-inverse-ivory);
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
}

.footer__logo .mark {
  width: 36px;
  height: 46px;
  --src: url("/images/logo-mark.svg");
}

.footer__logo .word {
  width: 160px;
  height: 51px;
  --src: url("/images/logo-wordmark.svg");
}

.footer__lower {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 64px var(--page-margin) 24px;
  border-top: 1px solid var(--border-on-image);
}

.footer__newsletter {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer__newsletter p {
  max-width: 800px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 480px;
}

.newsletter-form__row {
  display: flex;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  background: transparent;
  color: var(--text-inverse-ivory);
  border: 1px solid rgb(255 255 240 / 0.55); /* the footer's ivory, not pure white, and a lighter line */
  border-right: 0;
  border-radius: 0;
  font: 400 14px/21px var(--font-body);
}

/* The focus line replaces the border as one thin ivory line, instead of a thick white double border */
.newsletter-form input[type="email"]:focus-visible {
  outline: 1px solid var(--text-inverse-ivory);
  outline-offset: -1px;
}

.newsletter-form .btn--inverse {
  background: var(--text-inverse-ivory);
  border-color: var(--text-inverse-ivory);
}

.newsletter-form .btn--inverse:hover {
  background: transparent;
  color: var(--text-inverse-ivory);
}

.newsletter-form input::placeholder {
  color: var(--text-inverse-muted);
}

.newsletter-form .btn {
  flex: none;
}

.newsletter-form__row[hidden],
.newsletter-form .consent[hidden] {
  display: none;
}

.newsletter-form__message:empty {
  display: none;
}

.newsletter-form__message {
  font-weight: 600;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-inverse-muted);
}

.consent input {
  margin: 2px 0 0;
  accent-color: var(--text-inverse-ivory);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social img {
  width: 20px;
  height: 20px;
}

.footer__policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-on-image);
}

.footer__policy ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 11px;
  line-height: 16px;
}

/* the small print: each link stays on one line, in the same soft ivory as the menu links above; the row wraps between links, never inside one */
.footer__policy li,
.footer__policy .footer__muted {
  white-space: nowrap;
}

.footer__policy ul a,
.footer__policy ul button,
.footer__policy .footer__muted {
  color: var(--text-inverse-muted);
  font-size: 11px;
  line-height: 16px;
}

.footer__policy ul a:hover,
.footer__policy ul button:hover {
  color: var(--text-inverse-ivory);
}

.footer__muted {
  color: var(--text-inverse-muted);
}

.footer__policy .footer__region {
  flex: none;
  width: 196px;
}

.footer__policy .select select {
  height: 32px;
  padding: 0 30px 0 10px;
  border-color: var(--border-on-image);
  color: var(--text-inverse-muted);
  font-size: 13px;
  line-height: 18px;
}

.footer__policy .select .icon {
  right: 10px;
  top: 8px;
  width: 14px;
  height: 14px;
}

.footer__accordion {
  display: none;
}

@media (max-width: 900px) {
  .footer__upper {
    gap: 72px;
    padding: 48px 24px 0;
  }

  .footer__lower {
    gap: 40px;
    padding: 40px 24px 32px;
    border-top: 0;
  }

  .footer__columns {
    display: none;
  }

  .footer__logo.footer__logo--phone {
    display: flex;
  }

  .footer__accordion {
    display: block;
    border-top: 1px solid var(--border-on-image);
  }

  .footer__accordion details {
    border-bottom: 1px solid var(--border-on-image);
  }

  .footer__policy .footer__region {
    width: 100%;
  }

  .footer__accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    list-style: none;
    cursor: pointer;
  }

  .footer__accordion summary::-webkit-details-marker {
    display: none;
  }

  .footer__accordion summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
  }

  .footer__accordion details[open] summary::after {
    content: "\2212";
  }

  .footer__accordion ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
  }

  .footer__accordion a {
    color: var(--text-inverse-muted);
  }

  .footer__newsletter {
    flex-direction: column;
    gap: 16px;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-form__row {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-form input[type="email"] {
    border-right: 1px solid rgb(255 255 240 / 0.55);
  }

  .footer__social {
    justify-content: center;
  }

  .footer__policy {
    flex-direction: column;
    gap: 16px;
  }

  .footer__policy ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }
}

/* ---------- Menu panel ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg-scrim);
}

.scrim[hidden] {
  display: none;
}

.menu-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: 480px;
  max-width: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.25s, visibility 0.25s;
}

.menu-panel.is-open {
  transform: none;
  visibility: visible;
}

.menu-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 16px 0 24px;
  flex: none;
}

.menu-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 24px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-default);
}

.menu-item:hover .menu-item__label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-panel__collections {
  margin-top: 24px;
}

.menu-panel__collections a {
  display: block;
  padding: 8px 0;
}

.menu-panel__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--border-default);
  flex: none;
}

.menu-panel__footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .menu-panel {
    width: 100%;
  }
}

/* ---------- Buttons: disabled ---------- */
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Collection page ---------- */
.collection-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px 12px;
}

.collection-header__description {
  max-width: 640px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 4px 24px 16px;
}

.active-filters[hidden] {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 16px;
  background: transparent;
  border: 1px solid var(--border-soft);
}

.chip:hover {
  background: var(--bg-highlight);
}

.chip .icon {
  width: 16px;
  height: 16px;
}

.collection-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  background: var(--bg-page);
}

.collection-pills {
  display: flex;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.04em;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.collection-pills::-webkit-scrollbar {
  display: none;
}

.collection-pills[hidden] {
  display: none;
}

.collection-pills button {
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.collection-pills a[aria-current="page"],
.collection-pills button[aria-pressed="true"] {
  font-weight: 700;
}

.collection-pills a:hover,
.collection-pills button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.collection-nav__filter {
  flex: none;
  margin-left: auto;
  padding: 4px 0;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.collection-nav__filter:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.collection-nav__filter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-grid {
  padding: 0 0 96px;
}

.product-grid__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.product-grid .card {
  gap: 14px;
  padding-bottom: 40px;
}

.product-grid__empty {
  padding: 48px 24px;
}

.product-grid__empty {
  padding: 48px 0;
}

@media (max-width: 900px) {
  .collection-header {
    padding: 32px 16px 16px;
  }

  .collection-header h1 {
    font: 500 32px/40px var(--font-display);
  }

  .collection-nav {
    padding: 12px 16px;
  }

  .product-grid {
    padding-bottom: 64px;
  }

  .product-grid__cards {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ---------- Filter drawer ---------- */
.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: 440px;
  max-width: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s, visibility 0.25s;
}

.filter-drawer.is-open {
  transform: none;
  visibility: visible;
}

.filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 16px 0 24px;
  border-bottom: 1px solid var(--border-default);
  flex: none;
}

.filter-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.filter-drawer__footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-default);
  flex: none;
}

.filter-drawer__footer .btn {
  flex: 1;
}

.filter-drawer__footer .link {
  flex: none;
}

.filter-group {
  border-bottom: 1px solid var(--border-default);
}

.filter-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  text-align: left;
}

.filter-group__header .icon {
  width: 16px;
  height: 16px;
}

.filter-group__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

.filter-group__body[hidden] {
  display: none;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  cursor: pointer;
}

.option__main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option--finish .option__main {
  gap: 12px;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__box {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 1px solid var(--border-input);
}

.option input:checked + .option__box {
  background: var(--ink);
}

.option__box--radio {
  border-radius: 50%;
}


.option input:checked + .option__box::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-left: 1.5px solid var(--white);
  border-bottom: 1.5px solid var(--white);
  transform: rotate(-45deg);
}

.option input:checked + .option__box.option__box--radio::after {
  width: 6px;
  height: 6px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  transform: none;
}
.option input:focus-visible + .option__box,
.option input:focus-visible + .swatch-ring {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.option__count {
  color: var(--text-placeholder);
}

.swatch-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 0;
}

.swatch-ring .swatch {
  width: 16px;
  height: 16px;
  outline: 0;
}

.option input:checked + .swatch-ring::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--ink);
}

.price-range {
  display: flex;
  gap: 12px;
}

.field {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 14px/21px var(--font-body);
}

@media (max-width: 900px) {
  .filter-drawer {
    width: 100%;
  }
}

/* ---------- Product page ---------- */
.product-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.gallery-wrap {
  position: relative;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.gallery__photo,
.gallery__story {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-badge);
}

.gallery__story {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  text-align: center;
}

.gallery__preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 32px;
  overflow: hidden;
  background: var(--bg-badge);
  text-align: center;
}

/* the chain drawn either side of the name (see /js/name-chain.js): behind the words, clipped by the card */
.gallery__preview .name-chain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gallery__preview > :not(.name-chain) {
  position: relative;
}

.gallery__name {
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 400 72px/1.2 "Nexa Script", var(--font-display);
}

.gallery__name.is-empty {
  color: var(--text-placeholder);
}

.gallery__symbol {
  width: 44px;
  height: 51px;
  --src: url("/images/symbol-gye-nyame.svg");
}

.gallery__eyebrow {
  color: var(--text-placeholder);
}

.gallery__counter {
  display: none;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 64px 48px 48px;
}

.info__finish {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info__finish[hidden] {
  display: none;
}

.info__swatches {
  display: flex;
  gap: 12px;
}

.swatch-button {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 0;
}

.swatch-button .swatch {
  width: 16px;
  height: 16px;
  outline: 0;
}

.swatch-button.is-selected::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--ink);
}

.custom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom[hidden] {
  display: none;
}

.custom__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.custom__count {
  color: var(--text-placeholder);
}

.custom__input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
}

.custom__hint {
  color: var(--text-placeholder);
}

.custom__chain {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.custom__select {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: inherit;
}

.custom__error {
  color: var(--text-primary);
  font-weight: 600;
}

.custom__error[hidden],
.accordion details[hidden] {
  display: none;
}

.accordion__steps {
  padding: 0 0 16px 20px;
  list-style: decimal;
}

.accordion__steps li + li {
  margin-top: 8px;
}

.info__purchase {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info__add {
  width: 100%;
}

.notify {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.notify[hidden],
.notify__row[hidden] {
  display: none;
}

.notify__row {
  display: flex;
  gap: 12px;
}

.notify__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.notify__consent[hidden] {
  display: none;
}

.notify__consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.notify__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
}

.notify__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.stepper {
  display: flex;
  align-items: center;
  height: 32px;
  border: 1px solid var(--border-soft);
}

.stepper__button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.stepper__button .icon {
  width: 12px;
  height: 12px;
}

.stepper__value {
  width: 28px;
  font-size: 13px;
  line-height: 16px;
  text-align: center;
}

/* In the bag drawer the quantity is a small, borderless minus / number / plus */
.cart-drawer .stepper {
  height: auto;
  border: 0;
  gap: 2px;
}

.cart-drawer .stepper__button {
  width: 24px;
  height: 24px;
}

.cart-drawer .stepper__button .icon {
  width: 14px;
  height: 14px;
}

.cart-drawer .stepper__value {
  width: 20px;
  font-size: 13px;
  line-height: 16px;
}

.info__delivery {
  color: var(--text-placeholder);
}

.accordion {
  border-top: 1px solid var(--border-default);
}

.accordion[hidden] {
  display: none;
}

.accordion details {
  border-bottom: 1px solid var(--border-default);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  list-style: none;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary .icon {
  width: 16px;
  height: 16px;
}

/* A plus when closed, a minus when open */
.accordion summary .icon--minus,
.accordion details[open] summary .icon--plus {
  display: none;
}

.accordion details[open] summary .icon--minus {
  display: block;
}

.accordion details > p,
.accordion details > ul,
.accordion details > div {
  padding-bottom: 16px;
}

.accordion__body p + p {
  margin-top: 12px;
}

.info__caption {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Cross-sell on the product page: a row of picture tiles, one can be added with the piece */
.crosssell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* no cross-sell for this piece: nothing is shown (the display rule above would otherwise override the hidden attribute) */
.crosssell[hidden] {
  display: none;
}

.crosssell__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.crosssell__selection {
  font-weight: 500;
}

.crosssell__options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.crosssell__options::-webkit-scrollbar {
  display: none;
}

.crosssell__option {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 6px;
  width: 104px;
  cursor: pointer;
}

.crosssell__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.crosssell__tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-badge);
  outline: 1px solid transparent;
  outline-offset: -1px;
}

.crosssell__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The round selector: larger, a thin light outline, and a grey dot once chosen */
.crosssell__tick {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border: 1px solid rgb(31 30 32 / 0.3);
  border-radius: 50%;
  background: var(--white);
}

.crosssell__option input:checked + .crosssell__tile .crosssell__tick {
  background: radial-gradient(circle, #8f8e8d 0 30%, var(--white) 34%);
}

.crosssell__option input:focus-visible + .crosssell__tile {
  outline: 2px solid var(--ink);
}

.crosssell__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 15px;
}

.crosssell__note {
  color: var(--text-placeholder);
}

.info__policies {
  display: flex;
  gap: 24px;
}

/* The same size as the accordion headings above them, but in sentence case with an underline, so links and headings are easy to tell apart */
.info__policies .link {
  font: 400 13px/18px var(--font-body);
}

.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px var(--page-margin);
}

.reviews__empty {
  color: var(--text-placeholder);
}

@media (max-width: 900px) {
  .product-main {
    display: block;
  }

  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery__photo,
  .gallery__story,
  .gallery__preview {
    flex: none;
    width: 100%;
    scroll-snap-align: start;
  }

  .gallery__counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: block;
    padding: 0;
    /* Plain text, no box: black over a light picture, white over a dark one (product.js sets data-tone from the picture behind it). */
    color: var(--ink);
    font: 500 11px/14px var(--font-body);
    letter-spacing: 0.6px;
    transition: color 0.2s;
  }

  .gallery__counter[data-tone="dark"] {
    color: #fff;
  }

  .info {
    position: static;
    padding: 32px 24px 48px;
  }

  .info__title {
    font: 500 26px/32px var(--font-display);
  }

  .reviews {
    padding: 64px 24px;
    border-top: 1px solid var(--border-default);
  }
}

.info__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info__details strong {
  font-weight: 600;
}

/* ---------- Ratings and reviews ---------- */
.star {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.star svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.star__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linejoin: miter;
}

.star__fill {
  fill: currentColor;
  clip-path: inset(0 calc((1 - var(--f)) * 100%) 0 0);
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.info__priceline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reviews {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.rating-summary:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews__summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews__summary[hidden],
.reviews__filters[hidden],
.reviews__empty[hidden] {
  display: none;
}

.reviews__summary .star {
  width: 20px;
  height: 20px;
}

.reviews__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 8px 0;
}

.reviews__filters button[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.reviews__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 8px 0;
}

.review {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.review__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review + .review {
  border-top: 1px solid var(--border-default);
}

/* The product page shares the homepage block's centred "reviews" section, so the list, toolbar and status read left to right here. */
.reviews__list,
.reviews__toolbar,
.reviews__status {
  text-align: left;
}

/* A product page's reviews: who wrote it (name, verified buyer, date) on the left, the stars and words on the right. */
.reviews__list .review {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 40px;
  align-items: start;
  justify-content: stretch;
}

/* The toolbar already draws the line above the first review. */
.reviews__list .review:first-child {
  border-top: 0;
}

.review__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review__meta p {
  margin: 0;
}

.review__verified {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
}

.review__tick {
  flex: none;
  width: 14px;
  height: 14px;
}

.reviews__list .review__date {
  margin-left: 0;
  color: var(--text-placeholder);
}

.reviews__none {
  padding: 24px 0;
}

/* Under the summary: star filter on the left; topics and sort on the right. */
.reviews__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-default);
}

/* The homepage block's phone rule draws a line above every "reviews" section; on a product page that doubles the header's line. */
#reviews {
  border-top: 0;
}

/* The whole reviews block sits in one 1000px column, read left to right. */
.reviews__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  text-align: left;
}

.reviews__inner [data-review-more] {
  align-self: center;
}

.reviews__empty {
  align-self: center;
}

/* Title and rating on the left; Write a review and Ask a question on the right. */
.reviews__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.reviews__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.reviews__actions {
  display: flex;
  align-items: center;
  padding-top: 8px;
}

.reviews__action {
  padding: 4px 20px;
  background: none;
  border: 0;
  color: var(--text-placeholder);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.reviews__action:hover {
  color: var(--text-primary);
}

.reviews__action:last-child {
  padding-right: 0;
}

.reviews__action + .reviews__action {
  border-left: 1px solid var(--border-default);
}

.reviews__inner .review-form {
  max-width: 560px;
  margin: 0 0 24px;
}

.reviews__thanks {
  margin: 0 0 24px;
}

.reviews__thanks[hidden] {
  display: none;
}

/* Ask a question: a small window over the page. */
.qmodal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.qmodal[hidden] {
  display: none;
}

.qmodal__scrim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
}

.qmodal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--bg-page);
  color: var(--text-primary);
  text-align: left;
}

.qmodal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 24px;
  background: var(--bg-inverse);
  color: var(--text-inverse-ivory);
}

.qmodal__head h2 {
  margin: 0;
}

.qmodal__close {
  color: inherit;
}

.reviews .qmodal__form {
  max-width: none;
  margin: 0;
  padding: 24px;
}

.qmodal__intro {
  margin: 0;
  color: var(--text-placeholder);
}

.qmodal__thanks {
  margin: 0;
  padding: 24px;
}

.qmodal__thanks[hidden] {
  display: none;
}

.reviews__toolbar[hidden],
.topics[hidden],
.reviews__status[hidden] {
  display: none;
}

.reviews__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews__controls .dd {
  width: auto;
  min-width: 210px;
}

.reviews__controls .dd__button {
  height: 40px;
  font-size: 13px;
}

.reviews__status {
  margin: 12px 0 0;
  color: var(--text-placeholder);
}

/* Filter by topics: a button like the sort menu, opening a short list of checkboxes with a count beside each. */
.dd .topics__panel {
  min-width: 100%;
  max-height: none;
  padding: 4px 0 0;
  overflow: visible;
}

.topics__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font: 400 13px/19px var(--font-body);
  cursor: pointer;
}

.topics__option:hover {
  background: var(--bg-highlight);
}

.topics__option input {
  appearance: none;
  display: grid;
  flex: none;
  place-content: center;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid rgb(31 30 32 / 0.3);
  background: var(--bg-page);
  cursor: pointer;
}

.topics__option input:checked::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.topics__option input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.topics__name {
  flex: 1;
}

.topics__count {
  color: var(--text-placeholder);
  font-size: 12px;
}

.topics__clear {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 12px;
  border: 0;
  border-top: 1px solid var(--border-default);
  background: none;
  color: var(--text-primary);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 700px) {
  /* The title and rating first, the two buttons under them, still left aligned. */
  .reviews__head {
    flex-direction: column;
    gap: 8px;
  }

  .reviews__actions {
    padding-top: 0;
  }

  .reviews__action:first-child {
    padding-left: 0;
  }

  /* Topics and sort side by side across the top, the star filter below them. */
  .reviews__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .reviews__controls {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .reviews__controls .dd {
    min-width: 0;
  }

  .reviews__controls .dd__button {
    padding: 0 12px;
    font-size: 12px;
  }

  /* Each review: name on the left and date on the right, "Verified buyer" under the name, then the stars and the words. */
  .reviews__list .review {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .review__meta {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name date" "verified verified";
    gap: 2px 16px;
  }

  .review__name {
    grid-area: name;
  }

  .review__date {
    grid-area: date;
  }

  .review__verified {
    grid-area: verified;
  }
}

.review__reply {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.review__reply-label {
  color: var(--text-placeholder);
}

.review__date {
  margin-left: 8px;
  color: var(--text-placeholder);
  font-weight: 400;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 560px;
  padding-top: 8px;
  text-align: left;
}

.review-form[hidden] {
  display: none;
}

.review-form__rating {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-form__stars {
  display: flex;
  gap: 4px;
}

.review-form__star {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}

.review-form__star .star {
  width: 24px;
  height: 24px;
}

.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 14px/21px var(--font-body);
  resize: vertical;
}

.review-form__message {
  min-height: 18px;
}

@media (max-width: 900px) {
  .info__priceline {
    flex-wrap: wrap;
  }

  .info__add {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    width: 100%;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px); /* clear of the iPhone home indicator when the page runs full screen */
    border-width: 1px 0 0;
  }

  body:has(.info__add) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 24px var(--page-margin) 0;
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-placeholder);
}

.breadcrumb a {
  color: var(--text-placeholder);
}

.breadcrumb a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Breadcrumb for pages whose header floats over a banner: hidden on the image, it drops in under the header once the header turns solid */
.breadcrumb--over {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  z-index: 39;
  padding: 10px var(--page-margin);
  background: var(--bg-page);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

body:has(.site-header.is-solid) .breadcrumb--over {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.breadcrumb + .product-main {
  margin-top: 32px;
}

.breadcrumb li[hidden] {
  display: none;
}

.breadcrumb + .page-heading,
.breadcrumb + .collection-header {
  padding-top: 24px;
}

@media (max-width: 900px) {
  .breadcrumb {
    padding: 16px 24px 0;
  }

  .breadcrumb--over {
    padding: 10px 24px;
  }
}

/* ---------- Cart page ---------- */
.page-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 64px var(--page-margin) 32px;
}

.page-heading__sub {
  min-height: 16px;
  color: var(--text-placeholder);
}

.bag {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 0 var(--page-margin) 80px;
}

.bag[hidden],
.empty[hidden] {
  display: none;
}

.bag__items {
  flex: 1;
  max-width: 760px;
  border-top: 1px solid var(--border-default);
}

.line {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-default);
}

.line__photo {
  flex: none;
  width: 120px;
  height: 150px;
  background: var(--bg-badge);
}

.line__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.line__name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.line__stock {
  color: var(--text-placeholder);
}

.line__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.line__actions .link {
  font: 400 12px/16px var(--font-body);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.line__price {
  display: none;
}

.summary {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 16px;
  width: 440px;
  padding: 32px;
  background: var(--bg-badge);
}

.summary__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary__row dt,
.summary__row dd {
  margin: 0;
}

.summary__row--total {
  padding-top: 16px;
  border-top: 1px solid var(--border-default);
}

.summary__continue {
  align-self: center;
}

.summary__note,
.summary__issue {
  color: var(--text-placeholder);
}

.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px var(--page-margin) 96px;
  text-align: center;
}

.empty__text {
  color: var(--text-placeholder);
}

@media (max-width: 900px) {
  .page-heading {
    padding: 40px 24px 24px;
  }

  .page-heading h1 {
    font: 500 32px/40px var(--font-display);
  }

  .bag {
    flex-direction: column;
    gap: 32px;
    padding: 0 24px 48px;
  }

  .bag__items {
    width: 100%;
    max-width: none;
  }

  .line {
    gap: 16px;
  }

  .line__photo {
    width: 96px;
    height: 120px;
  }

  .line__price {
    display: block;
  }

  .line__total {
    display: none;
  }

  .summary {
    width: 100%;
    padding: 24px;
  }
}

/* ---------- Policy and About pages ---------- */
.prose {
  padding: 0 var(--page-margin) 96px;
}

.prose__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

/* Right of withdrawal form */
.withdrawal {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.withdrawal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.withdrawal__field input,
.withdrawal__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  background: var(--white);
  color: var(--text-primary);
  font: 400 14px/20px var(--font-body);
  resize: vertical;
}

.withdrawal__field input {
  height: 48px;
  padding-block: 0;
}

.withdrawal__optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-placeholder);
}

.withdrawal__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.withdrawal__consent input {
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.withdrawal__message:empty {
  display: none;
}

.withdrawal__message[data-state="error"] {
  color: #9b2c2c;
}

.withdrawal .btn {
  align-self: flex-start;
}

.prose h2 {
  padding-top: 16px;
  font: 500 20px/28px var(--font-body);
}

.prose h2:first-child {
  padding-top: 0;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 8px;
}

.prose ul {
  list-style: none;
}

.prose ul > li {
  position: relative;
  padding-left: 16px;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--icon-ink, currentColor);
}

.prose ol {
  padding-left: 28px;
}

.prose li > ul,
.prose li > ol {
  margin-top: 8px;
}

.story {
  display: flex;
  align-items: flex-start;
  gap: 96px;
  padding: 0 var(--page-margin) 96px;
}

.story__picture {
  flex: none;
  display: block;
  width: 560px;
}

.story__photo {
  display: block;
  width: 100%;
  height: 700px;
  object-fit: cover;
  background: var(--bg-badge);
}

.story__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.story__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 900px) {
  .prose {
    padding: 0 24px 64px;
  }

  .story {
    flex-direction: column;
    gap: 32px;
    padding: 0 24px 64px;
  }

  .story__picture {
    width: 100%;
  }

  .story__photo {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

/* Editorial column chapters (Figma "Our story / Layout options", option C): a narrow centred column, a numbered label to its left, a portrait under the text */
.story-chapters {
  counter-reset: chapter;
}

.story--column {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) 360px minmax(0, 2fr);
  column-gap: 32px;
  row-gap: 56px;
  align-items: start;
  padding: 0 var(--page-margin) 128px;
}

/* staggered on desktop: odd chapters sit left of centre, even chapters right of centre (mobile is a single centred column) */
.story--column:nth-child(even),
.story--column.story--right {
  grid-template-columns: minmax(0, 2fr) 360px minmax(0, 0.75fr);
}

.story--column .story__eyebrow {
  grid-column: 1;
  justify-self: end;
  padding-top: 22px;
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  counter-increment: chapter;
}

/* three digits, as in the design; fine for up to nine chapters */
.story--column .story__eyebrow::before {
  content: "(00" counter(chapter) ")\00a0\00a0";
}

.story--column .story__text {
  grid-column: 2 / span 2;
  gap: 32px;
}

.story--column .story__text > p {
  max-width: 360px;
}

.story--column .story__title {
  font: 500 56px/64px var(--font-display);
  margin-bottom: 32px;
}

.story--column .story__quote {
  max-width: 420px;
  font: 500 28px/38px var(--font-display);
}

.story--column .story__attribution {
  margin: -16px 0 16px;
  opacity: 0.7;
}

.story--column .story__text .story__action {
  align-self: flex-start;
}

.story--column .story__picture {
  grid-column: 2;
  width: 100%;
}

.story--column .story__photo {
  height: auto;
  aspect-ratio: 4 / 5;
  object-position: center 20%;
}

@media (max-width: 900px) {
  .story--column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 24px 80px;
  }

  .story--column .story__eyebrow {
    padding-top: 0;
    text-align: left;
  }

  .story--column .story__title {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 16px;
  }

  .story--column .story__text > p {
    max-width: none;
  }
}

/* ---------- Editorial layouts for edit pages (from the Our story layout options) ---------- */
/* Two portraits side by side, edge to edge (option D) */
.edit-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  padding-bottom: 128px;
}

.edit-pair img,
.edit-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-badge);
}

.edit-pair img {
  aspect-ratio: 4 / 5;
}

/* A clean row of pictures, side by side and the same size */
.edit-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  padding-bottom: 128px;
}

.edit-collage img {
  aspect-ratio: 4 / 5;
}

.edit-collage__a img { object-position: 50% 20%; }
.edit-collage__b img { object-position: 50% 25%; }
.edit-collage__d img { object-position: 50% 20%; }

/* One wide picture with a short note under it (option B) */
.edit-wide {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 96px;
}

.edit-wide__picture img {
  display: block;
  width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  object-fit: cover;
  object-position: 50% 30%;
}

.edit-wide__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--page-margin);
  text-align: center;
}

.edit-wide__title {
  font: 500 40px/48px var(--font-display);
}

.product-row--quiet {
  padding-top: 0;
}

@media (max-width: 900px) {
  .edit-pair,
  .edit-collage {
    padding-bottom: 64px;
  }

  .edit-collage {
    grid-template-columns: repeat(3, 1fr);
  }

  .edit-wide {
    gap: 28px;
    padding-bottom: 64px;
  }

  .edit-wide__text {
    padding: 0 24px;
  }

  .edit-wide__title {
    font-size: 32px;
    line-height: 40px;
  }
}

/* ---------- Our story ---------- */
.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 320px;
  padding: 48px var(--page-margin);
  color: var(--text-inverse);
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), var(--banner) center 30% / cover no-repeat;
}

/* Feature banner (taller, text bottom left, header floats over it). data-film adds the founder film once it is in place. */
.banner:is([data-film], .banner--feature) {
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 560px;
  padding-bottom: 80px;
  overflow: hidden;
  background: var(--espresso);
  text-align: left;
}

.banner:is([data-film], .banner--feature)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgb(0 0 0 / 0.5), transparent 55%), linear-gradient(to bottom, rgb(0 0 0 / 0.4), transparent 28%);
  pointer-events: none;
}

.banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner:is([data-film], .banner--feature) .banner__watch {
  position: relative;
  z-index: 2;
}

.banner__watch {
  margin-top: 20px;
}

.banner__controls {
  position: absolute;
  right: var(--page-margin);
  bottom: 32px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.banner__cc {
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.06em;
}

.banner__cc[data-state="off"] {
  opacity: 0.6;
}

.banner__video::cue {
  background: rgb(0 0 0 / 0.6);
  color: var(--white);
  font: 400 16px/1.4 var(--font-body);
}

.banner__picture {
  position: absolute;
  inset: 0;
}

.banner__picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-header-style="over"] .breadcrumb--over {
  top: var(--header-height);
}

.story-transcript {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px var(--page-margin) 0;
}

.story-transcript[hidden] {
  display: none;
}

.story-transcript summary {
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.story-transcript details > div {
  padding-top: 16px;
}

.intro {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px var(--page-margin);
  text-align: center;
}

.story--founder {
  padding-top: 0;
}

.story--reverse .story__text {
  align-items: flex-start;
}

.story__text h2 {
  margin-bottom: 8px;
}

.story__sign {
  margin-top: 8px;
}

.story__text .story__action {
  align-self: flex-start;
}

.quote__sub {
  max-width: 640px;
}

@media (max-width: 900px) {
  .banner {
    min-height: 240px;
    padding: 40px 24px;
  }

  .banner[data-film] {
    min-height: 440px;
    padding-bottom: 72px;
  }

  .banner__controls {
    right: 24px;
    bottom: 24px;
  }

  .story-transcript {
    padding: 24px 24px 0;
  }

  .intro {
    padding: 56px 24px;
  }

  .story--reverse {
    flex-direction: column-reverse;
  }
}

/* ---------- Search panel ---------- */
.search {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--bg-page);
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(-16px);
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.45s;
}

.search.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.scrim:not([hidden]) {
  animation: scrim-in 0.35s ease;
}

@keyframes scrim-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search {
    transition: none;
  }

  .scrim:not([hidden]) {
    animation: none;
  }
}

.search__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-height);
  padding: 0 var(--page-margin);
  border-bottom: 1px solid var(--border-default);
}

.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.search__input::-webkit-search-cancel-button {
  display: none;
}

.search__input::placeholder {
  color: var(--text-placeholder);
}

.search__idle {
  display: flex;
  gap: 48px;
  padding: 40px var(--page-margin) 56px;
}

.search__idle[hidden],
.search__results[hidden],
.search__products[hidden] {
  display: none;
}

.search__popular {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 20px;
  width: 200px;
}

.search__heading {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.6;
}

.search__chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.search__chips a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-badge);
  transition: background 0.2s;
}

.search__chips a:hover {
  background: var(--sand-200);
}

.search__products {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.search__products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}

.search__arrows {
  display: flex;
  gap: 8px;
}

.search__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* The pictures lead: four across, as large as the panel allows */
.search__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.search__track::-webkit-scrollbar {
  display: none;
}

.search__track > .card {
  flex: 0 0 calc((100% - 30px) / 4);
  scroll-snap-align: start;
}

.search__track .card__details {
  padding: 0;
}

.search__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.search__results {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px var(--page-margin) 64px;
}

.search__grid--results {
  grid-template-columns: repeat(4, 1fr);
}

/* the same room under each piece as on the collection pages, so the swatches do not touch the next row */
.search__grid--results .card {
  gap: 14px;
  padding-bottom: 40px;
}

.search .card__quick-add {
  display: none;
}

.search .card__quick-add {
  display: none;
}

/* Quiet type under the pictures */
.search .card__name {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.3px;
}

.search .card__details .t-body-m {
  font-size: 13px;
  line-height: 18px;
}

@media (max-width: 900px) {
  .search__bar {
    gap: 8px;
    padding: 0 16px 0 24px;
  }

  .search__idle {
    flex-direction: column;
    gap: 24px;
    padding: 24px 24px 32px;
  }

  .search__popular {
    width: auto;
  }

  .search__chips {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .search__arrows {
    display: none;
  }

  .search__track > .card {
    flex-basis: calc((100% - 10px) / 2.3);
  }

  .search__results {
    padding: 32px 24px 40px;
  }

  .search__grid--results {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Checkout ---------- */
.checkout-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-margin);
  border-bottom: 1px solid var(--border-default);
}

.checkout-header__secure {
  justify-self: end;
  color: var(--text-placeholder);
}

.checkout-header__back {
  justify-self: start;
}

.checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
}

/* A narrow form column, as on the PDPaola checkout: the form sits against the centre line and the
   summary panel starts beside it. */
.checkout__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 580px;
  justify-self: end;
  padding: 40px 34px 64px;
}

.checkout__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout__row {
  display: flex;
  gap: 12px;
}

.checkout__section .field input,
.checkout__section .field select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 14px/21px var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

.checkout__section .field[hidden] {
  display: none;
}

/* Labels sit inside the field and shrink to the top edge once there is something to read. */
.checkout__section .field {
  position: relative;
  display: block;
}

.checkout__section .field input {
  padding-top: 14px;
}

.checkout__section .field textarea {
  width: 100%;
  padding: 22px 16px 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 14px/21px var(--font-body);
  resize: vertical;
}

.field__label {
  position: absolute;
  top: 14px;
  left: 17px;
  right: 17px;
  overflow: hidden;
  color: var(--text-placeholder);
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, line-height 0.15s ease;
}

.field input:focus ~ .field__label,
.field input:not(:placeholder-shown) ~ .field__label,
.field textarea:focus ~ .field__label,
.field textarea:not(:placeholder-shown) ~ .field__label {
  top: 6px;
  font-size: 12px;
  line-height: 14px;
}

/* Country select: its label always sits at the top, with a chevron */
.checkout__section .field--select select {
  appearance: none;
  padding-top: 14px;
  padding-right: 40px;
}

.field--select .field__label {
  top: 6px;
  font-size: 12px;
  line-height: 14px;
}

.field__chevron,
.field__icon {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.field--search input {
  padding-right: 44px;
}

/* Address suggestions */
.lookup {
  position: relative;
}

.lookup__list {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  z-index: 10;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
}

.lookup__list[hidden] {
  display: none;
}

.lookup__list li {
  padding: 12px 16px;
  cursor: pointer;
}

.lookup__list li:hover,
.lookup__list li[aria-selected="true"] {
  background: var(--bg-highlight);
}

/* Tick boxes: news and offers, account, gift */
.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
}

.check__box {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
}

.check input:checked + .check__box {
  border-color: var(--ink);
  background: var(--ink);
}

.check input:checked + .check__box::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border: solid var(--white);
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Express checkout, with an OR line beneath */
.express {
  gap: 20px;
}

.express[hidden] {
  display: none;
}

.express__label {
  text-align: center;
  color: var(--text-placeholder);
}

.account {
  gap: 20px;
}

.account[hidden] {
  display: none;
}

.account__guest {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account__text {
  color: var(--text-placeholder);
}

.account__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account__form[hidden],
.account__buttons[hidden] {
  display: none;
}

.account .field {
  position: relative;
  display: block;
}

.account .field input {
  width: 100%;
  height: 48px;
  padding: 14px 16px 0;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 14px/21px var(--font-body);
}

.account__error {
  font-weight: 600;
}

.account__back {
  align-self: flex-start;
}

.express__or {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-placeholder);
  letter-spacing: 1.2px;
}

.express__or::before,
.express__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* The "?" beside Phone */
.field--help input {
  padding-right: 48px;
}

.help {
  position: absolute;
  top: 12px;
  right: 14px;
}

.help__button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  font: 500 12px/1 var(--font-body);
}

.help__tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--bg-page);
  visibility: hidden;
}

.help__button:hover + .help__tip,
.help__button:focus-visible + .help__tip {
  visibility: visible;
}

.summary-toggle {
  display: none;
}

/* Gift orders: its own boxed section so it is hard to miss */
.gift {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border-soft);
}

.gift__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.gift__text {
  color: var(--text-placeholder);
}

.gift__card {
  display: grid;
  flex: none;
  place-items: center;
  width: 112px;
  align-self: stretch;
  min-height: 112px;
  background: var(--bg-badge);
}

.gift__card .logo {
  width: 64px;
  height: 22px;
}

.checkout__muted {
  color: var(--text-placeholder);
}

.checkout__notice {
  padding: 16px;
  border: 1px solid var(--border-default);
}

.checkout__error {
  color: var(--text-primary);
  font-weight: 600;
}

.checkout__links {
  display: flex;
  gap: 24px;
  color: var(--text-placeholder);
}

.checkout__links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-input);
}

.delivery-option__radio {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-input);
  border-radius: 50%;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delivery-option {
  cursor: pointer;
}

.delivery-option[hidden] {
  display: none;
}

.delivery-option.is-selected {
  border-color: var(--ink);
}

.delivery-option:not(.is-selected) .delivery-option__radio::after {
  display: none;
}

.delivery-option__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.delivery-option__text {
  flex: 1;
}

.checkout__summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px var(--page-margin) 64px 48px;
  border-left: 1px solid var(--border-default);
  background: var(--bg-badge);
}

.checkout__summary > * {
  width: 100%;
  max-width: 430px;
}

.discount {
  display: flex;
  gap: 12px;
}

.discount__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
  text-transform: uppercase;
}

.discount__input::placeholder {
  text-transform: none;
  color: var(--text-placeholder);
}

.discount__message {
  margin-top: -12px;
}

.discount__message[hidden],
.summary__row[hidden] {
  display: none;
}

.checkout-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.checkout-line__photo {
  position: relative;
  flex: none;
  width: 64px;
  height: 80px;
  background: var(--white);
}

.checkout-line__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-line__qty {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: 500 12px/16px var(--font-body);
}

.checkout-line__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.confirmation__order[hidden] {
  display: none;
}

.confirmation__actions {
  margin-top: 16px;
}

.prose__button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.prose__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 20px;
}

.prose__table th,
.prose__table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
}

.prose__table th {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose__table code {
  font-size: 12px;
}

/* ---------- Cookie choices ---------- */
.cookie-card {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(440px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-card.is-in {
  opacity: 1;
  transform: none;
}

.cookie__eyebrow {
  margin: 0 0 10px;
  color: var(--text-placeholder);
  font: 500 11px/16px var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cookie__title {
  margin: 0 0 12px;
  font: 500 24px/30px var(--font-display);
}

.cookie__text {
  margin: 0 0 20px;
  font: 400 13px/20px var(--font-body);
}

.cookie__text a,
.cookie__more {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie__actions {
  display: flex;
  gap: 8px;
}

.cookie__actions .btn {
  flex: 1;
}

/* In the card the two choices are stacked at equal size, so rejecting is exactly as easy as accepting */
.cookie-card .cookie__actions {
  flex-direction: column;
}

.cookie-card .cookie__actions .btn {
  flex: none;
  width: 100%;
}

.cookie__more {
  display: inline-block;
  margin-top: 16px;
  font: 400 13px/20px var(--font-body);
}

.cookie__more--button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(31, 30, 32, 0.55);
}

.cookie-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 40px;
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
}

.cookie-panel__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--border-default);
}

.cookie-row:last-of-type {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-default);
}

.cookie-row h3 {
  margin: 0 0 6px;
  font: 600 13px/20px var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cookie-row p {
  margin: 0;
  font: 400 13px/20px var(--font-body);
}

.cookie-row__fixed {
  padding-top: 2px;
  color: var(--text-placeholder);
  font: 400 12px/20px var(--font-body);
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-switch span[aria-hidden] {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  background: var(--white);
  transition: background 0.2s ease;
}

.cookie-switch span[aria-hidden]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-switch input:checked + span[aria-hidden] {
  background: var(--ink);
}

.cookie-switch input:checked + span[aria-hidden]::after {
  background: var(--white);
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + span[aria-hidden],
.cookie-card button:focus-visible,
.cookie-panel button:focus-visible,
.cookie-card a:focus-visible,
.cookie-panel a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.cookie-panel .cookie__actions {
  margin-top: 20px;
}

.footer__policy button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer__policy button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 600px) {
  .cookie-card {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    padding: 24px 20px 20px;
  }

  .cookie__actions {
    flex-direction: column;
  }

  .cookie-panel {
    padding: 32px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-card,
  .cookie-switch span[aria-hidden],
  .cookie-switch span[aria-hidden]::after {
    transition: none;
  }
}

/* ---------- Account page ---------- */
.acct {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 112px;
}

.acct section,
.acct__member {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.acct section[hidden],
.acct__loading[hidden],
.acct__form[hidden] {
  display: none;
}

.acct__guest {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.acct__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acct__error {
  padding: 12px 14px;
  border: 1px solid var(--ink);
  font-weight: 600;
}

.acct__link,
.acct__order a {
  align-self: flex-start;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.acct__switch {
  color: var(--text-placeholder);
}

.acct__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.acct__email,
.acct__muted {
  color: var(--text-placeholder);
}

.acct__orders {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.acct__order {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-default);
}

.acct__order > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acct__total {
  text-align: right;
}

.acct .btn[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .acct {
    padding: 40px 16px 80px;
  }

  .acct__order {
    grid-template-columns: 1fr auto;
  }

  .acct__order > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* The account, reset and confirmation pages use the same floating-label fields as checkout. */
.acct .field,
.reset .field {
  position: relative;
  display: block;
}

.acct .field input,
.reset .field input {
  width: 100%;
  height: 48px;
  padding: 14px 16px 0;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 14px/21px var(--font-body);
}

.acct .field input:focus,
.reset .field input:focus {
  outline: 0;
  border-color: var(--ink);
}

.reset {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
  padding: 80px 24px 96px;
  text-align: center;
}

.reset__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  text-align: left;
}

.reset__form[hidden],
.reset__done[hidden] {
  display: none;
}

.reset__error {
  padding: 12px 14px;
  border: 1px solid var(--ink);
  font-weight: 600;
}

.reset__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.reset-link {
  align-self: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .checkout-header {
    padding: 0 16px;
  }

  .checkout {
    display: flex;
    flex-direction: column-reverse;
  }

  .checkout__form {
    padding: 32px 24px 48px;
  }

  .checkout__summary {
    padding: 24px;
    border-left: 0;
    border-bottom: 1px solid var(--border-default);
  }

  .checkout__summary > * {
    max-width: none;
  }
  /* The order summary folds away on a phone; the total stays visible in the bar */
  .summary-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .summary-toggle .icon {
    width: 14px;
    height: 14px;
  }

  .summary-toggle .icon--minus,
  .summary-toggle[aria-expanded="true"] .icon--plus {
    display: none;
  }

  .summary-toggle[aria-expanded="true"] .icon--minus {
    display: block;
  }

  .summary-toggle__total {
    margin-left: auto;
  }

  .checkout__summary:not(.is-open) > :not(.summary-toggle) {
    display: none;
  }
}

/* ---------- Sign-up popup ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup[hidden] {
  display: none;
}

.popup__scrim {
  position: absolute;
  inset: 0;
  background: var(--bg-scrim);
}

.popup__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 400px 1fr;
  width: 800px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  overflow-y: auto;
  background: var(--bg-page);
  color: var(--text-primary);
  text-align: center;
}

.popup__photo {
  min-height: 100%;
  background: var(--bg-badge);
}

.popup__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 64px 40px 48px;
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.popup__logo {
  width: 140px;
  height: 45px;
  --src: url("/images/logo-wordmark.svg");
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.popup__form[hidden] {
  display: none;
}

.popup__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-primary);
}

.popup__message:empty {
  display: none;
}

.popup__message {
  font-weight: 600;
}

.popup__fine {
  color: var(--text-placeholder);
}

@media (max-width: 900px) {
  .popup {
    align-items: flex-end;
  }

  .popup__dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
  }

  .popup__photo {
    flex: none;
    min-height: 0;
    height: 200px;
  }

  .popup__body {
    padding: 32px 24px 40px;
  }

  .popup__close {
    background: var(--white);
  }
}

/* ---------- Cart drawer ---------- */
.cart-drawer__continue {
  align-self: center;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: 440px;
  max-width: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s, visibility 0.25s;
}

.cart-drawer.is-open {
  transform: none;
  visibility: visible;
}

[data-drawer-scrim] {
  z-index: 75;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 16px 0 24px;
  border-bottom: 1px solid var(--border-default);
  flex: none;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.cart-drawer__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-drawer .line {
  gap: 16px;
}

.cart-drawer .line:last-child {
  border-bottom: 0;
}

.cart-drawer .line__photo {
  width: 96px;
  height: 120px;
}

.cart-drawer .line__price {
  display: block;
}

.cart-drawer .line__total {
  display: none;
}

.cart-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-default);
  flex: none;
}

.cart-drawer__footer[hidden] {
  display: none;
}

.cart-drawer__footer .summary__row--total {
  padding-top: 0;
  border-top: 0;
}

.cart-drawer__note,
.cart-drawer__muted {
  color: var(--text-placeholder);
}

.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
  text-align: center;
}

.cart-drawer__error {
  padding: 48px 0;
}

@media (max-width: 900px) {
  .cart-drawer {
    width: 100%;
  }
}

/* Reduced prices: the new price in the normal colour, the old price struck through beside it (no colour change, no badge) */
.price__was {
  margin-left: 8px;
  color: var(--text-placeholder);
  font-weight: 400;
  text-decoration: line-through;
}

.search__arrow[data-search-prev] .icon {
  transform: rotate(90deg);
}

.search__arrow[data-search-next] .icon {
  transform: rotate(-90deg);
}

/* ---------- Lookbook strip ---------- */
.lookbook {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 0 72px;
  text-align: center;
}

.lookbook[hidden] {
  display: none;
}

.lookbook__intro {
  max-width: 520px;
  padding: 0 24px;
  color: var(--text-placeholder);
}

.lookbook__stage {
  position: relative;
  width: 100%;
  margin-top: 28px;
}

.lookbook__track {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 24px calc(50% - 140px) 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: 0;
}

.lookbook__track::-webkit-scrollbar {
  display: none;
}

.lookbook__tile {
  flex: 0 0 280px;
  scroll-snap-align: center;
  text-align: left;
}

/* Every tile keeps its place; the one in the middle simply grows, so nothing jumps while you scroll */
.lookbook__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-badge);
  transform: scale(0.82);
  transform-origin: center bottom;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lookbook__tile.is-center .lookbook__media {
  transform: scale(1);
}

.lookbook__media img,
.lookbook__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookbook__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  color: var(--white);
  cursor: pointer;
}

.lookbook__tile.is-center .lookbook__sound {
  display: flex;
}

.lookbook__sound .lookbook__on,
.lookbook__sound[data-state="on"] .lookbook__off {
  display: none;
}

.lookbook__sound[data-state="on"] .lookbook__on {
  display: block;
}

.lookbook__product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lookbook__tile.is-center .lookbook__product {
  opacity: 1;
}

.lookbook__product img {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: var(--bg-badge);
}

.lookbook__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lookbook__price {
  font-size: 12px;
  font-weight: 600;
}

.lookbook__arrow {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.9);
}

.lookbook__arrow:first-of-type {
  left: var(--page-margin);
}

.lookbook__arrow:last-of-type {
  right: var(--page-margin);
}

.lookbook__arrow:first-of-type .icon {
  transform: rotate(90deg);
}

.lookbook__arrow:last-of-type .icon {
  transform: rotate(-90deg);
}

@media (max-width: 900px) {
  .lookbook {
    padding: 56px 0 48px;
  }

  .lookbook__track {
    padding-inline: calc(50% - 120px);
  }

  .lookbook__tile {
    flex-basis: 240px;
  }

  .lookbook__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lookbook__media,
  .lookbook__product {
    transition: none;
  }
}

/* ---------- Bag drawer layout: delivery bar, count with "Empty bag", rows with the price beside the name, total, policy links ---------- */
.cart-drawer__delivery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 24px 16px;
  background: var(--bg-badge);
  flex: none;
}

.cart-drawer__delivery[hidden],
.cart-drawer__sub[hidden] {
  display: none;
}

.cart-drawer__bar {
  display: block;
  height: 4px;
  background: rgb(0 0 0 / 0.12);
}

.cart-drawer__bar > span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width 0.3s ease;
}

.cart-drawer__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
  flex: none;
}

.cart-drawer__count {
  margin: 0;
  font: 600 12px/16px var(--font-body);
}

.cart-drawer .cart-drawer__empty-link {
  font: 400 12px/16px var(--font-body);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cart-drawer .line__details {
  align-self: stretch;
  gap: 4px;
}

.cart-drawer .line__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-drawer .line__head .line__price {
  flex: none;
  margin: 0;
}

.cart-drawer .line__actions {
  justify-content: space-between;
  margin-top: auto;
}

.cart-drawer__footer .summary__row--total {
  align-items: baseline;
  text-transform: uppercase;
}

.cart-drawer__view {
  align-self: center;
  font: 400 13px/18px var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-drawer__view:hover {
  text-decoration-thickness: 2px;
}

.cart-drawer__policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cart-drawer__policies a {
  font: 400 11px/16px var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-drawer__policies a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Account page: sign in on the left, create an account on the right, a hairline between ---------- */
.account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px var(--page-margin) 160px;
}

.account__column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 64px;
}

.account__column:first-child {
  padding-left: 0;
}

.account__column:last-child {
  padding-right: 0;
  border-left: 1px solid var(--border-default);
}

.account__title {
  margin: 0;
  font: 600 16px/24px var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 24px;
}

.account__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgb(0 0 0 / 0.25);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font: 400 14px/21px var(--font-body);
}

.account__input:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}

.account__perks {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.account__perks li {
  padding: 2px 0;
}

.account__form .account__action {
  margin-top: auto;
}

.account__note {
  margin: 0;
  color: var(--text-placeholder);
}

@media (max-width: 900px) {
  .account {
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 48px 24px 96px;
  }

  .account__column,
  .account__column:first-child,
  .account__column:last-child {
    padding: 0;
    border-left: 0;
  }

  .account__form .account__action {
    margin-top: 8px;
  }
}

/* ---------- Account panel: slides in from the right when the account icon is pressed ---------- */
.account-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: 480px;
  max-width: 100%;
  overflow-y: auto;
  background: var(--bg-page);
  color: var(--text-primary);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s, visibility 0.25s;
}

.account-panel.is-open {
  transform: none;
  visibility: visible;
}

[data-account-scrim] {
  z-index: 75;
}

.account-panel__top {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 32px 40px;
  background: var(--bg-inverse);
  color: var(--text-inverse-ivory);
}

.account-panel__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.account-panel__title {
  margin: 0;
  padding-right: 48px;
  font: 500 32px/40px var(--font-display);
}

.account-panel__benefits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-panel__benefits li {
  position: relative;
  padding: 4px 0 4px 28px;
}

.account-panel__benefits li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 4px;
  width: 6px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.account-panel__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 24px 32px 0;
  border-bottom: 1px solid var(--border-default);
}

.account-panel__tab {
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--text-placeholder);
  font: 600 13px/18px var(--font-body);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

.account-panel__tab.is-active {
  border-bottom-color: var(--ink);
  color: var(--text-primary);
}

.account-panel__notes {
  display: grid;
}

.account-panel__notes > .account__note {
  grid-area: 1 / 1;
}

.account-panel__notes > .account__note:not(.is-active) {
  visibility: hidden;
}

.account-panel__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.account-panel__terms {
  margin: auto 0 0;
  padding: 24px 32px 32px;
  color: var(--text-placeholder);
  text-align: center;
}

.account-panel__terms a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .account-panel {
    width: 100%;
  }
}

/* ---------- Dropdowns (see /js/dropdown.js): a styled list instead of the browser's own, wherever there is a <select> ---------- */
.dd {
  position: relative;
  width: 100%;
}

.dd__native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dd__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-quiet);
  border-radius: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 14px/21px var(--font-body);
  text-align: left;
  cursor: pointer;
}

.dd__button:hover,
.dd.is-open .dd__button {
  border-color: var(--border-quiet);
}

.dd__button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.dd__button.is-placeholder .dd__text {
  color: var(--text-placeholder);
}

.dd__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.dd.is-open .dd__chevron {
  transform: rotate(180deg);
}

.dd__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: -1px;
  max-height: 280px;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border-quiet);
  background: var(--bg-page);
  outline: none;
}

.dd .dd__list {
  display: block;
}

.dd .dd__list[hidden] {
  display: none;
}

.dd.is-up .dd__list {
  top: auto;
  bottom: 100%;
  margin: 0 0 -1px;
}

.dd__option {
  padding: 12px 16px;
  color: var(--text-primary);
  font: 400 14px/21px var(--font-body);
  cursor: pointer;
}

.dd__option.is-active {
  background: var(--bg-highlight);
}

.dd__option[aria-selected="true"] {
  font-weight: 600;
}

.dd__option--placeholder {
  color: var(--text-placeholder);
}

.dd__option[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}

/* the footer's country picker sits on the dark footer and has its own chevron, so it takes the dark look */
.select .icon {
  display: none;
}

.select .dd__button {
  background: transparent;
  border-color: var(--white);
  color: var(--text-inverse-ivory);
}

.footer__policy .dd__button {
  height: 32px;
  padding: 0 10px;
  border-color: var(--border-on-image);
  color: var(--text-inverse-muted);
  font-size: 13px;
  line-height: 18px;
}

.footer__policy .dd__button:hover,
.footer__policy .dd.is-open .dd__button {
  border-color: var(--white);
}

.select .dd__list {
  border-color: var(--white);
  background: var(--bg-inverse);
}

.select .dd__option {
  color: var(--text-inverse-ivory);
  font-size: 13px;
}

.select .dd__option.is-active {
  background: rgb(255 255 255 / 0.12);
}

/* everything in a dropdown stays on one line: the button shows its whole text, and the list is as wide as its longest choice */
.dd .dd__text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dd .dd__list {
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 32px);
}

.dd .dd__option {
  white-space: nowrap;
}

/* the footer's country picker: wide enough to show "United Kingdom (GBP £)" in full, with compact choices */
.footer__policy .footer__region {
  width: 236px;
}

.footer__policy .dd__button {
  gap: 8px;
}

.footer__policy .dd__option {
  padding: 9px 10px;
}

/* under the mock-up: what it is, and that its size is approximate */
.gallery__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.gallery__note {
  color: var(--text-placeholder);
}

/* ---------- The title and its wishlist heart ---------- */
.info__titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wish {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 2px -4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #8f8e8d; /* a light grey line when it is empty */
  cursor: pointer;
  transition: opacity 0.15s, color 0.15s;
}

.wish:hover {
  color: var(--ink);
}

.wish:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

/* 10% smaller than before; the line is allowed to run to the edge of the drawing so a fine stroke is never cut off */
.wish__icon {
  width: 20px;
  height: 18px;
  overflow: visible;
}

/* empty: just a thin outline of the heart (the heavier ring is hidden) */
.wish__line {
  display: none;
}

.wish__fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linejoin: round;
}

/* saved: the heart is filled, in a softer tone than the ink */
.wish[aria-pressed="true"] {
  color: #5a5658;
}

.wish[aria-pressed="true"] .wish__fill {
  fill: currentColor;
}

/* ---------- Wishlist page ---------- */
.wish-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.wish-item .card {
  padding-bottom: 0;
}

/* cards of different heights: the Remove links line up along the bottom of each row */
[data-wish-grid] {
  align-items: stretch;
}

.wish-item__remove {
  margin-top: auto;
}

@media (max-width: 900px) {
  .wish-item .wish-item__remove {
    padding-left: 12px;
  }
}

.wish-item__remove {
  align-self: flex-start;
  padding-left: 16px;
  color: var(--text-placeholder);
  font: 400 12px/18px var(--font-body);
}

.wish-empty[hidden] {
  display: none;
}

.wish-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 520px;
  padding: 24px var(--page-margin) 64px;
}

/* ---------- Heart on product cards, and the saved count in the header ---------- */
.card__wish {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  mix-blend-mode: difference; /* light over a dark photo, dark over a light one */
  cursor: pointer;
  transition: opacity 0.15s;
}

.card__wish:hover {
  opacity: 0.75;
}

.card__wish:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.card__wish .icon {
  width: 20px;
  height: 20px;
}

.card__wish[aria-pressed="true"] .icon {
  fill: currentColor;
}

/* on the wishlist page itself the "Remove" link does this job */
.wish-item .card__wish {
  display: none;
}

.icon-btn__wish-count {
  font: 500 12px/18px var(--font-body);
  letter-spacing: 0.6px;
}

.icon-btn__wish-count[hidden] {
  display: none;
}

/* ---------- The note after a first save to the wishlist ---------- */
.wish-note {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(380px, calc(100% - 32px));
  padding: 16px 40px 16px 16px;
  background: var(--ink);
  color: #fff;
  transform: translateX(-50%);
}

.wish-note__title {
  font-weight: 500;
}

.wish-note__text {
  color: rgba(255, 255, 255, 0.72);
}

.wish-note__links {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.wish-note .link {
  color: #fff;
}

.wish-note__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* On a phone the header carries search, wishlist and bag on the right: slimmer buttons keep the logo in the middle */
@media (max-width: 900px) {
  .site-header__side--right .icon-btn {
    min-width: 30px;
    padding: 4px;
    gap: 2px;
  }
}

/* ---------- Mega menu (wide screens): a panel under the header for New in, Necklaces, Earrings and Bracelets ---------- */
.site-header.is-mega {
  color: var(--text-primary);
  background: var(--bg-page);
  border-bottom-color: var(--border-default);
}

.mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 39;
  display: none;
  color: var(--text-primary);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-default);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}

@media (min-width: 1320px) {
  .mega {
    display: block;
  }
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
}

.mega__panel {
  display: grid;
  grid-template-columns: 200px 200px 1fr 260px 260px;
  gap: 24px 40px;
  align-items: start;
  padding: 40px var(--page-margin) 48px;
}

.mega__panel[hidden] {
  display: none;
}

.mega__links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* column headings: sentence case and a little lighter than the capitals in the header, so the panel does not compete with it */
.mega__heading {
  font: 600 13px/18px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.mega__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega__links a {
  color: var(--text-primary);
}

.mega__links a:hover,
.mega__links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* the first picture tile is pushed to the right with the second: they sit together at the end of the row */
.mega__tile:nth-of-type(1) {
  grid-column: 4;
}

.mega__tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega__tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.mega__label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mega__tile:hover .mega__label,
.mega__tile:focus-visible .mega__label {
  text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .mega {
    transition: none;
  }
}

/* Wide screens (1320px and up) show the text tabs, with a mega menu behind each and behind "More". Tablets and phones get the burger, which opens the side drawer, and no text tabs. */
.menu-btn {
  width: 40px;
  height: 40px;
  padding: 8px;
}

.menu-btn__label {
  display: none;
}

.menu-btn__icon {
  display: block;
}

button.site-nav__link {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

@media (min-width: 1320px) {
  .menu-btn {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    margin-left: -10px;
  }
}

.mega__panel--more {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 260px 260px;
}

/* ---------- Side menu, as a full-screen menu (tablets and phones; wide screens use the mega menus) ---------- */
.menu-panel {
  right: 0;
  width: 100%;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  /* hides after it has faded out; appears at once so focus can move into it */
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s 0.25s;
}

.menu-panel.is-open {
  transform: none;
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s;
}

.menu-panel__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  flex: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-margin);
  background: var(--bg-page);
}

.menu-panel__bar .icon-btn:first-child {
  justify-self: start;
  margin-left: -8px;
}

.menu-panel__bar-end {
  display: flex;
  align-items: center;
  justify-self: end;
  margin-right: -8px;
}

.menu-panel__views {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.menu-panel__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px var(--page-margin) 0;
}

.menu-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

/* every heading the same size, in capitals, as on PDPAOLA */
.menu-group a,
.menu-group button {
  display: block;
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: 600 20px/24px var(--font-body);
  letter-spacing: 0.4px;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-group a:hover,
.menu-group button:hover,
.menu-group a:focus-visible,
.menu-group button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.menu-group li[hidden] {
  display: none;
}

.menu-group .menu-group__accent {
  color: var(--heritage-orange, #cc5500);
}

.menu-panel__strip {
  display: flex;
  gap: 4px;
  margin: auto calc(var(--page-margin) * -1) 0;
  padding: 0 var(--page-margin);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--page-margin);
  scrollbar-width: none;
}

.menu-panel__strip::-webkit-scrollbar {
  display: none;
}

.menu-panel__strip .menu-tile {
  flex: 0 0 29%;
  scroll-snap-align: start;
}

.menu-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-primary);
}

.menu-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.menu-tile__label {
  font: 500 11px/14px var(--font-body);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.menu-tile:hover .menu-tile__label,
.menu-tile:focus-visible .menu-tile__label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 20px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border-default);
  font: 500 11px/16px var(--font-body);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.menu-panel__foot a {
  white-space: nowrap;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-panel__foot-links {
  display: flex;
  gap: 14px;
}

/* the Collections view slides in over the list */
.menu-panel__sub {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0 var(--page-margin) 32px;
  overflow-y: auto;
  background: var(--bg-page);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s 0.25s;
}

.menu-panel.is-sub .menu-panel__sub {
  transform: none;
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s;
}

.menu-panel__back {
  margin-left: -8px;
}

.menu-panel__back .icon {
  transform: rotate(180deg);
}

.menu-panel__subtitle {
  margin: 4px 0 16px;
  font: 600 20px/24px var(--font-body);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.menu-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 4px;
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel,
  .menu-panel__sub {
    transition: none;
  }
}

/* ---------- Bespoke block on the home page: heading, then the portrait film beside one photo with a short caption ---------- */
/* Plain section heading, left aligned: Bespoke Name Necklaces, New arrivals */
.section-heading {
  padding: 96px 24px 48px;
}

.section-heading__title {
  margin: 0;
  font: 500 32px/40px var(--font-display);
}

/* the categories section already ends with its own bottom space; the heading after it adds none on top */
.collections + .bespoke .section-heading {
  padding-top: 0;
}

.bespoke__split {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 56px;
  padding: 24px 24px 0;
}

.bespoke__film {
  position: relative;
  flex: none;
  height: min(86vh, 860px);
  height: min(86dvh, 860px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bg-badge);
}

.bespoke__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the film's buttons sit on a soft dark backing so they read on the pale film */
.bespoke__film .hero__controls {
  right: 16px;
  bottom: 16px;
}

.bespoke__film .hero__control {
  background: rgb(0 0 0 / 0.35);
}

.bespoke__film .hero__control:hover,
.bespoke__film .hero__control:focus-visible {
  background: rgb(0 0 0 / 0.55);
}

.bespoke__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 380px;
  max-width: 100%;
}

.bespoke__photo {
  display: block;
  width: 100%;
  height: auto;
}

.bespoke__caption {
  padding-top: 32px;
}

.bespoke__heading {
  margin: 0 0 12px;
  font: 500 32px/40px var(--font-display);
}

.bespoke__caption .t-body-m {
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .section-heading {
    padding: 64px 16px 32px;
  }

  .bespoke__split {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 8px 16px 0;
  }

  .bespoke__film {
    width: min(100%, 420px);
    height: auto;
  }

  .bespoke__side {
    width: min(100%, 420px);
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bespoke__film .hero__controls {
    display: none;
  }
}

/* iOS Safari zooms the page when a form field with text under 16px is tapped, so on touch screens every form field uses 16px text. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
  textarea,
  select {
    font-size: 16px;
  }
}
