:root {
  --bg: #F4F0E8;
  --bg-alt: #EDE8DF;
  --fg: #1A1916;
  --fg-muted: #6B6560;
  --accent: #B85C38;
  --accent-light: #D4825A;
  --border: #D4CFC7;
  --white: #FDFCF9;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  align-items: stretch;
}
.hero-text {
  padding: 6rem 5rem 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 2rem;
}
.hero-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 42ch;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: var(--bg-alt);
}
.hero-texture-block {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #C4A882 0%, #9E7B5A 40%, #5C4030 70%, #2E2018 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(30,20,10,0.3);
}
.texture-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 12px,
    rgba(255,255,255,0.04) 12px,
    rgba(255,255,255,0.04) 13px
  ),
  repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    rgba(255,255,255,0.02) 8px,
    rgba(255,255,255,0.02) 9px
  );
}
.texture-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── Sections shared ── */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Philosophy ── */
.philosophy {
  padding: 7rem 5rem;
  background: var(--white);
}
.philosophy-inner { max-width: 900px; }
.philosophy-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 2rem;
  max-width: 22ch;
}
.philosophy-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
.philosophy-body p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
}
.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.pillar-num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.pillar p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Collections ── */
.collections {
  padding: 7rem 5rem;
  background: var(--bg);
}
.collections-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--fg);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.collection-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.collection-art {
  aspect-ratio: 4/3;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.collection-art-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px,
    transparent 20px,
    rgba(0,0,0,0.03) 20px,
    rgba(0,0,0,0.03) 21px
  );
}
.collection-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
}
.collection-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Press ── */
.press {
  padding: 7rem 5rem;
  background: var(--bg-alt);
  text-align: center;
}
.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.press-item { display: flex; align-items: center; }
.press-pub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  font-style: italic;
}
.press-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--border);
}
.press-quote {
  max-width: 640px;
  margin: 0 auto;
}
.press-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 1rem;
}
.press-quote cite {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── Closing ── */
.closing {
  padding: 8rem 5rem;
  background: var(--fg);
  color: var(--bg);
  text-align: center;
}
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--bg);
}
.closing-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(244,240,232,0.65);
  margin-bottom: 2.5rem;
}
.closing-meta p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,240,232,0.4);
}

/* ── Footer ── */
.site-footer {
  padding: 4rem 5rem;
  background: var(--fg);
  border-top: 1px solid rgba(244,240,232,0.1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(244,240,232,0.4);
  margin-top: 0.3rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(244,240,232,0.5);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--bg); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(244,240,232,0.3);
  text-align: right;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-nav { padding: 1.25rem 2rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 4rem 2rem; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-visual { display: none; }
  .philosophy { padding: 4rem 2rem; }
  .philosophy-body { grid-template-columns: 1fr; }
  .philosophy-pillars { grid-template-columns: 1fr; }
  .collections { padding: 4rem 2rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .press { padding: 4rem 2rem; }
  .press-logos { gap: 1.5rem; }
  .press-divider { display: none; }
  .closing { padding: 5rem 2rem; }
  .site-footer { padding: 3rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-copy { text-align: left; }
}

/* ── Shop Page ── */
.shop-header { padding: 4rem 5rem 2rem; border-bottom: 1px solid var(--border); }
.shop-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 700; color: var(--fg); }
.shop-subtitle { font-size: 0.9rem; color: var(--fg-muted); margin-top: 0.5rem; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 4rem 5rem; }
.product-card { display: flex; flex-direction: column; gap: 1rem; }
.product-card-img { aspect-ratio: 4/3; border-radius: 2px; overflow: hidden; background: var(--bg-alt); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); font-size: 0.8rem; }
.product-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--fg); }
.product-card-meta { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 0.95rem; color: var(--fg); font-weight: 500; }
.product-card-link { font-size: 0.8rem; letter-spacing: 0.05em; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.product-card-link:hover { border-bottom-color: var(--accent); }

/* ── Product Detail Page ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; align-items: stretch; }
.product-image-panel { background: var(--bg-alt); display: flex; align-items: center; justify-content: center; padding: 4rem; }
.product-image-panel img { max-width: 100%; max-height: 600px; object-fit: contain; border-radius: 2px; }
.product-image-placeholder { width: 400px; height: 500px; background: var(--border); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); font-size: 0.9rem; }
.product-info-panel { padding: 5rem 4rem; display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; border-left: 1px solid var(--border); }
.product-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 700; line-height: 1.1; color: var(--fg); }
.product-price-detail { font-size: 1.5rem; font-weight: 500; color: var(--fg); }
.product-desc { font-size: 0.95rem; color: var(--fg-muted); line-height: 1.7; }
.size-selector { display: flex; flex-direction: column; gap: 0.75rem; }
.size-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.size-options { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.size-option { border: 1.5px solid var(--border); background: none; padding: 0.6rem 1.2rem; border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; color: var(--fg); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.size-option:hover { border-color: var(--accent); }
.size-option.selected { border-color: var(--accent); background: var(--accent); color: var(--white); }
.btn-add-to-cart { background: var(--fg); color: var(--white); border: none; padding: 1rem 2rem; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: background 0.2s; font-family: 'DM Sans', sans-serif; }
.btn-add-to-cart:hover { background: var(--accent); }
.btn-add-to-cart:disabled { opacity: 0.5; cursor: not-allowed; }
.product-specs { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.product-spec { font-size: 0.85rem; color: var(--fg-muted); }

/* ── Cart Page ── */
.cart-page { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; }
.cart-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 2.5rem; }
.cart-empty { text-align: center; padding: 4rem 0; }
.cart-empty p { font-size: 1.1rem; color: var(--fg-muted); margin-bottom: 2rem; }
.cart-items { display: flex; flex-direction: column; gap: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 2rem; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto auto; gap: 1.5rem; align-items: center; }
.cart-item-img { width: 100px; height: 80px; object-fit: cover; border-radius: 2px; background: var(--bg-alt); }
.cart-item-img-placeholder { width: 100px; height: 80px; object-fit: cover; border-radius: 2px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--fg-muted); font-size: 0.7rem; }
.cart-item-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; }
.cart-item-size { font-size: 0.8rem; color: var(--fg-muted); margin-top: 0.25rem; }
.cart-item-price { font-size: 0.95rem; font-weight: 500; text-align: right; }
.cart-item-remove { background: none; border: none; cursor: pointer; color: var(--fg-muted); font-size: 0.8rem; text-decoration: underline; }
.cart-item-remove:hover { color: var(--accent); }
.cart-summary { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-end; }
.cart-total { font-size: 1.3rem; font-weight: 500; }
.cart-actions { display: flex; gap: 1rem; }
.btn-secondary { background: none; border: 1.5px solid var(--border); padding: 0.9rem 1.8rem; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; border-radius: 2px; font-family: 'DM Sans', sans-serif; transition: border-color 0.2s; }
.btn-secondary:hover { border-color: var(--fg); }
.btn-primary { background: var(--fg); color: var(--white); border: none; padding: 0.9rem 2rem; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 2px; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.btn-primary:hover { background: var(--accent); }

/* ── Checkout Page ── */
.checkout-page { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.checkout-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 2.5rem; }
.checkout-summary { background: var(--bg-alt); border-radius: 2px; padding: 2rem; margin-bottom: 2rem; }
.checkout-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.checkout-item { display: flex; justify-content: space-between; font-size: 0.95rem; }
.checkout-item-name { color: var(--fg); }
.checkout-item-price { color: var(--fg-muted); }
.checkout-total { border-top: 1px solid var(--border); padding-top: 1rem; font-size: 1.2rem; font-weight: 600; display: flex; justify-content: space-between; }
.checkout-stripe-note { text-align: center; font-size: 0.8rem; color: var(--fg-muted); margin-top: 1.5rem; }
.checkout-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.checkout-form label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.checkout-form input { width: 100%; border: 1.5px solid var(--border); background: var(--white); padding: 0.9rem 1rem; font-family: 'DM Sans', sans-serif; font-size: 1rem; border-radius: 2px; outline: none; transition: border-color 0.2s; }
.checkout-form input:focus { border-color: var(--accent); }

/* ── Success Page ── */
.success-page { max-width: 700px; margin: 0 auto; padding: 6rem 2rem; text-align: center; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--fg); margin: 0 auto 2rem; display: flex; align-items: center; justify-content: center; }
.success-icon span { color: var(--white); font-size: 2rem; }
.success-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 700; color: var(--fg); margin-bottom: 1rem; }
.success-body { font-size: 1rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 3rem; }
.success-order-id { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--accent); margin-top: 0.5rem; }

/* ── 404 Page ── */
.not-found { max-width: 600px; margin: 0 auto; padding: 8rem 2rem; text-align: center; }
.not-found h1 { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; color: var(--fg); margin-bottom: 1rem; }
.not-found p { color: var(--fg-muted); margin-bottom: 2rem; }

/* ── Cart icon in nav ── */
.nav-cart { position: relative; }
.nav-cart-count { position: absolute; top: -6px; right: -12px; background: var(--accent); color: var(--white); font-size: 0.65rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── Toast notification ── */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--fg); color: var(--white); padding: 1rem 1.5rem; border-radius: 2px; font-size: 0.9rem; z-index: 999; box-shadow: 0 4px 20px rgba(0,0,0,0.15); animation: toastIn 0.3s ease; }
@keyframes toastIn { from { transform: translateY(1rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-nav { padding: 1.25rem 2rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 4rem 2rem; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-visual { display: none; }
  .philosophy { padding: 4rem 2rem; }
  .philosophy-body { grid-template-columns: 1fr; }
  .philosophy-pillars { grid-template-columns: 1fr; }
  .collections { padding: 4rem 2rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .press { padding: 4rem 2rem; }
  .press-logos { gap: 1.5rem; }
  .press-divider { display: none; }
  .closing { padding: 5rem 2rem; }
  .site-footer { padding: 3rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-copy { text-align: left; }
  .shop-grid { grid-template-columns: 1fr 1fr; padding: 3rem 2rem; }
  .product-detail { grid-template-columns: 1fr; }
  .product-image-panel { min-height: 350px; }
  .product-info-panel { border-left: none; border-top: 1px solid var(--border); padding: 3rem 2rem; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .site-nav { justify-content: center; }
  .shop-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr auto; }
  .cart-item-price { display: none; }
}