/* ============================================================
   SUNSHINE SOAPS — styles.css
   1. Variables      5. Hero          9. Contact
   2. Base           6. Products     10. Footer
   3. Layout         7. Cart/Modals  11. Responsive
   4. Header         8. About
   ============================================================ */

/* ---------- 1. VARIABLES ---------- */
:root {
  --cream: #fffcf4;
  --cream-deep: #fff4dd;
  --warm-white: #ffffff;
  --beige: #f4e8d2;
  --honey: #f7b32b;
  --honey-soft: #ffe9b3;
  --sun-orange: #ef7d29;
  --amber-deep: #b4700f;
  --sage: #4f7a5c;
  --sage-soft: #e6f1e4;
  --charcoal: #33302a;
  --muted: #756b5e;
  --line: #f1e7d5;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --bar-radius: 30px 30px 26px 26px / 26px 26px 30px 30px;

  --shadow-sm: 0 1px 2px rgba(120, 90, 30, .04), 0 4px 16px rgba(120, 90, 30, .06);
  --shadow-md: 0 10px 30px rgba(120, 90, 30, .11);
  --shadow-lg: 0 24px 60px rgba(120, 90, 30, .17);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 1180px;
  --header-h: 74px;
  --header-offset: 74px; /* set by script.js — nav + promo bar */
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(247, 179, 43, .20), transparent 62%),
    radial-gradient(700px 420px at 5% 8%, rgba(255, 233, 179, .38), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.05rem); font-weight: 400; }
h1 em { font-style: italic; color: var(--amber-deep); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); font-weight: 400; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.06rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--amber-deep); text-decoration-color: rgba(168, 111, 22, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; 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: 12px; top: -60px; z-index: 200;
  background: var(--charcoal); color: var(--warm-white);
  padding: .7rem 1.1rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. LAYOUT ---------- */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber-deep);
  margin: 0 0 .8rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}
.section-head h2 { margin-bottom: .35rem; }
.section-lede { color: var(--muted); max-width: 52ch; margin: 0; }

.placeholder-note {
  background: var(--sage-soft);
  border-left: 3px solid var(--sage);
  color: #38473c;
  padding: .8rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem;
  margin: 0 0 2rem;
  max-width: 68ch;
}

/* Buttons */
.btn {
  --btn-bg: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 50px;
  padding: .78rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--warm-white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover,
.btn[disabled]:hover { transform: none; box-shadow: none; }

.btn-primary { --btn-bg: var(--charcoal); }
.btn-primary:hover { --btn-bg: #3d372f; }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost:hover { background: rgba(44, 40, 35, .06); }

.btn-quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  font-weight: 500;
  min-height: 44px;
}
.btn-quiet:hover { background: var(--cream); color: var(--charcoal); box-shadow: none; }

.btn-honey { --btn-bg: var(--honey); color: #3a2a08; }
.btn-honey:hover { --btn-bg: #f0b64f; }

.btn-block { width: 100%; }

.round-btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--warm-white);
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.round-btn:hover, .icon-btn:hover { background: var(--cream-deep); border-color: var(--beige); }
.round-btn[disabled] { opacity: .38; cursor: default; transform: none; }

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 252, 244, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(58, 46, 26, .06);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--charcoal);
  margin-right: auto;
}
.brand-mark {
  display: flex;
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--beige);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-list { display: flex; align-items: center; gap: 1.9rem; }
.nav-list a {
  position: relative;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  padding: .35rem 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--honey);
  transition: right .22s var(--ease);
}
.nav-list a:hover::after, .nav-list a:focus-visible::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--warm-white);
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.cart-button:hover { background: var(--cream-deep); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sun-orange);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  border: 2px solid var(--cream);
}
.cart-count[data-empty="true"] { background: var(--beige); color: var(--muted); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--warm-white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-bars { display: block; width: 20px; }
.menu-bars span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.menu-bars span + span { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }



/* Shared soap-bubble surface — used by the hero field, the promo bar,
   card bursts, and click bursts so every bubble on the site matches.
   Layered radials give the iridescent film: white highlight, gold, blue
   and pink sheen, plus a rim light so they read against cream. */
.bubble-field span,
.promo-bubbles span,
.burst b,
.click-burst b {
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, #ffffff 0 9%, rgba(255, 255, 255, .7) 20%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 76% 74%, rgba(255, 205, 110, .72), rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at 22% 80%, rgba(150, 214, 255, .62), rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 82% 24%, rgba(255, 164, 214, .58), rgba(255, 255, 255, 0) 44%),
    linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .16));
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow:
    inset -4px -6px 13px rgba(233, 150, 20, .3),
    inset 4px 5px 12px rgba(255, 255, 255, .7),
    0 3px 12px rgba(150, 100, 25, .2);
}

/* ---------- 4b. PROMO BAR ---------- */
.promo-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #ffd784 0%, #ffc247 42%, #ffb01f 100%);
  border-top: 1px solid rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(180, 112, 15, .22);
  color: #4a3208;
}
.promo-bar[hidden] { display: none !important; }

/* soft light sweep across the bar */
.promo-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: promo-sheen 7s var(--ease) infinite;
  pointer-events: none;
}
@keyframes promo-sheen {
  0%, 62% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Sale variant — set `sale: true` in the promo config */
.promo-bar.is-sale {
  background: linear-gradient(100deg, #ffb765 0%, #f7913a 45%, #ee7326 100%);
  color: #3d1c02;
}
.promo-bar.is-sale .promo-flag { color: #c2521a; }
.promo-bar.is-sale .promo-cta { color: #3d1c02; }

.promo-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.promo-bubbles span {
  position: absolute;
  bottom: -22px;
  animation: promo-bubble linear infinite;
}
@keyframes promo-bubble {
  0%   { transform: translate3d(0, 0, 0) scale(.65); opacity: 0; }
  18%  { opacity: 1; }
  60%  { transform: translate3d(10px, -42px, 0) scale(1.05); opacity: .95; }
  100% { transform: translate3d(16px, -78px, 0) scale(1.2); opacity: 0; }
}

.promo-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 46px;
  padding-block: .45rem;
}
.promo-text {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem .7rem;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
}
.promo-flag {
  display: inline-flex;
  align-items: center;
  background: #fffdf7;
  color: var(--amber-deep);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(140, 90, 10, .22);
}
.promo-flag:empty { display: none; }

.promo-cta {
  color: #4a3208;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.promo-cta:hover { color: #2f2005; }
.promo-cta:empty { display: none; }

.promo-close {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 247, .55);
  color: #4a3208;
  cursor: pointer;
  transition: background-color .16s var(--ease);
}
.promo-close:hover { background: rgba(255, 253, 247, .95); }

@media (max-width: 640px) {
  .promo-inner { padding-right: 2.2rem; }
  .promo-text { font-size: .88rem; gap: .35rem .55rem; }
  .promo-close { width: 28px; height: 28px; }
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -140px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(247, 179, 43, .42) 0%, rgba(247, 179, 43, 0) 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.lede {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions.center { justify-content: center; }

.hero-notes {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .55rem;
}
.hero-notes li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: .95rem;
}
.hero-notes li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--honey);
}

.hero-media { position: relative; }

.bar-frame {
  border-radius: var(--bar-radius);
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.bar-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.media-note {
  margin: .9rem 0 0;
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- 6. PRODUCTS ---------- */
.trust { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-grid li {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.trust-tag {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.trust-grid p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }

.featured { background: linear-gradient(180deg, #fffaf0 0%, var(--cream-deep) 100%); }

.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .4rem .3rem 1.5rem;
  margin: -.4rem -.3rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li {
  flex: 0 0 calc((100% - 2.7rem) / 3);
  scroll-snap-align: start;
}

.carousel-controls { display: flex; gap: .5rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.carousel-dots button {
  width: 30px; height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--beige);
  cursor: pointer;
  transition: background-color .2s var(--ease), width .2s var(--ease);
}
.carousel-dots button[aria-selected="true"] { background: var(--sun-orange); width: 44px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--beige);
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cream);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-chip {
  position: absolute;
  top: .8rem; left: .8rem;
  background: rgba(255, 252, 246, .92);
  border: 1px solid var(--line);
  color: var(--amber-deep);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .28rem .6rem;
  border-radius: 999px;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.35rem;
}
.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.card-title { font-family: var(--serif); font-size: 1.24rem; margin: 0 0 .3rem; }
.price { font-weight: 700; font-size: 1.05rem; color: var(--charcoal); margin: 0; white-space: nowrap; }
.card-desc { color: var(--muted); font-size: .93rem; line-height: 1.55; margin: 0 0 1.1rem; }

.card-actions { margin-top: auto; display: flex; gap: .6rem; }
.card-actions .btn { flex: 1; min-height: 46px; padding-inline: 1rem; font-size: .95rem; }
.card-actions .btn-ghost { flex: 0 0 auto; }

/* ---------- 7. CART, MODALS, TOAST ---------- */
/* [hidden] must beat the display rules below */
.overlay-backdrop[hidden],
.cart-drawer[hidden],
.modal[hidden],
.toast[hidden] { display: none !important; }

.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 40, 35, .42);
  backdrop-filter: blur(2px);
  z-index: 80;
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.overlay-backdrop.is-open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 90;
  width: min(420px, 100%);
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .28s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.drawer-count { color: var(--muted); font-family: var(--sans); font-size: .9rem; font-weight: 500; }

.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }

.cart-empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.cart-empty svg { margin: 0 auto 1rem; color: var(--beige); }

.cart-line {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: .9rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line img {
  width: 68px; height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.cart-line-name { font-family: var(--serif); font-size: 1.04rem; margin: 0 0 .1rem; }
.cart-line-price { font-size: .88rem; color: var(--muted); margin: 0 0 .5rem; }
.cart-line-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cream);
}
.qty-btn {
  width: 38px; height: 38px;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.qty-btn:hover { background: var(--cream-deep); }
.qty-value {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: .98rem;
}

.link-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .87rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: .35rem;
}
.link-remove:hover { color: #a33c2e; }

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom));
  background: var(--cream);
  display: grid;
  gap: .65rem;
}
.subtotal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.05rem;
}
.subtotal-row strong { font-size: 1.3rem; font-family: var(--serif); }
.drawer-note { margin: 0; font-size: .84rem; color: var(--muted); }
.drawer-foot .form-status { margin: 0; font-size: .86rem; }
.drawer-foot .form-status:empty { display: none; }
.drawer-foot .btn-pay[hidden] { display: none !important; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.modal.is-open { opacity: 1; }

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.99);
  transition: transform .22s var(--ease);
}
.modal.is-open .modal-panel { transform: none; }

.modal-close { position: absolute; top: .85rem; right: .85rem; z-index: 2; }

.product-panel { display: grid; grid-template-columns: 1fr 1fr; }
.product-panel-media { background: var(--cream); }
.product-panel-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.product-panel-body { padding: clamp(1.5rem, 3vw, 2.4rem); }
.product-panel-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.product-panel-body .price { font-size: 1.3rem; margin-bottom: 1rem; }
.product-desc { color: var(--muted); margin-bottom: 1.5rem; }

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.qty-label { font-weight: 600; }
.fine-print { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }

.checkout-panel { width: min(940px, 100%); }
.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.order-summary {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  align-self: start;
}
.order-summary h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.summary-lines { display: grid; gap: .55rem; margin-bottom: 1rem; }
.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .93rem;
  color: var(--muted);
}
.summary-lines li span:last-child { color: var(--charcoal); font-weight: 600; white-space: nowrap; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.summary-total strong { font-family: var(--serif); font-size: 1.3rem; }
.summary-contact { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.summary-contact p { margin: 0 0 .35rem; color: var(--muted); }
.summary-contact .link { display: block; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 14px);
  z-index: 120;
  background: var(--charcoal);
  color: var(--warm-white);
  padding: .8rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: .95rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  max-width: calc(100% - 2rem);
  text-align: center;
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }


/* ---------- 7b. GALLERY + LIGHTBOX ---------- */
.gallery { background: linear-gradient(180deg, var(--cream-deep) 0%, #fffaef 100%); }
.gallery-track > li { flex: 0 0 calc((100% - 2.7rem) / 3); scroll-snap-align: start; }

.gallery-item { margin: 0; }
.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.gallery-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.gallery-zoom {
  position: absolute;
  right: .6rem; bottom: .6rem;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 252, 246, .92);
  color: var(--charcoal);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.gallery-btn:hover .gallery-zoom,
.gallery-btn:focus-visible .gallery-zoom { opacity: 1; transform: none; }

.gallery-item figcaption {
  margin-top: .6rem;
  font-size: .9rem;
  color: var(--muted);
}

.lightbox-panel {
  width: min(1000px, 100%);
  background: var(--charcoal);
  padding: .75rem;
}
.lightbox-panel .modal-close {
  background: rgba(255, 252, 246, .92);
  border-color: transparent;
}
#lb-image {
  width: 100%;
  height: auto;
  max-height: min(72dvh, 720px);
  object-fit: contain;
  border-radius: var(--radius);
  background: #1f1c18;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .25rem .25rem;
}
.lightbox-caption {
  margin: 0;
  color: #e8e1d6;
  font-size: .92rem;
  text-align: center;
  flex: 1;
}
.lightbox-bar .round-btn { background: rgba(255, 252, 246, .1); border-color: rgba(255,255,255,.22); color: #f3ece0; }
.lightbox-bar .round-btn:hover { background: rgba(255, 252, 246, .2); }
.lightbox-bar .round-btn[disabled] { opacity: .4; }


/* ---------- 7c. MOTION: BUBBLES + REVEALS ---------- */

/* Scroll reveal — elements start slightly low and fade up when observed.
   Nothing is hidden unless JS is running (see .js-reveal on <html>). */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Bubble field — floats gently behind the hero */
.bubble-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bubble-field span {
  position: absolute;
  bottom: -80px;
  animation: bubble-float linear infinite;
}
@keyframes bubble-float {
  0%   { transform: translate3d(0, 0, 0) scale(.8); opacity: 0; }
  10%  { opacity: 1; }
  30%  { transform: translate3d(22px, -28vh, 0) scale(1.02); }
  55%  { transform: translate3d(-16px, -50vh, 0) scale(.98); opacity: .95; }
  80%  { transform: translate3d(20px, -74vh, 0) scale(1.04); opacity: .8; }
  100% { transform: translate3d(-8px, -96vh, 0) scale(1.12); opacity: 0; }
}

/* Bubble burst — spawned by JS on card reveal, add-to-cart, and popup open */
.burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
}
.burst b {
  position: absolute;
  display: block;
  animation: bubble-pop var(--dur, 1100ms) var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0;
}
@keyframes bubble-pop {
  0%   { transform: translate3d(0, 12px, 0) scale(.35); opacity: 0; }
  14%  { opacity: 1; }
  45%  { transform: translate3d(calc(var(--dx, 0px) * .5), calc(var(--rise, -80px) * .55), 0) scale(1.05); opacity: 1; }
  80%  { transform: translate3d(var(--dx, 0px), calc(var(--rise, -80px) * .9), 0) scale(1); opacity: .92; }
  93%  { transform: translate3d(var(--dx, 0px), var(--rise, -80px), 0) scale(1.28); opacity: .6; }
  100% { transform: translate3d(var(--dx, 0px), var(--rise, -80px), 0) scale(1.65); opacity: 0; }
}

/* Cards lift a touch more warmly now */
.product-card { position: relative; }
.card-media img { transition: transform .5s var(--ease); }
.product-card:hover .card-media img { transform: scale(1.04); }
.gallery-btn img { transition: transform .5s var(--ease); }
.gallery-btn:hover img { transform: scale(1.04); }

/* Cart badge nudge when something is added */
.cart-count.is-bumped { animation: badge-bump .45s var(--ease); }
@keyframes badge-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}


/* Click bursts — a fixed layer so bubbles can appear over any UI,
   including open dialogs. Populated by script.js on button presses. */
.click-burst {
  position: fixed;
  inset: 0;
  z-index: 130;
  overflow: hidden;
  pointer-events: none;
}
.click-burst b {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  animation: bubble-click var(--dur, 1000ms) var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0;
}
@keyframes bubble-click {
  0%   { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
  12%  { opacity: 1; }
  55%  { transform: translate(calc(-50% + var(--dx, 0px) * .6), calc(-50% + var(--rise, -70px) * .55)) scale(1.05); opacity: 1; }
  85%  { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--rise, -70px) * .92)) scale(1); opacity: .9; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--rise, -70px))) scale(1.7); opacity: 0; }
}

/* ---------- 7d. NEWSLETTER POPUP ---------- */
.popup-panel {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  background:
    radial-gradient(520px 300px at 82% -12%, rgba(247, 179, 43, .34), transparent 66%),
    var(--warm-white);
  text-align: center;
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.4rem) clamp(1.5rem, 3vw, 2rem);
}
.popup-logo {
  width: 84px; height: 84px;
  margin: 0 auto .9rem;
  animation: logo-bob 4s ease-in-out infinite;
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
.popup-panel h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: .5rem; }
.popup-panel p { color: var(--muted); margin: 0 auto 1.3rem; max-width: 38ch; }
.popup-form { display: grid; gap: .7rem; text-align: left; }
.popup-form .field { margin-bottom: 0; }
.popup-note { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.popup-dismiss {
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: .4rem;
  margin-top: .2rem;
}
.popup-dismiss:hover { color: var(--charcoal); }


/* ---------- 7e. CHECKOUT PAYMENT ---------- */
.pay-block { margin-bottom: 1.2rem; }

.btn-pay {
  --btn-bg: #635bff; /* Stripe indigo */
  color: #fff;
}
.btn-pay:hover { --btn-bg: #7a73ff; }

.pay-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: .7rem 0 0;
  font-size: .84rem;
  color: var(--muted);
}
.pay-note svg { flex: 0 0 auto; }

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: .6rem 0 0;
}
.pay-methods li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .18rem .6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  background: var(--warm-white);
}
.pay-block.is-unavailable .pay-methods,
.drawer-foot .btn-pay[hidden] ~ .pay-methods { display: none; }

.pay-divider {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 1.3rem 0;
  color: var(--muted);
  font-size: .84rem;
}
.pay-divider::before,
.pay-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Shown when Stripe isn't configured yet — card path hides, manual path stays */
.pay-block.is-unavailable .btn-pay,
.pay-block.is-unavailable .pay-note { display: none; }

/* ---------- 8. ABOUT ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-copy p { color: var(--muted); max-width: 60ch; }
.about-copy p:first-of-type {
  font-size: 1.15rem;
  color: var(--charcoal);
  font-family: var(--serif);
  line-height: 1.45;
}
.signature { font-family: var(--serif); font-style: italic; color: var(--charcoal) !important; }

.process {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.steps { display: grid; gap: 1.4rem; margin-top: 1.2rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.step-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--honey);
  line-height: 1;
  padding-top: .1rem;
}
.steps h4 { margin: 0 0 .2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- 9. CONTACT ---------- */
.contact { background: linear-gradient(180deg, #fffaef 0%, var(--cream-deep) 100%); }
.contact-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy p { color: var(--muted); max-width: 46ch; }

.contact-list { display: grid; gap: 1rem; margin-top: 1.8rem; }
.contact-list li {
  display: grid;
  gap: .1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.contact-value { font-size: 1.1rem; font-weight: 500; color: var(--charcoal); }
a.contact-value { color: var(--amber-deep); }

.contact-form-wrap {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.hidden-field { position: absolute; left: -9999px; }

.field { display: grid; gap: .35rem; margin-bottom: 1.05rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { background: var(--warm-white); border-color: var(--sage); }

.form-status { margin: .9rem 0 0; font-size: .93rem; min-height: 1.2em; }
.form-status.is-error { color: #9c3a2c; }
.form-status.is-ok { color: #3c5a44; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta-inner {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem) 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.final-cta-inner::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 520px; height: 380px;
  background: radial-gradient(circle, rgba(247, 179, 43, .34) 0%, rgba(247, 179, 43, 0) 70%);
  pointer-events: none;
}
.final-cta-inner > * { position: relative; }
.final-cta p { color: var(--muted); max-width: 46ch; margin-inline: auto; margin-bottom: 1.8rem; }

/* ---------- 10. FOOTER ---------- */
.site-footer {
  background: linear-gradient(180deg, #fff6e2 0%, #ffeecb 100%);
  border-top: 1px solid var(--line);
  color: var(--charcoal);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.site-footer a { color: var(--charcoal); text-decoration: none; }
.site-footer a:hover { color: var(--amber-deep); text-decoration: underline; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand { display: grid; gap: .1rem; }
.footer-logo { width: 78px; height: 78px; margin-bottom: .6rem; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 .4rem; color: var(--charcoal); }
.footer-line { color: var(--muted); max-width: 34ch; margin: 0; }
.footer-heading {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 700;
  margin: 0 0 .7rem;
}
.footer-nav ul, .footer-contact ul { display: grid; gap: .5rem; justify-items: start; }
.link-newsletter {
  border: 0;
  background: none;
  padding: 0;
  color: var(--amber-deep);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-newsletter:hover { color: var(--sun-orange); }

.footer-base {
  border-top: 1px solid rgba(180, 112, 15, .18);
  padding: 1.2rem 0;
}
.footer-base p { margin: 0; font-size: .87rem; color: var(--muted); }

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track > li,
  .gallery-track > li { flex-basis: calc((100% - 1.35rem) / 2); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { order: -1; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-offset) 0 auto 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    z-index: 55;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: .95rem .25rem; font-size: 1.05rem; }
  .nav-list a::after { display: none; }

  .brand-sub { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .product-panel { grid-template-columns: 1fr; }
  .product-panel-media img { aspect-ratio: 3 / 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 1.75rem, var(--shell)); }
  .trust-grid { grid-template-columns: 1fr; }
  .carousel-track > li,
  .gallery-track > li { flex-basis: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .card-actions .btn { flex: 1 1 auto; }
  .cart-drawer { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .modal { padding: .75rem; align-items: flex-start; }
  .modal-panel { max-height: calc(100dvh - 1.5rem); }
}

@media (max-width: 380px) {
  .card-actions { flex-direction: column; }
  .brand-name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .carousel-track { scroll-behavior: auto; }
  .bubble-field, .burst, .promo-bubbles, .click-burst { display: none !important; }
  .promo-bar::after { animation: none !important; opacity: 0; }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  .popup-logo { animation: none !important; }
}
