@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #1a1612;
  --muted: #6b6258;
  --paper: #f7f3ec;
  --white: #fffcf7;
  --line: #e6dfd4;
  --terra: #c45c26;
  --terra-d: #9a4318;
  --gold: #e89a5c;
  --shadow: 0 18px 40px rgba(26, 22, 18, 0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.announce {
  background: var(--ink);
  color: #f3e6d8;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}
.brand small { color: var(--terra); font-size: 0.62em; font-family: var(--sans); }
.main-nav { display: flex; justify-content: center; gap: 28px; font-size: 0.92rem; font-weight: 600; }
.main-nav a { color: var(--muted); }
.main-nav a.is-active, .main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn, .cart-link {
  width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; display: grid; place-items: center; position: relative; cursor: pointer;
}
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--terra); color: #fff;
  font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.nav-toggle { display: none; border: 0; background: none; font-size: 1.4rem; cursor: pointer; }

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,22,18,0.15) 10%, rgba(26,22,18,0.72) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 64px 0 72px; max-width: 720px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; color: var(--terra);
  margin-bottom: 10px;
}
.hero .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 16px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 46ch; }
.hero .lead { color: rgba(255,255,255,0.88); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; border: 0; cursor: pointer;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c261f; }
.btn-line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.btn-small { padding: 8px 14px; font-size: 0.8rem; background: var(--ink); color: #fff; }

.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 0; }
.strip-grid div { display: flex; flex-direction: column; gap: 4px; }
.strip-grid strong { font-size: 0.95rem; }
.strip-grid span { color: var(--muted); font-size: 0.85rem; }

.section { padding: 72px 0; }
.section.alt { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.text-link { font-weight: 700; font-size: 0.88rem; border-bottom: 1px solid var(--ink); }

.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.collection {
  min-height: 220px; border-radius: 18px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 18px; color: #fff; font-family: var(--serif);
  font-size: 1.5rem; position: relative; overflow: hidden;
}
.collection::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,22,18,0.7));
}
.collection span { position: relative; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-bottom: 72px; }
.section .product-grid { padding-bottom: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card-media { display: block; position: relative; aspect-ratio: 1; background: #eee; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--terra-d);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px;
}
.card-body { padding: 14px 16px 16px; }
.cat { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; }
.price-lg { font-family: var(--serif); font-size: 2rem; margin: 8px 0 12px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 520px; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split.reverse .split-photo { order: 2; }
.split-photo { background-size: cover; background-position: center; }
.split-copy { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; background: var(--white); }
.split-copy h2 { font-size: clamp(2rem, 3vw, 2.8rem); }

.page-hero { padding: 56px 0 20px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.filter { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 0.88rem; }
.filter.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }

.product { padding: 36px 0; }
.product-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.product-photo { position: relative; border-radius: 20px; overflow: hidden; background: #eee; }
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.meta { display: flex; gap: 18px; list-style: none; margin: 18px 0 24px; color: var(--muted); font-size: 0.9rem; }
.fine { margin-top: 12px; color: var(--muted); font-size: 0.82rem; }
.recipe-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.ing { list-style: none; }
.ing li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.method { padding-left: 20px; }
.method li { margin-bottom: 12px; }

.cart-page { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 28px; padding-bottom: 80px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }
.cart-summary { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; height: fit-content; }
.cart-summary h2 { margin-bottom: 12px; }
.qty { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }

.site-footer { background: var(--ink); color: #efe6da; padding: 56px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
.footer-grid h4 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 12px; color: #fff; }
.footer-grid a, .footer-grid p { display: block; color: #cfc4b6; font-size: 0.92rem; margin-bottom: 8px; }
.footer-brand { color: #fff; margin-bottom: 12px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; font-size: 0.82rem; color: #b7aa9c; }
.muted { color: var(--muted); }
.legal { padding-bottom: 72px; max-width: 720px; }
.legal h2 { font-size: 1.4rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 18px; margin-bottom: 12px; }
.legal a { color: var(--terra-d); font-weight: 700; }

.form-wrap { max-width: 520px; padding-bottom: 72px; }
form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.85rem; }
input, textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 1rem;
}
.note { padding: 12px 14px; border-radius: 12px; font-weight: 600; margin-bottom: 14px; }
.note.ok { background: #e7f4ea; color: #1e6b38; }
.note.err { background: #fdecea; color: #9a2b1f; }

.search-layer {
  position: fixed; inset: 0; background: rgba(26,22,18,0.45); z-index: 80;
  display: none; align-items: flex-start; justify-content: center; padding: 80px 16px;
}
.search-layer.open { display: flex; }
.search-box { width: min(640px, 100%); background: var(--paper); border-radius: 18px; padding: 18px; }
.search-box input { width: 100%; margin-bottom: 10px; }
.search-hit { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; }
.search-hit img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.search-hit:hover { background: var(--white); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); flex-direction: column; padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .collections, .product-grid, .strip-grid, .footer-grid, .product-layout, .recipe-body, .cart-page, .split, .split.reverse {
    grid-template-columns: 1fr 1fr;
  }
  .split.reverse .split-photo { order: 0; }
  .split-copy { padding: 36px 24px; }
}
@media (max-width: 700px) {
  .collections, .product-grid, .strip-grid, .footer-grid, .product-layout, .recipe-body, .cart-page {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 70vh; }
  .footer-base { flex-direction: column; }
}
