:root {
  --bg: #f8f6f2;
  --surface: #fff;
  --ink: #27221f;
  --muted: #756d66;
  --line: #e4ddd4;
  --accent: #9b6d55;
  --accent-dark: #79513e;
  --black: #252321;
  --nude: #d8ae8e;
  --radius: 16px;
  --shadow: 0 16px 46px rgba(55, 42, 31, 0.1);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --max: 1080px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --sticky-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--sticky-h) + var(--safe-b));
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: var(--safe-t);
  background: rgba(248, 246, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.08rem;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.25rem;
  margin-right: 0.25rem;
}

.nav {
  display: flex;
  gap: 1.15rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--ink);
}

/* Hero / gallery */
.hero {
  padding: 2.25rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.gallery-main {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(150deg, #ebe4dc, #faf8f4 64%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  transition: background 0.25s ease;
}

.gallery-main[data-color="nude"] {
  background: linear-gradient(150deg, #f2e0d3, #fbf8f3 64%);
}

.gallery-main::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background: radial-gradient(ellipse at 50% 35%, #fff 0, transparent 48%);
}

.shape-brief {
  position: relative;
  z-index: 1;
  width: min(245px, 68%);
  height: 290px;
  filter: drop-shadow(0 18px 17px rgba(56, 42, 29, 0.22));
  transform: rotate(-2deg);
}

.brief-waist {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 4%;
  height: 55px;
  border-radius: 42% 42% 30% 30% / 50% 50% 25% 25%;
  background: linear-gradient(110deg, #11100f, #4a4744 42%, #1a1918 75%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 6px 9px rgba(255, 255, 255, 0.16);
}

.gallery-main[data-color="nude"] .brief-waist {
  background: linear-gradient(110deg, #b47b5b, #efd0ba 43%, #bd8b70 75%);
}

.brief-body {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 33px;
  height: 176px;
  border-radius: 23% 23% 37% 37% / 13% 13% 23% 23%;
  background: linear-gradient(105deg, #141312, #3d3a38 42%, #171615 80%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 15px 0 18px rgba(255, 255, 255, 0.08),
    inset -13px -4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-main[data-color="nude"] .brief-body {
  background: linear-gradient(105deg, #bf8f73, #e5bea5 42%, #b37c61 80%);
}

.seam-line {
  position: absolute;
  top: 18%;
  left: 11%;
  right: 11%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.brief-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font: 600 0.7rem / 1.25 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-main[data-color="nude"] .brief-label {
  color: rgba(83, 49, 34, 0.45);
}

.brief-leg {
  position: absolute;
  top: 184px;
  width: 47%;
  height: 73px;
  background: linear-gradient(110deg, #11100f, #3b3836 44%, #181716);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-main[data-color="nude"] .brief-leg {
  background: linear-gradient(110deg, #b78266, #d9ad91 48%, #ae775e);
}

.brief-leg.left {
  left: 7%;
  border-radius: 12% 8% 45% 42%;
}

.brief-leg.right {
  right: 7%;
  border-radius: 8% 12% 42% 45%;
}

.soft-shadow {
  position: absolute;
  bottom: 70px;
  width: 60%;
  height: 26px;
  border-radius: 50%;
  background: rgba(78, 57, 39, 0.16);
  filter: blur(13px);
}

.gallery-caption {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.caption-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 6.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.thumb.active {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(155, 109, 85, 0.14);
}

.swatch {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.17);
  flex-shrink: 0;
}

.swatch.black {
  background: var(--black);
}

.swatch.nude {
  background: var(--nude);
}

/* Buy panel */
.buy-panel {
  padding-top: 0.15rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.buy-panel h1 {
  max-width: 600px;
  margin: 0;
  font: 700 clamp(1.85rem, 4.2vw, 3.2rem) / 1.1 var(--display);
  letter-spacing: -0.04em;
}

.tagline {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.price {
  margin: 1.3rem 0 1.15rem;
}

.amount {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.currency {
  margin-left: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.option-picker {
  margin: 1.2rem 0 0;
  padding: 0;
  border: 0;
}

.option-picker legend {
  margin-bottom: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.color-options,
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.color-option,
.size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.color-option {
  min-width: 6.5rem;
  padding: 0.65rem 1rem;
}

.color-option.active,
.size-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(155, 109, 85, 0.14);
}

.color-option[aria-pressed="true"],
.size-option[aria-pressed="true"] {
  font-weight: 700;
}

.size-option {
  min-width: 3.6rem;
  padding: 0.7rem 0.9rem;
}

.selected-option {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.fit-hint {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 52px;
  margin-top: 1.45rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-buy:hover {
  background: var(--accent-dark);
}

.btn-buy:active {
  transform: scale(0.985);
}

.payment-note {
  max-width: 420px;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}


.trust-line {
  max-width: 480px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cta-copy {
  max-width: 480px;
  margin: 1.3rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* Trust row */
.trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  max-width: 480px;
  margin: 1.35rem 0 0;
  padding: 1rem 1.05rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.trust-row li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.trust-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

@media (min-width: 480px) {
  .trust-row {
    grid-template-columns: 1fr 1fr;
  }
}

.bullets {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

.bullets li:last-child {
  border-bottom: 0;
}

.bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Fit / size chart */
.fit-section {
  padding: 0 0 3.75rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.section-heading h2,
.details h2,
.faq h2 {
  margin: 0.15rem 0 0.5rem;
  font: 700 clamp(1.65rem, 3vw, 2.2rem) / 1.15 var(--display);
  letter-spacing: -0.04em;
}

.measure-how {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(55, 42, 31, 0.05);
}

.size-chart {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  text-align: left;
}

.size-chart th,
.size-chart td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.size-chart thead th {
  background: #f1ece6;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.size-chart tbody th {
  font-weight: 700;
}

.size-chart tbody tr:last-child th,
.size-chart tbody tr:last-child td {
  border-bottom: 0;
}

.size-chart tbody tr:hover {
  background: #fcfaf8;
}

.chart-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Details */
.details {
  padding: 0 0 3.75rem;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

@media (min-width: 700px) {
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-grid article {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-icon {
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.detail-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* FAQ */
.faq {
  padding: 0 0 4rem;
}

.faq h2 {
  margin-bottom: 1.1rem;
}

.faq details {
  margin-bottom: 0.7rem;
  padding: 0.95rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 400;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  padding: 2.4rem 0 calc(2.6rem + var(--safe-b));
  background: #eee8e0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 1.35rem;
}

.footer-brand {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-fine,
.footer-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.footer-copy {
  margin-top: 0.35rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

/* Sticky mobile buy bar */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.65rem 0.85rem calc(0.65rem + var(--safe-b));
  padding-left: calc(0.85rem + var(--safe-l));
  padding-right: calc(0.85rem + var(--safe-r));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(55, 42, 31, 0.08);
}

.sticky-buy[hidden] {
  display: none !important;
}

.sticky-buy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: min(100%, var(--max));
  margin-inline: auto;
}

.sticky-buy-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sticky-price {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.sticky-selection {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta {
  width: auto;
  max-width: none;
  margin-top: 0;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  flex-shrink: 0;
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .sticky-buy {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}

/* Mobile refinements */
@media (max-width: 560px) {
  .wrap {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .nav {
    gap: 0.55rem;
  }

  .nav a {
    font-size: 0.84rem;
  }

  .gallery-main {
    min-height: 360px;
  }

  .shape-brief {
    height: 245px;
  }

  .buy-panel h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.15rem);
  }

  .tagline {
    font-size: 1.02rem;
  }

  .size-chart th,
  .size-chart td {
    padding: 0.85rem 0.75rem;
    font-size: 0.9rem;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.6rem 0 2.75rem;
  }
}

/* --- overnight mobile / a11y / sticky CTA --- */
html, body { overflow-x: hidden; max-width: 100%; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35rem 0.2rem; }
.btn-buy { min-height: 48px; touch-action: manipulation; }
.thumb, .color-option, .size-option, .color-swatch { min-height: 44px; min-width: 44px; touch-action: manipulation; }
.faq summary { min-height: 44px; padding-top: 0.35rem; padding-bottom: 0.35rem; touch-action: manipulation; }
.trust-line { margin: 0.55rem 0 0; font-size: 0.82rem; color: var(--muted, #6b5f78); max-width: 460px; line-height: 1.45; }
@media (max-width: 720px) {
  .btn-buy:not(.card-cta):not(.btn-buy-sticky):not(.mobile-buy-cta) {
    position: sticky; bottom: 0.75rem; z-index: 18;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
  }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
