:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #17191a;
  --muted: #667078;
  --line: #e6e2da;
  --gold: #c9982d;
  --gold-deep: #a67b18;
  --ink-soft: #2b3035;
  --ok: #1f6b4a;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(23, 25, 26, 0.08);
  --radius: 18px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 35%, #f3f0ea 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(230, 226, 218, 0.9);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.logo span { color: var(--gold-deep); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.header-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark {
  background: var(--ink);
  color: #fff !important;
  padding: 0.7rem 1.05rem;
}
.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #e2b34a, var(--gold));
  color: #1a1408;
  box-shadow: 0 12px 28px rgba(201, 152, 45, 0.28);
  font-size: 1.02rem;
  padding: 1rem 1.2rem;
}
.btn-primary[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2rem 0 1rem;
  align-items: start;
}

.gallery-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #ebe7df;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.gallery-stage:active { cursor: grabbing; }
.gallery-stage img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.gallery-hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}
.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}
.gallery-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.gallery-dots span.is-active {
  background: #fff;
  transform: scale(1.15);
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.gallery-btn.prev { left: 0.85rem; }
.gallery-btn.next { right: 0.85rem; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #ebe7df;
  cursor: pointer;
}
.gallery-thumbs button img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-thumbs button[aria-selected="true"],
.gallery-thumbs button:hover {
  border-color: var(--gold);
}

.buy-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  position: sticky;
  top: 92px;
}
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.buy-panel h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.8rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.stars { color: var(--gold-deep); letter-spacing: 0.06em; }
.price-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.price {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-sub {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 1.02rem;
}
.benefits {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.benefits li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ok);
}

.buy-form { display: grid; gap: 0.95rem; }
.field-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
}
.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.field input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 0.95rem;
  background: #fff;
  font-weight: 600;
}
.field input[type="text"]:focus {
  outline: none;
  border-color: rgba(201, 152, 45, 0.8);
  box-shadow: 0 0 0 4px rgba(201, 152, 45, 0.14);
}
.sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.size {
  display: block;
  cursor: pointer;
}
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span {
  display: grid;
  gap: 0.15rem;
  min-height: 68px;
  align-content: center;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.4rem;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.size strong { font-size: 0.9rem; }
.size em {
  font-style: normal;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}
.size small {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.size.is-active span,
.size:has(input:checked) span {
  border-color: var(--gold);
  background: #fff8e8;
}

.checkout-box {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  background: #f4f1ea;
  border: 1px solid var(--line);
}
.checkout-box span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.checkout-box strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.checkout-box small {
  color: var(--muted);
  font-weight: 600;
}
.form-status {
  min-height: 1.15rem;
  margin: 0;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
.form-status.error { color: var(--danger); }
.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}
.details article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.details h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
}
.details a {
  color: var(--gold-deep);
  text-decoration: underline;
  font-weight: 700;
}

.reviews {
  padding: 0 0 3rem;
}
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.reviews-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}
.reviews-score {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.reviews-score span {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.35rem;
}
.reviews-stars {
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}
.review-list {
  display: grid;
  gap: 0.9rem;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 8px 24px rgba(23, 25, 26, 0.04);
}
.review-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.7rem;
}
.review-top strong {
  display: block;
  font-size: 1rem;
}
.review-top span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.review-top .stars {
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.review-card > p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 500;
}
.review-photos {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.review-photos img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ebe7df;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #15181b;
  color: rgba(255,255,255,0.72);
  padding: 2.4rem 0 1.4rem;
}
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #e2b34a; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-grid h3 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 0.92rem;
}
.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 0.4rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  line-height: 1.5;
}
.footer-grid a:hover { color: #fff; }
.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.86rem;
}

/* Compat headers on legal pages */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand span { color: var(--gold-deep); }
.topnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}
.footer, .site-footer + .footer { /* keep */ }
.footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  background: #15181b;
  color: rgba(255,255,255,0.72);
}
.footer strong { color: #fff; display: block; margin-bottom: 0.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-links a { color: rgba(255,255,255,0.72); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
}
.footer-brand strong { font-size: 1.2rem; margin-bottom: 0.4rem; }
@media (max-width: 800px) {
  .footer { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal-page {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}
.legal-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}
.legal-page .legal-meta {
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.legal-page h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.05rem;
}
.legal-page p, .legal-page li {
  color: var(--muted);
  line-height: 1.7;
}
.legal-page a {
  color: var(--gold-deep);
  text-decoration: underline;
  font-weight: 700;
}

@media (max-width: 960px) {
  .product,
  .details,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .reviews-head { align-items: start; flex-direction: column; }
  .review-photos img { width: 84px; height: 84px; }
  .buy-panel { position: static; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header-nav a:not(.btn) { display: none; }
  .sizes { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}
