:root {
  color-scheme: light;
  --bg: #fbf8f3;
  --bg-soft: #f3ede4;
  --ink: #1f1d1b;
  --ink-soft: #4a4540;
  --taupe: #6f665e;
  --gold: #a8834c;
  --on-gold: #ffffff;
  --media: #ffffff;
  --hairline: rgba(31, 29, 27, 0.12);
  --hairline-strong: rgba(31, 29, 27, 0.28);
  --veil: rgba(251, 248, 243, 0.94);
  --scrim: rgba(31, 29, 27, 0.4);
  --danger: #9d3b3b;
  --danger-ink: #7d2f2f;
  --haze-gold: rgba(168, 131, 76, 0.22);
  --haze-taupe: rgba(140, 130, 122, 0.2);
  --shell: min(1360px, 100%);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --tracking: 0.14em;
}

html[dir="rtl"] {
  --font-display: "Amiri", Georgia, serif;
  --font-body: "Tajawal", "Helvetica Neue", Arial, sans-serif;
  --tracking: 0;
}

/* Flipping the theme rewrites the palette under elements that are mid-transition
   on colour, and Chrome does not re-run those transitions when the change came
   from a custom property - the header links keep the old palette until the next
   reload. Switching with transitions off for one frame avoids that, and lands
   the new theme in a single step instead of a slow fade. */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

/* Dark mode. Warm near-black rather than grey - the same cream and gold
   read back at low light, so the shop keeps its face after dark. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #131110;
    --bg-soft: #1d1a17;
    --ink: #f2ece2;
    --ink-soft: #c5bcb0;
    --taupe: #9a8f83;
    --gold: #c8a165;
    --on-gold: #17140f;
    --media: #ffffff;
    --hairline: rgba(242, 236, 226, 0.14);
    --hairline-strong: rgba(242, 236, 226, 0.32);
    --veil: rgba(19, 17, 16, 0.94);
    --scrim: rgba(0, 0, 0, 0.6);
    --danger: #c96a6a;
    --danger-ink: #e6a8a8;
    --haze-gold: rgba(200, 161, 101, 0.16);
    --haze-taupe: rgba(154, 143, 131, 0.12);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131110;
  --bg-soft: #1d1a17;
  --ink: #f2ece2;
  --ink-soft: #c5bcb0;
  --taupe: #9a8f83;
  --gold: #c8a165;
  --on-gold: #17140f;
  --media: #ffffff;
  --hairline: rgba(242, 236, 226, 0.14);
  --hairline-strong: rgba(242, 236, 226, 0.32);
  --veil: rgba(19, 17, 16, 0.94);
  --scrim: rgba(0, 0, 0, 0.6);
  --danger: #c96a6a;
  --danger-ink: #e6a8a8;
  --haze-gold: rgba(200, 161, 101, 0.16);
  --haze-taupe: rgba(154, 143, 131, 0.12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--hairline);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
}

html[dir="rtl"] .eyebrow {
  text-transform: none;
  font-weight: 500;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--veil);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1.35rem;
}

/* The store-wide sale strip. Sits under the header on every page while a sale
   is running, and is removed from the document entirely when one is not. */
.sale-banner {
  background: var(--gold);
  color: var(--on-gold);
  text-align: center;
  padding: 0.6rem var(--gutter);
  font-size: 0.78rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}

html[dir="rtl"] .sale-banner {
  text-transform: none;
  font-size: 0.95rem;
}

.sale-banner[hidden] {
  display: none;
}

.brand-mark {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

html[dir="rtl"] .brand-mark {
  letter-spacing: 0;
}

.nav-primary {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: center;
}

.nav-primary a,
.nav-actions a,
.nav-actions button {
  font-size: 0.78rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

html[dir="rtl"] .nav-primary a,
html[dir="rtl"] .nav-actions a,
html[dir="rtl"] .nav-actions button {
  text-transform: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-primary a:hover,
.nav-actions a:hover,
.nav-actions button:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.75rem);
  align-items: center;
  justify-content: flex-end;
}

.lang-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--taupe);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.theme-icon--sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-icon--sun {
    display: block;
  }

  html:not([data-theme="light"]) .theme-icon--moon {
    display: none;
  }
}

html[data-theme="dark"] .theme-icon--sun {
  display: block;
}

html[data-theme="dark"] .theme-icon--moon {
  display: none;
}

.cart-count {
  display: inline-block;
  min-width: 1.35em;
  text-align: center;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.25rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html[dir="rtl"] .btn {
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
}

.btn--solid:hover {
  background: transparent;
  color: var(--ink);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}

.btn--gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn--small {
  padding: 0.6rem 1.3rem;
  font-size: 0.72rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.link-quiet {
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}

.link-quiet:hover {
  border-color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(24rem, 58vh, 34rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: clamp(4rem, 10vh, 7rem);
}

/* Two slow washes of colour drifting behind the text - scent in the air. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -10%;
  inset-inline-start: 0;
  background: radial-gradient(circle, var(--haze-gold), transparent 65%);
  animation: haze-a 22s ease-in-out infinite alternate;
}

.hero::after {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  bottom: -12%;
  inset-inline-end: 0;
  background: radial-gradient(circle, var(--haze-taupe), transparent 65%);
  animation: haze-b 27s ease-in-out infinite alternate;
}

@keyframes haze-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 7%, 0) scale(1.14);
  }
}

@keyframes haze-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
  to {
    transform: translate3d(-6%, -6%, 0) scale(1);
  }
}

/* With a bottle to show, the hero splits: type on one side, the featured
   fragrance on the other. The class is added by main.js only once an image has
   actually loaded into it, so a slow API or an empty shop still gets the
   centred hero this page shipped with, rather than a hole where art belongs. */
.hero.has-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  text-align: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero.has-feature .hero-copy {
  align-items: start;
}

.hero.has-feature h1 {
  margin-inline: 0;
}

.hero-feature {
  display: block;
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
}

.hero-stage {
  position: relative;
}

/* The picture is the link, as an overlay rather than a wrapper: the arrows sit
   on top of it, and a button inside a link is not something a browser or a
   screen reader can make sense of. */
.hero-feature-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--veil);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* display:grid above would otherwise win against the hidden attribute, which
   is what keeps the arrows away when there is only one bottle to show. */
.hero-arrow[hidden] {
  display: none;
}

.hero-arrow svg {
  width: 1.15rem;
  height: 1.15rem;
}

.hero-arrow--prev {
  inset-inline-start: 0.85rem;
}

.hero-arrow--next {
  inset-inline-end: 0.85rem;
}

/* The buttons swap sides on their own in Arabic, so the chevrons have to swap
   with them or they would point back the way they came. */
html[dir="rtl"] .hero-arrow svg {
  transform: scaleX(-1);
}

/* Out of the way of the photograph until someone reaches for them. */
.hero-feature:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

.hero-arrow:hover {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

/* A touch screen has no cursor to hover with, so there they simply stay. */
@media (hover: none) {
  .hero-arrow {
    opacity: 1;
  }
}

.hero-feature-media {
  display: block;
  position: relative;
  /* Square, like the card frames and like the product shots themselves. */
  aspect-ratio: 1 / 1;
  background: var(--media);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

/* The slides are stacked and cross-faded rather than moved, which suits a
   packshot: sliding a bottle off the edge of a white frame looks like a
   catalogue flipping, holding it still while the next one arrives looks like
   a window being redressed. The slow scale gives the frame some life without
   ever being fast enough to read as movement. */
/* Cover, not contain. The slides crossfade over each other, so a photograph
   that does not fill the frame spends the whole fade showing the one behind it
   through its own empty edges - and the slow zoom below only makes sense on an
   image with no bars to zoom. */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.1s ease;
}

.hero-slide.is-current {
  opacity: 1;
  transform: scale(1.05);
  transition: opacity 1.1s ease, transform 7s ease-out;
}

.hero-feature-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  transition: opacity 0.35s ease;
}

.hero-feature-meta.is-fading {
  opacity: 0;
}

.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.hero-dot {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--hairline-strong);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.hero-dot:hover {
  background: var(--taupe);
}

/* The bottle currently showing stretches into a track, and the track fills as
   its turn runs out. The row then says which one is up and how long it has,
   rather than only the first of those. */
.hero-dot.is-current {
  width: 2.75rem;
  background: var(--haze-gold);
}

.hero-dot.is-current::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gold);
  transform-origin: left center;
  /* Duration is set from the script, so the fill and the slideshow can never
     drift apart by someone changing one of them. */
  animation: hero-dot-fill var(--hero-hold, 5000ms) linear forwards;
}

html[dir="rtl"] .hero-dot.is-current::after {
  transform-origin: right center;
}

/* Paused in step with the slideshow itself: the panel carries this class
   whenever the timer is stopped, so the fill never runs on a picture that is
   holding still. */
.hero-feature.is-paused .hero-dot.is-current::after {
  animation-play-state: paused;
}

@keyframes hero-dot-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Nothing advances by itself under reduced motion, so nothing should look as
   though it is about to. */
@media (prefers-reduced-motion: reduce) {
  .hero-dot {
    transition: none;
  }

  .hero-dot.is-current::after {
    animation: none;
    transform: scaleX(1);
  }
}

.hero-feature-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.hero-feature-price {
  font-size: 0.8rem;
  letter-spacing: var(--tracking);
  color: var(--taupe);
}

html[dir="rtl"] .hero-feature-price {
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  max-width: 26ch;
  margin-inline: auto;
}

html[dir="rtl"] .hero h1 {
  font-size: clamp(1.55rem, 3.1vw, 2.5rem);
  line-height: 1.75;
  max-width: 36ch;
}

.hero .eyebrow,
.hero h1,
.hero .btn {
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero .eyebrow {
  animation-delay: 0.05s;
}

.hero h1 {
  animation-delay: 0.22s;
}

.hero .btn {
  animation-delay: 0.45s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero p {
  max-width: 46ch;
  color: var(--taupe);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* Section headings */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

/* Category tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
}

.tile {
  position: relative;
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3rem) 1.5rem calc(clamp(2rem, 4vw, 3rem) + 0.9rem);
  text-align: center;
  transition: background 0.3s ease;
}

.tile:hover {
  background: var(--bg-soft);
}

/* A gold rule drawn under the label on hover - the tiles were the flattest
   block on the page, and they sit in its most valuable slot. */
.tile::after {
  content: "";
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.2rem);
  inset-inline-start: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[dir="rtl"] .tile::after {
  transform: translateX(50%);
}

.tile:hover::after,
.tile:focus-visible::after {
  width: 2.75rem;
}

.tile span,
.tile small {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tile:hover span,
.tile:hover small {
  transform: translateY(-3px);
}

.tile span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.tile small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
}

html[dir="rtl"] .tile small {
  text-transform: none;
}

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 2.5vw, 2rem);
}

.product-card {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

.product-media {
  position: relative;
  /* Square, because the product shots are. A 4/5 frame left every bottle
     floating in a fifth of a card's worth of empty white. */
  aspect-ratio: 1 / 1;
  background: var(--media);
  border: 1px solid var(--hairline);
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.15rem;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

/* The second photograph is atmosphere rather than a spec shot, so it fills the
   frame and is cropped if it has to be. Its own background is opaque as well:
   the two images are stacked, and anything the top one does not cover shows
   the bottom one through it - which is what a wide second photograph used to
   do, letterboxing itself into the middle of the first. */
.product-media .media-alt {
  opacity: 0;
  object-fit: cover;
  background: var(--media);
}

.product-card:hover .media-alt {
  opacity: 1;
}

.product-card:hover .media-main {
  transform: scale(1.03);
}

.product-flag {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  z-index: 2;
  background: var(--bg);
  color: var(--gold);
  border: 1px solid var(--hairline);
  font-size: 0.66rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

html[dir="rtl"] .product-flag {
  text-transform: none;
}

/* Sold out is a dead end and reads like one. Sold out but orderable is an
   invitation, so it takes the accent colour instead of the quiet border. */
.product-flag--preorder {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.product-card .card-brand {
  font-size: 0.7rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.5rem;
}

html[dir="rtl"] .product-card .card-brand {
  text-transform: none;
  font-size: 0.85rem;
}

.product-card .card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.price-was {
  color: var(--taupe);
  text-decoration: line-through;
  font-size: 0.85em;
  margin-inline-end: 0.5rem;
}

.price-now {
  color: var(--gold);
}

.sold-out {
  color: var(--taupe);
  font-size: 0.8rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}

html[dir="rtl"] .sold-out {
  text-transform: none;
}

/* Shop layout */

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.filter-panel {
  position: sticky;
  top: 6.5rem;
  max-height: calc(100dvh - 8.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

.filter-panel::-webkit-scrollbar {
  width: 6px;
}

.filter-panel::-webkit-scrollbar-track {
  background: transparent;
}

.filter-panel::-webkit-scrollbar-thumb {
  background: var(--hairline-strong);
  border-radius: 3px;
}

.filter-panel::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.filter-block {
  padding-block: 1.4rem;
  border-top: 1px solid var(--hairline);
}

.filter-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.filter-block h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

html[dir="rtl"] .filter-block h4 {
  text-transform: none;
  font-size: 0.9rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.28rem;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.95rem;
}

.filter-option:hover {
  color: var(--gold);
}

.filter-option input {
  accent-color: var(--ink);
  cursor: pointer;
}

.filter-count {
  margin-inline-start: auto;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--taupe);
}

.filter-option.is-empty {
  opacity: 0.4;
  cursor: default;
}

.filter-option.is-empty:hover {
  color: var(--ink-soft);
}

.field {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border-radius: 0;
}

.field:focus {
  border-bottom-color: var(--gold);
}

.field::placeholder {
  color: var(--taupe);
}

.field--boxed {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

.field--boxed:focus {
  border-color: var(--gold);
}

select.field {
  cursor: pointer;
}

.price-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.result-count {
  font-size: 0.8rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
}

html[dir="rtl"] .result-count {
  text-transform: none;
  font-size: 0.95rem;
}

.filter-drawer-toggle {
  display: none;
}

.drawer-scrim {
  display: none;
}

/* Product detail */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

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

.gallery img {
  width: 100%;
  /* Matches the card frame. Contain, not cover: on the page where someone is
     deciding, nothing about the bottle gets cropped away. */
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--media);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

.detail-brand {
  display: block;
  font-size: 0.75rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}

html[dir="rtl"] .detail-brand {
  text-transform: none;
  font-size: 0.9rem;
}

.detail-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.detail-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  white-space: pre-line;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.chip {
  font-size: 0.68rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.3rem 0.75rem;
}

html[dir="rtl"] .chip {
  text-transform: none;
  font-size: 0.85rem;
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
}

.size-btn {
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--taupe);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.size-btn:hover {
  border-color: var(--hairline-strong);
  color: var(--ink);
}

.size-btn.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.size-btn:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.detail-price {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  margin-bottom: 0.6rem;
}

.stock-note {
  font-size: 0.8rem;
  color: var(--taupe);
  margin-bottom: 1.5rem;
  min-height: 1.2em;
}

.stock-note.is-low {
  color: var(--gold);
}

.notes-list {
  margin-top: 3rem;
}

.note-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.35rem;
  border-top: 1px solid var(--hairline);
}

.note-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.note-row dt {
  font-size: 0.7rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
}

html[dir="rtl"] .note-row dt {
  text-transform: none;
  font-size: 0.9rem;
}

/* Pagination */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.pagination button {
  min-width: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--hairline-strong);
}

.pagination button.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination .gap {
  color: var(--taupe);
  padding-inline: 0.25rem;
}

/* Cart and checkout */

.page-narrow {
  max-width: 900px;
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 1rem;
}

.page-intro {
  text-align: center;
  color: var(--taupe);
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.page-body {
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  text-align: start;
  font-size: 1.05rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.cart-line:last-of-type {
  border-bottom: 1px solid var(--hairline);
}

.cart-line img {
  width: 90px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--media);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

.cart-line h3 {
  font-size: 1.2rem;
}

.cart-line .line-meta {
  font-size: 0.8rem;
  color: var(--taupe);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  margin-top: 0.6rem;
}

.qty-control button {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.qty-control button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-control span {
  min-width: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.line-remove {
  display: block;
  margin-top: 0.5rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--taupe);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  cursor: pointer;
}

html[dir="rtl"] .line-remove {
  text-transform: none;
  font-size: 0.9rem;
}

.line-remove:hover {
  color: var(--gold);
}

.line-preorder {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--gold);
}

html[dir="rtl"] .line-preorder {
  text-transform: none;
  font-size: 0.9rem;
}

.cart-line .line-total {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: end;
  white-space: nowrap;
}

.totals {
  margin-top: 2.5rem;
  margin-inline-start: auto;
  max-width: 24rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.totals-row.is-grand {
  border-top: 1px solid var(--hairline);
  margin-top: 0.6rem;
  padding-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

/* Reads as a credit against the goods, so it takes the accent colour and a
   minus sign rather than sitting in the column looking like another charge. */
.totals-row.is-discount span:last-child {
  color: var(--gold);
}

/* Only ever shown when something in the cart is on pre-order. Two full-width
   choices rather than a bare pair of radios: one of them costs money and the
   other does not, and that is worth more than a line of label text. */
.pay-box {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.25rem;
  margin-bottom: 0.75rem;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  margin-top: 0.6rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.pay-option:hover {
  border-color: var(--hairline-strong);
}

.pay-option.is-chosen {
  border-color: var(--gold);
  background: var(--haze-gold);
}

.pay-option input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.pay-label {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.pay-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--taupe);
}

.discount-box {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.25rem;
  margin-bottom: 0.75rem;
}

.discount-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}

html[dir="rtl"] .discount-title {
  text-transform: none;
  font-size: 0.9rem;
}

.discount-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.discount-row .field {
  flex: 1 1 auto;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discount-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.discount-applied {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--gold);
  font-size: 0.95rem;
}

/* Errors here are corrections, not failures - a tighter, quieter box than the
   one the checkout uses for a rejected order. */
.discount-problem {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 1.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.72rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--taupe);
}

html[dir="rtl"] .form-field label {
  text-transform: none;
  font-size: 0.9rem;
}

/* Sits under a field to say why it is being asked for. */
.field-hint {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--taupe);
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 0.85rem;
  color: var(--taupe);
}

.notice {
  padding: 0.9rem 1.1rem;
  border-inline-start: 2px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.notice--error {
  border-inline-start-color: var(--danger);
  color: var(--danger-ink);
}

.empty-state {
  text-align: center;
  color: var(--taupe);
  padding-block: clamp(3rem, 8vw, 5rem);
  grid-column: 1 / -1;
}

.confirm-panel {
  text-align: center;
  padding-block: clamp(3rem, 8vw, 5rem);
}

.order-code {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.06em;
  border-block: 1px solid var(--hairline);
  padding-block: 0.75rem;
  margin-block: 1.25rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 22rem;
  margin-inline: auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-inner a,
.footer-inner p {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--taupe);
}

.footer-inner a:hover {
  color: var(--gold);
}

/* Responsive */

@media (max-width: 980px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-drawer-toggle {
    display: inline-flex;
  }

  .filter-panel {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    z-index: 60;
    width: min(21rem, 88vw);
    height: 100dvh;
    max-height: none;
    padding-inline-end: 1.5rem;
    background: var(--bg);
    border-inline-end: 1px solid var(--hairline);
    padding: 1.75rem 1.5rem 4rem;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.32s ease;
  }

  html[dir="rtl"] .filter-panel {
    transform: translateX(102%);
  }

  .filter-panel.is-open {
    transform: translateX(0);
  }

  .drawer-scrim.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--scrim);
  }

  .drawer-close {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
  }
}

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

@media (max-width: 860px) {
  .hero.has-feature {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero.has-feature .hero-copy {
    align-items: center;
  }

  .hero.has-feature h1 {
    margin-inline: auto;
  }

  .hero-feature {
    max-width: 20rem;
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding-block: 1rem;
  }

  .brand-mark {
    grid-column: 2;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-primary {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-primary.is-open {
    max-height: 20rem;
    padding-block: 1rem 1.5rem;
  }

  .nav-primary a {
    padding-block: 0.7rem;
    width: 100%;
  }

  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line img {
    width: 72px;
  }

  .cart-line .line-total {
    grid-column: 2;
    text-align: start;
  }

  .totals {
    margin-inline-start: 0;
    max-width: none;
  }

  .note-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }
}

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