@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

:root {
  --cream:      #ede8df;
  --parchment:  #e2dbd0;
  --warm-white: #f7f4ef;
  --ink:        #1a1712;
  --sepia:      #7a6a56;
  --aged:       #c2b8a8;
  --aged-light: #d8d1c5;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;

  --nav-h: 60px;
  --max-w: 1200px;
  --ease:  cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--cream);
  border-bottom: 1px solid var(--aged);
  z-index: 500;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 38px;
  width: auto;
  mix-blend-mode: multiply;
  transition: opacity 0.25s;
}
.nav-logo-img:hover { opacity: 0.75; }

.hero-logo-img {
  width: min(260px, 52vw);
  height: auto;
  mix-blend-mode: multiply;
  margin-bottom: 8px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  mix-blend-mode: multiply;
  opacity: 0.7;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sepia);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-btn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sepia);
  transition: color 0.25s;
}
.nav-btn:hover { color: var(--ink); }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  width: 16px; height: 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 500;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-badge.on { display: flex; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-h);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(72px, 14vw, 180px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: var(--ink);
  text-transform: uppercase;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
}
.hero-sub {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-top: 24px;
}
.hero-cta {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--aged);
  padding-bottom: 4px;
  transition: border-color 0.25s, color 0.25s;
}
.hero-cta:hover { border-color: var(--ink); }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sepia);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--aged);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Ticker / Marquee ── */
.ticker {
  border-top: 1px solid var(--aged);
  border-bottom: 1px solid var(--aged);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--parchment);
}
.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sepia);
  padding: 0 28px;
}
.ticker-sep { color: var(--aged); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section ── */
.section { padding: 100px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--aged);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.section-no {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--sepia);
  text-transform: uppercase;
}
.section-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sepia);
  border-bottom: 1px solid var(--aged);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.section-link:hover { color: var(--ink); border-color: var(--ink); }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.product-card {
  cursor: pointer;
  background: var(--warm-white);
  transition: opacity 0.3s;
}
.product-card:hover { opacity: 0.88; }
.product-img {
  aspect-ratio: 3/4;
  background: var(--parchment);
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.03); }
.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  color: var(--aged);
  letter-spacing: 0.1em;
}
.product-info { padding: 14px 16px 18px; }
.product-season {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 4px;
}
.product-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-price {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--sepia);
}

/* ── Brand Statement ── */
.statement {
  padding: 120px 0;
  border-top: 1px solid var(--aged);
  text-align: center;
}
.statement-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}
.statement-sig {
  margin-top: 36px;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sepia);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--aged);
  padding: 48px 0;
  background: var(--parchment);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sepia);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--aged);
}

/* ── Product Detail ── */
.product-detail {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 100px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.product-detail-imgs { position: sticky; top: calc(var(--nav-h) + 24px); }
.product-main-img {
  aspect-ratio: 3/4;
  background: var(--parchment);
  overflow: hidden;
  margin-bottom: 8px;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-row { display: flex; gap: 8px; }
.product-thumb {
  width: 80px;
  aspect-ratio: 3/4;
  background: var(--parchment);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  border: 1px solid transparent;
}
.product-thumb.active, .product-thumb:hover { opacity: 1; border-color: var(--ink); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { padding-top: 8px; }
.pd-season {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 12px;
}
.pd-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 20px;
}
.pd-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--sepia);
  margin-bottom: 32px;
}
.pd-divider { border: none; border-top: 1px solid var(--aged); margin: 24px 0; }

.pd-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 12px;
}
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.size-btn {
  padding: 10px 18px;
  border: 1px solid var(--aged);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sepia);
  transition: all 0.2s;
  min-width: 52px;
  text-align: center;
}
.size-btn:hover { border-color: var(--ink); color: var(--ink); }
.size-btn.selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.size-btn.sold-out {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.btn-primary {
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 12px;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-secondary {
  width: 100%;
  padding: 17px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--aged);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--ink); }

.pd-desc {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 300;
  color: var(--sepia);
  line-height: 2.0;
  white-space: pre-line;
}

/* ── Checkout ── */
.checkout-page {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 100px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}
.checkout-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 13px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--aged);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-bottom-color: var(--ink); }
.form-input::placeholder { color: var(--aged); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.order-summary {
  background: var(--warm-white);
  border: 1px solid var(--aged);
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.os-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--aged);
}
.os-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--aged-light);
}
.os-item:last-child { border-bottom: none; }
.os-item-img {
  width: 64px;
  aspect-ratio: 3/4;
  background: var(--parchment);
  overflow: hidden;
  flex-shrink: 0;
}
.os-item-img img { width: 100%; height: 100%; object-fit: cover; }
.os-item-info { flex: 1; min-width: 0; }
.os-item-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.os-item-detail { font-size: 11px; color: var(--sepia); }
.os-item-price {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--sepia);
  white-space: nowrap;
}
.os-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sepia);
  margin-bottom: 10px;
}
.os-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding-top: 16px;
  border-top: 1px solid var(--aged);
  margin-top: 8px;
}

/* ── Pay Options ── */
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.pay-opt {
  padding: 16px;
  border: 1px solid var(--aged);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.pay-opt.selected { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.pay-opt-icon { font-size: 20px; margin-bottom: 4px; }
.pay-opt-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; }

/* ── Success ── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 16px 60px;
}
.success-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.success-icon {
  font-size: 48px;
  margin-bottom: 24px;
}
.success-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 12px;
}
.success-sub { font-size: 13px; color: var(--sepia); margin-bottom: 36px; line-height: 1.8; }
.success-detail {
  background: var(--warm-white);
  border: 1px solid var(--aged);
  padding: 28px;
  text-align: left;
  margin-bottom: 28px;
}
.sd-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--aged-light);
}
.sd-row:last-child { border-bottom: none; }
.sd-label { color: var(--sepia); }

/* ── Toast ── */
.toast-wrap {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  padding: 12px 24px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: 2px;
  animation: toastIn 0.3s var(--ease);
  white-space: nowrap;
}
.toast.err { background: #8b3a3a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Mobile ── */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-detail-imgs { position: static; }
  .checkout-grid { grid-template-columns: 1fr; gap: 40px; }
  .order-summary { position: static; }
}
@media (max-width: 600px) {
  :root { --nav-h: 52px; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-title { font-size: 18vw; }
  .product-grid { gap: 1px; }
  .section { padding: 60px 0; }
  .statement { padding: 80px 0; }
  .form-row { grid-template-columns: 1fr; }
}
