/* Geodesix Shop. Mobile first; the palette and type match the Geodesix ad creatives. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/dm-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/playfair-display-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dm-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --ink: #111315;
  --ink-soft: #2a2d33;
  --muted: #4a4f57;      /* 8.3:1 on white */
  --line: #e3e1db;
  --stone: #f1f1ed;      /* product photo background */
  --paper: #ffffff;
  --accent: #e03040;     /* the red dot; decorative and focus ring only */
  --sale: #b3261e;       /* 6.5:1 on white, for sale text */
  --ok: #1e6b3a;
  --focus: #e03040;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 16px;
  --radius: 12px;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.icon { flex: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.wordmark { display: inline-flex; gap: 8px; min-height: var(--tap); align-items: center; margin: 0; }
.wordmark-main { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; letter-spacing: 0.01em; }
.wordmark-sub { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.topbar-link { font-size: 0.875rem; color: #fff; min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---------- product layout ---------- */
.pdp { display: grid; gap: 20px; padding-bottom: 32px; }

.gallery { position: relative; min-width: 0; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.gallery-count {
  position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(17,19,21,.78); color: #fff; font-size: 0.8125rem; font-weight: 500; pointer-events: none;
}
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  background: var(--paper); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; }  /* square on phones so price and button come sooner */
.slide img { width: 100%; height: 100%; object-fit: contain; }  /* brand photos are 3:4 on white; show them whole */
.thumbs { display: none; gap: 8px; padding: 10px var(--gutter) 0; overflow-x: auto; }
.thumb {
  flex: none; width: 60px; height: 80px; padding: 0; border: 2px solid var(--line); border-radius: 8px;
  background: var(--paper); cursor: pointer; overflow: hidden;
}
.thumb[aria-current="true"] { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.buybox { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.brand { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.12; letter-spacing: -0.005em; margin-top: -6px; }
.tagline { color: var(--muted); font-size: 1.0625rem; }

.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.stars { position: relative; display: inline-block; width: 90px; height: 18px; flex: none;
  background: linear-gradient(90deg, #c9c6bd 0 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1.5l2.3 4.8 5.2.7-3.8 3.6.9 5.2L9 13.3l-4.6 2.5.9-5.2L1.5 7l5.2-.7z'/%3E%3C/svg%3E") repeat-x left / 18px 18px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1.5l2.3 4.8 5.2.7-3.8 3.6.9 5.2L9 13.3l-4.6 2.5.9-5.2L1.5 7l5.2-.7z'/%3E%3C/svg%3E") repeat-x left / 18px 18px; }
.stars-fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); }

.price-block { padding-top: 2px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-now { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
.price-was { color: var(--muted); font-size: 1.0625rem; }
.price-save { color: var(--sale); font-weight: 700; font-size: 0.9375rem; }
.price-meta { font-size: 0.875rem; color: var(--muted); margin-top: 2px; }
[hidden] { display: none !important; }

.options { border: 0; padding: 0; min-width: 0; }
.options-legend { font-weight: 700; font-size: 0.9375rem; margin-bottom: 10px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill > span {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap);
  padding: 10px 16px; border: 1.5px solid #b9b6ad; border-radius: 999px; background: var(--paper);
  font-size: 0.9375rem; font-weight: 500; line-height: 1.2; text-align: center;
}
.pill input:hover + span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.options-current { font-weight: 400; }
.options-group { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.swatches + .options-group { margin-top: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; padding: 5px; margin: -5px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.swatch-face {
  display: block; width: var(--tap); height: var(--tap); border-radius: 50%;
  background: var(--swatch, var(--stone)); border: 1px solid rgba(17,19,21,.22);
}
.swatch input:checked + .swatch-face { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.swatch input:hover + .swatch-face { border-color: var(--ink); }
.swatch input:focus-visible + .swatch-face { outline: 3px solid var(--focus); outline-offset: 7px; }
.swatch.is-oos .swatch-face { opacity: 0.35; }
.pill.is-oos > span { color: var(--muted); text-decoration: line-through; }
.pill.is-na > span { color: var(--muted); border-style: dashed; }
.swatch.is-na .swatch-face { opacity: 0.35; border-style: dashed; border-color: var(--ink); }
.options-detail { font-size: 0.875rem; color: var(--muted); margin: -4px 0 10px; }
.dimensions { display: grid; gap: 18px; }
.option-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filter-btn {
  min-height: var(--tap); padding: 8px 16px; border: 1.5px solid #b9b6ad; border-radius: 999px; background: var(--paper);
  font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.options-note { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
.single-option { font-size: 0.9375rem; }

.stock { padding: 12px 14px; border-radius: 10px; font-size: 0.9375rem; }
.stock-out { background: #fbeceb; color: #6f1a14; border: 1px solid #f0c9c5; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em;
  transition: background-color .15s ease, transform .1s ease;
}
.cta:hover { background: #2c3036; }
.cta:active { transform: translateY(1px); }
.cta-note { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: -4px; }

.perks { list-style: none; display: grid; gap: 8px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks .icon { color: var(--ok); margin-top: 3px; }

.endorsement { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.endorsement-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.endorsement-pub { font-family: var(--serif); font-size: 1.125rem; }
.endorsement-label { border: 1.5px solid #fff; border-radius: 999px; padding: 4px 12px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.endorsement blockquote { margin: 0; font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; }
.endorsement figcaption { font-size: 0.875rem; color: #d6d6d6; }
.verified { font-family: var(--mono); font-size: 0.75rem; color: #d6d6d6; }

/* ---------- details ---------- */
.details { padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin-bottom: 16px; }
.highlights { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.highlights li { position: relative; padding-left: 20px; }
.highlights li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.accordions { border-top: 1px solid var(--line); }
.accordion { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 8px 0;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h3 { font-size: 1rem; font-weight: 700; }
.accordion summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px);
  transition: transform .15s ease;
}
.accordion[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion-body { padding: 0 0 18px; display: grid; gap: 10px; color: var(--ink-soft); }
.specs { display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; padding-top: 0; }
.specs dt { font-weight: 700; font-size: 0.875rem; }
.specs dd { margin: 0; }

/* ---------- related / cards ---------- */
.related { padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.card-link { display: grid; gap: 4px; text-decoration: none; }
.card-media { display: block; background: var(--stone); border-radius: 10px; overflow: hidden; margin-bottom: 6px; aspect-ratio: 3 / 4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-brand { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.card-name { font-weight: 500; line-height: 1.3; }
.card-link:hover .card-name { text-decoration: underline; }
.card-price { font-size: 0.9375rem; font-weight: 700; }
.card-was { font-weight: 400; color: var(--muted); margin-left: 4px; }
.card-go { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--muted); }
.card-go .icon { width: 14px; height: 14px; }
.related .price-meta { margin-top: 16px; }

/* ---------- sticky buy bar (mobile) ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(17,19,21,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.sticky-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.sticky-name { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-price { font-weight: 700; font-size: 1.0625rem; }
.cta-small { min-height: var(--tap); padding: 10px 18px; font-size: 0.9375rem; flex: none; }
body.has-sticky { padding-bottom: 76px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #e9e9e9; padding: 32px 0 40px; font-size: 0.875rem; }
.footer-title { font-family: var(--serif); font-weight: 500; font-size: 1.125rem; color: #fff; margin-bottom: 8px; }
.footer p { max-width: 62ch; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 16px 0; }
.footer-links a, .link-button { color: #fff; min-height: var(--tap); display: inline-flex; align-items: center; }
.link-button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-org { font-family: var(--mono); font-size: 0.75rem; color: #c9c9c9; }

/* ---------- consent ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: 2px solid var(--ink); box-shadow: 0 -8px 24px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom); }
.consent-inner { padding-top: 16px; padding-bottom: 16px; display: grid; gap: 10px; font-size: 0.9375rem; }
.consent-title { font-size: 1rem; font-weight: 700; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { min-height: var(--tap); border-radius: 999px; font-weight: 700; cursor: pointer; padding: 10px 18px; }
.btn-primary { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }

/* ---------- text pages ---------- */
.prose { padding-top: 24px; padding-bottom: 48px; max-width: 720px; }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
.prose h2 { font-size: 1.125rem; margin: 24px 0 8px; }
.prose p, .prose ul { margin-bottom: 12px; }
.prose ul { padding-left: 20px; }

/* ---------- larger screens ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs div { grid-template-columns: 180px 1fr; gap: 16px; }
  .slide { aspect-ratio: 4 / 5; }
  .thumbs { display: flex; }
  .gallery-count { display: none; }
  .consent-inner { grid-template-columns: 1fr auto; align-items: center; }
  .consent-inner .consent-title { grid-column: 1 / -1; }
  .consent-actions { grid-template-columns: auto auto; }
}
@media (min-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px; padding-bottom: 48px; }
  .gallery { margin: 0; position: sticky; top: 16px; }
  .gallery-track { border-radius: var(--radius); }
  .thumbs { padding-left: 0; padding-right: 0; }
  .thumb { width: 66px; height: 88px; }
  .buybox { padding-top: 8px; }
  .cta { max-width: 420px; }
  .cta-note { text-align: left; }
  .details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 48px; }
  .details .section-title { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .sticky-buy { display: none !important; }
  body.has-sticky { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (forced-colors: active) {
  .cta, .filter-btn[aria-pressed="true"], .pill input:checked + span, .swatch input:checked + .swatch-face, .btn-primary { border: 2px solid ButtonText; }
  .stars { display: none; }
}
