:root {
  --cream: #f6f1ea;
  --cream-2: #efe7dc;
  --ivory: #faf7f2;
  --paper: #fffdf9;
  --ink: #1c1612;
  --ink-soft: #5c534a;
  --muted: #8a8178;
  --line: rgba(28, 22, 18, 0.1);
  --blush: #e8d4c8;
  --blush-deep: #c9a594;
  --chocolate: #4a3428;
  --rose: #d4a5a8;
  --success: #3d5a45;
  --danger: #9a3b32;
  --shadow: 0 24px 60px rgba(28, 22, 18, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; }

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
#app { flex: 1; }

.announce {
  background: var(--chocolate);
  color: #f6efe6;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  word-spacing: 0.35em;
  text-transform: uppercase;
  padding: 12px 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: 0.38em;
  font-weight: 500;
  padding-left: 0.2em;
}
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: var(--cream-2); }
.cart-count {
  position: absolute;
  top: 6px;
  right: 4px;
  background: var(--chocolate);
  color: #fff;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.menu-btn { display: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; }
.display {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.lead { font-size: 20px; color: var(--ink-soft); max-width: 520px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  transition: 0.25s ease;
}
.btn-dark { background: var(--ink); color: #f7f1ea; }
.btn-dark:hover { background: #000; }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-blush { background: var(--blush); color: var(--ink); }
.btn-blush:hover { background: var(--blush-deep); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.78fr) 1.22fr;
  min-height: min(820px, calc(100vh - 96px));
  background: var(--cream);
}
.hero-copy {
  padding: 56px 48px 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy p { margin: 22px 0 32px; }
.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 640px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 18%;
}
.script-note {
  position: absolute;
  right: 36px;
  top: 48px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
.story-card {
  background: var(--paper);
  overflow: hidden;
}
.story-card img { width: 100%; height: 520px; object-fit: cover; }
.story-card.compact img { height: 240px; }
.story-body { padding: 32px; }
.story-body h2 { font-size: 42px; line-height: 1; margin-bottom: 12px; }
.story-stack { display: grid; gap: 28px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--paper);
  padding: 18px 18px 28px;
  transition: 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb {
  background: var(--cream);
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 20px;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 30px; }
.meta { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.price { margin-top: 8px; font-size: 15px; }

.feature-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.feature-list { display: grid; gap: 22px; margin-top: 28px; }
.feature-item h4 { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; }
.feature-item p { color: var(--ink-soft); font-size: 14px; }
.feature-visual img { width: 100%; }

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--cream);
}
.band.reverse { direction: rtl; }
.band.reverse > * { direction: ltr; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: right center; min-height: 480px; }
.band-copy { padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.band-copy h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1; margin: 10px 0 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--paper);
  padding: 32px;
  border: 1px solid var(--line);
}
.step-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--blush-deep);
}
.step h3 { font-size: 28px; margin: 8px 0 10px; }

.pdp { padding: 36px 0 80px; }
.pdp-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
}
.gallery-main {
  background: var(--cream);
  min-height: 620px;
  position: relative;
  overflow: hidden;
}
.story-page { max-width: 760px; }
.story-prose { display: grid; gap: 18px; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.story-photo { margin-top: 40px; }
.story-photo img { width: 100%; }
.story-photo figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  margin-top: 14px;
}

.gallery-main img { width: 100%; height: 720px; object-fit: contain; background: var(--cream); }
.mono-layer {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.mono-mask {
  position: absolute;
  inset: -18px -28px;
  background: var(--bag);
  filter: blur(0.2px);
  border-radius: 8px;
}
.mono-text {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.thumbs button {
  background: var(--cream);
  border: 1px solid transparent;
  overflow: hidden;
}
.thumbs button.active { border-color: var(--ink); }
.thumbs img { height: 92px; width: 100%; object-fit: cover; object-position: center 42%; }

.pdp-info h1 { font-size: 56px; line-height: 0.95; }
.pdp-price { font-size: 22px; margin: 10px 0 18px; }
.pdp-desc { color: var(--ink-soft); margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  word-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.swatches { display: flex; gap: 10px; }
.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.swatch.active { box-shadow: 0 0 0 2px var(--ink); }
.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  padding: 4px;
  border-radius: 999px;
}
.segment button {
  min-height: 40px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.segment button.active { background: var(--paper); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.input, select, textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 14px;
  outline: none;
}
.input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea.input { padding: 12px 14px; min-height: 90px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.thread-row { display: flex; gap: 10px; flex-wrap: wrap; }
.thread {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.thread.active { border-color: var(--ink); background: var(--cream); }
.thread i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.notice {
  background: var(--cream);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 8px 0 20px;
}
.mono-chip {
  margin: 8px 0 18px;
  min-height: 88px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
}
.mono-chip span {
  font-family: var(--serif);
  letter-spacing: 0.22em;
  font-size: 36px;
  text-transform: uppercase;
}

.cart-page, .checkout-page, .confirm-page { padding: 48px 0 90px; }
.cart-layout, .check-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
}
.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 140px; height: 160px; object-fit: cover; background: var(--cream); }
.cart-item h3 { font-size: 28px; }
.remove { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 10px; }
.summary {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 110px;
}
.summary h2 { font-size: 32px; margin-bottom: 18px; }
.row-line, .total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}
.total-line { font-size: 18px; margin: 16px 0 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.empty { text-align: center; padding: 80px 0; }
.empty h1 { font-size: 48px; margin-bottom: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.card-box {
  margin-top: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}
.card-visual {
  background: linear-gradient(135deg, #3a2b23, #6b4c3b);
  color: #f6efe6;
  border-radius: 16px;
  padding: 22px;
  min-height: 180px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-visual .brand { letter-spacing: 0.2em; font-size: 12px; text-transform: uppercase; }
.card-visual .num { font-family: var(--serif); font-size: 26px; letter-spacing: 0.12em; }
.pay-brands { display: flex; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.error { color: var(--danger); font-size: 12px; margin-top: 6px; }

.secure-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.45);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 20px;
}
.secure-modal.open { display: grid; }
.secure-card {
  background: var(--paper);
  width: min(420px, 100%);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.secure-card h3 { font-size: 34px; margin: 8px 0 10px; }
.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--cream-2);
  border-top-color: var(--ink);
  border-radius: 50%;
  margin: 12px auto 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.confirm { text-align: center; max-width: 640px; margin: 0 auto; }
.confirm h1 { font-size: 64px; line-height: 0.95; margin: 10px 0 16px; }
.order-box { background: var(--paper); border: 1px solid var(--line); padding: 24px; margin: 28px 0; text-align: left; }

.footer {
  background: var(--chocolate);
  color: #f3eadf;
  padding: 56px 0 28px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer .logo { color: #fff; }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: #fff;
  margin: 10px 0 18px;
}
.footer p, .footer a { color: #d9cbbd; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer h4 { font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; margin-bottom: 14px; }
.legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 12px; color: #c9b8a8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 90;
}
.toast.show { opacity: 1; transform: none; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 8px 28px 22px;
}
.mobile-nav.open { display: flex; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hero, .story-grid, .product-grid, .feature-row, .band, .steps, .pdp-grid, .cart-layout, .check-layout, .footer-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .band.reverse { direction: ltr; }
  .hero-copy, .band-copy { padding: 40px 24px; }
  .hero { min-height: 0; }
  .hero-media { min-height: 520px; }
  .story-card img { height: 360px; }
  .gallery-main img { height: 460px; }
  .cart-item { grid-template-columns: 100px 1fr; }
  .cart-item .price { grid-column: 2; }
  .span-2 { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 14px 18px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
}
