/* =============================================================================
   THE HEARTH EDIT — styles
============================================================================= */

:root {
  --bg: #fbf6f4;
  --surface: #ffffff;
  --ink: #2a2320;
  --muted: #8a7d78;
  --accent: #b76e79;
  --accent-deep: #96545f;
  --line: #efe4e0;
  --gold: #b8975a;
  --shadow: 0 1px 2px rgba(42, 35, 32, .04), 0 8px 24px rgba(42, 35, 32, .07);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ---------- disclosure bar ---------- */
.disclosure-bar {
  background: var(--ink);
  color: #f3ece2;
  font-size: 12.5px;
  letter-spacing: .01em;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 240, .88);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 20px; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.site-nav { display: flex; gap: 26px; font-size: 14.5px; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(183, 110, 121, .13), transparent 55%),
    radial-gradient(90% 90% at 0% 0%, rgba(184, 151, 90, .09), transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 76px 24px 84px; max-width: 800px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px;
  color: var(--accent-deep); font-weight: 700; margin: 0 0 18px;
}
.hero h1 { font-family: var(--serif); font-size: clamp(40px, 7vw, 68px); line-height: 1.02; margin: 0; font-weight: 600; }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.6vw, 24px); color: var(--accent-deep); margin: 16px 0 0; }
.hero-intro { font-size: 17px; color: var(--muted); max-width: 560px; margin: 22px 0 0; }
.hero-cta {
  display: inline-block; margin-top: 32px; font-weight: 600; font-size: 15px;
  color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.hero-cta:hover { color: var(--accent-deep); }

/* ---------- how we pick ---------- */
.how { border-bottom: 1px solid var(--line); background: var(--surface); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 52px 24px; }
.how-icon { font-size: 22px; }
.how-item h3 { font-family: var(--serif); font-size: 19px; margin: 12px 0 6px; font-weight: 600; }
.how-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- shop ---------- */
.shop { padding: 60px 24px 40px; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.shop-head h2 { font-family: var(--serif); font-size: 30px; margin: 0; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line); transition: all .15s ease;
}
.chip:hover { color: var(--ink); border-color: #d9cfc1; }
.chip.active { background: var(--ink); color: #f6efe6; border-color: var(--ink); }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 24px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
}
.thumb .emoji { font-size: 62px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.14)); transition: transform .2s ease; }
.card:hover .thumb .emoji { transform: scale(1.06) rotate(-2deg); }

/* Real product photo overlays the emoji tile; on load error it removes itself
   (see onerror in store.js) and the emoji + gradient show through. */
.thumb.has-img { background: #fff; }
.thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 20px; background: #fff;
  transition: transform .22s ease;
}
.card:hover .thumb-img { transform: scale(1.04); }

/* category gradients for the thumbnail tiles */
.cat-serums-treatments { background: linear-gradient(140deg, #f6e2cf, #e6b98f); }
.cat-moisturizers      { background: linear-gradient(140deg, #f3e0e4, #dca9b4); }
.cat-cleansers-masks   { background: linear-gradient(140deg, #e2ece4, #a9c6b3); }
.cat-beauty-tech       { background: linear-gradient(140deg, #e6e2ef, #b0a6cf); }
.cat-hair              { background: linear-gradient(140deg, #efe6d6, #d3b98a); }
.cat-lips-spf          { background: linear-gradient(140deg, #f7dcd9, #e5a0a0); }

.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; font-weight: 700; color: var(--accent-deep); }
.card-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 7px 0 8px; line-height: 1.2; }
.card-blurb { margin: 0 0 18px; font-size: 14px; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.05; }
.price .amount { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 18px; }
.price .approx { font-size: 10px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.cta {
  font-size: 13.5px; font-weight: 600; color: var(--surface);
  background: var(--accent); padding: 8px 14px; border-radius: 999px;
  transition: background .15s ease;
}
.cta:hover { background: var(--accent-deep); }

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; background: var(--ink); color: #d9d1c6; }
.footer-inner { padding: 48px 24px 56px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; color: #f6efe6; margin-bottom: 20px; }
.footer-disclosure { font-size: 12.5px; line-height: 1.7; color: #a99f92; max-width: 760px; margin: 0 0 16px; }
.footer-disclosure strong { color: #e4dccf; }
.footer-legal { font-size: 12px; color: #877e72; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 24px; }
  .site-nav { gap: 18px; }
  .hero-inner { padding: 56px 24px 60px; }
}
