/* ==========================================================
   BARSOM — Salmon Leather Goods
   ========================================================== */

:root {
  --cream: #f7f4ec;
  --cream-2: #f2efe4;
  --paper: #faf8f2;
  --sand: #ebe8dd;
  --line: #d4d0be;
  --ink: #0f1a0d;
  --forest: #1a2e1c;
  --moss: #2c4a30;
  --sage: #4a5e4c;
  --muted: #5a6b5c;
  --mint: #d4e0d5;
  --field-line: #8f8a74; /* form box outlines: 3:1 contrast */

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 105px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
ul { list-style: none; margin: 0; padding: 0; }

/* Missing photo fallback (until the real photos are added) */
img.img-missing { visibility: hidden; }
.photo-frame, .pre-cards-wrap, .vstack-card, .pd-main, .mat-photo, .contact-hero {
  background: linear-gradient(135deg, #3b4038, #22261f);
}

.skip-to-content {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--forest); color: var(--cream);
  padding: 10px 16px; font-size: 13px; transition: top .2s;
}
.skip-to-content:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(242, 239, 228, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, color .4s;
}
.nav.scrolled { border-color: rgba(15, 26, 13, 0.06); }
.nav-logo-link { display: flex; align-items: center; height: 100%; }
.nav-logo {
  height: 150px; width: auto; max-width: none; margin-left: -38px;
  animation: logoFadeIn 1.2s ease both;
  transition: filter .3s;
}
.logo-text {
  font-family: var(--serif); font-size: 34px; letter-spacing: .04em;
  color: var(--forest); animation: logoFadeIn 1.2s ease both;
  transition: color .3s;
}
@keyframes logoFadeIn { from { opacity: 0; } to { opacity: 1; } }

.nav-links {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 40px;
}
.nav-links a {
  position: relative; font-size: 15.04px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; position: relative; width: 30px; height: 30px; padding: 4px; }
.nav-toggle svg { position: absolute; inset: 4px; width: 22px; height: 22px; transition: opacity .2s, transform .2s; }
.nav-toggle .icon-close { opacity: 0; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: rotate(0); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-bag { position: relative; display: flex; width: 26px; height: 26px; transition: color .2s, transform .3s var(--ease-out); }
.nav-bag:hover { transform: scale(1.1); color: var(--moss); }
.nav-bag.bump { animation: bagBump .5s var(--ease-out); }
@keyframes bagBump { 30% { transform: scale(1.18); } 100% { transform: scale(1); } }
.nav-bag svg { width: 26px; height: 26px; }
.cart-count {
  position: absolute; top: -4px; right: -6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--forest); color: var(--paper);
  font-size: 9.6px; font-weight: 600; line-height: 16px; text-align: center;
  display: none;
}
.cart-count.show { display: block; }

/* Mobile menu */
.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 98; background: rgba(15, 26, 13, .35);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 99;
  background: rgba(242, 239, 228, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; padding: 8px 24px 28px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .5s var(--ease-out), opacity .35s, visibility 0s linear .5s;
}
.mobile-menu a {
  font-family: var(--serif); font-size: 32px; line-height: 1.2; padding: 10px 0;
  border-bottom: 1px solid rgba(15, 26, 13, .08);
}
.mobile-menu a:last-child { border-bottom: 0; }
body.menu-open .mobile-menu { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
body.menu-open .mobile-menu-backdrop { opacity: 1; pointer-events: auto; }

/* ---------- Home: hero photo ---------- */
.pre-cards-wrap { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.pre-cards-photo {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(.78);
  animation: bzoom 16s ease-out forwards;
}
@keyframes bzoom { from { transform: scale(1); } to { transform: scale(1.04); } }

/* ---------- Home: stacked cards ---------- */
.vstack-section { background: var(--cream); padding: 24vh 3vw 0; }
.vstack-card {
  position: sticky; top: calc(var(--nav-h) + 20px);
  width: 88%; height: 80vh; margin: 0 auto 24vh;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  transform-origin: 50% 0;
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}
.vstack-card:nth-last-of-type(2) { margin-bottom: 18vh; }
.vstack-card img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
  filter: brightness(.72);
  transition: transform .8s var(--ease-soft);
}
.vstack-card:hover img { transform: scale(1.05); }
.vstack-caption {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; text-align: center;
  opacity: 0; transition: opacity .45s;
}
.vstack-card.is-active .vstack-caption { opacity: 1; }
.vstack-caption-label {
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(242, 239, 228, .8); margin-bottom: 13px;
}
.vstack-caption-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.06;
  letter-spacing: -.01em; color: rgba(242, 239, 228, .92);
}
.vstack-caption-title em { color: rgba(242, 239, 228, .72); }
.vstack-spacer { height: 4vh; }

/* ---------- Home: features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 0 var(--gutter) 96px; background: var(--cream);
}
.feature-box {
  background: var(--sand); border: 1px solid var(--line); border-radius: 14px;
  padding: 56px 44.8px;
  opacity: 0; transform: translateY(32px);
  transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft);
}
.feature-box:nth-child(2) { transition-delay: .16s; }
.feature-box:nth-child(3) { transition-delay: .32s; }
.feature-box.in { opacity: 1; transform: none; }
.feature-num {
  font-size: 9.6px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 35.2px;
}
.feature-heading {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.08;
  letter-spacing: -.01em; margin-bottom: 19.2px;
}
.feature-heading em { color: var(--moss); }
.feature-body { font-size: 13.76px; line-height: 1.9; color: var(--sage); max-width: 30ch; }

/* ---------- Reveal helper ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest); padding: 112px var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; text-align: center;
}
.cta-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.08;
  color: var(--cream);
}
.cta-title em { color: var(--mint); }
.cta-band p {
  font-size: 11.52px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(242, 239, 228, .55); margin-bottom: 8px;
}
.cta-actions { display: flex; gap: 19.2px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn-light, .btn-ghost, .btn-dark, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 11.2px;
  font-size: 12.16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 14.4px 35.2px; line-height: 1.6;
  transition: background .25s, border-color .25s, color .25s, transform .12s;
}
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-light svg, .btn-dark svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.btn-light:hover svg, .btn-dark:hover svg { transform: translateX(4px); }
.btn-ghost { border: 1px solid rgba(242, 239, 228, .2); color: rgba(242, 239, 228, .7); }
.btn-ghost:hover { border-color: rgba(242, 239, 228, .55); color: var(--cream); }
.btn-dark { background: var(--forest); color: var(--paper); border: 1px solid var(--forest); }
.btn-dark:hover { background: var(--moss); border-color: var(--moss); }
.btn-outline { border: 1px solid var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--paper); }
.btn-light:active, .btn-ghost:active, .btn-dark:active, .btn-outline:active { transform: scale(.98); }
.btn-block { width: 100%; }

/* ---------- Shared page bits ---------- */
.page-top { padding-top: calc(var(--nav-h) + 56px); }
.eyebrow {
  font-size: 10.24px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.display {
  font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1.05; letter-spacing: -.01em;
}
.display em { color: var(--moss); }
.lead { color: var(--sage); font-size: 15px; line-height: 1.85; }

/* ---------- Product page ---------- */
.pd {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 0; grid-template-rows: auto 1fr;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 96px; align-items: start;
}
/* "Home / Ondine" sits above the photo on the left; the text column starts level with it */
.pd > .crumbs { grid-column: 1; grid-row: 1; margin-bottom: 18px; }
.pd-gallery { grid-column: 1; grid-row: 2; }
.pd-info { grid-column: 2; grid-row: 1 / span 2; }
.pd-gallery { display: grid; gap: 12px; position: sticky; top: calc(var(--nav-h) + 24px); }
/* Photos are 3:2, so the frame is 3:2 too: the whole wallet shows, nothing cropped */
.pd-main {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2;
  cursor: zoom-in; background: var(--sand); outline-offset: 4px;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
/* Photos sit side by side in a track that slides; on phones it follows your finger */
.pd-track { display: flex; height: 100%; transition: transform .5s var(--ease-out); will-change: transform; touch-action: pan-y pinch-zoom; }
.pd-track.dragging { transition: none; }
.pd-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.pd-slide img { transition: transform .3s var(--ease-soft); }
.pd-main.zooming .pd-count { opacity: 0; }
.pd-main.is-placeholder { cursor: default; }

.pd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: transparent; color: rgba(242, 239, 228, .92);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  opacity: 0; transition: opacity .25s, color .2s, transform .25s var(--ease-out);
}
.pd-arrow svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .55)); }
.pd-arrow.prev { left: 10px; }
.pd-arrow.next { right: 10px; }
.pd-arrow:hover { color: #fff; }
.pd-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.pd-arrow.next:hover { transform: translateY(-50%) translateX(3px); }
.pd-arrow:active { transform: translateY(-50%) scale(.92); }
.pd-arrow[hidden] { display: none; }
.pd-main:hover .pd-arrow, .pd-main:focus-within .pd-arrow { opacity: 1; }
@media (hover: none) { .pd-arrow { opacity: 1; } }

.pd-count {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 11px; letter-spacing: .12em; color: var(--cream);
  background: rgba(15, 26, 13, .66); padding: 4px 9px; border-radius: 20px;
  transition: opacity .2s;
}
.pd-count[hidden] { display: none; }
.pd-soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  color: var(--forest); background: rgba(247, 244, 236, .9); padding: 9px 16px; border-radius: 30px;
}
.pd-soon[hidden] { display: none; }
/* Keyboard-only: invisible until it gets focus with Tab */
.pd-enlarge {
  position: absolute; top: 12px; right: 12px; z-index: 3; padding: 8px 14px; border-radius: 30px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(247, 244, 236, .95); color: var(--forest);
  opacity: 0; pointer-events: none;
}
.pd-enlarge:focus-visible { opacity: 1; pointer-events: auto; }
.pd-main.is-placeholder .pd-enlarge { display: none; }

.pd-dots { display: flex; justify-content: center; gap: 2px; min-height: 24px; }
.pd-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.pd-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: transparent; border: 1px solid var(--forest); opacity: .45;
  transition: background .3s, opacity .3s, transform .3s var(--ease-out);
}
.pd-dot:hover::before { opacity: .8; }
.pd-dot[aria-current="true"]::before { background: var(--forest); opacity: 1; transform: scale(1.15); }

.pd-info { position: sticky; top: calc(var(--nav-h) + 32px); }
.crumbs { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; }
.pd-title { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.02; letter-spacing: -.01em; }
.pd-title em { color: var(--moss); }
.pd-sub { margin-top: 12px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.pd-price { margin-top: 26px; font-family: var(--serif); font-size: 34px; }
.pd-ship { font-size: 12.5px; color: var(--sage); margin-top: 4px; }
.pd-row { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.pd-label { font-size: 10.24px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pd-label strong { color: var(--ink); font-weight: 500; letter-spacing: .12em; margin-left: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; padding: 0;
  background-color: var(--sw); background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(15, 26, 13, .18), 0 0 0 2px var(--cream), 0 0 0 3px transparent;
  transition: box-shadow .2s, transform .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(15, 26, 13, .18), 0 0 0 2px var(--cream), 0 0 0 3px var(--forest); }
/* Sold-out color: faded with a diagonal line through it */
.swatch { position: relative; }
.swatch.sold-out { opacity: .55; }
.swatch.sold-out::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: var(--cream); box-shadow: 0 0 0 .5px rgba(15, 26, 13, .45); transform: translateX(-50%) rotate(45deg); }
.pd-stock { margin-top: 18px; font-size: 13.5px; color: var(--moss); }
.pd-stock.out { color: #8a2a2b; }
.btn-dark:disabled { background: var(--sage); border-color: var(--sage); opacity: .7; cursor: not-allowed; }
.shop-media { position: relative; }
.shop-soldout { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(247, 244, 236, .94); color: var(--forest); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 30px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.pd-info > .pd-price { display: none; }  /* the price sits next to the quantity instead */
.pd-info > .pd-ship { margin-top: 18px; }
.qty-line { display: flex; align-items: center; justify-content: flex-start; gap: 28px; }
.pd-price-m { display: block; margin: 0; font-size: 32px; line-height: 1; }
.pd-price-m.has-disc { justify-content: flex-start; }
.pd-price-m .disc-tag { text-align: left; }
#pdColorRow { text-align: center; }
#pdColorRow .swatches { justify-content: center; }
.qty button { width: 42px; height: 42px; font-size: 18px; transition: background .2s; }
.qty button:hover { background: var(--sand); }
.qty output { min-width: 36px; text-align: center; font-size: 14px; }
.pd-actions { display: grid; gap: 10px; margin-top: 26px; }
.pd-guarantee {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage);
}
.pd-guarantee svg { width: 19px; height: 19px; color: var(--moss); flex: none; }
.pd-note { font-size: 12.5px; color: var(--sage); margin-top: 8px; }

.accordion { margin-top: 30px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 18px; font-weight: 300; transition: transform .3s var(--ease-out); }
.accordion details.is-open summary::after { transform: rotate(45deg); }
.accordion .acc-body { overflow: hidden; font-size: 13.76px; line-height: 1.9; color: var(--sage); transition: height .4s cubic-bezier(0.16, 1, 0.3, 1); }
.accordion .acc-body::after { content: ""; display: block; height: 20px; } /* bottom space, inside the sliding part */
.accordion .acc-body li { padding-left: 14px; position: relative; }
.accordion .acc-body li::before { content: ""; position: absolute; left: 0; top: .85em; width: 5px; height: 1px; background: var(--sage); }

.materials {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; background: var(--sand);
}
.mat-photo { position: relative; overflow: hidden; }
.mat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); }
.mat-text { padding: 112px 80px; display: flex; flex-direction: column; justify-content: center; }
.mat-text .display { font-size: 48px; margin-bottom: 24px; }
.stat { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--forest); }
.stat-label { font-size: 10.24px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 26, 13, .94);
  display: flex; align-items: center; justify-content: center; padding: 40px 80px;
  opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
/* The stage clips the zoomed photo to its frame */
.lb-stage {
  position: relative; overflow: hidden; border-radius: 10px; max-width: 100%; line-height: 0;
  cursor: zoom-in; transform: scale(.96); transition: transform .5s var(--ease-out);
  touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none;
}
.lightbox.open .lb-stage { transform: none; }
.lb-stage img { max-height: 88vh; max-width: 100%; width: auto; transition: transform .35s var(--ease-soft); -webkit-user-drag: none; }
.lb-stage.zoomed { cursor: zoom-out; touch-action: none; }
.lb-stage img.from-right { animation: lbFromRight .38s var(--ease-out); }
.lb-stage img.from-left { animation: lbFromLeft .38s var(--ease-out); }
@keyframes lbFromRight { from { transform: translateX(14%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes lbFromLeft { from { transform: translateX(-14%); opacity: .2; } to { transform: none; opacity: 1; } }
.lb-stage.zoomed img { transition: transform .35s var(--ease-soft), transform-origin .08s linear; }
.lightbox-close { position: absolute; top: 18px; right: 26px; color: var(--cream); font-size: 38px; line-height: 1; z-index: 3; }
.pd-arrow.lb { opacity: 1; position: fixed; }
.pd-arrow.lb.prev { left: 20px; }
.pd-arrow.lb.next { right: 20px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--forest); color: var(--paper); padding: 14px 22px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  display: flex; gap: 16px; align-items: center;
  transition: opacity .3s, transform .5s var(--ease-out);
}
.toast a { text-decoration: underline; text-underline-offset: 3px; pointer-events: auto; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ---------- Contact page ---------- */
.contact-hero { position: relative; height: 62vh; min-height: 380px; overflow: hidden; margin-top: var(--nav-h); }
.contact-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.78); animation: bzoom 16s ease-out forwards; }
.contact-intro {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; padding: calc(var(--nav-h) + 88px) var(--gutter) 72px;
}
.contact-intro .lead { margin-top: 24px; max-width: 520px; }
/* Contact page: just the email + response time above the form */
.contact-intro--details { display: block; padding-bottom: 40px; }
.contact-intro--details .contact-details { display: flex; flex-wrap: wrap; gap: 28px 72px; align-content: start; }
.contact-details { display: grid; gap: 28px; align-content: end; }
.contact-details .label { font-size: 10.24px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-details .value { font-family: var(--serif); font-size: 26px; }
.contact-details a.value:hover { color: var(--moss); }

.contact-form-wrap { padding: 0 var(--gutter) 112px; }
.contact-form-card {
  background: var(--sand); border: 1px solid var(--line); border-radius: 14px;
  padding: 64px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px;
}
.contact-form-card .display { font-size: 42px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10.24px; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); }
.field input, .field textarea {
  font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: 0;
  padding: 14px 16px; outline: none; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(26, 46, 28, .08); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.privacy { font-size: 12px; color: var(--sage); }
.form-success {
  grid-column: 1 / -1; display: none; padding: 16px 18px; border: 1px solid var(--moss);
  color: var(--moss); font-size: 13.5px;
}
.form-success.show { display: block; animation: logoFadeIn .5s ease; }
.back-link { display: inline-block; margin-top: 28px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.back-link:hover { color: var(--ink); }

/* ---------- Checkout page ---------- */
.checkout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  padding: calc(var(--nav-h) + 56px) var(--gutter) 112px; align-items: start;
}
.summary-card { background: var(--sand); border: 1px solid var(--line); border-radius: 14px; padding: 44px; }
.summary-card h1, .summary-card .sum-details > h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin-bottom: 26px; }
.cart-items { display: grid; gap: 18px; }
.cart-empty { color: var(--sage); font-size: 14px; padding: 8px 0 18px; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #3b4038, #22261f); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .name { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.cart-item .meta { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.cart-item .ci-main { min-width: 0; }
.cart-item .ci-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cart-item .ci-name { min-width: 0; }
.cart-item .ci-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.cart-item .ci-top .remove { margin-top: 4px; flex: none; }
.cart-item .qty button { width: 32px; height: 32px; font-size: 15px; }
.cart-item .qty output { min-width: 28px; font-size: 13px; }
.cart-item .right { text-align: right; }
.cart-item .line-price { font-family: var(--serif); font-size: 20px; text-align: right; }

/* A discounted price: "10% OFF  $340 (crossed out)  $306" */
.has-disc { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; column-gap: 8px; row-gap: 2px; }
.disc-tag { flex-basis: 100%; text-align: right; font-family: var(--sans, inherit); font-size: 10.24px; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); font-weight: 500; }
.disc-was { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; font-size: .72em; }
.disc-now { color: var(--ink); }
.cart-item .remove { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-item .remove:hover { color: var(--ink); }

.totals { display: grid; gap: 10px; margin-top: 24px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; color: var(--sage); }
.totals .total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.totals .total span:last-child { font-family: var(--serif); font-size: 28px; line-height: 1; }
.ship-to { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ship-field { flex: 1 1 200px; min-width: 0; }
.ship-field label { display: block; font-size: 10.24px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.ship-field select {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink); background-color: var(--paper);
  border: 1px solid var(--field-line); border-radius: 0; padding: 12px 38px 12px 14px; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234a5e4c' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px 8px;
}
.ship-field select:focus { border-color: var(--forest); }
.ship-note { flex-basis: 100%; font-size: 12.5px; color: #b3261e; margin: 0; }
.discount { display: flex; gap: 8px; margin-top: 24px; }
.discount input {
  flex: 1; min-width: 0; font: inherit; font-size: 13.5px; background: var(--paper); border: 1px solid var(--field-line);
  padding: 12px 14px; outline: none;
}
.discount input:focus { border-color: var(--forest); }
.discount button { padding: 0 22px; border: 1px solid var(--forest); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; transition: background .2s, color .2s; }
.discount button:hover { background: var(--forest); color: var(--paper); }
.discount-msg { font-size: 12.5px; color: var(--sage); margin-top: 8px; min-height: 1em; }
.discount-msg.error { color: #b3261e; }
#sumDiscountCode { margin-left: 6px; font-size: .85em; letter-spacing: .08em; color: var(--sage); }

.secure { position: sticky; top: calc(var(--nav-h) + 40px); padding-top: 10px; }
.secure .lead { margin-top: 20px; max-width: 460px; }
.assurances { display: grid; gap: 14px; margin: 34px 0; }
.assurances li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--sage); }
.assurances svg { width: 21px; height: 21px; color: var(--moss); flex: none; }
.pay-note { font-size: 12.5px; color: var(--sage); margin-top: 18px; }
.pay-note a { text-decoration: underline; text-underline-offset: 3px; }
.pay-status { font-size: 13px; color: var(--moss); margin-top: 12px; min-height: 1em; }
.pay-status.error { color: #b3261e; }

/* Bag page on phones: a slim bar with the total and Pay Now while the regular button is out of view */
.pay-bar { display: none; }
@media (max-width: 860px) {
  .pay-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(247, 244, 236, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15, 26, 13, .06);
    transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .pay-bar.show { transform: none; visibility: visible; transition-delay: 0s; }
  .pay-bar-total span { display: block; font-size: 10.24px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
  .pay-bar-total strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--ink); }
  .pay-bar .btn-dark { flex: none; padding: 16px 24px; }
  body.has-pay-bar { padding-bottom: 84px; }
}

/* The site's own checkout form (checkout.js). Until it's known which checkout to show, both wait. */
.checkout.pay-pending #hostedPay, .checkout.pay-pending #payNow { visibility: hidden; }
.card-mode #hostedPay, .card-mode #payNow, .card-mode #payStatus, .card-mode .summary-card .ship-to { display: none; }
.card-mode .secure { position: static; }
.co-form { display: grid; gap: 0; margin-top: 30px; }
.co-sec { display: grid; gap: 18px; padding: 30px 0; border-top: 1px solid var(--line); }
.co-sec:first-child { border-top: 0; padding-top: 0; }
.co-h { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--ink); }
.co-sub { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; color: var(--sage); margin-top: -6px; }
.co-sub svg { width: 17px; height: 17px; flex: none; color: var(--moss); margin-top: 1px; }
.co-hint { font-size: 12px; color: var(--sage); }
.field label .opt { text-transform: none; letter-spacing: .02em; color: var(--muted); }
.co-form .field input { width: 100%; min-width: 0; }
.co-form .ship-field label { margin-bottom: 0; color: var(--sage); }
.co-form .ship-field select { padding: 14px 40px 14px 16px; font-size: 14.5px; transition: border-color .25s, box-shadow .25s; }
.co-form .ship-field select:focus { box-shadow: 0 0 0 3px rgba(26, 46, 28, .08); }
.co-form .ship-note { margin-top: 2px; }
.co-form [aria-invalid="true"] { border-color: #b3261e !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .08) !important; }
.card-in { position: relative; }
.card-in input { padding-right: 112px; letter-spacing: .04em; }
.card-brand { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 10.24px; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); pointer-events: none; }
.co-check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--ink); cursor: pointer; margin-top: 2px; }
.co-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--forest); flex: none; }
.co-billing { padding-top: 4px; }
.co-form #cardPay { margin-top: 6px; }
.co-fx { font-size: 12.5px; color: var(--sage); margin-top: 12px; text-align: center; }
.co-assure { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
@media (min-width: 1025px) and (min-height: 760px) {
  .card-mode .summary-card { position: sticky; top: calc(var(--nav-h) + 28px); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--cream);
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px;
  padding: 80px var(--gutter) 40px;
}
.footer-tagline { font-size: 13.12px; color: rgba(242, 239, 228, .55); max-width: 280px; }
/* Currency picker: our own look on every browser (Safari otherwise draws a grey bubble) */
.barsom-currency-sel {
  -webkit-appearance: none; appearance: none;
  margin-top: 18px; font: inherit; font-size: 11.2px; font-weight: 500; letter-spacing: .1em; line-height: 1.2;
  color: rgba(242, 239, 228, .78); background-color: transparent; border-radius: 0;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f2efe4' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 9px auto;
  border: 1px solid rgba(242, 239, 228, .3); padding: 7px 28px 7px 11px; min-width: 76px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.barsom-currency-sel:hover { border-color: rgba(242, 239, 228, .55); color: var(--cream); }
.barsom-currency-sel:focus-visible { outline: 1px solid rgba(242, 239, 228, .7); outline-offset: 2px; }
.barsom-currency-sel::-ms-expand { display: none; }
.barsom-currency-sel option { color: var(--forest); background: #f7f4ec; }
/* Phones/tablets: 16px so iOS doesn't zoom the page when it's tapped, and a comfortable tap size */
@media (hover: none) and (pointer: coarse) {
  .barsom-currency-sel { font-size: 16px; letter-spacing: .06em; padding: 9px 34px 9px 14px; min-height: 44px; background-position: right 13px center; background-size: 11px auto; }
}
.cur-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--sage); }
.footer-logo-wrap { position: relative; display: inline-flex; align-items: flex-start; margin-top: 18px; }
/* logo.png has empty space around the word: -23px puts the B exactly under the text above */
.footer-logo { height: 130px; width: auto; max-width: none; margin-left: -23px; filter: brightness(0) invert(1); opacity: .9; }
.footer-logo-text { font-family: var(--serif); font-size: 36px; letter-spacing: .04em; color: var(--cream-2); margin-top: 18px; }
.footer-logo-copy { position: absolute; left: 139px; top: 41px; font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--cream-2); }
.footer-logo-text + .footer-logo-copy { position: static; margin-top: 18px; }
.footer-col-title {
  font-size: 10.24px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(242, 239, 228, .55); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .a11y-toggle-btn { font-size: 13.12px; color: rgba(242, 239, 228, .5); transition: color .25s; }
.footer-links a:hover, .a11y-toggle-btn:hover { color: var(--cream); }
.a11y-toggle-btn { padding: 0; }
.footer-social { display: inline-flex; }
.footer-social svg { width: 18px; height: 18px; }
.a11y-dropdown { display: none; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.a11y-dropdown.open { display: flex; }
.a11y-dropdown button { font-size: 12px; color: rgba(242, 239, 228, .65); display: inline-flex; gap: 8px; align-items: center; transition: color .2s; }
.a11y-dropdown button:hover, .a11y-dropdown button[aria-pressed="true"] { color: var(--cream); }
.a11y-dropdown button[aria-pressed="true"]::before { content: "•"; }
.a11y-size-badge { font-size: 10.88px; color: rgba(242, 239, 228, .55); letter-spacing: .04em; }
.footer-bottom {
  grid-column: 1 / -1; position: relative; display: flex; justify-content: center; align-items: center; gap: 8px;
  padding-top: 28px; margin-top: 24px; border-top: 1px solid rgba(242, 239, 228, .08);
  font-size: 11.2px; letter-spacing: .06em; color: rgba(242, 239, 228, .55);
}
.footer-right { position: absolute; right: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Accessibility options ---------- */
html.a11y-contrast { --sage: #1f2b20; --muted: #3c4a3e; }
html.a11y-contrast .site-footer, html.a11y-contrast .site-footer * { color: #fff !important; }
html.a11y-contrast .vstack-card img, html.a11y-contrast .pre-cards-photo { filter: brightness(.55); }
html.a11y-keyboard *:focus-visible { outline: 3px solid #e0a100 !important; outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pd { grid-template-columns: 1fr; grid-template-rows: none; }
  .pd-info, .pd-gallery { position: static; }
  .pd > .crumbs, .pd-gallery, .pd-info { grid-column: 1; grid-row: auto; }
  .pd-gallery { margin-bottom: 36px; }
  .materials { grid-template-columns: 1fr; }
  .mat-photo { min-height: 60vh; }
  .mat-text { padding: 72px var(--gutter); }
  .contact-form-card { grid-template-columns: 1fr; gap: 36px; padding: 44px; }
  .checkout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .checkout > * { min-width: 0; }
  .secure { position: static; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 78px; --gutter: 20px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-logo-link { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .nav-logo { height: 119px; margin-left: 0; }
  .display { font-size: 40px; }
  .pd-title { font-size: 42px; }
  .contact-intro { grid-template-columns: 1fr; gap: 40px; padding: calc(var(--nav-h) + 48px) var(--gutter) 48px; }
  .contact-intro--details { padding: calc(var(--nav-h) + 32px) var(--gutter) 28px; }
  .contact-intro--details .contact-details { gap: 18px 36px; }
  .contact-intro--details .contact-details .value { font-size: 22px; }
  .contact-form-card { padding: 32px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 28px 22px; }
  .pay-slot-m:not(:empty) { margin-top: 22px; }
  .pay-slot-m .pay-status:empty { display: none; }
  .co-form input, .co-form select { font-size: 16px !important; } /* stops iPhones zooming in on tap */
  .co-form .form-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; } /* city + state, expiry + code side by side */
  .co-h { font-size: 24px; }
  .co-sec { padding: 26px 0; }
  .site-footer { grid-template-columns: 1fr; gap: 36px; padding: 64px var(--gutter) 32px; }
  /* Product page on phones (desktop untouched):
     top row: "Home / Ondine" on the left, the name on the right; short description under it;
     then the photos; colors centered; the price sits next to the quantity. */
  .pd { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: start; padding-top: calc(var(--nav-h) + 28px); }
  .pd-info { display: contents; }
  .pd > *, .pd-info > * { grid-column: 1 / -1; }
  .pd > .crumbs { grid-column: 1; grid-row: 1 / span 2; margin: 12px 0 0; white-space: nowrap; }
  .pd-info > .eyebrow { grid-column: 2; grid-row: 1; text-align: right; margin-bottom: 6px; }
  .pd-info > .pd-title { grid-column: 2; grid-row: 2; text-align: right; font-size: 36px; line-height: 1.04; }
  .pd-title-2 { display: block; margin-top: 2px; font-size: 20px; line-height: 1.2; letter-spacing: 0; }
  .pd-title br { display: none; }
  .pd-info > .pd-sub { grid-row: 3; text-align: right; margin-top: 10px; }
  .pd-gallery { grid-row: 4; margin: 22px 0 22px; }
  .pd-info > .pd-price { display: none; }
  .pd-info > .pd-ship { margin-top: 0; }
  #pdColorRow { text-align: center; }
  #pdColorRow .swatches { justify-content: center; }
  .qty-line { justify-content: space-between; gap: 16px; }
  .pd-price-m.has-disc { justify-content: flex-end; }
  .pd-price-m .disc-tag { text-align: right; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-right { position: static; }
}

@media (max-width: 768px) {
  .vstack-section { padding: 14vh 2% 0; }
  .vstack-card { width: 96%; height: 60vh; border-radius: 12px; }
  .vstack-caption-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .vstack-caption { opacity: 1; } /* captions always shown on phones */
  .feature-grid { grid-template-columns: 1fr; padding: 0 1.2rem 4rem; gap: 1rem; }
  .feature-box { padding: 2.5rem 1.5rem; border-radius: 10px; }
  .feature-heading { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .cta-band { padding: 5rem 1.5rem; gap: 1.8rem; }
  .cta-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-light, .cta-actions .btn-ghost { justify-content: center; }
}

/* ---------- Thank-you page ---------- */
.success {
  min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 72px) var(--gutter) 112px;
}
.success .lead { margin-top: 22px; max-width: 520px; }
.success-ref { margin-top: 18px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); min-height: 1em; }
.success-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.btn-dark:disabled { opacity: .55; cursor: wait; }

@media (max-width: 600px) {
  .pd-arrow { width: 44px; height: 44px; }
  .pd-arrow.prev { left: 4px; } .pd-arrow.next { right: 4px; }
  .lightbox { padding: 16px; }
  .pd-arrow.lb.prev { left: 4px; } .pd-arrow.lb.next { right: 4px; }
}

/* ---------- Accessibility helpers ---------- */
main:focus { outline: none; }

/* ---------- Shop grid ---------- */
.shop { padding: calc(var(--nav-h) + 64px) var(--gutter) 112px; min-height: 70vh; }
.shop-head { max-width: 640px; margin-bottom: 48px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.shop-card { display: block; color: inherit; }
.shop-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--sand);
}
.shop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease-soft), transform .8s var(--ease-soft); }
.shop-media img.alt { opacity: 0; }
.shop-card:hover .shop-media img { transform: scale(1.03); }
.shop-card:hover .shop-media img.alt { opacity: 1; }
.shop-info { padding-top: 16px; display: grid; gap: 4px; }
.shop-name { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.shop-price { font-size: 14px; color: var(--ink); }
.shop-sub { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.shop-dots { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.shop-dots .dot { width: 14px; height: 14px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(15, 26, 13, .18); }
.shop-count { font-size: 12px; color: var(--muted); margin-left: 4px; }
.shop-card:focus-visible { outline-offset: 6px; border-radius: 14px; }
.shop-empty { max-width: 560px; display: grid; gap: 20px; justify-items: start; }

/* ---------- Product page loading / missing ---------- */
html.pd-loading .pd { opacity: 0; }
.pd { transition: opacity .25s; }
.pd-missing { padding: calc(var(--nav-h) + 88px) var(--gutter) 112px; display: grid; gap: 20px; justify-items: start; max-width: 640px; }
.pd-missing[hidden] { display: none; }
.cart-item a.thumb { display: block; }

/* ---------- Contact form extras ---------- */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; padding: 16px 18px; border: 1px solid #8a2a2b; color: #7a2320; font-size: 13.5px; }
.form-error a { text-decoration: underline; text-underline-offset: 3px; }
.form-success:focus { outline: none; }
@media (max-width: 600px) { .shop-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; } .shop-name { font-size: 20px; } }

/* Very small phones (e.g. iPhone SE): a tighter bag row so nothing runs off the screen */
@media (max-width: 380px) {
  .cart-item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .cart-item .thumb { width: 56px; height: 56px; }
  .cart-item .meta { letter-spacing: .08em; }
  .summary-card { padding: 24px 16px; }
}

/* ---------- Payment page (checkout.html) when the columns stack (phones, tablets) ----------
   "Secure Checkout" comes first, then a compact order summary (items + total) that opens to the
   full summary with "Show details", then the form, so the form is on screen right away. */
.sum-toggle { display: none; }
@media (max-width: 1024px) {
  .card-page { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .card-page .secure { display: contents; }
  .card-page .secure > .eyebrow { order: 1; }
  .card-page .secure > .display { order: 2; margin-bottom: 22px; }
  .card-page .summary-card { order: 3; padding: 0; overflow: hidden; }
  .card-page .co-form { order: 4; margin-top: 30px; }
  .card-page .pay-note { order: 5; }
  .sum-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; text-align: left; color: inherit; cursor: pointer;
  }
  .sum-toggle-l { flex: 1; min-width: 0; }
  .sum-toggle-title { display: block; font-size: 10.24px; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); }
  .sum-toggle-items { display: block; margin-top: 5px; font-family: var(--serif); font-size: 19px; line-height: 1.2; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sum-toggle-r { flex: none; text-align: right; }
  .sum-toggle-r strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--ink); }
  .sum-toggle-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 10.24px; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); }
  .sum-toggle-cta svg { width: 10px; height: 7px; transition: transform .3s var(--ease-out); }
  .sum-collapsible.open .sum-toggle-cta svg { transform: rotate(180deg); }
  .sum-toggle:focus-visible { outline: 2px solid var(--forest); outline-offset: -4px; }
  .sum-details { display: none; padding: 20px 20px 24px; border-top: 1px solid var(--line); }
  .sum-collapsible.open .sum-details { display: block; animation: sumOpen .35s var(--ease-out); }
  .sum-details > h2 { display: none; }
  .card-page .summary-card .back-link { margin-top: 20px; }
}
@keyframes sumOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
