:root {
  --bone: #f4efe8;
  --paper: #faf7f2;
  --ink: #1a1511;
  --muted: #7a7168;
  --line: #e4dcd2;
  --gold: #9a805c;
  --fill: #2a221c;
  --header: 64px;
  --panel: 520px;
  --thumbs: 88px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
}

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

html {
  overflow-x: clip;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

img[hidden],
video[hidden] {
  display: none;
}

.skip {
  position: absolute;
  left: -999px;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 20;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.28em;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.market {
  display: flex;
  gap: 8px;
}

.market button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.4;
}

.market button.is-on {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

.bag {
  background: none;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.2em;
}

/* Product stage */
.stage-wrap {
  display: grid;
  grid-template-columns: var(--thumbs) minmax(0, calc(100dvh - var(--header))) minmax(var(--panel), 1fr);
  height: calc(100dvh - var(--header));
  background: var(--paper);
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--paper);
  z-index: 21;
}

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

.thumb {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid transparent;
  background: #ddd6cc;
  cursor: pointer;
  flex: 0 0 auto;
  overflow: hidden;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.is-on {
  border-color: var(--ink);
}

.thumb[data-type="video"] {
  border: 2px solid var(--ink);
}

.thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(26, 21, 17, 0.55);
  color: var(--ink);
  pointer-events: none;
}

.thumb-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f7f3ed;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 8px rgba(26, 21, 17, 0.35);
}

.thumb-play-btn svg {
  width: 22px;
  height: 26px;
  display: block;
  margin-left: 3px;
}

.stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage img,
.stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.stage video {
  display: none;
}

.stage.is-video {
  cursor: default;
}

.stage.is-video video {
  display: block;
}

.stage.is-video img {
  display: none;
}

.stage-hint,
.zoom-hint {
  position: absolute;
  bottom: 22px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.stage-hint {
  left: 24px;
  letter-spacing: 0.28em;
}

.zoom-hint {
  right: 24px;
  opacity: 0.85;
}

.stage.is-video .zoom-hint,
.stage.is-zooming .zoom-hint,
.stage.is-zooming .stage-hint {
  display: none;
}

.zoom-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  background-repeat: no-repeat;
  background-color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(26, 21, 17, 0.12);
}

.zoom-lens[hidden] {
  display: none;
}

/* Buy column */
.buy {
  background: var(--paper);
  padding: 28px 44px 48px;
  overflow-y: auto;
  min-width: 0;
  border-left: 1px solid var(--line);
}

.crumb {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.crumb a {
  border-bottom: 1px solid transparent;
}

.crumb a:hover {
  border-bottom-color: currentColor;
}

.buy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.price {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.price-note {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field[hidden] {
  display: none;
}

.field-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cfc6bb;
  padding: 0;
  cursor: pointer;
}

.swatch.is-on {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.swatch.ivory,
.swatch.cream {
  background: #efe6d8;
}
.swatch.sage {
  background: #9aa88a;
  opacity: 0.38;
  cursor: default;
}
.swatch.dove {
  background: #b7b3ae;
  opacity: 0.38;
  cursor: default;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size {
  min-width: 72px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.size.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.qty-ship {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 8px 0 24px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty button {
  width: 38px;
  height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
}

.qty span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
}

.ship {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.ship small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 12px;
}

.cta {
  width: 100%;
  height: 52px;
  background: var(--fill);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
}

.cta:hover {
  background: #000;
}

.cta:disabled {
  opacity: 0.45;
  cursor: wait;
}

.stock {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.pay-note {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.details {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.acc {
  border-bottom: 1px solid var(--line);
}

.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

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

.acc summary::after {
  content: "+";
  font-weight: 300;
}

.acc[open] summary::after {
  content: "–";
}

.acc-body {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #4d463f;
}

.acc-body p {
  margin: 0 0 10px;
}

.acc-body dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 16px;
}

.acc-body dt {
  color: var(--muted);
}

.sku {
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Below the fold */
.below {
  background: var(--paper);
  padding: 72px 48px 40px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.fbt {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.fbt-items {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

a.fbt-card,
a.sim-card,
a.cat-card {
  display: block;
}

.fbt-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--bone);
}

a.fbt-card:hover h3,
a.sim-card:hover h3,
a.cat-card:hover h2 {
  color: var(--gold);
}

.fbt-card h3,
.sim-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 14px 0 4px;
}

.fbt-card p,
.sim-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.plus {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  text-align: center;
}

.fbt-buy .sum {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 8px;
}

.fbt-buy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.similar {
  padding: 72px 0 24px;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.sim-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--bone);
}

.footer {
  padding: 28px 48px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-product:not(.is-ready) .stage-wrap,
.page-product:not(.is-ready) .below {
  visibility: hidden;
}

.cat-hero {
  padding: 80px 48px 28px;
  max-width: 820px;
}

.cat-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.cat-hero p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 22px;
  padding: 36px 48px 88px;
}

.cat-card,
.sim-card,
.fbt-card {
  min-width: 0;
}

.cat-card:nth-child(n + 4) {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.cat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--bone);
  transition: opacity 0.45s ease;
}

.cat-card:hover img {
  opacity: 0.88;
}

.cat-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 16px 0 4px;
}

.cat-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.cat-price {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.atelier-note {
  padding: 72px 48px 96px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}

.atelier-note h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 16px;
}

.atelier-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.zoom-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: #14110e;
  cursor: zoom-out;
}

.zoom-layer[hidden] {
  display: none;
}

.zoom-layer img {
  max-width: min(94vw, 1200px);
  max-height: 92vh;
  object-fit: contain;
  will-change: transform;
}

.zoom-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: 0;
  color: var(--paper);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
}

body.is-locked {
  overflow: hidden;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
  z-index: 60;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bag-layer {
  position: fixed;
  inset: 0;
  z-index: 56;
  display: flex;
  justify-content: flex-end;
}

.bag-layer[hidden] {
  display: none;
}

.bag-scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 21, 17, 0.28);
}

.bag-panel {
  position: relative;
  width: min(420px, 100%);
  height: 100%;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 40px rgba(26, 21, 17, 0.08);
}

.bag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.bag-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
}

.bag-close {
  background: none;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
}

.bag-lines {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 24px;
}

.bag-empty {
  color: var(--muted);
  line-height: 1.6;
  padding-top: 28px;
}

.bag-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.bag-thumb img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--bone);
}

.bag-meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 4px;
}

.bag-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.bag-line-price {
  margin-top: 8px !important;
  color: var(--ink) !important;
}

.bag-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.bag-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.bag-remove {
  width: auto !important;
  border: 0 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--muted);
}

.bag-foot {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
}

.bag-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  margin-bottom: 6px;
}

.bag-total strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
}

.bag-ship,
.bag-pay {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.bag-status {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}

.bag-pay {
  margin: 12px 0 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  text-align: center;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 36px 0 12px;
}

.legal-note {
  font-size: 13px;
  color: var(--muted);
}

.legal-form {
  display: grid;
  gap: 14px;
  margin: 24px 0 12px;
}

.legal-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-form input,
.legal-form select,
.legal-form textarea {
  font: inherit;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
}

.legal-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 14px;
  color: var(--ink);
}

.legal-check input {
  margin-top: 3px;
}

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
}

.cookie-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 420px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(26, 21, 17, 0.12);
}

.cookie-bar p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #4d463f;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .cta {
  padding: 10px 16px;
  font-size: 11px;
}

@media (max-width: 720px) {
  .cookie-bar {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .cta {
    width: 100%;
  }

  body:has(#cookie-bar) {
    padding-bottom: 260px;
  }
}

.legal p,
.legal li {
  line-height: 1.7;
  color: #4d463f;
}

@media (max-width: 1100px) {
  .sim-grid,
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fbt {
    grid-template-columns: 1fr;
  }
  .stage-wrap {
    --panel: 360px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .header-right {
    gap: 14px;
    flex-shrink: 0;
  }

  .logo {
    letter-spacing: 0.14em;
    font-size: 17px;
  }

  .cat-hero,
  .cat-grid,
  .atelier-note,
  .below,
  .footer,
  .legal,
  .buy {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .cat-hero {
    padding-top: 48px;
  }

  .cat-hero p {
    max-width: none;
  }

  .zoom-hint {
    display: none;
  }

  .zoom-lens {
    display: none !important;
  }

  .stage-wrap {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .stage {
    order: 1;
    height: auto;
    cursor: default;
  }

  .stage img,
  .stage video {
    width: 100%;
    height: auto;
  }

  .thumbs {
    order: 2;
    flex-direction: row;
    padding: 12px max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
    overflow-x: auto;
    overflow-y: hidden;
  }

  .buy {
    order: 3;
    border-left: 0;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .qty-ship {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .acc-body dl {
    grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .footer > div:last-child {
    line-height: 1.9;
  }

  .legal {
    padding-top: 88px;
  }

  .buy h1 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .cat-grid,
  .sim-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
