/* =========================================================
   RM Jewels — brand stylesheet
   Palette taken from the logo: deep burgundy on warm paper white
   ========================================================= */
:root {
  --wine: #6d1a2b;
  --wine-deep: #4a0f1c;
  --wine-soft: #8c3345;
  --paper: #fbf9f6;
  --cream: #f4efe8;
  --blush: #efe1dc;
  --ink: #2b1b1e;
  --muted: #84726f;
  --line: #e4dbd2;
  --gold: #b8935a;
  --gold-light: #e6cfa2;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain, like the logo's textured card */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
::selection { background: var(--wine); color: #fff; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; color: var(--wine-deep); }
h1 { font-size: clamp(2.900rem, 7vw, 5.600rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2.100rem, 4.400vw, 3.500rem); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--wine); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; color: var(--wine);
}
.eyebrow svg { width: 12px; height: 12px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  color: #fff; background: var(--wine); border: 1px solid var(--wine);
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wine-deep);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn--ghost { color: var(--wine); background: transparent; }
.btn--ghost::before { background: var(--wine); }
.btn--ghost:hover { color: #fff; }
.btn--light { color: var(--wine-deep); background: var(--paper); border-color: var(--paper); }
.btn--light::before { background: var(--gold-light); }
.btn--full { width: 100%; }

.icon-btn {
  position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center;
  color: var(--wine-deep); border-radius: 50%; transition: background .3s, color .3s;
}
.icon-btn:hover { background: rgba(109, 26, 43, .08); }
.icon-btn svg { width: 22px; height: 22px; }
.count {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px;
  font-size: .62rem; font-weight: 500; line-height: 1; color: #fff; background: var(--wine);
}
.count[hidden] { display: none; }
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--wine); line-height: 1; }
.logo-mark { position: relative; font-family: var(--serif); font-weight: 500; font-size: 2rem; letter-spacing: -.02em; }
.logo-star { position: absolute; left: 52%; top: -7px; width: 10px; height: 10px; transform: translateX(-50%); }
.logo-sub { margin-top: 3px; padding-left: .5em; font-family: var(--serif); font-size: .56rem; letter-spacing: .5em; text-transform: uppercase; }
.logo--lg .logo-mark { font-size: 4.200rem; }
.logo--lg .logo-star { width: 20px; height: 20px; top: -14px; }
.logo--lg .logo-sub { font-size: .95rem; margin-top: 8px; }
.logo--light { color: var(--paper); align-items: flex-start; }
.logo--light .logo-mark { font-size: 2.800rem; }
.logo--light .logo-star { width: 14px; height: 14px; top: -10px; }
.logo--light .logo-sub { font-size: .7rem; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--paper);
  transition: opacity .7s var(--ease), visibility .7s;
  animation: preloadOut .7s 3.500s forwards; /* safety net if JS never runs */
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .logo { animation: rise 1s var(--ease) both; }
.preloader .logo-star { animation: twinkle 1.400s ease-in-out infinite; }
@keyframes preloadOut { to { opacity: 0; visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes twinkle { 50% { transform: translateX(-50%) scale(1.5) rotate(45deg); opacity: .6; } }


/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 249, 246, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s, height .4s var(--ease);
}
.header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(74, 15, 28, .5); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav { display: flex; gap: clamp(18px, 2.400vw, 36px); }
.nav a, .footer nav a {
  position: relative; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--wine);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover, .nav a.active { color: var(--wine); }
.header-actions { display: flex; justify-content: flex-end; gap: 2px; }
.menu-btn { display: none; }
.burger { display: grid; gap: 7px; width: 22px; }
.burger i { height: 1.400px; background: currentColor; }
.burger i:last-child { width: 60%; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0 auto 0 0; z-index: 120; width: min(86vw, 380px); padding: 84px 32px 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--wine-deep); color: var(--paper);
  transform: translateX(-102%); transition: transform .6s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-close { position: absolute; top: 18px; right: 18px; color: var(--paper); }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 2.100rem; line-height: 1.5; border-bottom: 1px solid rgba(255, 255, 255, .12);
  opacity: 0; transform: translateX(-18px); transition: opacity .5s, transform .5s var(--ease);
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(1) { transition-delay: .15s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .21s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .27s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .33s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: .39s; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }


/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.050fr .95fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero-copy h1 { margin: 22px 0 24px; }
.lead { max-width: 30em; font-size: 1.060rem; color: #5b4a4c; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; gap: clamp(18px, 3vw, 44px); margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-points strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.550rem; color: var(--wine); line-height: 1.2; }
.hero-points span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.hero-visual { position: relative; width: min(100%, 500px); margin-inline: auto; }
.hero-arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 18%, #8c2a3f 0%, var(--wine) 42%, var(--wine-deep) 100%);
  box-shadow: 0 50px 80px -50px rgba(74, 15, 28, .75);
}
.hero-arch::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(230, 207, 162, .35); border-radius: inherit; pointer-events: none; }
.spark { position: absolute; color: var(--gold-light); animation: glint 3.600s ease-in-out infinite; }
.spark.s1 { width: 26px; height: 26px; top: 20%; left: 20%; }
.spark.s2 { width: 14px; height: 14px; top: 34%; right: 18%; animation-delay: 1.100s; }
.spark.s3 { width: 18px; height: 18px; bottom: 20%; left: 26%; animation-delay: 2.200s; }
@keyframes glint { 0%, 100% { transform: scale(.4) rotate(0); opacity: .25; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.hero-badge { position: absolute; top: 4%; left: -7%; width: clamp(88px, 12vw, 128px); border-radius: 50%; box-shadow: 0 14px 30px -14px rgba(74, 15, 28, .5); animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card {
  position: absolute; right: -6%; bottom: 9%; display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; text-align: left;
  background: var(--paper); box-shadow: 0 24px 50px -22px rgba(74, 15, 28, .55); transition: transform .5s var(--ease);
}
.hero-card:hover { transform: translateY(-5px); }
.hero-card-art { width: 62px; height: 62px; padding: 6px; background: var(--blush); }
.hero-card small { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-card b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.150rem; color: var(--wine-deep); line-height: 1.3; }
.hero-card em { font-style: normal; font-size: .74rem; color: var(--wine); }

/* ---------- Promise strip ---------- */
.promise { border-block: 1px solid var(--line); background: rgba(244, 239, 232, .6); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise-grid > div { padding: 34px 24px; text-align: center; border-left: 1px solid var(--line); }
.promise-grid > div:first-child { border-left: 0; }
.promise svg { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--wine); }
.promise h3 { font-size: 1.300rem; }
.promise p { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: rgba(244, 239, 232, .7); }
.section-head { text-align: center; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head h2 { margin-top: 14px; }
.section-sub { max-width: 36em; margin: 16px auto 0; color: #5b4a4c; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.cat {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; text-align: left;
  border-radius: 999px 999px 0 0; background: var(--cream); transition: background .6s var(--ease);
}
.cat:nth-child(even) { background: var(--blush); }
.cat-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: flex; justify-content: space-between; align-items: end; }
.cat-label b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.300rem, 2.200vw, 1.800rem); color: var(--wine-deep); line-height: 1.1; }
.cat-label small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cat-label svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; border: 1px solid var(--wine); color: var(--wine); flex: none; transition: background .4s, color .4s; }
.cat:hover .cat-label svg { background: var(--wine); color: #fff; }

/* ---------- Shop ---------- */
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 20px; border: 1px solid var(--line); border-radius: 40px; background: var(--paper);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; transition: all .35s var(--ease);
}
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.sort select, .field input, .field select, .field textarea, .size-select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background-color: var(--paper);
  font-size: 1rem; font-weight: 300; transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.sort select, .field select, .size-select {
  padding-right: 38px; background-repeat: no-repeat; background-position: right 14px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d1a2b' stroke-width='1.4'/%3E%3C/svg%3E");
}
.sort select { min-height: 40px; padding-block: 6px; font-size: .86rem; border-radius: 40px; padding-left: 18px; }
.field input:focus, .field select:focus, .field textarea:focus, .sort select:focus { outline: 0; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(109, 26, 43, .1); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 26px) clamp(10px, 1.800vw, 22px); }
.card { position: relative; animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px); } }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card-open { position: absolute; inset: 0; width: 100%; padding: 16% 14%; }
.badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 4px 10px; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; background: var(--paper); color: var(--wine); }
.wish {
  position: absolute; z-index: 2; top: 8px; right: 8px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(251, 249, 246, .9); color: var(--wine); transition: transform .3s var(--ease);
}
.wish svg { width: 19px; height: 19px; fill: none; transition: fill .3s; }
.wish:hover { transform: scale(1.1); }
.wish[aria-pressed="true"] svg { fill: var(--wine); animation: bump .45s var(--ease); }
.quick {
  position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; min-height: 42px;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; background: var(--paper); color: var(--wine-deep);
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s var(--ease), background .3s, color .3s;
}
.quick:hover { background: var(--wine); color: #fff; }
.card:hover .quick, .quick:focus-visible { opacity: 1; transform: none; }
.card-body { padding: 14px 2px 0; }
.card-cat { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card-body h3 { font-size: clamp(1.150rem, 1.700vw, 1.400rem); margin: 2px 0 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-size: 1rem; font-weight: 400; color: var(--wine); }
.add { min-height: 36px; padding: 0 2px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; border-bottom: 1px solid currentColor; color: var(--wine-deep); transition: color .3s; }
.add:hover { color: var(--wine-soft); }
.empty { padding: 60px 0; text-align: center; font-family: var(--serif); font-size: 1.400rem; color: var(--muted); }

/* ---------- Story ---------- */
.story { position: relative; padding: clamp(70px, 10vw, 130px) 0; color: #ecdcd7; overflow: hidden; background: radial-gradient(90% 120% at 12% 10%, #862a3d 0%, var(--wine) 40%, var(--wine-deep) 100%); }
.story h2 { color: #fff; margin: 14px 0 22px; }
.story h2 em { color: var(--gold-light); }
.story .eyebrow { color: var(--gold-light); }
.story-grid { display: grid; grid-template-columns: .9fr 1.100fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.story-copy p + p { margin-top: 14px; }
.values { margin-top: 32px; border-top: 1px solid rgba(230, 207, 162, .25); }
.values li { display: flex; gap: 22px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid rgba(230, 207, 162, .25); }
.values b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.200rem; color: var(--gold-light); }
.values span { font-size: .98rem; color: #fff; }
.story-visual { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-inline: auto; }
.story-frame { position: absolute; border: 1px solid rgba(230, 207, 162, .4); background: rgba(255, 255, 255, .05); padding: 9%; }
.story-frame.f1 { inset: 0 22% 20% 0; border-radius: 999px 999px 0 0; }
.story-frame.f2 { inset: 46% 0 0 46%; border-radius: 50%; background: var(--paper); padding: 7%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.story-visual > .spark { width: 34px; height: 34px; top: 8%; right: 8%; }

/* ---------- Bespoke steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-bottom: 48px; counter-reset: s; }
.steps li { padding: 34px 28px 36px; border: 1px solid var(--line); background: var(--paper); transition: transform .6s var(--ease), box-shadow .6s, border-color .6s; }
.steps li:hover { transform: translateY(-8px); border-color: var(--gold-light); box-shadow: 0 30px 50px -36px rgba(74, 15, 28, .5); }
.steps span { font-family: var(--serif); font-style: italic; font-size: 2.600rem; line-height: 1; color: var(--gold); }
.steps h3 { font-size: 1.650rem; margin: 16px 0 8px; }
.steps p { color: #5b4a4c; font-size: .96rem; }

/* ---------- Quotes ---------- */
.quotes { text-align: center; }
.quotes-spark { position: static; width: 26px; height: 26px; margin: 0 auto 26px; color: var(--wine); }
.quote-stage { display: grid; max-width: 860px; margin-inline: auto; }
.quote { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.500rem, 3.400vw, 2.500rem); line-height: 1.3; color: var(--wine-deep); }
.quote figcaption { margin-top: 22px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 26px; }
.dots button { width: 32px; height: 32px; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--wine); transition: background .3s, transform .3s; }
.dots button[aria-selected="true"]::before { background: var(--wine); transform: scale(1.250); }

/* ---------- Visit / form ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.visit-copy h2 { margin: 14px 0 20px; }
.visit-copy > p { color: #5b4a4c; max-width: 30em; }
.form { padding: clamp(22px, 4vw, 44px); background: var(--cream); border: 1px solid var(--line); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: var(--wine-deep); }
.field label small { letter-spacing: .05em; text-transform: none; color: var(--muted); font-size: .76rem; }
.field textarea { resize: vertical; }
.field.invalid input { border-color: #b3261e; }
.field .err { display: block; margin-top: 4px; font-size: .8rem; color: #b3261e; }
.form-note { min-height: 1.400em; font-size: .9rem; color: var(--wine); text-align: center; }
.form.sent { place-items: center; text-align: center; min-height: 380px; align-content: center; }
.form.sent svg { width: 34px; height: 34px; color: var(--wine); animation: glint 3s infinite; }
.form.sent h3 { font-size: 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--wine-deep); color: #d9c5c0; padding-top: clamp(56px, 7vw, 90px); }
.footer-top { display: grid; grid-template-columns: 1.600fr .9fr .9fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { margin-top: 18px; max-width: 18em; font-family: var(--serif); font-style: italic; font-size: 1.200rem; }
.footer h4 { margin-bottom: 16px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; color: var(--gold-light); }
.footer nav { display: grid; align-content: start; }
.footer nav a { letter-spacing: .06em; text-transform: none; font-size: .95rem; font-weight: 300; padding: 5px 0; transition: color .3s, padding .3s; }
.footer nav a:hover { color: #fff; padding-left: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .76rem; letter-spacing: .08em; }

/* ---------- Overlay, drawer, modal, search ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(43, 14, 20, .5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(100vw, 440px); display: flex; flex-direction: column;
  background: var(--paper); transform: translateX(102%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 18px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.700rem; }
.drawer-head h3 span { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 26px; overscroll-behavior: contain; }
.drawer-foot { padding: 20px 26px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); }
.drawer-foot p { font-size: .82rem; color: var(--muted); margin: 2px 0 16px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.total b { font-family: var(--serif); font-weight: 500; font-size: 1.700rem; color: var(--wine); }
.line { display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); animation: cardIn .5s var(--ease) both; }
.line-art { width: 78px; height: 92px; padding: 10px; }
.line h4 { font-family: var(--serif); font-weight: 500; font-size: 1.200rem; line-height: 1.2; color: var(--wine-deep); }
.line small { display: block; font-size: .78rem; color: var(--muted); }
.line-price { font-weight: 400; color: var(--wine); white-space: nowrap; }
.line-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.remove { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid currentColor; min-height: 28px; }
.remove:hover { color: var(--wine); }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); }
.qty button { width: 36px; height: 36px; font-size: 1.100rem; color: var(--wine-deep); }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 28px; text-align: center; font-weight: 400; font-size: .92rem; }
.cart-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 40px 0; }
.cart-empty svg { width: 46px; height: 46px; color: var(--gold); }
.cart-empty p { font-family: var(--serif); font-size: 1.500rem; color: var(--wine-deep); }

.modal {
  position: fixed; z-index: 130; top: 50%; left: 50%; width: min(940px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--paper); opacity: 0; visibility: hidden; transform: translate(-50%, -46%) scale(.97);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s;
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal-close { position: absolute; z-index: 3; top: 10px; right: 10px; background: rgba(251, 249, 246, .9); }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { min-height: 420px; padding: 14%; display: grid; place-items: center; }
.modal-info { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.modal-info h3 { font-size: clamp(1.900rem, 3.400vw, 2.600rem); }
.modal-info .price { font-size: 1.300rem; }
.modal-info > p { color: #5b4a4c; }
.specs { border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs li span:first-child { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs li span:last-child { text-align: right; }
.modal-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.modal-actions .btn { flex: 1; padding-inline: 16px; }
.modal-actions .wish { position: static; width: 52px; height: 52px; border: 1px solid var(--wine); border-radius: 0; flex: none; }

.search { position: fixed; inset: 0 0 auto 0; z-index: 130; max-height: 100dvh; overflow-y: auto; padding: 22px 0 30px; background: var(--paper); transform: translateY(-102%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s; }
.search.open { transform: none; visibility: visible; }
.search-row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--wine); }
.search-row > svg { width: 24px; height: 24px; color: var(--wine); flex: none; }
.search-row input { flex: 1; min-width: 0; height: 64px; border: 0; outline: 0; background: none; font-family: var(--serif); font-size: clamp(1.300rem, 3vw, 2rem); }
.search-row input::-webkit-search-cancel-button { display: none; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 20px; }
.result { display: flex; align-items: center; gap: 14px; padding: 8px; text-align: left; transition: background .3s; }
.result:hover { background: var(--cream); }
.result-art { width: 60px; height: 60px; padding: 7px; flex: none; }
.result b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.150rem; color: var(--wine-deep); line-height: 1.2; }
.result small { color: var(--muted); }
.search-hint { grid-column: 1 / -1; color: var(--muted); }

.toast {
  position: fixed; z-index: 150; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px);
  padding: 14px 24px; background: var(--wine-deep); color: #fff; font-size: .86rem; letter-spacing: .04em; text-align: center;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top {
  position: fixed; z-index: 40; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--wine); color: var(--wine);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--wine); color: #fff; }
.to-top svg { width: 18px; height: 18px; transform: rotate(-90deg); }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .menu-btn { justify-self: start; margin-left: -8px; }
  .header-actions { margin-right: -8px; }
  .logo-mark { font-size: 1.750rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(78%, 380px); }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-card { right: -12%; }
  .hero-badge { left: -12%; }

  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid > div:nth-child(3) { border-left: 0; }
  .promise-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .visit-grid { grid-template-columns: 1fr; }
  .story-visual { width: min(80%, 360px); }
  .steps { grid-template-columns: 1fr; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-media { min-height: 0; aspect-ratio: 16 / 11; padding: 8% 26%; }
  /* touch devices have no hover: the image itself opens quick view */
  .quick { display: none; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .icon-btn { width: 40px; }
  .hero-cta .btn { width: 100%; }
  .hero-points { gap: 14px; justify-content: space-between; }
  .hero-points strong { font-size: 1.250rem; }
  .hero-points span { font-size: .6rem; letter-spacing: .12em; }
  .hero-card { right: -8%; bottom: 6%; padding: 8px 14px 8px 8px; gap: 10px; }
  .hero-card-art { width: 46px; height: 46px; }
  .hero-card b { font-size: 1rem; }
  .hero-card em { display: none; }
  .promise-grid > div { padding: 24px 12px; }
  .promise p { font-size: .8rem; }
  .shop-bar { flex-direction: column; align-items: stretch; }
  .chips { margin-inline: -16px; padding-inline: 16px; }
  .sort select { border-radius: 0; min-height: 46px; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .wish { width: 36px; height: 36px; top: 6px; right: 6px; }
  .badge { top: 8px; left: 8px; font-size: .54rem; padding: 3px 7px; }
  .cat-label { padding: 12px; }
  .cat-label svg { width: 32px; height: 32px; padding: 7px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .drawer-body, .drawer-head, .drawer-foot { padding-inline: 18px; }
  .line { grid-template-columns: 66px 1fr auto; gap: 12px; }
  .line-art { width: 66px; height: 80px; }
  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92dvh; transform: translateY(104%); border-radius: 18px 18px 0 0; }
  .modal.open { transform: none; }
  .modal-info { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Multi-page additions: inner page hero, journal, contact
   ========================================================= */
.seen .preloader { display: none; }
.mobile-menu nav a.active { color: var(--gold-light); font-style: italic; }
.section--flush { padding-top: 0; }
.section-foot { margin-top: clamp(30px, 4vw, 48px); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(40px, 7vw, 86px) 0 clamp(34px, 5vw, 60px); text-align: center; }
.page-hero h1 { font-size: clamp(2.700rem, 6.500vw, 4.800rem); margin: 14px 0 18px; }
.page-hero .lead { margin-inline: auto; max-width: 34em; }
.crumbs { display: inline-flex; gap: 10px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; color: var(--wine); }
.crumbs a { color: var(--muted); transition: color .3s; }
.crumbs a:hover { color: var(--wine); }
.crumbs span { color: var(--line); }
.result-count { margin: -14px 0 18px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); min-height: 1.700em; }

/* ---------- Burgundy call-to-action band ---------- */
.cta-band { padding: clamp(60px, 8vw, 100px) 0; text-align: center; color: #ecdcd7; background: radial-gradient(90% 140% at 50% 0%, #862a3d 0%, var(--wine) 45%, var(--wine-deep) 100%); }
.cta-band .spark { position: static; width: 24px; height: 24px; margin: 0 auto 18px; }
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: var(--gold-light); }
.cta-band p { margin: 14px auto 30px; max-width: 30em; }



/* ---------- Our Story page ---------- */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: .85fr 1.150fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.split .hero-arch { width: min(100%, 400px); margin-inline: auto; }
.split h2 { margin: 14px 0 20px; }
.split p { color: #5b4a4c; }
.split p + p { margin-top: 14px; }
.split .values { margin-top: 28px; }
.statement { text-align: center; }
.statement .spark { position: static; width: 26px; height: 26px; margin: 0 auto 26px; color: var(--wine); }
.statement blockquote { max-width: 900px; margin-inline: auto; font-family: var(--serif); font-style: italic; font-size: clamp(1.600rem, 3.600vw, 2.700rem); line-height: 1.3; color: var(--wine-deep); }
.statement p { margin-top: 22px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.story .btn { margin-top: 34px; }
@media (max-width: 1100px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .hero-arch { width: min(70%, 300px); } }
@media (max-width: 640px) { .steps--4 { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-cards { border-block: 1px solid var(--line); background: rgba(244, 239, 232, .6); }
.contact-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.contact-cards-grid > div { padding: 38px 24px; text-align: center; border-left: 1px solid var(--line); }
.contact-cards-grid > div:first-child { border-left: 0; }
.contact-cards svg { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--wine); }
.contact-cards h3 { font-size: 1.400rem; margin-bottom: 4px; }
.contact-cards p { color: #5b4a4c; }
.values--dark { border-color: var(--line); }
.values--dark li { border-color: var(--line); }
.values--dark b { color: var(--gold); }
.values--dark span { color: var(--ink); }
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.250rem, 2.400vw, 1.550rem); line-height: 1.25; color: var(--wine-deep); transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--wine); }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.400px; background: var(--wine); transition: transform .4s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 24px 0; color: #5b4a4c; }
.faq details a { color: var(--wine); border-bottom: 1px solid currentColor; }

@media (max-width: 900px) {
}
@media (max-width: 640px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
  .contact-cards-grid > div { border-left: 0; border-top: 1px solid var(--line); padding: 26px 16px; }
  .contact-cards-grid > div:first-child { border-top: 0; }
  .cta-band .btn { width: 100%; }
  .faq summary { padding-block: 18px; }
}

/* =========================================================
   Photography (replaces the drawn illustrations)
   ========================================================= */
.ph { background: var(--cream); }
.card-open img, .modal-media img, .line-art img, .result-art img, .hero-card-art img, .story-frame img, .cat img, .hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-open { padding: 0; }
.card-open img { transition: transform 1.1s var(--ease); }
.card:hover .card-open img { transform: scale(1.07); }
.line-art, .result-art, .hero-card-art { padding: 0; overflow: hidden; }
.modal-media { position: relative; padding: 0; min-height: 500px; overflow: hidden; }
.modal-media img { position: absolute; inset: 0; }
.hero-photo { position: absolute; inset: 0; transform: scale(1.1); transition: transform .6s var(--ease); }
.hero-arch::before { z-index: 2; border-color: rgba(255, 255, 255, .45); }
.hero-arch .spark { z-index: 2; color: #fff; }
.cat { background: var(--wine-deep); }
.cat:nth-child(even) { background: var(--wine-deep); }
.cat img { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.cat:hover img { transform: scale(1.07); }
.cat::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(43, 14, 20, .82), rgba(43, 14, 20, 0)); pointer-events: none; }
.cat-label { z-index: 1; }
.cat-label b { color: #fff; }
.cat-label small { color: rgba(255, 255, 255, .8); }
.cat-label svg { border-color: #fff; color: #fff; }
.cat:hover .cat-label svg { background: #fff; color: var(--wine-deep); }
.story-frame { padding: 0; overflow: hidden; background: var(--wine-deep); }
.story-frame.f2 { padding: 0; border: 6px solid var(--paper); }
@media (max-width: 900px) {
  .modal-media { padding: 0; min-height: 0; aspect-ratio: 4 / 3; }
}

.field.invalid textarea { border-color: #b3261e; }

/* =========================================================
   RM Jewels' own product photos
   They are square shots on white, so they are blended onto
   the brand's warm tints instead of sitting in white boxes.
   ========================================================= */
.ph, .hero-card-art { background: #f0e7dd; }
.ph img, .hero-card-art img, .cat img, .story-frame img, .hero-photo { mix-blend-mode: multiply; }
.card-media { aspect-ratio: 1; }
.modal-media { min-height: 0; aspect-ratio: 1; }
.modal-media img { object-fit: contain; }
.line-art { height: 78px; }

.hero-arch { background: linear-gradient(180deg, #f3e9e0 0%, #ecdcd5 100%); box-shadow: 0 50px 80px -56px rgba(74, 15, 28, .55); }
.hero-arch::before { border-color: rgba(184, 147, 90, .5); }
.hero-arch .spark { color: var(--gold); }
.hero-photo { object-fit: contain; transform: scale(1.04); }

.cat { background: #f0e7dd; }
.cat:nth-child(even) { background: #ecdcd5; }
.cat img { inset: 4% 0 auto 0; height: auto; aspect-ratio: 1; object-fit: contain; }
.cat::after { display: none; }
.cat-label b { color: var(--wine-deep); }
.cat-label small { color: var(--muted); }
.cat-label svg { border-color: var(--wine); color: var(--wine); }
.cat:hover .cat-label svg { background: var(--wine); color: #fff; }

.story-frame, .story-frame.f2 { background: #f6f0e8; }
.story-frame img { object-fit: contain; }

@media (max-width: 900px) {
  .modal-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .line-art { height: 66px; }
}

/* =========================================================
   Styled dropdowns (sort, contact topic, ring size)
   ========================================================= */
.dd { position: relative; width: 100%; }
.dd select.dd-native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.dd-btn {
  width: 100%; min-height: 48px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); background: var(--paper); font-size: 1rem; font-weight: 300; text-align: left; color: var(--ink);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.dd-btn:hover { border-color: var(--wine-soft); }
.dd-btn:focus-visible, .dd.open .dd-btn { outline: 0; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(109, 26, 43, .1); }
.dd-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd-chevron { width: 12px; height: 8px; flex: none; color: var(--wine); transition: transform .4s var(--ease); }
.dd.open .dd-chevron { transform: rotate(180deg); }

.dd-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--wine);
  box-shadow: 0 26px 50px -24px rgba(74, 15, 28, .45);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: top;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.dd.open .dd-list { opacity: 1; visibility: visible; transform: none; }
.dd--up .dd-list { top: auto; bottom: calc(100% + 6px); border-top: 1px solid var(--line); border-bottom: 2px solid var(--wine); transform: translateY(8px); box-shadow: 0 -26px 50px -24px rgba(74, 15, 28, .45); }
.dd-opt {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; cursor: pointer;
  font-size: .96rem; font-weight: 300; color: var(--ink); transition: background .2s, color .2s, padding .3s var(--ease);
}
.dd-opt svg { width: 9px; height: 9px; flex: none; color: var(--gold); opacity: 0; transform: scale(.4) rotate(-45deg); transition: opacity .3s, transform .4s var(--ease); }
.dd-opt.is-active { background: var(--cream); color: var(--wine-deep); padding-left: 16px; }
.dd-opt[aria-selected="true"] { color: var(--wine); font-weight: 400; }
.dd-opt[aria-selected="true"] svg { opacity: 1; transform: none; }
.dd-list::-webkit-scrollbar { width: 6px; }
.dd-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

/* pill version used by the sort control */
.sort { display: block; }
.dd--pill { min-width: 214px; }
.dd--pill .dd-btn { min-height: 40px; padding: 6px 18px; border-radius: 40px; font-size: .86rem; }
.dd--pill .dd-list { left: auto; min-width: 100%; }
.dd--pill .dd-opt { font-size: .9rem; white-space: nowrap; }

@media (max-width: 640px) {
  .dd--pill { min-width: 0; }
  .dd--pill .dd-btn { min-height: 46px; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dd-list, .dd-chevron, .dd-opt, .dd-opt svg { transition: none; }
}

/* =========================================================
   Review fixes: sold-out label, customer details in the bag,
   hidden trap field, pause button, darker small grey text
   ========================================================= */
:root { --muted: #6c5b58; }
.trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.badge--out { background: var(--wine-deep); color: #fff; }
.soldout { min-height: 36px; display: inline-flex; align-items: center; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.card:has(.badge--out) .card-open img { opacity: .55; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn[disabled]::before { display: none; }
.details-link { font-size: .84rem; color: var(--wine); border-bottom: 1px solid currentColor; align-self: flex-start; }
.bag-details { margin: 12px 0 14px; }
.bag-details-title { margin: 0 0 8px !important; font-size: .72rem !important; letter-spacing: .22em; text-transform: uppercase; color: var(--ink) !important; }
.bag-details-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bag-details-row input { min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: var(--paper); font-size: 1rem; font-weight: 300; }
.bag-details-row input:focus { outline: 0; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(109, 26, 43, .1); }
.bag-details-note { margin: 8px 0 0 !important; }
.bag-details-note.is-error { color: #b3261e !important; }
.quote-pause { margin-top: 10px; min-height: 32px; padding: 0 14px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); border-bottom: 1px solid currentColor; }
@media (max-width: 400px) { .bag-details-row { grid-template-columns: 1fr; } }

/* =========================================================
   Product page, privacy page, plain list, footer links
   ========================================================= */
.product-page { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 100px); }
.product-page .crumbs { flex-wrap: wrap; margin-bottom: clamp(18px, 3vw, 30px); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.product-media { aspect-ratio: 1; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-info { padding: 0; }
.product-info h1 { font-size: clamp(2.100rem, 4.400vw, 3.400rem); }
.product-info .modal-actions { margin-top: 10px; }
.page-hero--tall { padding-block: clamp(70px, 12vw, 150px); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.600rem, 3vw, 2.100rem); margin: 34px 0 12px; }
.prose p { color: #4d3d40; margin-bottom: 14px; }
.plain-list { columns: 2; padding: 20px 0; }
.plain-list a { color: var(--wine); text-decoration: underline; line-height: 2; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: #fff; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Promise strip — phone view only: one row, scrolling marquee
   Desktop and tablet keep the static grid above (unchanged).
   ========================================================= */
.promise-marquee { display: none; }

@media (max-width: 640px) {
  .promise-grid { display: none; }                 /* hide the grid on phones */
  .promise-marquee {
    display: block;
    overflow: hidden;
    /* soft fade at the left and right edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .promise-track {
    display: flex;
    width: max-content;
    animation: promiseMarquee 22s linear infinite;   /* moves left -> right */
  }
  .promise-item {
    flex: 0 0 auto;
    width: 170px;
    padding: 26px 16px;
    text-align: center;
    border-left: 1px solid var(--line);
  }
}

@keyframes promiseMarquee {
  from { transform: translateX(-50%); }   /* second copy showing */
  to   { transform: translateX(0); }      /* first copy showing — identical, so the loop is seamless */
}

@media (prefers-reduced-motion: reduce) {
  .promise-track { animation: none; }
}

/* =========================================================
   Collections filters — phone view only: wrap onto rows
   so every filter is visible (no side-scrolling). Desktop
   keeps its single scrollable row.
   ========================================================= */
@media (max-width: 640px) {
  .chips {
    flex-wrap: wrap;            /* flow onto a second line instead of scrolling */
    justify-content: center;    /* centre the chips */
    overflow-x: visible;        /* no horizontal scroll */
    margin-inline: 0;
    padding-inline: 0;
    gap: 7px;                   /* a touch tighter so three fit per row */
  }
  .chips .chip { padding: 0 14px; }   /* -> two tidy rows of three */
}
