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

:root {
  --bg: #f5f0e8;
  --fg: #1a1a1a;
  --accent: #b87333;
  --muted: #6b6b6b;
  --surface: #ece6db;
  --surface-dark: #2e2a26;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

/* NAV */
.nav {
  padding: 28px 48px;
  border-bottom: 1px solid rgba(26,26,26,0.12);
}
.nav-inner {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-logo-link { text-decoration: none; color: inherit; }
.nav-link { font-size: 14px; color: var(--fg); text-decoration: none; letter-spacing: 0.04em; }
.nav-link:hover { color: var(--accent); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 82vh;
  overflow: hidden;
}
.hero-left {
  padding: 80px 64px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 36px;
  line-height: 1.0;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.65;
}
.hero-right {
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-texture-block {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2e2a26 0%, #3d3530 40%, #2e2a26 70%, #1f1c19 100%);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
.texture-label {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
}

/* PHILOSOPHY */
.philosophy {
  background: var(--fg);
  color: var(--bg);
  padding: 100px 48px;
}
.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 56px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.philosophy-item {}
.philosophy-icon {
  font-size: 8px;
  color: var(--accent);
  margin-bottom: 24px;
}
.philosophy-item h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--bg);
}
.philosophy-item p {
  font-size: 15px;
  color: rgba(245,240,232,0.6);
  line-height: 1.7;
}

/* PRODUCT STORY */
.product-story {
  background: var(--surface);
  padding: 120px 48px;
}
.product-story-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-number {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}
.story-heading {
  font-size: clamp(36px, 4vw, 54px);
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.1;
}
.story-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}
.story-right {
  padding: 48px;
  background: var(--fg);
  color: var(--bg);
}
.story-stripe {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 36px;
}
.story-quote {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--bg);
}

/* MANIFESTO */
.manifesto {
  background: var(--bg);
  padding: 120px 48px;
}
.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.manifesto-heading {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--fg);
  margin-bottom: 48px;
  line-height: 1.2;
}
.manifesto-rule {
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 56px;
}
.manifesto-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.manifesto-col p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}

/* CLOSING */
.closing {
  background: var(--surface-dark);
  padding: 140px 48px;
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  color: rgba(245,240,232,0.85);
  line-height: 1.3;
  margin-bottom: 48px;
  font-style: italic;
}
.closing-brand {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* FOOTER */
.footer {
  background: var(--fg);
  padding: 40px 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
}
.footer-copy {
  font-size: 13px;
  color: rgba(245,240,232,0.35);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 60px 24px; }
  .hero-right { min-height: 280px; }
  .philosophy { padding: 72px 24px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-story { padding: 80px 24px; }
  .product-story-inner { grid-template-columns: 1fr; gap: 40px; }
  .story-right { padding: 36px; }
  .manifesto { padding: 80px 24px; }
  .manifesto-columns { grid-template-columns: 1fr; gap: 32px; }
  .closing { padding: 100px 24px; }
  .footer { padding: 32px 24px; }
  .footer-top { flex-direction: column; gap: 12px; text-align: center; }
}

/* SHOP PAGE */
.shop-page { padding: 80px 48px 120px; max-width: 1100px; margin: 0 auto; }
.shop-header { text-align: center; margin-bottom: 72px; }
.shop-eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.shop-title { font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; }
.shop-subtitle { font-size: 17px; color: var(--muted); max-width: 480px; margin: 0 auto; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 40px; }
.product-card { display: block; text-decoration: none; color: inherit; }
.product-card-image { aspect-ratio: 4/5; background: var(--surface); overflow: hidden; margin-bottom: 16px; position: relative; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-dark); }
.product-card-placeholder span { font-family: 'Playfair Display', serif; font-size: 24px; color: rgba(245,240,232,0.3); letter-spacing: 0.1em; }
.product-card-info { padding: 0 4px; }
.product-card-name { font-size: 20px; margin-bottom: 6px; }
.product-card-price { font-size: 15px; color: var(--muted); font-family: 'DM Sans', sans-serif; }

/* PRODUCT DETAIL PAGE */
.product-page { padding: 32px 48px 120px; max-width: 1100px; margin: 0 auto; }
.product-breadcrumb { margin-bottom: 48px; }
.product-breadcrumb a { font-size: 14px; color: var(--muted); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--fg); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.product-gallery { position: sticky; top: 40px; }
.product-main-image { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--surface); }
.product-image-placeholder { width: 100%; aspect-ratio: 4/5; background: var(--surface-dark); display: flex; align-items: center; justify-content: center; }
.product-image-placeholder span { font-family: 'Playfair Display', serif; font-size: 20px; color: rgba(245,240,232,0.25); }
.product-info { padding-top: 8px; }
.product-eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.product-name { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.product-price { font-size: 22px; color: var(--fg); margin-bottom: 28px; font-family: 'DM Sans', sans-serif; }
.product-description { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 40px; }
.product-size-selector { margin-bottom: 32px; }
.size-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.size-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn { padding: 10px 16px; border: 1.5px solid rgba(26,26,26,0.2); background: transparent; cursor: pointer; font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--fg); transition: border-color 0.15s, background 0.15s; }
.size-btn:hover { border-color: var(--fg); }
.size-btn.selected { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.buy-button { display: block; width: 100%; padding: 18px 32px; background: var(--accent); color: #fff; text-align: center; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 16px; transition: background 0.15s; }
.buy-button:hover { background: #9a6028; }
.product-note { font-size: 13px; color: var(--muted); text-align: center; }

/* SUCCESS PAGE */
.success-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 80px 48px; }
.success-content { text-align: center; max-width: 480px; margin: 0 auto; }
.success-icon { font-size: 48px; color: var(--accent); margin-bottom: 24px; }
.success-title { font-size: 40px; margin-bottom: 16px; }
.success-message { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 40px; }
.success-cta { font-size: 15px; color: var(--muted); text-decoration: none; }
.success-cta:hover { color: var(--fg); }

/* ERROR PAGE */
.error-page { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 48px; }
.error-page h1 { font-size: 36px; margin-bottom: 12px; }
.error-page p { font-size: 17px; color: var(--muted); margin-bottom: 32px; }
.error-page a { color: var(--accent); text-decoration: none; }

/* SHOP RESPONSIVE */
@media (max-width: 768px) {
  .shop-page { padding: 48px 24px 80px; }
  .product-page { padding: 24px 24px 80px; }
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
  .success-page, .error-page { padding: 60px 24px; }
}