/* ============================================
   MAISON VERGAUD — Haute Joaillerie
   Design system inspired by Place Vendôme codes
   ============================================ */

:root {
  /* Palette — ivoire, encre, or sourd */
  --bg: #FBFAF6;
  --bg-elevated: #FFFFFF;
  --bg-soft: #F4F1EA;
  --bg-deep: #2A2520;
  --ink: #1A1612;
  --ink-soft: #4A423B;
  --ink-muted: #8C8378;
  --ink-faint: #C9C2B6;
  --line: #E8E2D5;
  --line-soft: #EFEBE0;
  --gold: #B08842;
  --gold-soft: #D4B679;
  --accent: #7A1F2B;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;

  /* Spacing rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --maxw: 1480px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Density (tweakable) */
  --density: 1;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* ===== Typography utilities ===== */
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
}
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-line::before, .eyebrow-line::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--ink);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.015em;
}

/* ===== Layout helpers ===== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.full {
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--link {
  background: none; border: none; padding: 6px 0;
  border-bottom: 1px solid var(--ink); color: var(--ink);
  letter-spacing: 0.22em;
  font-size: 10px;
  text-transform: uppercase;
}
.btn--link:hover { background: none; color: var(--gold); border-color: var(--gold); }

/* ===== Forms / inputs ===== */
.field {
  display: block;
  width: 100%;
  padding: 14px 0;
  font-size: 13px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color .3s ease;
}
.field:focus { border-color: var(--ink); }
.field-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 400;
}

/* ===== Header / Top bar ===== */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 10px var(--gutter);
  text-align: center;
  font-weight: 300;
  position: relative;
  overflow: hidden;
}
.topbar-marquee {
  display: flex;
  white-space: nowrap;
}
.topbar-track {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-track > * { display: inline-block; }
.topbar-sep { opacity: .4; padding: 0 4px; }
/* Desktop: static, centered, only show first track */
@media (min-width: 769px) {
  .topbar-marquee { justify-content: center; }
  .topbar-track[aria-hidden="true"] { display: none; }
  .topbar-track { gap: 36px; }
}
/* Mobile: animate as a marquee, content duplicated for seamless loop */
@media (max-width: 768px) {
  .topbar { padding: 10px 0; font-size: 11px; letter-spacing: 0.16em; }
  .topbar-marquee { animation: topbar-scroll 36s linear infinite; will-change: transform; }
  .topbar-track { gap: 24px; padding-right: 24px; }
  .topbar:hover .topbar-marquee { animation-play-state: paused; }
}
@keyframes topbar-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-marquee { animation: none !important; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 88px;
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-left {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-right {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
}
.nav-link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  position: relative;
  padding: 6px 0;
  transition: color .3s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: "";
  position: absolute;
  inset: auto 50% 0;
  height: 1px;
  background: var(--ink);
  width: 0;
  transition: all .35s ease;
}
.nav-link:hover::after { left: 0; right: 0; width: auto; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { left: 0; right: 0; width: auto; }

.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.icon-btn:hover { color: var(--gold); }
.cart-count {
  position: absolute;
  top: -2px; right: -6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  font-weight: 400;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.24em;
  font-weight: 400;
  text-align: center;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* ===== Mega menu ===== */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px var(--gutter);
  display: none;
  animation: fadeDown .35s ease;
}
.megamenu.open { display: block; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mega-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 56px;
}
.mega-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
  margin-bottom: 18px;
}
.mega-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mega-col a {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 400;
  transition: color .25s ease;
}
.mega-col a:hover { color: var(--gold); font-style: italic; }
.mega-feature {
  background: var(--bg-soft);
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  position: relative;
}
.mega-feature-label {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: calc(100vh - 88px - 38px);
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(251,250,246,.92) 0%, rgba(251,250,246,.7) 35%, rgba(251,250,246,.2) 60%, transparent 100%),
    url('/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(251,250,246,.92) 0%, rgba(251,250,246,.7) 50%, rgba(251,250,246,.4) 100%),
      url('/assets/hero-bg.jpg');
  }
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: 900px;
}
.hero-eyebrow {
  margin-bottom: 32px;
  color: var(--ink-soft);
}
.hero-title {
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 300;
  line-height: 0.95;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.hero-sub {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-meta {
  position: absolute;
  bottom: 32px; left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 2;
}
.hero-pager {
  position: absolute;
  bottom: 32px; right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: 13px;
  z-index: 2;
}
.hero-pager-line { width: 60px; height: 1px; background: var(--ink-faint); position: relative; }
.hero-pager-line::after { content:""; position:absolute; left:0; top:0; height:100%; width: 33%; background: var(--ink); }

/* ===== Hero piece — central placeholder jewel ===== */
.hero-piece {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0.65;
  pointer-events: none;
}

/* ===== Split hero (text left, photo right) ===== */
.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: initial;
  height: calc(100vh - 88px - 38px);
  min-height: 600px;
  text-align: left;
  padding: 0 var(--gutter);
  gap: 64px;
}
.hero--split .hero-content {
  text-align: left;
  max-width: 560px;
  padding: 0;
  z-index: 2;
}
.hero--split .hero-eyebrow {
  margin-bottom: 24px;
  display: inline-flex;
}
.hero--split .hero-title { font-size: clamp(48px, 6vw, 88px); }
.hero--split .hero-sub { margin: 0 0 36px; }
.hero--split .hero-piece {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  max-height: 640px;
  opacity: 1;
  pointer-events: auto;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero--split .hero-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .hero--split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    padding: 24px var(--gutter);
    min-height: auto;
    height: auto;
  }
  .hero--split .hero-content {
    text-align: center;
    margin: 0 auto;
    order: 1;
  }
  .hero--split .hero-piece { order: 2; max-height: 360px; min-height: 280px; }
  .hero--split .hero-actions { justify-content: center; }
}

/* ===== Collection rail ===== */
.section {
  padding-block: var(--space-10);
}
.section-tight { padding-block: var(--space-9); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub {
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}

/* ===== Product card ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 56px 32px;
}
.product {
  cursor: pointer;
  position: relative;
}
.product-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.product-media-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.product-media-alt {
  opacity: 0;
}
.product:hover .product-media-inner { transform: scale(1.04); }
.product:hover .product-media-default { opacity: 0; }
.product:hover .product-media-alt { opacity: 1; }
.product-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--bg);
  padding: 6px 10px;
  z-index: 2;
}
.product-wish {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(251,250,246,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s ease, background .3s ease;
}
.product:hover .product-wish { opacity: 1; }
.product-wish.active { opacity: 1; color: var(--accent); }
@media (hover: none), (pointer: coarse) {
  .product-wish { opacity: 1; }
}
.product-quick {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: var(--bg);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
}
.product:hover .product-quick { transform: translateY(0); }
.product-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-meta {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.product-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-top: 8px;
}
@media (max-width: 768px) {
  .product-price { font-size: 19px; }
}

/* ===== Universe cards ===== */
.universes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.universe {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}
.universe-bg {
  position: absolute; inset: 0;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.universe:hover .universe-bg { transform: scale(1.06); }
.universe-content {
  position: absolute; inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--bg);
  z-index: 2;
}
.universe-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5));
  z-index: -1;
}
.universe-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}
.universe-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 24px;
}
.universe-link {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
}

/* ===== Editorial / story split ===== */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}
.editorial-media {
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.editorial-text { padding: 0 var(--space-6); }
.editorial-text h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.editorial-text h2 em { font-style: italic; color: var(--gold); }
.editorial-text p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 460px;
}
.editorial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  margin: 32px 0;
  padding-left: 24px;
  border-left: 1px solid var(--gold);
  color: var(--ink);
}

/* ===== Services strip ===== */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 56px 32px;
  text-align: center;
}
.service-icon {
  width: 36px; height: 36px;
  margin: 0 auto 18px;
  color: var(--gold);
}
.service h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}
.service p {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--bg-deep);
  color: var(--bg);
  padding: var(--space-9) var(--gutter);
  text-align: center;
}
.newsletter h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 300;
  margin-bottom: 18px;
  color: var(--bg);
}
.newsletter h3 em { font-style: italic; color: var(--gold-soft); }
.newsletter p {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 36px;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}
.newsletter-form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "input button"
    "consent consent"
    "msg msg";
  align-items: center;
  column-gap: 12px;
  row-gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
}
.newsletter-form input[type="email"] {
  grid-area: input;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 0;
  color: var(--bg);
  font-size: 14px;
  letter-spacing: 0.04em;
  width: 100%;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  grid-area: button;
  padding: 14px 4px 14px 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bg);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.newsletter-form button:hover { color: var(--gold-soft); }
.newsletter-form > label {
  grid-area: consent !important;
  margin: 0 !important;
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  color: rgba(255,255,255,0.55) !important;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
}
.newsletter-form > label a { color: rgba(255,255,255,0.85); }
.newsletter-form .form-msg {
  grid-area: msg;
  margin: 0;
  text-align: left;
  font-size: 12px;
}

/* Newsletter mobile: keep input + button on same row, but tighten spacing */
@media (max-width: 480px) {
  .newsletter { padding: 64px 20px; }
  .newsletter h3 { font-size: 28px; }
  .newsletter p { font-size: 13px; margin-bottom: 28px; }
  .newsletter-form {
    grid-template-columns: 1fr auto;
    column-gap: 8px;
    row-gap: 12px;
    max-width: 100%;
  }
  .newsletter-form input[type="email"] { font-size: 14px; padding: 12px 0; }
  .newsletter-form button { font-size: 10px; padding: 12px 0 12px 8px; letter-spacing: .18em; }
  .newsletter-form button svg { width: 12px; height: 12px; }
  .newsletter-form > label { font-size: 10.5px; padding-top: 10px; }
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  padding: var(--space-9) var(--gutter) var(--space-6);
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .brand { align-items: flex-start; }
.footer-brand p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 24px;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 300;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.footer-locale {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* ===== Collection page ===== */
.crumbs {
  padding: 24px var(--gutter) 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  max-width: var(--maxw);
  margin: 0 auto;
}
.crumbs a:hover { color: var(--ink); }

.collection-hero {
  text-align: center;
  padding: 72px var(--gutter) 56px;
  max-width: 900px;
  margin: 0 auto;
}
.collection-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.collection-hero h1 em { font-style: italic; color: var(--gold); }
.collection-hero p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

.collection-toolbar {
  position: sticky;
  top: 88px;
  z-index: 50;
  background: rgba(251,250,246,0.95);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.toolbar-filters {
  display: flex;
  gap: 28px;
  align-items: center;
}
.filter-btn {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all .2s ease;
}
.filter-btn:hover, .filter-btn.active { color: var(--ink); border-color: var(--ink); }
.filter-btn .chev { transition: transform .3s ease; }
.filter-btn.active .chev { transform: rotate(180deg); }

.toolbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.results-count {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sort-select {
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 22px 6px 0;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%231A1612' stroke-width='1' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
}

.filter-panel {
  position: fixed;
  top: 0; right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--bg-elevated);
  z-index: 200;
  transition: right .45s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.filter-panel.open { right: 0; }
.filter-head {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.filter-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}
.filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}
.filter-group { margin-bottom: 32px; }
.filter-group h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
}
.filter-opt input { accent-color: var(--ink); }
.filter-foot {
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.filter-foot .btn { flex: 1; }
.scrim {
  position: fixed; inset: 0;
  background: rgba(26,22,18,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px 24px;
  padding: 56px var(--gutter) 96px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ===== Product detail page ===== */
.pdp {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 32px var(--gutter) 96px;
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: flex-start;
}
.pdp-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  position: sticky;
  top: 120px;
}
.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdp-thumb {
  aspect-ratio: 1;
  background: var(--bg-soft);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  padding: 0;
  font: inherit;
  outline: none;
  transition: border-color .2s ease;
}
.pdp-thumb:hover { border-color: rgba(26,22,18,.35); }
.pdp-thumb.active { border-color: var(--ink); }
.pdp-main {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.pdp-main-inner {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .6s ease, opacity .3s ease;
}
.pdp-main:hover .pdp-main-inner.zoom-active { transform: scale(1.5); }
.pdp-zoom-hint {
  position: absolute;
  bottom: 16px; left: 16px;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-info { padding-top: 16px; }
.pdp-collection {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.pdp-title {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.pdp-price {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .pdp-price { font-size: 30px; }
}
.pdp-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 480px;
}
.pdp-options { margin-bottom: 32px; }
.option-block { margin-bottom: 24px; }
.option-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.option-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.option-current {
  font-size: 13px;
  font-family: var(--serif);
  color: var(--ink-soft);
}
.option-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: transform .25s ease;
}
.swatch:hover { transform: scale(1.06); }
.swatch.active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.swatch.gold { background: linear-gradient(135deg, #E8C281, #B08842); }
.swatch.rose { background: linear-gradient(135deg, #F0C5A8, #C68B6B); }
.swatch.white { background: linear-gradient(135deg, #F5F2EC, #C5C2BA); }
.swatch.black { background: linear-gradient(135deg, #2A2520, #0F0C09); }
.swatch.platinum { background: linear-gradient(135deg, #DCDDD8, #9A9C95); }

.size-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.size-opt {
  padding: 12px 6px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-align: center;
  transition: all .2s ease;
  font-family: var(--serif);
}
.size-opt:hover { border-color: var(--ink-soft); }
.size-opt.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-opt.disabled { color: var(--ink-faint); text-decoration: line-through; cursor: not-allowed; }

.pdp-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.pdp-cta .btn { flex: 1; }
.pdp-features {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.pdp-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.pdp-feature:last-child { border-bottom: none; }
.pdp-feature svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.pdp-feature strong { font-weight: 400; display: block; margin-bottom: 2px; }
.pdp-feature span { color: var(--ink-muted); font-size: 12px; }

.pdp-accordion {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.acc-head .chev { transition: transform .35s ease; }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.acc-item.open .acc-body { max-height: 400px; padding-bottom: 18px; }

/* ===== Cart drawer ===== */
.drawer {
  position: fixed;
  top: 0; right: -460px;
  width: 440px;
  height: 100vh;
  background: var(--bg-elevated);
  z-index: 200;
  transition: right .45s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 60px rgba(0,0,0,.04);
}
.drawer.open { right: 0; }
.drawer-head {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
}
.cart-line {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-line-img {
  aspect-ratio: 1;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.cart-line-info { display: flex; flex-direction: column; gap: 4px; }
.cart-line-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}
.cart-line-meta { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.04em; }
.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  font-family: var(--serif);
}
.qty-btn {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.qty-btn:hover { border-color: var(--ink); }
.cart-line-price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  text-align: right;
  color: var(--ink);
}
.cart-line-remove {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: auto;
  text-align: right;
}
.cart-line-remove:hover { color: var(--accent); }

.drawer-foot {
  padding: 24px 32px;
  border-top: 1px solid var(--line);
}
.cart-totals {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 6px;
}
.cart-shipping {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.drawer-foot .btn { width: 100%; }
.cart-services {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  align-items: center;
  justify-content: center;
}

.cart-empty {
  padding: 96px 32px;
  text-align: center;
}
.cart-empty p {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

/* ===== Checkout / Account ===== */
.account {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-nav a {
  padding: 12px 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.account-nav a:hover, .account-nav a.active { color: var(--ink); }
.account-content h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.account-content h1 em { font-style: italic; color: var(--gold); }
.account-content > p {
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.account-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 24px;
}
.account-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}
.field-row, .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.order-line {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.order-line:last-child { border: none; }
.order-img { aspect-ratio: 1; background: var(--bg-soft); }

/* ===== Editorial / Story page ===== */
.story-hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  background: var(--bg-soft);
  display: flex;
  align-items: flex-end;
  padding: 56px var(--gutter);
  overflow: hidden;
}
.story-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(212,182,121,.25), transparent 55%),
    linear-gradient(180deg, #EBE3D2, #D9CFB8);
}
.story-hero-content { position: relative; z-index: 2; max-width: 720px; }
.story-hero h1 {
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.story-hero h1 em { font-style: italic; color: var(--gold); }
.story-eyebrow {
  margin-bottom: 32px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.story-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px var(--gutter);
}
.story-lead {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 56px;
  font-style: italic;
  color: var(--ink);
}
.story-body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.story-body h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  margin: 56px 0 24px;
  letter-spacing: -0.01em;
}
.story-pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  text-align: center;
  margin: 56px 0;
  color: var(--ink);
  padding: 32px 0;
  border-block: 1px solid var(--gold);
}

/* ===== Page transitions ===== */
.page {
  display: none;
  animation: pageIn .6s cubic-bezier(.2,.7,.2,1);
}
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SVG placeholder for jewels ===== */
.jewel-svg {
  width: 60%;
  height: 60%;
  max-width: 280px;
  max-height: 280px;
  opacity: 0.85;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 300;
  opacity: 0;
  transition: all .4s cubic-bezier(.2,.7,.2,1);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Search overlay ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px var(--gutter);
}
.search-input {
  width: 100%;
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 300;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  outline: none;
  font-style: italic;
}
.search-suggestions { margin-top: 56px; }
.search-suggestions h4 {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.search-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.search-tag {
  padding: 10px 20px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.search-tag:hover { border-color: var(--ink); }
.search-close {
  position: absolute;
  top: 32px; right: var(--gutter);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: relative; top: 0; }
  .editorial { grid-template-columns: 1fr; gap: 48px; }
  .collection-grid { grid-template-columns: repeat(3, 1fr); }
  .universes { grid-template-columns: 1fr; gap: 1px; }
  .universe { aspect-ratio: 16/10; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .account { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { grid-template-columns: auto 1fr auto; height: 60px; padding-inline: 14px; }
  .nav-left { display: none; }
  .nav-right .nav-link { display: none; }
  .nav-right { gap: 10px; }
  /* On mobile only the burger + cart icons stay in the bar. */
  /* Search, account, wishlist are accessible from the burger drawer. */
  .nav-right .icon-btn[aria-label="Compte"],
  .nav-right .icon-btn[aria-label="Favoris"],
  .nav-right .icon-btn#search-open { display: none; }
  .brand { font-size: 14px; letter-spacing: 0.16em; line-height: 1; }
  .brand-sub { font-size: 7px; letter-spacing: 0.32em; margin-top: 3px; }
  .nav-burger { width: 36px; height: 36px; }
  /* Make the cart icon's count badge clearly visible. */
  .cart-count { top: 0; right: -4px; }
  .topbar { padding: 8px 16px; font-size: 9px; letter-spacing: 0.2em; }
  .hero-title { font-size: 56px; }
  .hero { min-height: 540px; }
  .product-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .field-row, .form-row { grid-template-columns: 1fr; gap: 16px; }
  .drawer { width: 100%; right: -100%; }
  .filter-panel { width: 100%; right: -100%; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-thumbs { flex-direction: row; order: 2; }
  .pdp-thumb { width: 64px; }
  .section { padding-block: var(--space-8); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .editorial-text { padding: 0; }
  .megamenu { display: none !important; }
  .toolbar-filters { gap: 14px; }
  .filter-btn { font-size: 10px; }
  .results-count { display: none; }
  .collection-toolbar { padding: 12px var(--gutter); }
}

/* ───────── Pagination ───────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 56px 0 16px;
  flex-wrap: wrap;
}
.pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pagination .page-btn:hover { border-color: var(--ink); }
.pagination .page-btn.current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pagination .page-btn.disabled {
  color: var(--ink-muted);
  cursor: default;
  opacity: .4;
}
.pagination .page-ellipsis {
  color: var(--ink-muted);
  padding: 0 4px;
  user-select: none;
}
.pagination-summary {
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted);
  margin: 0 0 64px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .pagination .page-btn { min-width: 36px; height: 36px; font-size: 12px; }
}

/* ───────── PDP lightbox ───────── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(15, 12, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  display: block;
  object-fit: contain;
  background: #1a1612;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,.16);
  transform: scale(1.05);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-counter {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  background: rgba(0,0,0,.4);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.pdp-main { cursor: zoom-in; }

/* ───────── Search overlay ───────── */
.search-overlay {
  position: fixed; inset: 0;
  z-index: 250;
  display: none;
}
.search-overlay.open { display: block; }
.search-overlay-scrim {
  position: absolute; inset: 0;
  background: rgba(15,12,10,0.4);
  backdrop-filter: blur(4px);
  animation: fade-in .2s ease;
}
.search-overlay-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--bg-elevated);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slide-down .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes slide-down { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade-in    { from { opacity: 0; } to { opacity: 1; } }
.search-overlay-head {
  border-bottom: 1px solid var(--line);
  padding: 24px 5%;
}
.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--ink-muted);
}
.search-overlay-form input {
  flex: 1;
  padding: 12px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
}
.search-overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 5%;
}
.search-overlay-empty {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.search-overlay-empty h4 {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 400;
}
.search-overlay-empty .search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.search-overlay-empty .search-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: .5px solid rgba(0,0,0,.1);
  font-size: 12px;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.search-overlay-empty .search-tag:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.search-overlay-results {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.search-overlay-results .product { font-size: 13px; }
.search-overlay-results .product-name { font-size: 14px; }
@media (max-width: 768px) {
  .search-overlay-form input { font-size: 16px; }
  .search-overlay-results { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
}

/* ───────── Cart drawer ───────── */
.cart-drawer {
  position: fixed; inset: 0;
  z-index: 260;
  display: none;
}
.cart-drawer.open { display: block; }
.cart-drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(15,12,10,0.4);
  animation: fade-in .2s ease;
}
.cart-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  animation: slide-left .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes slide-left { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
}
.cart-drawer-count {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
  margin-left: 6px;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 28px;
}
.cart-drawer-empty {
  text-align: center;
  font-style: italic;
  color: var(--ink-muted);
  padding: 64px 16px;
  font-family: var(--serif);
  font-size: 17px;
}
.cd-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  align-items: flex-start;
}
.cd-line-img {
  width: 72px; height: 72px;
  background: var(--bg-soft);
  overflow: hidden;
  border-radius: 2px;
}
.cd-line-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-line-name {
  font-family: var(--serif);
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
}
.cd-line-meta {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}
.cd-line-qty {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
}
.cd-line-price {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
}
.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 20px 28px 28px;
  background: var(--bg-elevated);
}
.cart-drawer-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 16px;
}
.cart-drawer-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}
.cart-drawer-secondary {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 11px;
  padding: 10px;
}

/* No-content state when JS adds an empty cart */
.cart-drawer.empty .cart-drawer-foot { display: none; }

/* ───────── Hamburger button + Nav drawer ───────── */
.nav-burger { display: none; }
@media (max-width: 768px) {
  .nav-burger { display: inline-flex; }
}

.nav-drawer {
  position: fixed; inset: 0;
  z-index: 270;
  display: none;
}
.nav-drawer.open { display: block; }
.nav-drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(15,12,10,.55);
  animation: fade-in .25s ease;
}
.nav-drawer-panel {
  position: absolute;
  top: 0; left: 0;
  width: 320px; max-width: 88%;
  height: 100vh;
  background: var(--bg-elevated);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  animation: slide-right .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes slide-right { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.nav-drawer-head {
  padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-brand {
  font-family: var(--serif);
  letter-spacing: .2em;
  font-size: 13px;
}
.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}
.nav-drawer-link {
  display: block;
  padding: 16px 28px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s ease;
}
.nav-drawer-link:hover { background: var(--bg-soft); }
.nav-drawer-link--small {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.nav-drawer-divider { height: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

/* ───────── Make scrims visible on cart/filter/search ───────── */
.filter-scrim {
  position: fixed; inset: 0;
  background: rgba(15,12,10,.45);
  z-index: 199;
  display: none;
}
.filter-scrim.open { display: block; animation: fade-in .25s ease; }
.search-overlay-scrim, .cart-drawer-scrim {
  background: rgba(15,12,10,.5);
}

/* ───────── Lightbox: force fully opaque dark bg ───────── */
.lightbox { background: #0f0c0a; }

/* ───────── Universe cards: aspect-ratio + min-height ───────── */
.universe { aspect-ratio: 4 / 5; max-height: 560px; }
@media (max-width: 768px) {
  .universe { aspect-ratio: 1 / 1; max-height: none; }
}

/* ───────── Final mobile polish ───────── */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .section { padding-block: 56px; }
  .section-title { font-size: 36px; }
  .pdp-title { font-size: 26px; }
  .pdp-features { grid-template-columns: 1fr 1fr; }
  .crumbs { font-size: 9px; padding: 16px 0; }
}

/* ───────── Contact page layout ───────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8% 96px;
}
.contact-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 16px;
}
.contact-sub {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 var(--gutter) 64px; }
}
@media (max-width: 480px) {
  .contact-name-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ───────── Story page mobile polish ───────── */
@media (max-width: 768px) {
  .story-hero { height: 60vh; min-height: 420px; padding: 32px var(--gutter); }
  .story-hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .story-body { padding: 56px var(--gutter); }
  .story-lead { font-size: 22px; }
  .story-body h2 { font-size: 26px; margin: 40px 0 16px; }
  .story-body p { font-size: 14px; line-height: 1.75; }
  .story-pull { font-size: 22px; }
}

/* ───────── Newsletter form mobile ───────── */
@media (max-width: 480px) {
  .newsletter h3 { font-size: 32px; }
  .newsletter p { font-size: 13px; }
  .newsletter-form input { font-size: 14px; }
}

/* ───────── Register form mobile ───────── */
@media (max-width: 480px) {
  .auth-grid, .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ───────── Generic responsive guards ───────── */
@media (max-width: 768px) {
  /* Anything still using literal 8% horizontal padding gets a sane gutter. */
  .collection-hero { padding-inline: var(--gutter); }
  /* Tables (legal, livraison) become horizontally scrollable. */
  .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal table th, .legal table td { white-space: nowrap; }
}

/* ───────── Checkout page layout ───────── */
.checkout-form {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  padding: 0 8% 96px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: flex-start;
}
.checkout-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 16px;
}
.address-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 980px) {
  .checkout-form { grid-template-columns: 1fr; gap: 48px; padding: 0 var(--gutter) 64px; }
  .checkout-form aside { position: static !important; }
}
@media (max-width: 480px) {
  .address-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ───────── Payment method radio cards ───────── */
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-opt {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.pay-opt input[type="radio"] {
  position: absolute;
  top: 18px; left: 18px;
  width: 16px; height: 16px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.pay-opt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 16px 48px;
}
.pay-opt-info { display: flex; flex-direction: column; gap: 2px; }
.pay-opt-info strong { font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); }
.pay-opt-sub { font-size: 11px; color: var(--ink-muted); letter-spacing: .04em; }
.pay-opt-icons { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.pay-opt:hover { border-color: rgba(26,22,18,.4); }
.pay-opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
}
@media (max-width: 480px) {
  .pay-opt-row { flex-direction: column; align-items: flex-start; padding: 14px 14px 14px 44px; }
  .pay-opt-icons { margin-top: 6px; }
  .pay-opt-icons svg { width: 32px; height: 20px; }
}

/* ───────── Mobile readability bumps ───────── */
@media (max-width: 768px) {
  /* Brand sub-line — was 7px, hard to read */
  .brand-sub { font-size: 9px !important; letter-spacing: 0.32em; }
  /* Eyebrows everywhere — was 10px */
  .eyebrow { font-size: 11px; letter-spacing: 0.22em; }
  /* Field labels — was 10px */
  .field-label { font-size: 11px; letter-spacing: 0.18em; }
  /* Buttons & nav-link — bump for touch */
  .nav-link { font-size: 12px; }
  .btn { font-size: 12px; padding: 14px 24px; }
  .btn--link { font-size: 11px; }
  /* Cart count badge slightly bigger */
  .cart-count { font-size: 10px; width: 18px; height: 18px; }
  /* Form-msg & meta */
  .form-msg, .pdp-features span, .product-meta { font-size: 13px; }
  /* "11px" muted notes (legal disclaimers) on dark / footer */
  .footer p, .newsletter p { font-size: 13px; line-height: 1.7; }
  /* Crumbs */
  .crumbs { font-size: 10px; letter-spacing: 0.16em; }
}
@media (max-width: 480px) {
  /* Tighter lines but more visible */
  .topbar { font-size: 10px; letter-spacing: 0.14em; }
  .brand { font-size: 13px; letter-spacing: 0.14em; }
  .brand-sub { font-size: 8px !important; letter-spacing: 0.28em; }
}

/* ───────── Collections section (redesigned "Univers") ───────── */
.section-collections {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212,182,121,.08), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(176,136,66,.05), transparent 60%),
    var(--bg);
  padding-block: var(--space-9);
}
.collections-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.collections-eyebrow {
  margin-bottom: 24px;
  color: var(--gold);
}
.collections-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.collections-title em {
  font-style: italic;
  color: var(--gold);
}
.collections-sub {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

.collections-grid {
  display: grid;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.collections-grid[data-cols="1"] { grid-template-columns: 1fr; max-width: 720px; }
.collections-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.collections-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }

.collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  transition: transform .5s cubic-bezier(.2,.8,.2,1),
              box-shadow .5s cubic-bezier(.2,.8,.2,1),
              border-color .3s ease;
  overflow: hidden;
}
.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(26,22,18,.18);
  border-color: var(--gold);
}

.collection-card-num {
  position: absolute;
  top: 20px; left: 24px;
  z-index: 3;
  font-family: var(--mono), monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.85);
  background: rgba(26,22,18,.45);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}

.collection-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.collection-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.collection-card:hover .collection-card-media img {
  transform: scale(1.08);
}
.collection-card-media::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(26,22,18,.35));
  pointer-events: none;
}
.collection-card-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #F4EFE3 0%, #E5DBC4 100%);
}

.collection-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
.collection-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 400;
}
.collection-card-name {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}
.collection-card-tagline {
  font-style: italic;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.4;
}
.collection-card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.collection-card-stats strong {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--serif);
  font-size: 14px;
}
.collection-card-stats .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.collection-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  position: relative;
  align-self: flex-start;
}
.collection-card-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 24px;
  bottom: -4px;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.collection-card:hover .collection-card-cta::after { transform: scaleX(1); }
.collection-card-cta svg {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.collection-card:hover .collection-card-cta svg { transform: translateX(6px); }

/* Responsive */
@media (max-width: 900px) {
  .collections-grid[data-cols="2"],
  .collections-grid[data-cols="3"] { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 600px) {
  .section-collections { padding-block: 64px; }
  .collections-head { margin-bottom: 40px; }
  .collections-grid { gap: 24px; }
  .collection-card-num { font-size: 10px; padding: 5px 10px; top: 14px; left: 16px; }
  .collection-card-body { padding: 22px 22px 26px; }
  .collection-card-name { font-size: 38px; }
  .collection-card-tagline { font-size: 15px; margin-bottom: 18px; }
}

/* ───────── Checkout v2 — improved UI/UX ───────── */
[data-page="checkout"] .crumbs,
[data-page="checkout"] .collection-hero { display: none; }

.checkout-stepper {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter);
}
.checkout-stepper ol {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.checkout-stepper .step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.checkout-stepper .step:not(:last-child)::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--ink-faint);
  margin-left: 4px;
}
.checkout-stepper .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--ink-faint);
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-muted);
}
.checkout-stepper .step.done .step-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.checkout-stepper .step.done .step-label,
.checkout-stepper .step.active .step-label { color: var(--ink); }
.checkout-stepper .step.active .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
@media (max-width: 600px) {
  .checkout-stepper { padding: 16px 12px; }
  .checkout-stepper .step-label { display: none; }
  .checkout-stepper .step.active .step-label { display: inline; font-weight: 500; }
  .checkout-stepper .step:not(:last-child)::after { width: 24px; }
}

.checkout-trust {
  background: var(--bg-elevated);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.checkout-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.checkout-trust-item svg { color: var(--gold); flex-shrink: 0; }
@media (max-width: 720px) {
  .checkout-trust { gap: 14px 20px; padding: 14px 16px; }
  .checkout-trust-item { font-size: 11px; }
}

.checkout-errors {
  max-width: 1280px;
  margin: 24px auto;
  padding: 16px 24px;
  background: #FCEEEE;
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
}
.checkout-errors ul { margin: 8px 0 0 20px; }

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  padding: 48px 8% 96px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: flex-start;
}
@media (max-width: 980px) {
  .checkout-form { grid-template-columns: 1fr; gap: 32px; padding: 32px var(--gutter) 80px; }
  .checkout-form aside { position: static !important; }
}

.checkout-section {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 16px;
}
.checkout-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.checkout-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 14px;
  flex-shrink: 0;
}
.checkout-section-head .checkout-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 2px;
}
.checkout-section-sub {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin: 0;
}
.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.field:focus { border-color: var(--gold); }

.checkout-notes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
  list-style: none;
  padding: 4px 0;
}
.checkout-notes summary::-webkit-details-marker { display: none; }
.checkout-notes summary svg { transition: transform .25s ease; }
.checkout-notes[open] summary svg { transform: rotate(180deg); }

.checkout-cgv {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.checkout-cgv input { margin-top: 3px; flex-shrink: 0; accent-color: var(--ink); }
.checkout-cgv a { text-decoration: underline; }
.checkout-cgv a:hover { color: var(--gold); }

.checkout-submit-mobile {
  display: none;
  width: 100%;
  margin-top: 20px;
  padding: 18px 24px;
  font-size: 13px;
  letter-spacing: 0.18em;
  gap: 10px;
}
@media (max-width: 980px) {
  .checkout-submit-mobile { display: inline-flex; align-items: center; justify-content: center; }
  .checkout-summary .checkout-submit { display: none; }
}

.checkout-summary {
  background: var(--bg-soft);
  padding: 28px;
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
}
.checkout-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.checkout-summary-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
}
.checkout-edit {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: underline;
}
.checkout-edit:hover { color: var(--gold); }

.checkout-summary-items {
  margin-bottom: 16px;
  max-height: 320px;
  overflow-y: auto;
}
.checkout-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  align-items: flex-start;
}
.checkout-line:last-child { border-bottom: 0; }
.checkout-line-img {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.checkout-line-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-line-qty {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border: 2px solid var(--bg-soft);
}
.checkout-line-info { font-size: 13px; line-height: 1.4; }
.checkout-line-name { color: var(--ink); }
.checkout-line-meta { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.checkout-line-price { font-family: var(--serif); font-size: 14px; font-weight: 500; }

.checkout-totals { padding: 4px 0 16px; border-top: 1px solid var(--line); margin-top: 4px; }
.checkout-totals .t-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.checkout-totals .t-row small { color: var(--ink-muted); font-size: 11px; font-weight: 400; }
.checkout-totals .t-row--muted { color: var(--ink-muted); font-size: 12px; }
.checkout-totals .t-free { color: #2C4A3E; font-weight: 500; }
.checkout-totals .t-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 19px;
}
.checkout-totals .t-total span:last-child { font-weight: 500; }

.checkout-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 18px 24px;
  font-size: 13px;
  letter-spacing: 0.18em;
  gap: 10px;
}

.checkout-reassure {
  list-style: none;
  margin: 20px 0 16px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.checkout-reassure li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.checkout-reassure li:last-child { margin-bottom: 0; }
.checkout-reassure li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: bold;
  font-size: 13px;
}

.checkout-pay-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  justify-content: center;
}
.checkout-help {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-muted);
}
.checkout-help a { text-decoration: underline; color: var(--ink-soft); }
.checkout-help a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .checkout-section { padding: 22px 18px; }
  .checkout-section-num { width: 26px; height: 26px; font-size: 12px; }
  .checkout-section-head .checkout-h { font-size: 18px; }
  .checkout-summary { padding: 22px 18px; }
}
