/* ============================================================
   Maison Dahab — tokens & styles
   Palettes / gold tone / serif are switched via data-attributes
   on <html>, driven by the Tweaks panel.
   ============================================================ */

:root {
  /* charcoal (default) */
  --bg: #131110;
  --bg-2: #1b1815;
  --bg-3: #232019;
  --ink: #ece4d4;
  --ink-soft: #b5ab97;
  --muted: #877e6c;
  --line: rgba(236, 228, 212, 0.13);
  --velvet: #14241f; /* secondary jewel tone, sparing */

  /* gold — warm 21k default */
  --gold: #d2a44a;
  --gold-2: #ecc97e;
  --gold-dim: #9d7c39;
  --gold-line: rgba(210, 164, 74, 0.45);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --pad: clamp(20px, 4.5vw, 64px);
  --maxw: 1320px;
}

html[data-palette="emeraude"] {
  --bg: #0d211c;
  --bg-2: #122b25;
  --bg-3: #18352e;
  --ink: #eae6d6;
  --ink-soft: #adb3a0;
  --muted: #7c8674;
  --line: rgba(234, 230, 214, 0.13);
  --velvet: #25100f;
}
html[data-palette="bordeaux"] {
  --bg: #260e11;
  --bg-2: #311318;
  --bg-3: #3d1a20;
  --ink: #efe5d6;
  --ink-soft: #c0ab9b;
  --muted: #93786a;
  --line: rgba(239, 229, 214, 0.13);
  --velvet: #11251e;
}
html[data-gold="pale"] {
  --gold: #c8b078;
  --gold-2: #e6d6ab;
  --gold-dim: #97824f;
  --gold-line: rgba(200, 176, 120, 0.45);
}
html[data-serif="playfair"] { --serif: "Playfair Display", Georgia, serif; }
html[data-serif="marcellus"] { --serif: "Marcellus", Georgia, serif; }

/* frozen-rendering fallback: jump every animation/transition to its end state */
html[data-anim-frozen] *, html[data-anim-frozen] *::before, html[data-anim-frozen] *::after {
  transition: none !important;
  animation: none !important;
}
html[data-anim-frozen] .rise { opacity: 1 !important; transform: none !important; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold-dim); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* eyebrow */
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 400;
}

/* gold hairline */
.hairline { height: 1px; background: var(--gold-line); border: 0; margin: 0; }

/* serif numerals for prices */
.price {
  font-family: var(--serif);
  color: var(--gold-2);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 28px;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 400;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { border-color: var(--gold); background: rgba(210, 164, 74, 0.08); }
.btn--solid { background: var(--gold); border-color: var(--gold); color: #181206; font-weight: 500; }
.btn--solid:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--ghost { border-color: var(--line); color: var(--ink-soft); }
.btn--ghost:hover { border-color: var(--gold-line); color: var(--gold-2); background: transparent; }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.hdr__logo { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.hdr__logo .mark {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.hdr__logo .mark em { font-style: normal; color: var(--gold); }
.hdr__logo .sub {
  font-size: 8.5px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .hdr__logo .mark { font-size: 19px; }
  .hdr__logo .sub { display: none; }
}
.hdr__nav { display: flex; gap: 4px; }
.hdr__navitem { position: relative; }
.hdr__navlink {
  display: inline-flex;
  align-items: center;
  height: 68px;
  padding: 0 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  background: none;
  border: 0;
  transition: color 0.2s var(--ease);
  position: relative;
}
.hdr__navlink::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.hdr__navlink:hover, .hdr__navlink.is-open { color: var(--gold-2); }
.hdr__navlink:hover::after, .hdr__navlink.is-open::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s var(--ease);
}
.iconbtn:hover { color: var(--gold-2); }
.iconbtn .badge {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #181206;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 1px solid var(--gold-line);
  padding: 28px 32px 30px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  animation: megain 0.25s var(--ease);
}
@keyframes megain { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__title { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mega__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  text-align: left;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.mega__link small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.mega__link:hover { color: var(--gold-2); border-bottom-color: var(--gold-line); padding-left: 6px; }
.mega__visual { border: 1px solid var(--line); padding: 6px; }

/* ---------- mobile drawer nav ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.6);
  backdrop-filter: blur(3px);
  z-index: 70;
  animation: fadein 0.25s var(--ease);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 71;
  width: min(420px, 92vw);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  animation: drawerin 0.3s var(--ease);
}
.drawer--left { left: 0; border-right: 1px solid var(--gold-line); }
.drawer--right { right: 0; border-left: 1px solid var(--gold-line); animation-name: drawerinR; }
@keyframes drawerin { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawerinR { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 20px; letter-spacing: 0.06em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 24px 24px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 24px; }

.mnav__group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.mnav__top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  padding: 6px 0;
  min-height: 44px;
}
.mnav__top .chev { color: var(--gold); transition: transform 0.25s var(--ease); font-size: 14px; }
.mnav__top.is-open .chev { transform: rotate(90deg); }
.mnav__subs { display: flex; flex-direction: column; padding: 4px 0 6px 14px; border-left: 1px solid var(--gold-line); margin-left: 2px; }
.mnav__sub {
  background: none; border: 0; text-align: left;
  color: var(--ink-soft); font-size: 14px; letter-spacing: 0.08em;
  padding: 10px 0; min-height: 44px;
  display: flex; align-items: center;
}
.mnav__sub:hover { color: var(--gold-2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: min(86vh, 780px);
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide image-slot { width: 100%; height: 100%; }
.hero__slide .ken { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .hero__slide.is-active .ken { animation: ken 9s ease forwards; }
}
@keyframes ken { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.35) 0%, rgba(10, 8, 6, 0.05) 40%, rgba(10, 8, 6, 0.62) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad) clamp(36px, 7vh, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  pointer-events: none;
}
.hero__content > * { pointer-events: auto; }
.hero__title {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1.02;
  letter-spacing: 0.015em;
  font-weight: 500;
  max-width: 12ch;
  margin: 14px 0 10px;
}
.hero__title em { font-style: italic; color: var(--gold-2); }
.hero__sub { color: var(--ink-soft); max-width: 44ch; font-size: 14px; margin: 0 0 26px; }
.hero__dots { display: flex; gap: 10px; margin-top: 30px; }
.hero__dot {
  width: 34px; height: 2px;
  background: rgba(236, 228, 212, 0.25);
  border: 0; padding: 0;
  position: relative;
  transition: background 0.3s var(--ease);
}
.hero__dot.is-active { background: var(--gold); }

/* signature: light sweep across hero title (once on load) */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .sweep {
    background-image: linear-gradient(100deg, currentColor 42%, var(--gold-2) 50%, currentColor 58%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sweep 2.2s var(--ease) 0.5s 1 both;
  }
  @keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
  /* hairlines that glint once */
  html:not([data-motion="off"]) .hairline--glint {
    background-image: linear-gradient(90deg, var(--gold-line) 40%, var(--gold-2) 50%, var(--gold-line) 60%);
    background-size: 300% 100%;
    background-position: 120% 0;
    animation: glint 2.4s var(--ease) 0.8s 1 both;
  }
  @keyframes glint { from { background-position: 120% 0; } to { background-position: -20% 0; } }
}

/* fade-up entrances (once) */
.rise { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .rise {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: var(--rise-delay, 0s);
  }
  html:not([data-motion="off"]) .rise.is-in { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: 0.01em; }
.section__head .eyebrow { display: block; margin-bottom: 12px; }
.linklite {
  background: none; border: 0; padding: 6px 0;
  color: var(--gold-2); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
  white-space: nowrap;
}
.linklite:hover { border-bottom-color: var(--gold); }

/* collections — editorial asymmetric trio */
.collections {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.colcard {
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}
.colcard:hover { border-color: var(--gold-line); }
.colcard__img { overflow: hidden; flex: 1; min-height: 0; }
.colcard__img image-slot { width: 100%; height: 100%; min-height: 300px; transition: transform 0.45s var(--ease); }
.colcard:hover .colcard__img image-slot { transform: scale(1.03); }
.colcard:nth-child(1) .colcard__img image-slot { min-height: 420px; }
.colcard__meta { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 8px 8px; }
.colcard__meta h3 { font-size: 24px; letter-spacing: 0.02em; }
.colcard__meta .count { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.colcard:nth-child(2) { margin-top: 44px; }
.colcard:nth-child(3) { margin-top: 88px; }

/* atelier strip */
.atelier {
  margin-top: clamp(56px, 9vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.atelier__in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
}
.atelier__num {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 130px);
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.atelier__txt h3 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 8px; }
.atelier__txt p { color: var(--ink-soft); max-width: 52ch; margin: 0; }

/* ---------- product card ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.pcard {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 10px 10px 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
  position: relative;
}
.pcard:hover { border-color: var(--gold-line); }
.pcard__img { position: relative; overflow: hidden; aspect-ratio: 4 / 4.6; }
.pcard__img image-slot { width: 100%; height: 100%; transition: transform 0.45s var(--ease); }
.pcard:hover .pcard__img image-slot { transform: scale(1.03); }
.pcard__carat {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(12, 10, 8, 0.72);
  border: 1px solid var(--gold-line);
  padding: 5px 9px 4px 11px;
  backdrop-filter: blur(4px);
}
.pcard__body { padding: 16px 8px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  position: relative;
  align-self: flex-start;
}
.pcard__name::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.pcard:hover .pcard__name::after { transform: scaleX(1); }
.pcard__sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pcard__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.pcard__row .price { font-size: 22px; }
.pcard__add {
  min-height: 38px;
  padding: 0 16px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pcard__add:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- listing ---------- */
.shop__layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.shop__filters { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 26px; }
.fgroup__title { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.fgroup { border-top: 1px solid var(--line); padding-top: 16px; }
.fgroup:first-child { border-top: 0; padding-top: 0; }
.flink {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none; border: 0;
  text-align: left;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}
.flink:hover { color: var(--gold-2); }
.flink.is-active { color: var(--gold-2); }
.flink.is-active::before { content: "— "; color: var(--gold); }
.flink--sub { padding-left: 14px; font-size: 12.5px; }
.flink .n { font-size: 10px; color: var(--muted); }
.shop__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.shop__count { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.shop__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.input, .select, .textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 0 14px;
  min-height: 44px;
  transition: border-color 0.2s var(--ease);
  outline: none;
}
.textarea { padding: 12px 14px; min-height: 100px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-line); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 49%, var(--gold) 50%, transparent 53%); background-size: 9px 9px; background-position: right 14px center; background-repeat: no-repeat; }

/* mobile filter chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip.is-active { border-color: var(--gold); color: var(--gold-2); }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp__gallery { position: sticky; top: 92px; }
.pdp__main { border: 1px solid var(--line); padding: 10px; background: var(--bg-2); }
.pdp__main image-slot { width: 100%; aspect-ratio: 1 / 1.05; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pdp__thumb { border: 1px solid var(--line); padding: 4px; background: var(--bg-2); cursor: pointer; transition: border-color 0.2s var(--ease); }
.pdp__thumb.is-active { border-color: var(--gold); }
.pdp__thumb image-slot { width: 72px; height: 72px; }
.pdp__info { display: flex; flex-direction: column; gap: 0; }
.pdp__name { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 10px 0 14px; }
.pdp__price { font-size: clamp(30px, 3vw, 40px); }
.pdp__pricewrap { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 6px; }
.pdp__pricewrap .note { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.pdp__desc { color: var(--ink-soft); max-width: 52ch; margin: 18px 0 26px; }
.attrs { border-top: 1px solid var(--gold-line); margin-bottom: 28px; width: 100%; border-collapse: collapse; }
.attrs tr { border-bottom: 1px solid var(--line); }
.attrs th {
  text-align: left;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 18px 12px 0;
  white-space: nowrap;
  width: 1%;
}
.attrs td { font-family: var(--serif); font-size: 17px; color: var(--ink); padding: 12px 0; }
.qty { display: flex; align-items: stretch; border: 1px solid var(--line); }
.qty button {
  width: 46px; min-height: 46px;
  background: none; border: 0;
  color: var(--gold-2); font-size: 18px;
  transition: background 0.2s var(--ease);
}
.qty button:hover { background: rgba(210, 164, 74, 0.08); }
.qty span { display: flex; align-items: center; justify-content: center; min-width: 48px; font-family: var(--serif); font-size: 18px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pdp__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.pdp__cta .btn--solid { flex: 1; min-width: 220px; }
.pdp__assurance { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.pdp__assurance div { display: flex; gap: 12px; align-items: baseline; font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0.04em; }
.pdp__assurance .tick { color: var(--gold); font-family: var(--serif); }

/* breadcrumb */
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.crumbs button { background: none; border: 0; color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 0; transition: color 0.2s var(--ease); }
.crumbs button:hover { color: var(--gold-2); }
.crumbs .sep { color: var(--gold-dim); }

/* ---------- cart ---------- */
.cline { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cline image-slot { width: 76px; height: 84px; }
.cline__name { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.cline__meta { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.cline__qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); margin-top: 10px; width: max-content; }
.cline__qty button { width: 34px; min-height: 34px; background: none; border: 0; color: var(--gold-2); font-size: 15px; }
.cline__qty span { min-width: 32px; text-align: center; font-family: var(--serif); font-size: 15px; }
.cline__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cline__right .price { font-size: 17px; }
.cline__rm { background: none; border: 0; color: var(--muted); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 0; transition: color 0.2s var(--ease); }
.cline__rm:hover { color: var(--gold-2); }
.cart__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cart__total .lbl { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.cart__total .price { font-size: 28px; }
.cart__note { font-size: 11px; color: var(--muted); margin: 10px 0 0; text-align: center; letter-spacing: 0.04em; }
.cart__empty { text-align: center; padding: 64px 0; color: var(--muted); }
.cart__empty .serif { font-size: 24px; color: var(--ink-soft); display: block; margin-bottom: 8px; }

/* ---------- order form ---------- */
.order { max-width: 640px; margin: 0 auto; }
.order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.field .err { font-size: 11px; color: #c98a7a; letter-spacing: 0.04em; }
.input.is-invalid, .textarea.is-invalid { border-color: rgba(201, 138, 122, 0.6); }
.order__recap { border: 1px solid var(--line); background: var(--bg-2); padding: 20px 24px; margin: 26px 0; }
.order__recapline { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; font-size: 13px; color: var(--ink-soft); }
.order__recapline .price { font-size: 15px; }
.order__recapline--total { border-top: 1px solid var(--gold-line); margin-top: 8px; padding-top: 14px; }
.order__recapline--total .price { font-size: 22px; }

/* confirmation */
.confirm { text-align: center; max-width: 560px; margin: 0 auto; padding: clamp(48px, 9vw, 96px) 0; }
.confirm__ref {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--gold-2);
  letter-spacing: 0.08em;
  margin: 18px 0 6px;
}
.confirm h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 18px 0 10px; }
.confirm p { color: var(--ink-soft); max-width: 42ch; margin: 0 auto 8px; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(64px, 10vw, 130px); border-top: 1px solid var(--gold-line); background: var(--bg-2); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: clamp(40px, 6vw, 72px) 0 48px; }
.footer h4 { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 16px; }
.footer__brand .mark { font-family: var(--serif); font-size: 26px; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__brand .mark em { font-style: normal; color: var(--gold); }
.footer__brand p { color: var(--muted); font-size: 12.5px; max-width: 30ch; margin: 12px 0 0; }
.footer__links { display: flex; flex-direction: column; gap: 4px; }
.footer__links button, .footer__links span {
  background: none; border: 0; text-align: left; padding: 5px 0;
  color: var(--ink-soft); font-size: 13px; letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}
.footer__links button:hover { color: var(--gold-2); }
.footer__base { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

/* ---------- floating contact ---------- */
.contact-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-line);
  background: var(--bg-2);
  color: var(--gold-2);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.fab:hover { border-color: var(--gold); transform: translateY(-2px); }
.fab--wa { background: #103528; border-color: rgba(37, 211, 102, 0.4); color: #4cd97a; }

/* ---------- page shell ---------- */
.page { min-height: 60vh; padding-top: 28px; }
.page__head { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px); }
.page__head h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.04; margin: 12px 0 0; }

/* ---------- responsive ---------- */
.only-mobile { display: none; }
@media (max-width: 980px) {
  .hdr__nav { display: none; }
  .only-mobile { display: flex; }
  .only-desktop { display: none; }
  .collections { grid-template-columns: 1fr 1fr; }
  .colcard:nth-child(1) { grid-column: 1 / -1; }
  .colcard:nth-child(2), .colcard:nth-child(3) { margin-top: 0; }
  .shop__layout { grid-template-columns: 1fr; }
  .shop__filters { position: static; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; }
  .atelier__in { grid-template-columns: 1fr; gap: 18px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .collections { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 12px; }
  .pcard__name { font-size: 17px; }
  .pcard__row .price { font-size: 18px; }
  .pcard__add { padding: 0 10px; font-size: 9.5px; }
  .order__grid { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 460px; height: 78vh; }
}
