:root {
  --ink: #211817;
  --muted: #6e5b55;
  --cream: #fff8ee;
  --paper: #fffdf8;
  --rose: #f6d8cf;
  --terracotta: #c96542;
  --terracotta-dark: #94482f;
  --sage: #7b9b86;
  --sage-dark: #426650;
  --gold: #d8a84f;
  --line: rgba(33, 24, 23, 0.12);
  --shadow: 0 22px 70px rgba(51, 31, 20, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: white; padding: 10px 14px; z-index: 20; }
.skip-link:focus { left: 8px; }
.announcement {
  background: var(--sage-dark);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.06em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; font-size: 1.35rem; transform: rotate(-12deg); }
.nav { display: flex; gap: 24px; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.nav a:hover { color: var(--terracotta-dark); }
.cart-button, .icon-button {
  border: 0;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 800;
}
.cart-button { padding: 12px 18px; border-radius: 999px; display: inline-flex; gap: 10px; align-items: center; }
.cart-button span { background: var(--terracotta); min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(50px, 8vw, 96px) clamp(18px, 5vw, 72px) 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero:before { content: ''; position: absolute; inset: 8% auto auto -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(246, 216, 207, 0.85); z-index: -1; }
.eyebrow { margin: 0 0 12px; color: var(--terracotta-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2 { font-family: Fraunces, Georgia, serif; letter-spacing: -0.04em; margin: 0; line-height: 0.98; }
h1 { font-size: clamp(3.4rem, 8vw, 7.4rem); max-width: 780px; }
h2 { font-size: clamp(2.1rem, 4vw, 4.1rem); }
h3 { margin: 0; }
p { line-height: 1.65; color: var(--muted); }
.hero-text { max-width: 620px; font-size: 1.08rem; margin: 24px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0; }
.button { border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 900; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--terracotta); color: #fff; box-shadow: 0 12px 28px rgba(201, 101, 66, 0.24); }
.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.full { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { background: rgba(123, 155, 134, 0.13); color: var(--sage-dark); padding: 8px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.hero-art { position: relative; }
.hero-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow); border: 10px solid #fff; }
.hero-card { position: absolute; left: -18px; bottom: 24px; width: min(270px, 72%); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.hero-card strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; margin-bottom: 6px; }
.hero-card span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
section { padding-left: clamp(18px, 5vw, 72px); padding-right: clamp(18px, 5vw, 72px); }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.categories, .featured, .checkout-ready, .newsletter { padding-top: 56px; padding-bottom: 56px; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.category-card { text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 22px; padding: 20px; min-height: 112px; cursor: pointer; transition: border 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.category-card span { display: block; font-weight: 900; font-size: 1rem; margin-bottom: 8px; }
.category-card small { color: var(--muted); line-height: 1.35; }
.category-card:hover, .category-card.active { transform: translateY(-2px); border-color: rgba(201, 101, 66, 0.55); box-shadow: 0 14px 34px rgba(51, 31, 20, 0.09); }
.filters { display: grid; gap: 8px; min-width: min(360px, 100%); }
.filters label { font-size: 0.76rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.filters input, .newsletter-form input, .mock-form input { border: 1px solid var(--line); border-radius: 999px; padding: 14px 16px; background: #fff; color: var(--ink); outline: none; }
.filters input:focus, .newsletter-form input:focus, .mock-form input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(201, 101, 66, 0.10); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 14px 42px rgba(51,31,20,0.08); min-height: 100%; }
.product-media { background: #fff; padding: 22px; aspect-ratio: 1 / 0.82; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product-media img { max-height: 210px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.product-card h3 { font-size: 1rem; line-height: 1.25; min-height: 2.5em; }
.product-card p { margin: 0; font-size: 0.86rem; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-size: 1.25rem; font-weight: 900; color: var(--terracotta-dark); }
.add-button { border: 0; background: var(--sage-dark); color: #fff; font-weight: 900; border-radius: 999px; padding: 10px 14px; cursor: pointer; white-space: nowrap; }
.checkout-panel { background: linear-gradient(135deg, #2f1d18, #563221); color: white; border-radius: 34px; padding: clamp(24px, 5vw, 54px); display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; box-shadow: var(--shadow); }
.checkout-panel h2, .checkout-panel p { color: white; }
.checkout-panel .eyebrow { color: #ffd7a9; }
.checkout-steps { display: grid; gap: 12px; }
.checkout-steps div { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); border-radius: 20px; padding: 16px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; }
.checkout-steps strong { color: #ffd7a9; font-family: Fraunces, Georgia, serif; font-size: 1.5rem; }
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 26px; background: var(--rose); }
.newsletter-form { display: flex; gap: 10px; min-width: min(480px, 100%); }
.newsletter-form input { flex: 1; }
.site-footer { background: var(--ink); color: white; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 52px clamp(18px, 5vw, 72px); }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.76); }
.site-footer h3 { margin-bottom: 14px; }
.footer-brand { margin-bottom: 12px; }
.footer-brand .brand-mark { border-color: white; }
.cart-overlay { position: fixed; inset: 0; background: rgba(33,24,23,0.42); z-index: 30; }
.cart-drawer { position: fixed; top: 0; right: 0; width: min(460px, 94vw); height: 100vh; z-index: 31; background: var(--paper); box-shadow: -28px 0 80px rgba(0,0,0,0.18); transform: translateX(105%); transition: transform 220ms ease; display: flex; flex-direction: column; padding: 22px; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.cart-items { flex: 1; overflow: auto; padding: 18px 0; display: grid; gap: 14px; align-content: start; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; }
.cart-item img { width: 70px; height: 70px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 14px; }
.cart-item strong { display: block; font-size: 0.88rem; }
.cart-item span { color: var(--muted); font-size: 0.85rem; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { border: 1px solid var(--line); background: white; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; }
.cart-summary { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; }
.cart-summary div { display: flex; justify-content: space-between; gap: 18px; }
.cart-summary p { margin: 0; font-size: 0.85rem; }
.checkout-dialog { width: min(560px, 94vw); border: 0; border-radius: 28px; padding: 0; box-shadow: var(--shadow); }
.checkout-dialog::backdrop { background: rgba(33,24,23,0.55); }
.checkout-dialog form { padding: 28px; position: relative; }
.dialog-close { position: absolute; right: 18px; top: 18px; }
.dialog-copy { margin: 12px 0 18px; }
.checkout-summary { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 16px; }
.checkout-summary div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px solid rgba(33,24,23,0.08); }
.checkout-summary div:last-child { border-bottom: 0; font-weight: 900; }
.mock-form { display: grid; gap: 10px; margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty { padding: 22px; background: var(--cream); border-radius: 18px; text-align: center; }

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .checkout-panel, .site-footer { grid-template-columns: 1fr; }
  .section-heading.split, .newsletter { align-items: stretch; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 520px) {
  .hero { padding-top: 38px; }
  h1 { font-size: 3.1rem; }
  .product-grid, .category-grid { grid-template-columns: 1fr; }
  .product-card h3 { min-height: auto; }
  .hero-card { position: static; width: auto; margin-top: 14px; }
  .trust-row span { width: 100%; text-align: center; }
  .checkout-steps div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; }
}


/* Policy pages */
.policy-hero {
  padding: clamp(48px, 8vw, 88px) clamp(18px, 5vw, 72px) 36px;
  background: linear-gradient(135deg, rgba(246,216,207,0.75), rgba(255,248,238,0.95));
}
.policy-hero h1 { max-width: 900px; }
.policy-hero p { max-width: 760px; font-size: 1.05rem; }
.policy-content {
  display: grid;
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 42px;
  padding-bottom: 64px;
}
.policy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 14px 42px rgba(51,31,20,0.08);
}
.policy-card h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin-bottom: 12px; }
.policy-card h3 { margin-top: 22px; margin-bottom: 8px; font-size: 1.05rem; }
.policy-card ul { margin: 12px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.7; }
.policy-card li { margin-bottom: 8px; }
.policy-card a { color: var(--terracotta-dark); font-weight: 800; }
.policy-meta { color: var(--muted); font-weight: 700; margin-top: 12px; }
.tax-note { margin: 8px 0 0; font-size: 0.85rem; }
