/* ===========================
   Vestige Decants — placeholder styles
   Everything here is intentionally simple/flat
   so it's easy to swap colors, fonts, and content later.
=========================== */

:root {
  --paper: #ffffff;
  --paper-soft: #f6f1e9;
  --ink: #1c1a18;
  --ink-dim: #746b60;
  --gold: #c9a961;
  --gold-soft: #ddc48f;
  --line: rgba(28, 26, 24, 0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', Helvetica, Arial, sans-serif;
  --max: 1200px;
  --header-h: 80px;
}

* { box-sizing: border-box; }

/* Any class that sets `display` (`.btn`, `.admin-field`, etc.) has the same
   specificity as the browser's default [hidden] rule and, loading later,
   silently overrides it — an element with both `hidden` and such a class
   would otherwise stay visible. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.catalogue-description {
  max-width: 560px;
  margin: 1rem auto 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.policies-section {
  max-width: 720px;
}
.policy-block {
  margin-bottom: 2.5rem;
}
.policy-block:last-child {
  margin-bottom: 0;
}
.policy-block h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.policy-block p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.policy-block p:last-child {
  margin-bottom: 0;
}
.policy-block a {
  color: var(--gold);
}
.policy-block a:hover {
  text-decoration: underline;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-soft); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary:disabled:hover { background: var(--gold); }

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--ink);
}
.btn-sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.68rem;
}

/* Top bar — sits above the hero and doesn't affect its size. Logo is a CSS
   recreation (two overlapping serif D's + tracked wordmark), not an image. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 1.1rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.header-inner-minimal {
  grid-template-columns: 1fr;
  justify-items: center;
}
.header-inner-minimal .header-logo {
  grid-column: 1;
}
.success-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}
.success-main h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}
.success-main p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.header-nav-left { justify-self: start; grid-column: 1; }
.header-nav-right { justify-self: end; grid-column: 3; }
.header-nav a {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--gold); }

.header-logo {
  justify-self: center;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.logo-mark {
  position: relative;
  width: 30px;
  height: 30px;
  margin-bottom: 0.2rem;
}
.logo-d {
  position: absolute;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}
.logo-d1 { font-size: 30px; top: 0; left: 0; }
.logo-d2 { font-size: 19px; top: 12px; left: 12px; opacity: 0.88; }
.logo-word {
  font-family: var(--serif);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.34em;
}

/* Hero — animated water-ripple canvas (assets/js/water-ripple.js) over a still ocean
   image set as the container's background (shows through if WebGL is unavailable). */
.hero {
  max-width: none;
  margin: 0;
  padding: 0;
}
.hero-media {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 380px;
  max-height: 620px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Hero overlay content — centered heading + CTA, sits above the ripple canvas. */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
}
.hero-content > * {
  pointer-events: auto;
}
.hero-heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.12;
  max-width: 18ch;
  color: #fff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.32), 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Glass button — frosted pill with an inner highlight, soft floating shadow,
   and a diagonal shine sweep + lift on hover. Recreated visually; the source
   snippet only included component structure, not its accompanying stylesheet. */
.glass-button-wrap {
  position: relative;
  display: inline-block;
  border-radius: 999px;
}
.glass-button {
  position: relative;
  isolation: isolate;
  display: inline-block;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px) saturate(160%);
  -webkit-backdrop-filter: blur(4px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 10px rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.glass-button::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.glass-button-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.95rem 2.5rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 1px 12px rgba(0, 0, 0, 0.25);
}
.glass-button-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8px;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3), transparent 70%);
  filter: blur(6px);
  z-index: -1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.glass-button-wrap:hover .glass-button {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 10px rgba(255, 255, 255, 0.16),
    inset 0 0 24px rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.25);
}
.glass-button-wrap:hover .glass-button::before {
  transform: translateX(60%);
}
.glass-button-wrap:hover .glass-button-shadow {
  transform: translateY(5px) scaleX(1.08);
  opacity: 0.85;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.product-grid-status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-dim);
  padding: 2rem 0;
}
.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tint) 35%, #1c1a18), #14120f 75%);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover .product-thumb,
.product-card:focus-visible .product-thumb {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.product-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.mini-bottle {
  width: 46px;
  height: 70px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(246,241,233,0.35), rgba(246,241,233,0.08));
  border: 1px solid rgba(246,241,233,0.3);
  position: relative;
}
.mini-bottle::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 2px;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 2px;
}
.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.product-house {
  color: var(--ink-dim);
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
}
.price {
  color: var(--gold);
  font-weight: 500;
}
.sizes {
  color: var(--ink-dim);
  font-size: 0.72rem;
}

/* Collections — full-bleed horizontally scrolling carousel. The section's
   own heading stays contained to var(--max) like every other section; only
   the carousel row breaks out to the full viewport width. */
.collection-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.collection-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  /* No scroll-snap-type here on purpose: it fights any script-driven
     scrollLeft change (even a plain assignment gets immediately re-snapped),
     which is what made the infinite-loop wrap-jump visually tear into two
     overlapping copies before settling. Plain scrolling has nothing left to
     contest the correction, so it's fully smooth. */
  /* Vertical padding + matching negative margin cancel out for layout
     purposes (net footprint on the page is unchanged) but give the tilted/
     scaled card room to breathe inside the element's own box — setting
     overflow-x also silently forces overflow-y to clip/scroll (there's no
     way to have one axis scroll and the other stay truly unclipped), so
     without this a tilted card's corners get cut off top/bottom. */
  padding: 2.5rem 2rem;
  margin: -2.5rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.collection-grid::-webkit-scrollbar {
  display: none;
}
.collection-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(240px, 28vw, 380px);
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem;
  overflow: hidden;
  will-change: transform;
  transition: border-color 0.25s ease, box-shadow 0.35s ease;
}
.collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.02) 32%,
    rgba(0, 0, 0, 0.02) 58%,
    rgba(0, 0, 0, 0.75) 100%
  );
}
.collection-card-title {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.collection-card-desc {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.collection-card:hover {
  border-color: var(--gold);
}

/* Edge fades — fade the peeking sliver of the next/previous card into the
   page background, signaling there's more to scroll to. */
.collection-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.collection-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(255, 255, 255, 0) 100%);
}
.collection-fade-right {
  right: 0;
  background: linear-gradient(270deg, var(--paper) 0%, rgba(255, 255, 255, 0) 100%);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.step-num {
  display: block;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--ink-dim);
  font-size: 0.9rem;
  font-weight: 300;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4rem 2rem 1.5rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-top: 1rem;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--ink-dim);
  font-size: 0.75rem;
}

/* ===========================
   Modal + Cart (assets/js/modal.js, assets/js/cart.js)
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28, 26, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.2rem;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--ink-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.modal-close:hover,
.modal-close:focus-visible {
  color: var(--ink);
  background: var(--paper-soft);
}

/* Product detail panel — full-screen takeover, not a small popup like the
   cart panel. Scoped to .modal-panel-product so #cart-modal (which only
   carries the base .modal-panel small-popup treatment) is untouched. */
.modal-panel-product {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
  padding: 0;
  overflow-y: auto;
}
.modal-panel-product .modal-product {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
}

.modal-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.modal-product-media {
  display: flex;
  flex-direction: column;
}
.modal-product .product-thumb {
  margin-bottom: 0;
}
.modal-product-collection {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--gold);
  margin-top: 1rem;
  margin-bottom: 0;
}
.modal-product-media .modal-product-description {
  margin-top: 1.2rem;
  margin-bottom: 0;
}
.modal-product-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.modal-product-info .product-house {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-bottom: 1.3rem;
}
.modal-product-price {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}
.modal-product-description {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
}
.modal-product-divider {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
.modal-product-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin: 1.3rem 0;
}
.modal-product-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-product-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}
.trust-badge {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
}
.modal-product-disclaimer {
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  margin-top: 1.3rem;
  padding-top: 1rem;
}
.size-picker {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.size-picker legend {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
  padding: 0;
}
.size-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.size-option:has(input:checked) {
  border-color: var(--gold);
  background: var(--paper-soft);
}
.size-option input {
  accent-color: var(--gold);
  margin-right: 0.6rem;
}
.size-option-price {
  color: var(--ink-dim);
}

/* Cart panel */
.modal-panel-cart h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
}
.cart-empty {
  color: var(--ink-dim);
  font-size: 0.9rem;
  padding: 1.5rem 0;
  text-align: center;
}
.cart-lines {
  display: flex;
  flex-direction: column;
}
.cart-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child {
  border-bottom: none;
}
.cart-line-thumb {
  width: 56px;
  aspect-ratio: 4 / 5;
  margin-bottom: 0;
  flex-shrink: 0;
}
.cart-line-info {
  flex: 1;
  min-width: 0;
}
.cart-line-actions {
  display: contents;
}
.cart-line-info h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}
.cart-line-info .product-house {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-dim);
}
.cart-line-size {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-dim);
}
.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.qty-btn:hover {
  border-color: var(--gold);
}
.qty-value {
  font-family: var(--sans);
  font-size: 0.85rem;
  min-width: 1.2rem;
  text-align: center;
}
.cart-line-price {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 3.5rem;
  text-align: right;
}
.cart-line-remove {
  border: none;
  background: none;
  color: var(--ink-dim);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0.2rem 0.4rem;
}
.cart-line-remove:hover {
  color: #b3392c;
}
.cart-footer {
  margin-top: 1.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.cart-shipping {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding-top: 0.6rem;
  margin-bottom: 1rem;
  border-top: 1px solid var(--line);
}
.cart-footer .btn {
  width: 100%;
}
.cart-checkout-error {
  color: #b3392c;
  font-family: var(--sans);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  text-align: center;
}
.cart-checkout-error:empty {
  display: none;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 980px) {
  .header-nav-left { display: none; }
  .header-nav-right a:not(.btn) { display: none; }
  .hero-media { height: 42vh; min-height: 300px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-panel-product .modal-product { grid-template-columns: 1fr; max-width: 560px; }

  /* Mobile-only reorder: image -> collection -> name -> brand ->
     description -> pricing/size/qty/Add to Bag -> trust badges ->
     disclaimer. Flatten the media/info grouping (desktop's two-column
     split) into one column so every piece can be freely resequenced with
     `order`, independent of DOM order — no HTML/JS changes needed. */
  .modal-panel-product .modal-product-media,
  .modal-panel-product .modal-product-info {
    display: contents;
  }
  .modal-panel-product #product-modal-thumb { order: 1; }
  .modal-panel-product #product-modal-collection { order: 2; }
  .modal-panel-product #product-modal-name { order: 3; }
  .modal-panel-product #product-modal-house { order: 4; }
  .modal-panel-product #product-modal-description { order: 5; }
  .modal-panel-product #product-modal-price { order: 6; }
  .modal-panel-product .modal-product-divider { order: 7; }
  .modal-panel-product #product-modal-sizes { order: 8; }
  .modal-panel-product .modal-product-qty { order: 9; }
  .modal-panel-product #product-modal-add { order: 10; }
  .modal-panel-product .modal-product-trust { order: 11; }
  .modal-panel-product .modal-product-disclaimer { order: 12; }

  /* The real culprit for "nothing changed": .modal-product's own grid gap
     (1.8rem = 28.8px) is the desktop image<->text COLUMN gap, but once
     flattened to one column above, that same 28.8px becomes a uniform
     ROW gap between all 12 stacked items — completely swamping any of
     the individual margin tweaks below. Zero it out here and let margins
     be the only spacing mechanism on mobile. */
  .modal-panel-product .modal-product { gap: 0; }

  /* Every element in the sequence gets an explicit, tight, consistent
     mobile margin — not just the four from the first pass. These were
     all tuned for the old desktop two-column grouping (e.g. qty's
     1.3rem top+bottom, divider's 1.5rem top+bottom) and read as
     "big and floaty" once stacked directly on top of each other. */
  .modal-panel-product #product-modal-collection { margin-top: 0.5rem; margin-bottom: 0.1rem; }
  .modal-panel-product #product-modal-name { margin-bottom: 0.1rem; }
  .modal-panel-product #product-modal-house { margin-bottom: 0.4rem; }
  .modal-panel-product #product-modal-description { margin-top: 0; margin-bottom: 0.5rem; }
  .modal-panel-product #product-modal-price { margin-bottom: 0.5rem; }
  .modal-panel-product .modal-product-divider { margin: 0.5rem 0; }
  .modal-panel-product #product-modal-sizes { margin: 0 0 0.5rem; }
  .modal-panel-product .modal-product-qty { margin: 0.5rem 0; }
  .modal-panel-product .modal-product-trust { margin-top: 0.5rem; }
  .modal-panel-product .modal-product-disclaimer { margin-top: 0.5rem; padding-top: 0.5rem; }
}

@media (max-width: 560px) {
  .header-inner { padding: 0.9rem 1.25rem; }
  section { padding: 3.5rem 1.25rem; }
  .hero-media { height: 260px; min-height: unset; }
  /* Desktop's 4.5rem gap between heading and button leaves almost no
     slack in the much shorter 260px mobile band to actually shift the
     block down within — tightened so there's real room to move. */
  .hero-content { padding-top: 3rem; gap: 2rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .collection-grid { padding: 0 1.25rem; gap: 1rem; }
  .collection-card { width: 210px; }
  .collection-fade { width: 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 1.5rem; }
  .modal-product { grid-template-columns: 1fr; }
  .modal-product .product-thumb { max-width: 280px; margin: 0 auto; }
  .modal-panel-product .modal-product { padding: 4rem 1.25rem 3rem; }
  .cart-line { flex-wrap: wrap; }
  .cart-line-actions {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0.6rem;
  }
  .cart-line-price { margin-left: auto; }
}
