/* ==========================================================================
   Melina's Brittle — site styles
   ========================================================================== */

:root {
  --cream: #fbf6ee;
  --paper: #f4ebdd;
  --sand: #eadbc4;
  --espresso: #22150e;
  --cocoa: #3d2517;
  --bark: #5b3a26;
  --caramel: #9a5a12;        /* text + buttons: 5.5:1 on white */
  --caramel-deep: #7a460c;   /* hover */
  --caramel-bright: #d9953f; /* decorative fills only (never text on light) */
  --gold: #e7ae55;
  --rose: #c2455a;
  --ink: #2a1a12;
  --muted: #6b5646;
  --line: rgba(61, 37, 23, 0.16);
  --white: #fff;

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(34, 21, 14, 0.06), 0 2px 8px rgba(34, 21, 14, 0.05);
  --shadow: 0 10px 30px -12px rgba(34, 21, 14, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(34, 21, 14, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--espresso);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--caramel);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { box-shadow: 0 10px 24px -10px rgba(154, 90, 18, 0.7); }
.btn-primary:hover { --btn-bg: var(--caramel-deep); box-shadow: 0 16px 30px -12px rgba(154, 90, 18, 0.8); }

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { --btn-bg: var(--white); --btn-fg: var(--espresso); border-color: var(--white); }

.btn-dark { --btn-bg: var(--espresso); }
.btn-dark:hover { --btn-bg: var(--cocoa); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--espresso);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--espresso); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color 0.35s, box-shadow 0.35s, color 0.35s, height 0.35s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 66px;
  height: var(--header-h);
  background: rgba(251, 246, 238, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--espresso);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px -18px rgba(34, 21, 14, 0.4);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand img {
  width: 46px; height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.3s;
}
.is-scrolled .brand img { box-shadow: 0 0 0 2px var(--sand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.is-scrolled .nav a:hover { background: rgba(61, 37, 23, 0.07); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, background-color 0.25s;
}
.header-phone svg { width: 16px; height: 16px; }
.header-phone:hover { background: rgba(255, 255, 255, 0.12); }
.is-scrolled .header-phone { border-color: var(--line); }
.is-scrolled .header-phone:hover { background: rgba(61, 37, 23, 0.06); }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.25s, transform 0.3s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.24); }
.is-scrolled .icon-btn { background: var(--espresso); color: var(--white); }
.is-scrolled .icon-btn:hover { background: var(--cocoa); }
.icon-btn svg { width: 21px; height: 21px; }

.cart-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 21px; height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--cream);
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.18); } }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: var(--espresso);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 60%, rgba(34, 21, 14, 0.25) 0%, rgba(34, 21, 14, 0.82) 70%),
    linear-gradient(180deg, rgba(34, 21, 14, 0.55) 0%, rgba(34, 21, 14, 0.35) 40%, rgba(34, 21, 14, 0.92) 100%);
}

.hero-content {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 120px;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--caramel);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  background: currentColor;
}
.hero .eyebrow { color: var(--gold); }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.hero-lead {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgba(255, 255, 255, 0.84);
}

.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust {
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--white);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Ribbon ---------- */
.ribbon {
  background: var(--caramel-bright);
  color: var(--espresso);
  overflow: hidden;
  border-block: 1px solid rgba(34, 21, 14, 0.12);
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ribbon-group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 16px 17px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  white-space: nowrap;
}
.ribbon-group span[aria-hidden] { font-style: normal; font-size: 0.9rem; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 52px;
}
.section-head > div:first-child { max-width: 680px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-title {
  margin-top: 16px;
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
  font-weight: 400;
}
.section-title em { font-style: italic; color: var(--caramel); font-variation-settings: "SOFT" 100, "WONK" 1; }
.section-intro { margin-top: 16px; max-width: 540px; color: var(--muted); font-size: 1.08rem; }
.section-head.center .section-intro { margin-inline: auto; }

/* ---------- Shop ---------- */
.shop { background: var(--cream); }

.filters {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.filter-btn {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.filter-btn:hover { color: var(--espresso); }
.filter-btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--espresso);
  box-shadow: var(--shadow-sm);
}

.shipping-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px dashed rgba(196, 122, 38, 0.5);
  color: var(--cocoa);
  font-size: 0.98rem;
}
.shipping-note svg { width: 24px; height: 24px; color: var(--caramel); flex-shrink: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product[hidden] { display: none; }

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper);
}
.product-media picture,
.story-visual picture,
.hero-media picture { display: block; width: 100%; height: 100%; }
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.product:hover .product-media picture,
.story-visual picture,
.hero-media picture { display: block; width: 100%; height: 100%; }
.product-media img { transform: scale(1.06); }

.product-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(251, 246, 238, 0.94);
  color: var(--espresso);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.product-tag.is-new { background: var(--rose); color: var(--white); }

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
}
.product-kind {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
}
.product-name { margin-top: 8px; font-size: 1.6rem; }
.product-desc { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.product-meta {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--bark);
}
.product-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
}
.product-foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: -0.02em;
}
.price small { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }

.add-btn { min-height: 48px; padding: 0 20px; font-size: 0.93rem; }
.add-btn.is-added { --btn-bg: #3f7d4f; box-shadow: none; }

/* ---------- Story ---------- */
.story { background: var(--paper); position: relative; overflow: hidden; }
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.story-visual { position: relative; }
.story-visual .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
}
.story-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.story-visual .frame-sm {
  position: absolute;
  right: -28px; bottom: -36px;
  width: 44%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow);
}
.story-visual .frame-sm img { width: 100%; height: 100%; object-fit: cover; }
.story-badge {
  position: absolute;
  top: 26px; left: -22px;
  width: 128px; height: 128px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.15;
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
}
.story-badge span { display: block; font-size: 0.66rem; font-style: normal; font-family: var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); margin-top: 4px; }

.story-copy p { margin-top: 20px; color: var(--bark); font-size: 1.08rem; }
.story-copy .lead-quote {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--espresso);
  padding-left: 22px;
  border-left: 3px solid var(--caramel);
}

.values {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}
.values li { display: flex; gap: 14px; }
.values .v-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--white);
  color: var(--caramel);
  box-shadow: var(--shadow-sm);
}
.values .v-icon svg { width: 22px; height: 22px; }
.values strong { display: block; font-size: 1rem; color: var(--espresso); }
.values span { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--espresso); color: var(--white); position: relative; overflow: hidden; }
.reviews::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  right: -240px; top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 122, 38, 0.28), transparent 65%);
  pointer-events: none;
}
.reviews .section-intro { color: rgba(255, 255, 255, 0.7); }
.reviews .section-title em { color: var(--gold); }
.reviews .eyebrow { color: var(--gold); }

.review-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px 32px 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s var(--ease), background-color 0.4s;
}
.review:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); }
.review-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.6;
  height: 34px;
  color: var(--gold);
}
.review blockquote {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.review figcaption {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--caramel-deep));
  color: var(--espresso);
  font-weight: 700;
  font-size: 0.95rem;
}
.review figcaption strong { display: block; font-size: 0.98rem; }
.review figcaption div span { display: block; font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); }

.reviews-foot { margin-top: 48px; display: flex; justify-content: center; }
.reviews-foot .btn-outline { --btn-fg: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.reviews-foot .btn-outline:hover { --btn-bg: var(--white); --btn-fg: var(--espresso); border-color: var(--white); }

/* ---------- Custom order CTA ---------- */
.cta { padding: clamp(70px, 9vw, 110px) 0; background: var(--cream); }
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(231, 174, 85, 0.45), transparent 60%),
    linear-gradient(135deg, #f1c98b 0%, #e39a4a 55%, #d56f53 100%);
  color: var(--espresso);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .eyebrow { color: var(--cocoa); }
.cta-card h2 { margin-top: 16px; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 400; }
.cta-card h2 em { font-style: italic; }
.cta-card p { margin-top: 16px; font-size: 1.08rem; color: var(--cocoa); max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions .btn-light { --btn-bg: rgba(255, 255, 255, 0.55); --btn-fg: var(--espresso); border-color: rgba(34, 21, 14, 0.15); }
.cta-actions .btn-light:hover { --btn-bg: var(--white); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); padding-top: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card .c-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--caramel);
}
.contact-card .c-icon svg { width: 22px; height: 22px; }
.contact-card .c-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-card .c-value { font-family: var(--font-display); font-size: 1.28rem; color: var(--espresso); line-height: 1.3; overflow-wrap: anywhere; }
.contact-card .c-value-sm { font-size: 1.02rem; overflow-wrap: normal; word-break: normal; }
.contact-card .c-hint { font-size: 0.88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: rgba(255, 255, 255, 0.72); padding: 80px 0 34px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: 0.96rem; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 0.96rem; }
.footer-col a { text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(34, 21, 14, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 160;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  box-shadow: -30px 0 60px -30px rgba(34, 21, 14, 0.5);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.cart.is-open { transform: translateX(0); visibility: visible; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1.6rem; }
.cart-close {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  transition: background-color 0.2s;
}
.cart-close:hover { background: var(--sand); }
.cart-close svg { width: 18px; height: 18px; }

.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; margin: 0; list-style: none; }
.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; }
.cart-item h3 { font-size: 1.1rem; }
.cart-item .ci-price { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
.cart-item .ci-total { font-family: var(--font-display); font-size: 1.15rem; text-align: right; }
.cart-item .ci-remove {
  display: block;
  margin: 6px 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-item .ci-remove:hover { color: var(--rose); }

.qty {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.qty button {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
}
.qty button:hover { background: var(--paper); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; font-size: 0.95rem; }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 30px;
  text-align: center;
  color: var(--muted);
}
.cart-empty svg { width: 56px; height: 56px; color: var(--sand); }
.cart-empty h3 { font-size: 1.5rem; color: var(--espresso); }

.cart-foot {
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
}
.cart-line { display: flex; justify-content: space-between; font-size: 0.98rem; color: var(--bark); }
.cart-line + .cart-line { margin-top: 6px; }
.cart-line.total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--espresso);
}
.cart-foot .btn { margin-top: 18px; }
.cart-secure {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.cart-secure svg { width: 14px; height: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 170;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--white);
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast button {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--espresso);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Order success banner ---------- */
.order-banner {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  left: 50%;
  z-index: 120;
  width: min(560px, calc(100% - 32px));
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid #3f7d4f;
  transform: translateX(-50%);
}
.order-banner[hidden] { display: none; }
.order-banner strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.order-banner p { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.order-banner button { margin-left: auto; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.product.reveal, .review.reveal, .contact-card.reveal {
  transition: opacity 0.9s var(--ease), transform 0.7s var(--ease), box-shadow 0.5s var(--ease), background-color 0.4s, border-color 0.3s;
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone .hp-text { display: none; }
  .header-phone { padding: 0; width: 46px; height: 46px; justify-content: center; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 12px) 20px 26px;
    background: var(--cream);
    color: var(--espresso);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0.5s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 16px 8px; font-family: var(--font-display); font-size: 1.5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: none; }
  .site-header.menu-open { color: var(--espresso); }
  .site-header.menu-open .icon-btn { background: var(--espresso); color: var(--white); }
  .site-header.menu-open .header-phone { border-color: var(--line); }

  .story-grid { grid-template-columns: 1fr; }
  .story-visual { max-width: 520px; margin: 0 auto 30px; width: 100%; }
  .review-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .cta-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.16em; }
  .header-actions { gap: 8px; }
  .icon-btn, .header-phone { width: 42px; height: 42px; }

  .hero-content { padding-bottom: 100px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-trust { flex-direction: column; gap: 10px; margin-top: 40px; }

  .section-head { margin-bottom: 36px; }
  .filters { width: 100%; }
  .filter-btn { flex: 1; padding: 10px 8px; }
  .shipping-note { align-items: flex-start; font-size: 0.93rem; }

  .product-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-body { padding: 20px 20px 22px; }

  .story-visual .frame-sm { right: -6px; bottom: -24px; }
  .story-badge { left: -4px; width: 104px; height: 104px; font-size: 0.9rem; }
  .values { grid-template-columns: 1fr; }

  .review { padding: 30px 24px 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .brand { gap: 9px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { display: none; }
  .header-actions { gap: 6px; }
  .icon-btn, .header-phone { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
}
