/* ===== Tokens ===== */
:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede7;
  --ink: #16140f;
  --ink-soft: #5c574e;
  --line: #e3ddd3;
  --accent: #16140f;
  --accent-ink: #ffffff;
  --gold: #c9a96a;
  --radius: 4px;
  --container: 1200px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow.light { color: rgba(255,255,255,0.7); }
.eyebrow.center, h2.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform .15s ease, opacity .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; padding: 18px; font-size: 0.9rem; }
.btn--mini { padding: 10px 18px; font-size: 0.72rem; }
.btn--light { background: #fff; color: var(--ink); }

/* ===== Announce ===== */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 9px 16px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,245,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.05em; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--ink); }

/* ===== Placeholders ===== */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, #e9e3d9 0%, #d9d1c4 100%);
  border: 1px dashed #c3b9a7;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-size: 0.72rem;
  color: #8a7f6c;
  letter-spacing: 0.05em;
  padding: 8px;
  text-align: center;
}
.ph__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 5px 9px;
  border-radius: 3px;
}
.ph--portrait { aspect-ratio: 3/4; }
.ph--square { aspect-ratio: 1/1; }
.ph--thumb { aspect-ratio: 1/1; }

/* ===== Real images ===== */
.shot {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.shot--portrait { aspect-ratio: 3/4; }
.shot--square { aspect-ratio: 1/1; }
.shot--thumb {
  aspect-ratio: 3/4;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: opacity .2s ease, border-color .2s ease;
}
.shot--thumb:hover { opacity: .82; }
.shot--thumb.is-active { border-color: var(--ink); border-width: 2px; }

/* ===== Hero ===== */
.hero { padding: 48px 0 80px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.gallery { position: sticky; top: 92px; }
.gallery__main { margin-bottom: 14px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.buybox { padding-top: 8px; }
.product-title { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 16px; }
.rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.rating__text { font-size: 0.82rem; color: var(--ink-soft); }
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin-bottom: 20px; }
.product-pitch { color: var(--ink-soft); margin-bottom: 32px; max-width: 46ch; }

.option { margin-bottom: 24px; }
.option__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.option__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.option__guide { font-size: 0.78rem; color: var(--ink-soft); text-decoration: underline; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.size {
  min-width: 56px;
  padding: 13px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-error { color: #b23b3b; font-size: 0.8rem; margin-top: 10px; }

#addToCart { margin-bottom: 24px; }

.trust { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.trust li { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Props ===== */
.props { background: var(--bg-alt); padding: 64px 0; }
.props__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.prop__icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; }
.prop h3 { font-size: 1.15rem; margin-bottom: 8px; }
.prop p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== Feature ===== */
.feature { padding: 88px 0; }
.feature--alt { background: var(--bg-alt); }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature__text h2 { margin-bottom: 18px; }
.feature__text > p { color: var(--ink-soft); margin-bottom: 24px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; font-size: 0.95rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}
.spec { display: flex; flex-direction: column; gap: 14px; }
.spec > div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.spec span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.spec strong { font-size: 0.95rem; font-weight: 600; }

/* ===== Size table ===== */
.sizes-section { padding: 80px 0; }
.sizes-section h2 { margin-bottom: 36px; }
.table-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; }
.sizetable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sizetable th, .sizetable td { padding: 16px 18px; text-align: left; font-size: 0.9rem; }
.sizetable th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sizetable tbody tr:nth-child(even) { background: var(--bg-alt); }
.sizetable tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line); }

/* ===== Reviews ===== */
.reviews { background: var(--bg-alt); padding: 88px 0; }
.reviews h2 { margin-bottom: 48px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.review .stars { margin-bottom: 14px; display: block; }
.review blockquote { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; margin-bottom: 16px; }
.review figcaption { font-size: 0.82rem; color: var(--ink-soft); }

/* ===== Offer ===== */
.offer { background: var(--ink); color: #fff; padding: 64px 0; }
.offer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.offer h2 { color: #fff; }
.offer__sub { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 8px; }
.offer__cta { display: flex; align-items: center; gap: 24px; }
.offer__price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }

/* ===== FAQ ===== */
.faq { padding: 88px 0; }
.faq__inner { max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 40px; }
.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; color: var(--ink-soft); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { color: var(--ink-soft); padding: 0 0 22px; max-width: 62ch; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.logo--footer { display: inline-block; margin-bottom: 12px; }
.footer__brand p { color: var(--ink-soft); font-size: 0.9rem; max-width: 30ch; }
.footer__col h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.8rem; color: var(--ink-soft); }

/* ===== Legal pages ===== */
.legal { padding: 64px 0 88px; }
.legal__head { max-width: 760px; margin: 0 auto 40px; }
.legal__head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal__updated { color: var(--ink-soft); font-size: 0.85rem; }
.legal__body { max-width: 760px; margin: 0 auto; }
.legal__body h2 {
  font-size: 1.25rem;
  margin: 38px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal__body h2:first-of-type { border-top: none; padding-top: 0; }
.legal__body p { color: var(--ink-soft); margin-bottom: 14px; }
.legal__body ul { color: var(--ink-soft); margin: 0 0 14px 20px; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--ink); }
.legal .todo {
  background: #fff7e6;
  border: 1px solid #e8d49a;
  color: #7a5c12;
  border-radius: var(--radius);
  padding: 2px 7px;
  font-size: 0.85rem;
}
.legal__back { display: inline-block; margin-bottom: 28px; font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
.legal__back:hover { color: var(--ink); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  z-index: 100;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.toast.is-show { transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
  .feature__grid { grid-template-columns: 1fr; gap: 32px; }
  .feature__grid--rev .feature__media { order: -1; }
  .props__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 520px) {
  .props__grid { grid-template-columns: 1fr; }
  .offer__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}
