@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&display=swap");

:root {
  --navy: #303d66;
  --navy-2: #243154;
  --ink: #161616;
  --muted: #5c6170;
  --line: #e3e6ee;
  --soft: #f4f6fb;
  --star: #f5b400;
  --amber: #e39b2b;
  --green: #2f9e6b;
  --danger: #9b2c2c;
  --bg: #fff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(36, 49, 84, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body.lock { overflow: hidden; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); margin: 0 0 8px; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { left: 8px; }

.promo {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.promo a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
}

.site-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 74px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.logo {
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  font-family: "Cormorant Garamond", Palatino, Georgia, serif;
  font-size: 1.85rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  line-height: 1;
}
.logo span {
  display: block;
  margin-top: 4px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--navy);
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.icon-btn:hover { background: var(--soft); }
.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  line-height: 18px;
  font-weight: 700;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 38, 0.45);
  z-index: 30;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  background: #fff;
  z-index: 40;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.nav-drawer { left: 0; width: min(86vw, 360px); transform: translateX(-105%); }
.cart-drawer { right: 0; width: min(100vw, 420px); transform: translateX(105%); padding: 18px 18px 24px; }
.drawer.is-open { transform: none; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.nav-drawer { padding: 18px 8px 28px; }
.menu-list { list-style: none; margin: 0; padding: 8px; }
.menu-list a {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.menu-label {
  margin: 18px 18px 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { margin: 48px auto; }
.narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; }

.rating { margin: 18px 0 8px; font-size: 0.95rem; }
.stars { color: var(--star); letter-spacing: 1px; }
.subhead { color: var(--muted); margin-bottom: 14px; }

.product-top { padding-top: 6px; }
.gallery-main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 40%, #fff, #e7eef8 70%);
  border-radius: 18px;
  cursor: zoom-in;
}
.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
}
.thumbs button {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.thumbs button.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.checks { list-style: none; padding: 8px 0 0; margin: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-weight: 700; }
.tick {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  margin-top: 1px;
}

.quote-card {
  border: 1px solid #d5dbe8;
  border-radius: 18px;
  padding: 16px 16px 12px;
  background: #fbfcfe;
  margin: 16px 0;
}
.verified { color: var(--navy); font-weight: 700; font-size: 0.92rem; }

.stock { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }
.dot-amber { background: var(--amber); }
.dot-green { background: var(--green); }

.offer {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
}
.offer input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.offer:has(input:checked) {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: #f6f7fb;
}
.offer:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.offer-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.price-now { font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.compare { color: var(--muted); text-decoration: line-through; font-size: 0.92rem; }
.offer p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
}
.swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.swatch:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.buy-btn, .btn-navy {
  width: 100%;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  min-height: 54px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.buy-btn:hover, .btn-navy:hover { background: var(--navy-2); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.trust div { background: var(--soft); border-radius: 12px; padding: 8px 6px; }
.fine { color: var(--muted); font-size: 0.88rem; }

.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:after { content: "+"; color: var(--navy); font-size: 1.4rem; line-height: 1; }
.acc[open] summary:after { content: "–"; }
.acc-body { padding: 0 0 14px; color: #222; }
.acc-body ul { margin: 8px 0 0; padding-left: 18px; }

.snap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.snap article {
  flex: 0 0 min(86%, 340px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.who { font-weight: 700; margin-bottom: 0; }
.when { color: var(--muted); font-size: 0.82rem; margin: 0; }
.row-actions { display: flex; gap: 8px; margin-top: 10px; }

.pain-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.pain-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  cursor: pointer;
}
.pain-tabs button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pain-panel {
  background: var(--soft);
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
}

.trial {
  background: #eef2fb;
  border-radius: 20px;
  padding: 28px 22px;
}
.shot-grid { display: grid; gap: 12px; }
.shot-grid.three, .shot-grid.four { grid-template-columns: 1fr 1fr; }
.shot { margin: 0; }
.shot img, .wide-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  background: #eef3f8;
}
.shot img { aspect-ratio: 1; }
.wide-photo { aspect-ratio: 16 / 9; }
.shot figcaption { margin-top: 8px; font-weight: 700; }
.section h2 { margin-bottom: 14px; }

.review-grid { display: grid; gap: 12px; }
.review-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.score {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.score strong { font-size: 2rem; }

.related-grid { display: grid; gap: 14px; }
.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
}
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--soft); }
.product-card div { padding: 12px 14px 16px; }
.product-card h3 { font-size: 1.02rem; }

.news {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 28px 20px;
}
.news h2, .news p { color: #fff; }
.news form { display: flex; gap: 8px; flex-wrap: wrap; }
.news input {
  flex: 1 1 220px;
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  padding: 0 16px;
}
.news button { width: auto; min-width: 140px; background: #fff; color: var(--navy); }

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: #fafbfe;
  padding: 28px 0 40px;
}
.footer-grid { display: grid; gap: 22px; }
.site-footer h3 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.disclaimer { color: var(--muted); font-size: 0.78rem; margin-top: 18px; }

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.cookie p { margin: 0; max-width: 680px; font-size: 0.92rem; }
.cookie div { display: flex; gap: 8px; }

.prose h1 { margin-top: 22px; }
.prose h2 { margin-top: 28px; font-size: 1.25rem; }
.prose ul { padding-left: 18px; }
.lead { font-size: 1.05rem; color: #333; }

.checkout-grid, .contact-grid { display: grid; gap: 22px; }
.field { margin: 0 0 12px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd3de;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.checkline { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 0.92rem; }
.checkline input { margin-top: 3px; }
.errors { background: #fdecec; color: var(--danger); border-radius: 12px; padding: 10px 12px; }
.summary {
  background: var(--soft);
  border-radius: 16px;
  padding: 16px;
}
.summary-line { display: flex; gap: 10px; margin-bottom: 12px; }
.summary-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #fff; }
.totals { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.totals p { display: flex; justify-content: space-between; gap: 12px; }
.note {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
}
.pair { display: grid; gap: 12px; }

.thanks-card, .track-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--soft);
}
.thanks {
  text-align: center;
  padding-top: 28px;
}
.thanks h1 { margin-bottom: 8px; }
.thanks-hero {
  display: block;
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 40%, #fff, #e7eef8 70%);
  margin: 8px auto 18px;
}
.thanks-steps {
  display: grid;
  gap: 10px;
  text-align: left;
  margin: 18px 0;
}
.thanks-steps div {
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 14px;
}
.thanks-steps strong { color: var(--navy); }
.order-no { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; color: var(--navy); }

dialog {
  border: 0;
  padding: 0;
  border-radius: 16px;
  max-width: min(92vw, 860px);
  width: min(92vw, 860px);
}
dialog img { display: block; width: 100%; height: auto; }
dialog::backdrop { background: rgba(12, 16, 28, 0.72); }
.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.sticky-buy { display: none; }
.noscript { background: #fff4e5; padding: 12px 16px; text-align: center; margin: 0; }

@media (min-width: 720px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .shot-grid.three { grid-template-columns: repeat(3, 1fr); }
  .shot-grid.four { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
}

@media (min-width: 960px) {
  .product-top {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 40px;
    align-items: start;
    padding-top: 18px;
  }
  .buy-col { position: sticky; top: 12px; }
  .checkout-grid, .contact-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .summary { position: sticky; top: 16px; }
}

@media (max-width: 800px) {
  body.has-sticky { padding-bottom: 86px; }
  .gallery-main { max-height: calc(100svh - 360px); }
  .sticky-buy {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .cookie { bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer { transition: none; }
}
