/* Butorena — design system CSS (colors/type/spacing match the original design 1:1) */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F1EAE0;
  --ink: #2B2620;
  --ink-soft: #6B6255;
  --ink-body: #3A342C;
  --brown: #7C5236;
  --brown-light: #A9714A;
  --border: #E2DACB;
  --cream: #D8C9B0;
  --border-dark: #4A433A;
  --ok: #3F7A4F;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brown); }
a:hover { color: var(--brown-light); }

img { max-width: 100%; display: block; }

button { font-family: var(--font-sans); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.logo:hover { color: var(--brown); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
}
.main-nav a.active {
  font-weight: 600;
  border-bottom: 2px solid var(--brown-light);
  padding-bottom: 4px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.cart-link.is-active { font-weight: 600; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -14px;
  background: var(--brown-light);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-badge[hidden] { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  text-align: center;
}
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-light); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #40382e; color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brown); color: var(--brown); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 2px; }
.btn-block { width: 100%; }

/* ---------- Sections / hero ---------- */
.hero {
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown-light);
  font-weight: 600;
  margin: 0 0 16px;
}
.eyebrow-light { color: var(--cream); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; }
.h1 { font-size: 56px; line-height: 1.08; margin: 0 0 24px; }
.h2 { font-size: 36px; margin: 0; }
.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.media {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  background: var(--border);
}

.perk-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.perk-grid {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.perk-grid p { margin: 0; }
.perk-title { font-size: 14px; font-weight: 600; margin: 0 0 4px !important; }
.perk-sub { font-size: 13px; color: var(--ink-soft); }

.section { padding: 72px 32px 48px; }
.section-tight { padding: 24px 32px 72px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.link-arrow { text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-4-tight { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.cat-card { text-decoration: none; color: var(--ink); display: block; }
.cat-card img { width: 100%; height: 160px; object-fit: cover; margin-bottom: 12px; }
.cat-card p { font-size: 15px; font-weight: 600; margin: 0; }

.product-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-material { font-size: 12px; color: var(--brown-light); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 6px; }
.product-name { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.product-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 14px; flex: 1; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 16px; font-weight: 600; }

.dark-section { background: var(--ink); color: var(--bg); }
.dark-section .lede-dark { color: var(--cream); }

.article-card { text-decoration: none; color: var(--ink); display: block; }
.article-card img { width: 100%; height: 180px; object-fit: cover; margin-bottom: 14px; }
.article-kicker { font-size: 12px; color: var(--brown-light); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 6px; }
.article-title { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.article-sub { font-size: 14px; color: var(--ink-soft); margin: 0; }

.testimonial-strip { background: var(--bg-alt); }
.testimonial { background: #fff; padding: 28px; border-radius: 4px; }
.stars { color: var(--brown-light); margin: 0 0 12px; }
.testimonial p.quote { font-size: 15px; line-height: 1.6; margin: 0 0 16px; color: var(--ink-body); }
.testimonial p.author { font-size: 13px; font-weight: 600; margin: 0; }

.newsletter {
  padding: 56px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.newsletter h3 { font-size: 26px; margin: 0 0 6px; }
.newsletter p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.field {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 14px;
  background: #fff;
  font-family: var(--font-sans);
  width: 100%;
}
textarea.field { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.checkbox-row input { margin-top: 3px; }
.form-note { font-size: 12px; color: #8C8579; margin: 14px 0 0; }
.form-success { font-size: 14px; color: var(--ok); margin: 0; }
.form-error { font-size: 14px; color: #A93C3C; margin: 0; }
form.stacked { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 32px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand { font-family: var(--font-serif); font-style: italic; font-size: 26px; color: #fff; margin: 0 0 12px; }
.footer-grid h4 { color: #fff; font-weight: 600; font-size: 14px; margin: 0 0 14px; font-family: var(--font-sans); }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-simple {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-simple-links { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.footer-simple-links a { color: var(--cream); text-decoration: none; }
.footer-simple-links a:hover { color: #fff; }

/* ---------- Article / legal pages ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 32px 40px; }
.article-wide-pad { padding-bottom: 80px; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.breadcrumb a { text-decoration: none; }
.article h1 { font-size: 42px; margin: 0 0 16px; line-height: 1.15; }
.article-meta { font-size: 15px; color: var(--ink-soft); margin: 0 0 32px; }
.article-hero { width: 100%; height: 360px; object-fit: cover; border-radius: 4px; margin-bottom: 40px; }
.article p.intro { font-size: 17px; line-height: 1.8; margin: 0 0 24px; }
.article h2 { font-size: 26px; margin: 40px 0 16px; }
.article p { font-size: 16px; line-height: 1.8; color: var(--ink-body); margin: 0 0 20px; }
.pull-quote {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 32px 0;
}
.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  color: #5A4C3D;
}
.article-actions { max-width: 760px; margin: 0 auto; padding: 0 32px 64px; display: flex; gap: 16px; flex-wrap: wrap; }

.legal h1 { font-size: 40px; margin: 0 0 12px; }
.legal .dated { font-size: 14px; color: var(--ink-soft); margin: 0 0 40px; }
.legal h2 { font-family: var(--font-sans); font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.legal p { font-size: 15.5px; line-height: 1.8; color: var(--ink-body); margin: 0 0 8px; }
.legal-callout { background: var(--bg-alt); border-radius: 4px; padding: 24px 28px; margin: 24px 0; font-size: 14px; line-height: 1.8; }
.legal-table { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.legal-table .row { display: grid; padding: 14px 18px; font-size: 14px; border-top: 1px solid var(--border); }
.legal-table .row:first-child { border-top: none; }
.legal-table .head { background: var(--bg-alt); font-weight: 600; font-size: 13px; }
.legal-table .cols-3 { grid-template-columns: 1fr 1fr 1.4fr; }
.legal-table .cols-3b { grid-template-columns: 1.3fr 1fr 1fr; }

/* ---------- Shop ---------- */
.shop-hero { padding: 48px 32px 24px; }
.shop-hero h1 { font-size: 44px; margin: 0 0 12px; }
.shop-hero p { font-size: 15px; color: var(--ink-soft); max-width: 640px; margin: 0; }
.filter-bar {
  padding: 0 32px 32px;
  position: sticky;
  top: 65px;
  z-index: 40;
  background: var(--bg);
}
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.chip {
  text-decoration: none;
  font-size: 13.5px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
}
.chip:hover { border-color: var(--brown-light); color: var(--brown); }
.category-section { padding: 40px 32px; }
.category-section h2 { font-size: 30px; margin: 0 0 6px; }
.category-section > p { font-size: 14px; color: var(--ink-soft); margin: 0 0 28px; }
.cta-band { background: var(--bg-alt); border-top: 1px solid var(--border); }
.cta-band-inner { max-width: 900px; margin: 0 auto; padding: 56px 32px; text-align: center; }
.cta-band h2 { font-size: 28px; margin: 0 0 14px; }
.cta-band p { font-size: 15px; color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- About stats ---------- */
.stats-strip { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { padding: 56px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 38px; font-weight: 600; margin: 0 0 6px; color: var(--brown); }
.stat-label { font-size: 14px; color: var(--ink-soft); margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-title { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin: 0 0 10px; color: var(--brown); }
.value-body { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact-hero { padding: 64px 32px 24px; text-align: center; }
.contact-hero h1 { font-size: 44px; margin: 0 0 16px; }
.contact-hero p { font-size: 15px; color: var(--ink-soft); max-width: 560px; margin: 0 auto; }
.contact-grid { max-width: 1100px; margin: 0 auto; padding: 32px 32px 72px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-block { margin-bottom: 28px; }
.contact-label { font-size: 13px; color: var(--brown-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin: 0 0 6px; }
.contact-block p.value { font-size: 15px; margin: 0 0 2px; }
.contact-block p.sub { font-size: 14px; color: var(--ink-soft); margin: 0; }
.map-band { background: var(--bg-alt); border-top: 1px solid var(--border); }
.map-image { width: 100%; height: 320px; object-fit: cover; position: relative; }
.map-wrap { position: relative; }
.map-caption {
  position: absolute;
  left: 32px;
  bottom: 24px;
  background: rgba(43,38,32,0.82);
  color: #fff;
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 14px;
}

/* ---------- Cart ---------- */
.cart-section { max-width: 1000px; margin: 0 auto; padding: 48px 32px 80px; width: 100%; }
.cart-section h1 { font-size: 40px; margin: 0 0 32px; }
.cart-empty, .cart-success { text-align: center; padding: 60px 0; }
.cart-success { background: var(--bg-alt); border-radius: 4px; padding: 48px; }
.cart-success h2 { font-size: 28px; margin: 0 0 12px; }
.cart-success p { font-size: 15px; color: var(--ink-soft); margin: 0 0 24px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  background: #fff;
}
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.cart-item .name { font-size: 15.5px; font-weight: 600; margin: 0 0 4px; }
.cart-item .material { font-size: 13px; color: var(--ink-soft); margin: 0; }
.qty-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: #fff; cursor: pointer; border-radius: 2px; font-size: 15px; line-height: 1; }
.cart-item .line-total { text-align: right; }
.cart-item .line-total .price { font-size: 15.5px; font-weight: 600; margin: 0 0 6px; }
.remove-btn { border: none; background: none; color: var(--brown-light); font-size: 12.5px; cursor: pointer; padding: 0; }
.cart-summary { background: var(--bg-alt); border-radius: 4px; padding: 28px; max-width: 380px; margin-left: auto; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-row.muted { color: var(--ink-soft); }
.summary-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--cream); }

/* ---------- Cookie consent banner ---------- */
.cookie-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 880px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.cookie-bar p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--cream); flex: 1; min-width: 220px; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar .btn-outline { border-color: var(--cream); color: #fff; }
.cookie-bar .btn-outline:hover { border-color: #fff; color: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .grid-4-tight, .values-grid, .stats-grid, .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .h1 { font-size: 42px; }
}

@media (max-width: 720px) {
  .header-inner { padding: 14px 20px; }
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .container, .section, .hero, .shop-hero, .contact-hero, .contact-grid, .article, .article-actions { padding-left: 20px; padding-right: 20px; }
  .hero, .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4, .grid-4-tight, .values-grid, .stats-grid, .perk-grid { grid-template-columns: 1fr 1fr; }
  .h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 20px 24px; }
  .footer-bottom { flex-direction: column; padding: 16px 20px; }
  .newsletter { flex-direction: column; align-items: flex-start; }
  .newsletter form { width: 100%; }
  .newsletter input.field { width: 100%; }
  .cart-item { grid-template-columns: 72px 1fr; grid-template-areas: "img name" "img qty" "img total"; }
  .cart-item img { width: 72px; height: 72px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid-3, .grid-4, .grid-4-tight, .values-grid, .stats-grid, .perk-grid { grid-template-columns: 1fr; }
}
