/* =========================================================
   Maroc Artisan House — static storefront stylesheet
   Palette: cream paper, thuya wood brown, Marrakech orange, gold
   Type: Cormorant Garamond (display) + Karla (UI)
   ========================================================= */

:root {
  --cream: #faf4ea;
  --paper: #f1e5d3;
  --ink: #2a1b12;
  --wood: #4a2e1e;
  --woodmid: #7a4b2e;
  --clay: #c2542a;
  --gold: #b98b3e;
  --stone: #8b7461;
  --gold-line: rgba(185, 139, 62, 0.45);
  --gold-line-soft: rgba(185, 139, 62, 0.28);
  --wood-line: rgba(74, 46, 30, 0.22);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Karla", system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 1400px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--clay); color: #fff; }

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

/* ---------- typographic details ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold);
}

.plate-caption {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--stone);
}

.num { font-variant-numeric: tabular-nums; }

.rule {
  border: 0;
  border-top: 1px solid var(--gold-line);
  margin: 0;
}

.zellige {
  height: 12px;
  opacity: 0.7;
  background-image: repeating-linear-gradient(45deg, transparent 0 11px, rgba(185, 139, 62, 0.28) 11px 12px),
    repeating-linear-gradient(-45deg, transparent 0 11px, rgba(185, 139, 62, 0.28) 11px 12px);
}

.muted { color: var(--stone); }
.gold { color: var(--gold); }
.clay { color: var(--clay); }
.wood { color: var(--wood); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, border-color 0.25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff8ef; }
.btn-primary:hover { background: var(--wood); }
.btn-outline { border-color: rgba(74, 46, 30, 0.45); color: var(--wood); background: transparent; }
.btn-outline:hover { background: var(--wood); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--wood); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(250, 244, 234, 0.4); color: var(--cream); background: transparent; }
.btn-ghost:hover { background: rgba(250, 244, 234, 0.12); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.field {
  width: 100%;
  border: 1px solid var(--wood-line);
  background: #fff;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(194, 84, 42, 0.18);
}
textarea.field { resize: vertical; }

.field-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 0.4rem;
}

.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--gold-line);
}
.site-header.scrolled { background: rgba(250, 244, 234, 0.95); backdrop-filter: blur(6px); }

.header-rail {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gold-line-soft);
}
@media (min-width: 768px) { .header-rail { display: flex; } }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand { display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--wood);
  display: block;
}
@media (min-width: 640px) { .brand-name { font-size: 1.95rem; } }
.brand-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 4px;
  background: rgba(185, 139, 62, 0.6);
  transition: background-color 0.3s ease;
}
.brand:hover .brand-rule { background: var(--clay); }
.brand-sub { display: block; margin-top: 4px; }

.main-nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wood);
  transition: color 0.25s ease;
}
.main-nav a:hover { color: var(--clay); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--clay);
  transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--clay); }

.header-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 640px) { .header-actions { gap: 12px; } }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--wood-line);
  color: var(--wood);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: border-color 0.25s ease, color 0.25s ease;
}
@media (min-width: 640px) { .cart-btn { padding: 0 16px; } }
.cart-btn:hover { border-color: var(--clay); color: var(--clay); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}
.cart-label { display: none; }
@media (min-width: 640px) { .cart-label { display: inline; } }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wood-line);
  background: transparent;
  color: var(--wood);
  cursor: pointer;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }

.mobile-nav { display: none; background: var(--paper); border-top: 1px solid var(--gold-line-soft); }
.mobile-nav.open { display: block; }
.mobile-nav li { border-bottom: 1px solid var(--gold-line-soft); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wood);
}
.mobile-nav .mobile-call { padding: 8px 0 16px; font-size: 0.875rem; color: var(--stone); text-transform: none; letter-spacing: 0; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--gold-line); }
.hero-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 45% 55%; } }

.hero-copy {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 20px;
}
@media (min-width: 1024px) { .hero-copy { padding: 112px 40px 112px 64px; } }

.hero-rail { display: none; }
@media (min-width: 1024px) {
  .hero-rail {
    display: block;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    white-space: nowrap;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-top: 24px;
  color: var(--wood);
  font-size: clamp(3rem, 7.5vw, 6.25rem);
}
.hero-rule { height: 1px; width: 100%; max-width: 420px; margin-top: 28px; background: rgba(185, 139, 62, 0.6); }
.hero-text { margin-top: 28px; max-width: 440px; font-size: 1.12rem; line-height: 1.75; color: rgba(42, 27, 18, 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 32px; }

.hero-media { position: relative; min-height: 420px; }
@media (min-width: 1024px) { .hero-media { min-height: 760px; } }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 244, 234, 0.35), transparent 55%);
}
.hero-plate {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: none;
  background: rgba(250, 244, 234, 0.92);
  padding: 16px 24px;
}
@media (min-width: 640px) { .hero-plate { display: block; } }
.hero-plate .display { margin-top: 4px; font-size: 1.15rem; color: var(--wood); }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-paper { background: var(--paper); }
.section-dark { background: var(--wood); color: var(--cream); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: 16px;
  color: var(--wood);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}
.section-dark .section-title { color: var(--cream); }
.section-intro { max-width: 400px; font-size: 0.98rem; line-height: 1.75; color: var(--stone); }

/* ---------- category index ---------- */
.cat-index { display: grid; gap: 0 56px; }
@media (min-width: 768px) { .cat-index { grid-template-columns: 1fr 1fr; } }

.cat-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gold-line);
}
.cat-row .idx { width: 32px; flex-shrink: 0; }
.cat-thumb { width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; background: var(--paper); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cat-row:hover .cat-thumb img { transform: scale(1.03); }
.cat-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--wood);
  transition: color 0.25s ease;
}
.cat-row:hover .cat-name { color: var(--clay); }
.cat-desc { margin-top: 6px; font-size: 0.88rem; line-height: 1.45; color: var(--stone); }
.cat-shop { display: none; margin-left: auto; flex-shrink: 0; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--clay); }
@media (min-width: 640px) { .cat-shop { display: block; } }

/* ---------- product cards ---------- */
.product-grid {
  display: grid;
  gap: 56px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 1279px) { .product-grid.cols-3 { grid-template-columns: 1fr 1fr; } }

.product-card { display: block; }
.product-media { position: relative; overflow: hidden; background: var(--paper); }
.product-media .ratio { aspect-ratio: 4 / 5; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.product-card:hover .product-media img { transform: scale(1.03); }
.badge {
  position: absolute;
  left: 0;
  top: 16px;
  padding: 4px 12px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.badge-seller { background: var(--clay); color: #fff; }
.badge-sold { background: var(--wood); color: var(--cream); }

.product-caption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gold-line); }
.product-caption-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--clay); }
.product-name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--wood);
  transition: color 0.25s ease;
}
.product-card:hover .product-name { color: var(--clay); }
.product-desc { margin-top: 8px; font-size: 0.92rem; line-height: 1.65; color: var(--stone); }
.product-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wood);
}
.product-cta .line {
  display: inline-block;
  width: 32px;
  height: 1px;
  margin-left: 8px;
  vertical-align: middle;
  background: var(--clay);
  transition: width 0.3s ease;
}
.product-card:hover .product-cta .line { width: 48px; }

/* ---------- why choose us ---------- */
.why-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 38% 62%; } }
.quote-panel { border: 1px solid var(--gold-line); background: var(--cream); padding: 28px; margin-top: 32px; }
.quote-text { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--wood); }
.quote-by { margin-top: 16px; }

.reasons { display: grid; gap: 40px 48px; }
@media (min-width: 640px) { .reasons { grid-template-columns: 1fr 1fr; } }
.reason-num { font-family: var(--font-display); font-size: 2.5rem; color: rgba(185, 139, 62, 0.75); line-height: 1; }
.reason h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; color: var(--wood); margin-top: 12px; }
.reason p { margin-top: 10px; font-size: 0.95rem; line-height: 1.7; color: var(--stone); }

/* ---------- workshop band ---------- */
.band-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .band-grid { grid-template-columns: 1fr 1fr; } }
.band-media { position: relative; min-height: 380px; }
@media (min-width: 1024px) { .band-media { min-height: 620px; } }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-media::after { content: ""; position: absolute; inset: 0; background: rgba(74, 46, 30, 0.25); }
.band-copy { padding: 64px 20px; }
@media (min-width: 1024px) { .band-copy { padding: 96px 48px; } }
.band-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  margin-top: 20px;
  color: var(--cream);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}
.band-rule { height: 1px; width: 128px; margin-top: 28px; background: var(--gold); }
.band-text { margin-top: 28px; max-width: 640px; font-size: 1.02rem; line-height: 1.8; color: rgba(250, 244, 234, 0.85); }
.band-text p { margin-bottom: 18px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- closing strip ---------- */
.closing { text-align: center; }
.closing-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  margin: 20px auto 0;
  max-width: 760px;
  color: var(--wood);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.closing-text { max-width: 600px; margin: 24px auto 0; font-size: 1.05rem; line-height: 1.75; color: var(--stone); }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- shop page ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--gold-line); padding: 56px 0; }
@media (min-width: 768px) { .page-hero { padding: 80px 0; } }
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: 16px;
  color: var(--wood);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.page-lede { margin-top: 20px; max-width: 680px; font-size: 1.05rem; line-height: 1.75; color: var(--stone); }

.sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 32px; }
.sort-row a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  transition: color 0.25s ease;
}
.sort-row a:hover, .sort-row a.active { color: var(--clay); }

.shop-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .shop-layout { grid-template-columns: 230px 1fr; gap: 48px; } }

.shop-rail-inner { }
@media (min-width: 1024px) {
  .shop-rail-inner { position: sticky; top: 128px; }
}
.rail-list li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gold-line-soft);
  font-size: 0.95rem;
  color: var(--wood);
  transition: color 0.25s ease;
}
.rail-list li a:hover, .rail-list li a.active { color: var(--clay); }
.rail-card { border: 1px solid var(--gold-line); padding: 20px; margin-top: 32px; }
.rail-card p { margin-top: 8px; font-size: 0.88rem; line-height: 1.6; color: var(--stone); }
.rail-card a { display: inline-block; margin-top: 12px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--clay); }

.empty-state {
  border: 1px dashed rgba(185, 139, 62, 0.55);
  padding: 48px;
  text-align: center;
}
.empty-state h2 { font-family: var(--font-display); font-size: 2rem; color: var(--wood); }
.empty-state p { margin-top: 12px; color: var(--stone); }
.empty-state .btn { margin-top: 24px; }

/* ---------- breadcrumbs ---------- */
.breadcrumb-bar { background: var(--paper); border-bottom: 1px solid var(--gold-line-soft); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--stone); }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb .current { color: var(--wood); }

/* ---------- product detail ---------- */
.pdp { display: grid; gap: 48px; padding: 48px 0; }
@media (min-width: 1024px) { .pdp { grid-template-columns: 52% 48%; gap: 64px; padding: 64px 0; } }

.gallery-main { position: relative; overflow: hidden; background: var(--paper); }
.gallery-main .ratio { aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 640px) { .gallery-main .ratio { aspect-ratio: 5 / 6; } }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(250, 244, 234, 0.9);
  padding: 6px 12px;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery-thumbs button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  background: var(--paper);
  cursor: pointer;
}
.gallery-thumbs button.active { border-color: var(--clay); }
.gallery-thumbs button:hover { border-color: rgba(185, 139, 62, 0.6); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-price { font-family: var(--font-display); font-size: 2.35rem; color: var(--clay); margin-top: 20px; }
.pdp-stock { margin-top: 4px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--stone); }
.pdp-short { margin-top: 28px; font-size: 1.08rem; line-height: 1.75; color: rgba(42, 27, 18, 0.85); }

.buy-row { display: flex; align-items: center; gap: 16px; }
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--wood-line);
}
.qty button {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--wood);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.qty button:hover { background: var(--paper); }
.qty span { width: 40px; text-align: center; font-size: 0.95rem; font-weight: 600; }

.pdp-help { margin-top: 12px; font-size: 0.85rem; color: var(--stone); }

.pdp-meta { display: grid; gap: 24px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--gold-line); }
@media (min-width: 640px) { .pdp-meta { grid-template-columns: 1fr 1fr; } }
.pdp-meta p { margin-top: 12px; font-size: 0.92rem; line-height: 1.7; color: var(--stone); }

.pdp-body { padding-bottom: 64px; }
.pdp-body-grid { display: grid; gap: 40px; padding-top: 48px; border-top: 1px solid var(--gold-line); }
@media (min-width: 1024px) { .pdp-body-grid { grid-template-columns: 1fr 320px; gap: 40px; } }
.pdp-body-grid p { margin-bottom: 20px; max-width: 760px; font-size: 1.05rem; line-height: 1.8; color: rgba(42, 27, 18, 0.85); }

.aside-panel { border: 1px solid var(--gold-line); padding: 28px; }
.aside-panel .quote-text { font-size: 1.45rem; }
.aside-panel hr { margin: 20px 0; }
.aside-panel p { font-size: 0.88rem; line-height: 1.7; color: var(--stone); }
.aside-panel .btn { margin-top: 20px; }

/* ---------- info pages (about, legal, shipping, contact) ---------- */
.info-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--gold-line); }
.info-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.info-hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(74, 46, 30, 0.92), rgba(74, 46, 30, 0.78) 45%, rgba(74, 46, 30, 0.45));
}
.info-hero-inner { position: relative; padding: 80px 0; }
@media (min-width: 768px) { .info-hero-inner { padding: 112px 0; } }
.info-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  margin-top: 16px;
  max-width: 768px;
  color: var(--cream);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}
.info-subtitle { margin-top: 20px; max-width: 672px; font-size: 1.05rem; line-height: 1.75; color: rgba(250, 244, 234, 0.85); }

.info-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .info-layout { grid-template-columns: 220px 1fr; gap: 48px; } }
.info-rail-inner { }
@media (min-width: 1024px) { .info-rail-inner { position: sticky; top: 128px; } }
.info-rail ul { margin-top: 16px; }
.info-rail li { margin-bottom: 12px; font-size: 0.92rem; color: var(--stone); }
.info-rail li a:hover { color: var(--clay); }
.info-rail .rule { margin: 24px 0; }
.info-rail .note { font-size: 0.85rem; line-height: 1.6; color: var(--stone); }

.help-panel { border: 1px solid var(--gold-line); background: var(--paper); padding: 32px; margin-top: 56px; }
.help-panel .display { margin-top: 12px; font-size: 2rem; color: var(--wood); }
.help-panel p { margin-top: 12px; max-width: 640px; font-size: 0.98rem; line-height: 1.75; color: var(--stone); }
.help-panel a { color: var(--clay); text-decoration: underline; text-underline-offset: 4px; }

/* prose for page copy */
.prose-mah { max-width: 65ch; font-size: 1.0625rem; line-height: 1.75; color: rgba(42, 27, 18, 0.88); }
.prose-mah h2 {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--wood);
  margin-top: 44px;
  margin-bottom: 14px;
}
.prose-mah h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wood);
  margin-top: 32px;
  margin-bottom: 8px;
}
.prose-mah p { margin-bottom: 18px; }
.prose-mah strong { color: var(--wood); font-weight: 600; }
.prose-mah em { font-family: var(--font-display); font-style: italic; font-size: 1.1em; }
.prose-mah ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.prose-mah li { position: relative; margin-bottom: 9px; padding-left: 22px; }
.prose-mah li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--clay);
}
.prose-mah a { color: var(--clay); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- cart & checkout ---------- */
.cart-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 360px; } }

.cart-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gold-line-soft);
}
.cart-item-img { width: 96px; height: 96px; flex-shrink: 0; overflow: hidden; background: var(--paper); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) { .cart-item-body { flex-direction: row; align-items: center; } }
.cart-item-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; color: var(--wood); }
.cart-item-name:hover { color: var(--clay); }
.cart-item-each { margin-top: 4px; font-size: 0.95rem; color: var(--stone); }
.cart-item-controls { display: flex; align-items: center; gap: 16px; }
.cart-line-price { width: 96px; text-align: right; font-family: var(--font-display); font-size: 1.35rem; color: var(--clay); }
.qty.small button { width: 40px; height: 40px; font-size: 1rem; }
.qty.small span { width: 32px; font-size: 0.92rem; }
.remove-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  cursor: pointer;
}
.remove-btn:hover { color: var(--clay); }

.cart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.link-strong { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--wood); }
.link-strong:hover { color: var(--clay); }
.link-quiet { border: 0; background: transparent; padding: 0; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--stone); cursor: pointer; }
.link-quiet:hover { color: var(--clay); }

.summary { border: 1px solid var(--gold-line); background: var(--paper); padding: 28px; }
.summary .rule { margin: 20px 0; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: 0.95rem; }
.summary-row .muted { color: var(--stone); }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.summary-total .value { font-family: var(--font-display); font-size: 2rem; color: var(--wood); }
.summary-note { margin-top: 16px; font-size: 0.82rem; line-height: 1.65; color: var(--stone); }
.summary-note a { text-decoration: underline; }

.order-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.order-line img { width: 48px; height: 48px; object-fit: cover; background: var(--cream); }
.order-line .name { flex: 1; font-size: 0.92rem; line-height: 1.3; color: var(--wood); }
.order-line .name small { display: block; font-size: 0.82rem; color: var(--stone); }

.ship-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--wood-line);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ship-option + .ship-option { margin-top: 12px; }
.ship-option.active { border-color: var(--clay); background: var(--paper); }
.ship-option:hover { border-color: rgba(185, 139, 62, 0.6); }
.ship-option input { margin-top: 6px; accent-color: var(--clay); }
.ship-option .ship-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--wood); }
.ship-option .ship-desc { margin-top: 4px; font-size: 0.9rem; color: var(--stone); }
.ship-option .ship-price { margin-left: auto; font-family: var(--font-display); font-size: 1.35rem; color: var(--clay); }

.notice {
  border: 1px solid rgba(185, 139, 62, 0.5);
  background: var(--cream);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--wood);
  margin-bottom: 20px;
}
.notice-error { border-color: rgba(194, 84, 42, 0.5); background: rgba(194, 84, 42, 0.1); color: var(--clay); }

.pay-note {
  border: 1px solid var(--gold-line);
  background: var(--cream);
  padding: 20px;
  margin-top: 20px;
}
.pay-note h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--wood); }
.pay-note p { margin-top: 8px; font-size: 0.88rem; line-height: 1.7; color: var(--stone); }
.pay-note .btn { margin-top: 12px; }
.pay-placeholder {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px dashed rgba(185, 139, 62, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { border: 1px solid var(--gold-line); background: var(--paper); padding: 32px; }
.contact-card dl { margin-top: 24px; }
.contact-card dt { margin-bottom: 4px; }
.contact-card dd { margin: 0 0 24px; }
.contact-card dd.big { font-family: var(--font-display); font-size: 1.75rem; color: var(--wood); }
.contact-card dd.big a:hover { color: var(--clay); }
.contact-card dd p { font-size: 0.98rem; line-height: 1.7; color: var(--stone); }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 96px; background: var(--wood); color: var(--cream); }
.footer-grid { display: grid; gap: 48px; padding: 64px 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }

.footer-brand { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--cream); }
.footer-rule { height: 1px; width: 96px; margin-top: 12px; background: var(--gold); }
.footer-blurb { margin-top: 20px; max-width: 480px; font-size: 0.95rem; line-height: 1.7; color: rgba(250, 244, 234, 0.8); }
.footer-legal { margin-top: 24px; font-size: 0.78rem; line-height: 1.7; color: rgba(250, 244, 234, 0.65); }
.footer-col .eyebrow { color: var(--gold); }
.footer-col ul { margin-top: 20px; }
.footer-col li { margin-bottom: 12px; font-size: 0.95rem; }
.footer-col a { color: rgba(250, 244, 234, 0.82); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-contact { margin-top: 36px; }
.footer-contact li { font-size: 0.95rem; }
.footer-address { font-size: 0.85rem !important; line-height: 1.6; color: rgba(250, 244, 234, 0.65) !important; }
.footer-bottom { border-top: 1px solid rgba(185, 139, 62, 0.35); }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250, 244, 234, 0.6);
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a:hover { color: var(--gold); }

/* ---------- cookie notice ---------- */
.cookie-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px;
}
@media (min-width: 640px) { .cookie-wrap { padding: 20px; } }
.cookie-box {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(185, 139, 62, 0.5);
  background: var(--wood);
  color: var(--cream);
  box-shadow: 0 18px 40px rgba(42, 27, 18, 0.35);
  padding: 20px;
}
@media (min-width: 640px) { .cookie-box { padding: 24px; } }
.cookie-box .eyebrow { color: var(--gold); }
.cookie-box p { margin-top: 8px; font-size: 0.92rem; line-height: 1.65; color: rgba(250, 244, 234, 0.88); }
.cookie-box p a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cookie-hidden { display: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 70;
  background: var(--wood);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .product-media img, .cat-thumb img { transition: none; }
}
