:root {
  --bg: #fffcf8;
  --tint: #f7f0e8;
  --card: #ffffff;
  --ink: #302823;
  --ink-2: #4a3d35;
  --muted: #74675d;
  --line: #e9dfd4;
  --field: #d8cabb;
  --gold: #8a6440;     /* small gold text passes 4.5:1 on cream */
  --dark-ink: #f4ece3;
  --wa: #1f7a47;
  --error: #a3352b;
  --sale: #9b3b2a;     /* sale prices and tags: warm terracotta red, passes 4.5:1 on cream and with white text */
  --radius: 4px;
  --badge-h: 0px; /* height of Netlify's corner badge, set by script.js */

  /* Spacing: one 4/8 px scale for the whole site */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Motion: ease-out for things arriving, shorter for things leaving */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-quick: .15s;

  --display: "Playfair Display", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Keyboard focus ring (keyboard users only, not mouse clicks) */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:focus-visible { outline-color: var(--gold); }
.site-footer :focus-visible, .section-dark :focus-visible { outline-color: var(--bg); }
[tabindex="-1"]:focus { outline: none; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 720px; }
.section { padding: var(--s9) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--dark-ink); }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-bottom: var(--s6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 14px 28px; border: 0; border-radius: 2px;
  background: var(--ink); color: #fff; cursor: pointer; text-decoration: none;
  font: 500 .9rem var(--body); text-transform: uppercase; letter-spacing: .09em;
  transition: background var(--t-quick), color var(--t-quick), transform .12s;
  touch-action: manipulation;
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #17693b; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn.is-busy::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn.is-busy svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 0; background: transparent; border-radius: 2px; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.link-btn {
  border: 0; background: none; padding: 0; min-height: 44px; cursor: pointer; color: var(--muted);
  font-size: .88rem; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

/* ---------- Photo loading state ----------
   The tinted box holds the space (no jumping), the photo fades in when it has loaded. */
.media { background: var(--tint); overflow: hidden; }
.js-anim .media img { opacity: 0; transition: opacity .45s ease; }
.js-anim .media.loaded img { opacity: 1; }
.media.failed img { visibility: hidden; }
/* While a photo loads, a soft light sweeps over the tinted box so it reads as "loading", not empty */
.js-anim .media:not(.loaded):not(.failed):has(> img) {
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  background-size: 250% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink); color: var(--dark-ink); text-align: center;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; padding: 10px 16px;
}
.announce strong { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 252, 248, .96); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s5); height: 76px; }
.logo { font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em; text-decoration: none; margin: 0; }
a.logo { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; }
.logo img { height: 62px; width: auto; flex: none; }
.menu-btn {
  display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 6px; margin-left: -6px;
  border: 0; background: transparent; cursor: pointer; border-radius: 2px;
  font: 500 .78rem var(--body); text-transform: uppercase; letter-spacing: .1em;
}
.menu-btn svg { width: 24px; height: 24px; flex: none; }
.menu-btn:hover { background: var(--tint); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font-family: var(--display); text-transform: uppercase; font-size: .85rem; letter-spacing: .04em;
  text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.nav a:hover { text-decoration-line: underline; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 14px;
  background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 2px; cursor: pointer;
  font: 500 .8rem var(--body); text-transform: uppercase; letter-spacing: .09em; flex: none;
}
.cart-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.cart-btn svg { width: 20px; height: 20px; flex: none; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--bg);
  font-size: .72rem; letter-spacing: 0; display: inline-grid; place-items: center;
}
.js-anim .cart-count.bump { animation: pop .45s var(--ease-out); }

/* ---------- Hero ---------- */
.hero { padding: var(--s7) 0 var(--s8); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--gold); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 28px 0 var(--s5); }
.hero-facts { color: var(--muted); font-size: .95rem; max-width: 440px; margin: 0; }
.hero-ask { margin: var(--s2) 0 0; font-size: .95rem; }
.hero-ask a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.hero-actions .btn svg { width: 20px; height: 20px; flex: none; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint);
}
.hero-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 85%; background: var(--bg); border-radius: 2px;
  padding: 18px 26px; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.hero-badge-big { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; line-height: 1.2; }

/* ---------- Shop ---------- */
.section-shop { padding-top: var(--s8); }
.section-head .section-lede { margin-bottom: var(--s5); }
.tabs { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); }
.tabs button {
  border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--field);
  padding: 11px 20px; min-height: 44px; border-radius: 2px; cursor: pointer;
  font: 500 .82rem var(--body); text-transform: uppercase; letter-spacing: .08em;
  transition: background var(--t-quick), color var(--t-quick);
}
.tabs button:not([aria-selected="true"]):hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.product {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; transition: border-color var(--t-quick);
}
.product-art { aspect-ratio: 1 / 1; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product-art:has(.drawing) { background: #fff; }
.product-art .drawing { width: 42%; height: auto; color: var(--ink); }
.product-art img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: var(--s4) 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: .98rem; margin-bottom: 2px; }
/* The name button covers the whole card, so a tap anywhere on it opens the product */
.product-open {
  all: unset; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit;
}
.product-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-open:focus-visible { outline: none; }
.product:has(.product-open:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.product-meta { color: var(--muted); font-size: .88rem; margin-bottom: var(--s3); min-height: 1.3em; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 1.15rem; }
.price small { font-family: var(--body); color: var(--muted); font-size: .78rem; }
.product-cta {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  box-shadow: inset 0 0 0 1px var(--ink); border-radius: 2px;
  font: 500 .72rem var(--body); text-transform: uppercase; letter-spacing: .08em;
  transition: background var(--t-quick), color var(--t-quick);
}
.product:active { transform: scale(.99); }
@media (hover: hover) {
  .product:hover { border-color: var(--field); }
  .product:hover .product-cta { background: var(--ink); color: var(--bg); }
  .product-art img { transition: transform 1.2s var(--ease-out), opacity .45s ease; }
  .product:hover .product-art img { transform: scale(1.04); }
}

.addons { margin-top: var(--s7); }
.addons h3 { font-size: 1rem; margin-bottom: var(--s4); }
.addon-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.addon-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.addon-list .media { aspect-ratio: 10 / 7; }
.addon-list img { width: 100%; height: 100%; object-fit: cover; }
.addon-body { padding: 14px var(--s4) var(--s4); }
.addon-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.addon-top h4 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; line-height: 1.25; }
.addon-top strong { white-space: nowrap; font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.addon-body .small { margin: 6px 0 0; }

/* ---------- How ordering works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); counter-reset: none; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; border-top: 1px solid var(--ink); padding-top: var(--s4); }
.step-num { font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--gold); }
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Scents ---------- */
.spotlight-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: calc(-1 * var(--s2)) 0 var(--s4); }
.spotlight-tag {
  display: inline-flex; align-items: center; background: var(--ink); color: var(--bg);
  padding: 7px 14px; border-radius: 2px; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem;
}
.spotlight-head p { margin: 0; color: var(--muted); }
.marquee-toggle { margin-left: auto; }
/* The spotlight photos roll sideways on their own (two copies follow each other, so there's no gap).
   Hover, keyboard focus or the Pause button stop it. */
.scent-marquee {
  overflow: hidden; margin-bottom: var(--s6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.scent-features { display: flex; gap: var(--s3); width: max-content; animation: marquee var(--marquee-time, 35s) linear infinite; }
.scent-marquee:hover .scent-features, .scent-marquee:focus-within .scent-features, .scent-marquee.is-paused .scent-features { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s3) / 2)); } }
.scent-features figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; width: clamp(190px, 19vw, 250px); flex: none; }
.scent-features .media { position: absolute; inset: 0; }
.scent-features img { width: 100%; height: 100%; object-fit: cover; }
.scent-features figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  font-family: var(--display); text-transform: uppercase; font-size: 1rem; line-height: 1.2;
}
.scent-features figcaption small { display: block; font-family: var(--body); text-transform: none; font-size: .8rem; opacity: .9; margin-top: 2px; }
/* One card, the groups flow down even columns (the groups have very different sizes, 8 / 4 / 3 / 2,
   so separate boxes left big empty gaps) */
.scent-groups {
  columns: 4; column-gap: var(--s6);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5) var(--s6);
}
.scent-group + .scent-group { margin-top: var(--s4); }
.scent-group h3 { font-size: .95rem; color: var(--gold); margin-bottom: var(--s2); break-after: avoid; }
.scent-group ul { list-style: none; padding: 0; margin: 0; }
.scent-group li { display: flex; align-items: center; gap: var(--s3); padding: 6px 0; line-height: 1.3; break-inside: avoid; }
.scent-group li em { display: block; font-style: normal; font-size: .82rem; color: var(--muted); }
.scent-art {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(48, 40, 35, .08);
}
.scent-art svg { width: 34px; height: 34px; }

/* ---------- Occasions ---------- */
.occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s5); margin-top: 28px; } /* fills the width, however many occasions */
.occasions div { border-top: 1px solid rgba(243, 236, 224, .35); padding-top: var(--s4); }
.occasions p { color: #d6c9bb; font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; font-family: var(--display); font-size: 1.08rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 56px; padding: var(--s3) 0;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold); transition: transform .3s var(--ease-out); }
details[open] summary::after { content: "−"; transform: rotate(180deg); }
details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: var(--s7) 0; }
.site-footer .small { color: #b8a998; }
.footer-inner { display: flex; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; align-items: center; }
.footer-brand img { height: 120px; width: auto; margin: 0 0 var(--s2) -6px; }
.footer-brand .small { margin: 0; }
@media (max-width: 1080px) and (min-width: 821px) { .logo-text { display: none; } .nav { gap: 20px; } }
.footer-links { display: grid; }
.footer-links a { text-decoration: none; color: var(--bg); display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { text-decoration: underline; }
.footer-brand .small + .small { margin-top: 4px; }
.footer-bottom { margin-top: var(--s6); }
.footer-bottom .small { margin: 0; padding-top: var(--s4); border-top: 1px solid rgba(243, 236, 224, .18); }

/* =========================================================
   Overlays: product sheet + cart drawer
   ========================================================= */
body.overlay-lock { overflow: hidden; }
.overlay-backdrop {
  position: fixed; inset: 0; z-index: 44; background: rgba(48, 40, 35, .45);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.overlay-backdrop.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }

/* ---------- Product sheet ---------- */
.sheet {
  position: fixed; z-index: 45; background: var(--bg); display: flex; flex-direction: column; overflow: hidden;
  overflow: clip; /* never scrollable, even by the browser revealing a focused element */
  /* computer: centered window */
  left: 50%; top: 50%; width: min(940px, calc(100% - 48px)); height: min(720px, calc(100dvh - 48px));
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  transform: translate(-50%, -48%); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease-out), opacity .25s ease, visibility 0s linear .4s;
}
.sheet.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition: transform .4s var(--ease-out), opacity .25s ease; }
.sheet-grab { display: none; }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(255, 252, 248, .9); }
.sheet-build { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: 1fr 1.15fr; align-items: start; }
.sheet-media { position: sticky; top: 0; z-index: 2; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint); }
/* Computer: the picture side fills the whole height of the window, so there's no empty band under it.
   The 3D preview fills it all; photos stay square, in the middle. (100cqh = the window's scroll area height) */
@media (min-width: 821px) {
  @supports (height: 1cqh) {
    .sheet-scroll { container-type: size; }
    .sheet-media { aspect-ratio: auto; height: 100cqh; }
    .sheet-media .photo-view { inset: 50% 0 auto; transform: translateY(-50%); aspect-ratio: 1 / 1; }
  }
}
.photo-view { position: absolute; inset: 0; display: grid; place-items: center; }
.photo-view img { width: 100%; height: 100%; object-fit: cover; }
.photo-view.is-drawing { background: #fff; }
.photo-view .drawing { width: 40%; height: auto; color: var(--ink); }

/* Live 3D preview */
.studio-host {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, #fffaf3 0%, #f6ecdf 55%, #ecdfcf 100%);
}
.studio-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: none; }
/* The phone dropped the 3D for a moment (e.g. while picking a photo): a calm "loading" instead of a blank box */
.studio-host.is-lost .studio-canvas { visibility: hidden; }
.studio-host.is-lost::after {
  content: "Loading your design…"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 8px 14px; border-radius: 20px; background: rgba(255, 252, 248, .94); font-size: .85rem; color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,.08); white-space: nowrap;
}
.media-mini, .mini-expand { display: none; }
.studio-canvas.is-dragging { cursor: grabbing; }
.studio-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.sheet-media.is-studio .studio-host { transition: background .6s ease; }
.sheet-media.is-studio:has(.studio-canvas.is-lit) .studio-host { background: radial-gradient(120% 90% at 50% 34%, #f7e3c8 0%, #e2c9ab 50%, #c9ab8c 100%); }
.studio-loading {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: var(--s2); padding: 8px 14px; border-radius: 20px;
  background: rgba(255, 252, 248, .94); font-size: .85rem; box-shadow: 0 4px 16px rgba(0,0,0,.08); white-space: nowrap;
}
.studio-loading span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite; }
.media-tabs {
  position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; padding: 3px; gap: 2px;
  background: rgba(255, 252, 248, .92); border-radius: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.media-tabs button {
  border: 0; background: transparent; min-height: 36px; padding: 0 12px; border-radius: 18px; cursor: pointer;
  font: 500 .8rem var(--body); color: var(--muted);
}
.media-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.studio-tools {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); pointer-events: none;
}
.studio-tools > * { pointer-events: auto; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 20px; cursor: pointer;
  border: 0; background: rgba(255, 252, 248, .94); color: var(--ink); font: 500 .82rem var(--body); box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.tool-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn[aria-pressed="true"] { background: var(--ink); color: #ffd9a8; }
.tool-btn[aria-pressed="true"] svg path:first-child { fill: #ffb35c; stroke: #ffb35c; }
.burn {
  flex: 1; max-width: 240px; display: grid; gap: 2px; padding: 6px 12px 4px; border-radius: 14px;
  background: rgba(255, 252, 248, .94); font-size: .74rem; color: var(--muted); box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.burn input { width: 100%; accent-color: var(--ink); min-height: 24px; }
.studio-hint {
  position: absolute; top: 14px; right: 60px; z-index: 3; margin: 0; padding: 4px 10px; border-radius: 12px;
  background: rgba(255, 252, 248, .8); font-size: .74rem; color: var(--muted); pointer-events: none;
}

/* Photo on the label */
.photo-pick { display: grid; gap: var(--s2); justify-items: start; }
.photo-btn { min-height: 48px; }
.photo-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9rem; cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.photo-edit { display: grid; gap: var(--s2); }
.label-editor {
  display: block; width: 100%; max-width: 260px; border-radius: 4px; cursor: grab; touch-action: none;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(48, 40, 35, .12); background: #fbf7f1;
}
.label-editor:active { cursor: grabbing; }
.photo-edit-row { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.zoom { display: flex; align-items: center; gap: var(--s2); font-size: .88rem; flex: 1 1 180px; }
.zoom input { flex: 1; accent-color: var(--ink); min-height: 32px; }
.color-row { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s3); }
.color-row .input-field.compact { flex: 1; margin: 0; }
.pick-color {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px 0 8px; flex: none;
  border: 1px solid var(--field); border-radius: 2px; background: #fff; cursor: pointer; font-size: .82rem;
}
.pick-color input { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.scent-desc { margin: var(--s3) 0 0; font-size: .9rem; color: var(--muted); font-style: italic; min-height: 1.3em; }
.opt .field-error { margin: 0 0 var(--s3); }

/* "Preparing your photo…" while a big camera photo is being shrunk */
.photo-busy { display: inline-flex; align-items: center; gap: var(--s2); margin: var(--s2) 0 0; font-size: .9rem; color: var(--muted); }
.photo-busy span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite; }
label.is-busy { opacity: .5; pointer-events: none; }

/* Color "Other": a swatch with a rainbow dot that opens a box to type any color */
.swatch-other i { background: conic-gradient(#e46b6b, #f0c35a, #8cc084, #6c9bd1, #b38bd6, #e46b6b); }
.other-color { margin-top: var(--s3); max-width: 360px; }
.other-color .input-field { margin: 0; }
.other-color .opt-hint { margin: var(--s2) 0 0; }
.color-pick + .color-pick { margin-top: var(--s2); }
.picked { text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 600; }

/* Message beads note turns into a gentle warning when something won't fit or show */
#f-message-note { margin: var(--s2) 0 0; }
#f-message-note.is-warn { color: var(--ink); }

/* Burner package: mix and match the wax melts */
.melt-meter { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; background: var(--bg); font-weight: 600; font-size: .95rem; }
.melt-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.melt-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s var(--ease-out); }
.melt-meter.is-full { color: var(--wa); }
.melt-meter.is-free.is-full { color: var(--ink); }
.melt-meter.is-full .melt-bar i { background: var(--wa); }
.melt-list { list-style: none; margin: 0; padding: 0; }
.melt-list li { display: flex; align-items: center; gap: var(--s3); padding: 6px 0; border-top: 1px solid var(--line); }
.melt-list li:first-child { border-top: 0; }
.melt-name { flex: 1; font-size: .95rem; line-height: 1.3; }
.melt-list .scent-art { width: 36px; height: 36px; }
.melt-list .scent-art svg { width: 28px; height: 28px; }
.melt-list .qty-small .melt-n { font-weight: 600; }
.melt-actions { display: flex; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s3); }
.melt-actions .link-btn:disabled { opacity: .45; cursor: default; }

/* Honest note under the price: the 3D is a guide, real photos on request */
.studio-note { display: flex; gap: var(--s2); align-items: flex-start; margin: var(--s3) 0 0; padding: var(--s3); background: var(--tint); border-radius: var(--radius); font-size: .86rem; line-height: 1.45; color: var(--muted); }
.studio-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.studio-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Send the photo into the chat */
.send-photos { margin: var(--s4) 0; padding: var(--s4); background: var(--tint); border-radius: var(--radius); display: grid; gap: var(--s3); }
.send-photos p { margin: 0; }
.send-photos-thumbs { display: flex; gap: var(--s2); flex-wrap: wrap; }
.send-photos-thumbs img { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.photo-downloads { display: grid; gap: 4px; font-size: .9rem; }
.cart-thumb.is-design { background: #f6ecdf; }
.sheet-info { padding: var(--s6) var(--s6) var(--s5); min-width: 0; }
.sheet-info h2 { font-size: 1.6rem; margin: 0 48px var(--s1) 0; }
.sheet-meta { color: var(--muted); font-size: .95rem; margin: 0 0 var(--s2); }
.sheet-price { font-family: var(--display); font-size: 1.6rem; margin: 0; }
.sheet-price small { font-family: var(--body); font-size: .85rem; color: var(--muted); }
.sheet-ship { font-size: .9rem; color: var(--muted); margin: var(--s1) 0 var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }

.opt-form { display: grid; gap: var(--s6); }
/* position: relative keeps hidden inputs (like the photo picker) inside the scrolling options. Without it,
   when the browser puts focus back on the picker after a photo is chosen, it scrolled the whole window away (blank). */
.opt { border: 0; padding: 0; margin: 0; min-width: 0; position: relative; }
.opt legend { font-weight: 600; font-size: 1rem; padding: 0; margin-bottom: var(--s2); display: flex; gap: var(--s2); align-items: baseline; }
.opt legend em { font-style: normal; font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.opt-hint { font-size: .88rem; color: var(--muted); margin: -4px 0 var(--s3); }
.chip-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: var(--s4) 0 var(--s2); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 6px 14px;
  background: #fff; border: 1px solid var(--field); border-radius: 2px; cursor: pointer; font-size: .92rem; line-height: 1.2;
  transition: background var(--t-quick), color var(--t-quick), border-color var(--t-quick), transform .1s;
  touch-action: manipulation; user-select: none;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip em { font-style: normal; color: var(--muted); font-size: .85rem; }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip:has(input:checked), .swatch[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:has(input:checked) em { color: #d9cbbd; }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip .scent-art { width: 28px; height: 28px; margin-left: -6px; }
.chip .scent-art svg { width: 22px; height: 22px; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(48, 40, 35, .2); flex: none; }
.swatch[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--bg); }
.input-field.compact { margin-top: var(--s3); }

.opt-rows { display: grid; gap: var(--s2); }
.opt-row {
  display: grid; grid-template-columns: 48px 1fr auto 22px; align-items: center; gap: var(--s3);
  padding: 10px var(--s3); min-height: 64px; background: #fff; border: 1px solid var(--field); border-radius: 2px; cursor: pointer;
  transition: border-color var(--t-quick), box-shadow var(--t-quick);
}
.opt-row:hover { border-color: var(--ink); }
.opt-row:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-row:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-row-art { width: 48px; height: 48px; border-radius: 2px; display: grid; place-items: center; }
.opt-row-art img { width: 100%; height: 100%; object-fit: cover; }
.opt-row-icon { background: var(--tint); }
.opt-row-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.opt-row-text strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.opt-row-text span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.opt-row-price { font-style: normal; font-size: .9rem; white-space: nowrap; }
.opt-row input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.message-field { padding: var(--s1) 0 var(--s2) var(--s3); border-left: 2px solid var(--ink); margin-left: var(--s3); }
.js-anim .message-field:not([hidden]) { animation: rise .3s var(--ease-out); }
.char-count { text-align: right; margin: 4px 0 0; font-size: .8rem; }

.sheet-foot {
  flex: none; display: flex; gap: var(--s3); align-items: center;
  padding: var(--s3) var(--s6); border-top: 1px solid var(--line); background: var(--bg);
}
.btn-add { flex: 1; padding: 14px 20px; justify-content: space-between; }
.add-sep { flex: 1; }
#item-total { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0; text-transform: none; display: inline-block; }
.js-anim #item-total.bump { animation: bump .35s var(--ease-out); }
.btn-add.is-added { background: var(--wa); }
.btn-add.is-added .add-label::before { content: "✓ "; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: 2px; background: #fff; flex: none; }
.qty button { border: 0; background: transparent; width: 44px; height: 46px; font-size: 1.3rem; cursor: pointer; touch-action: manipulation; }
.qty button:disabled { color: #c9bcae; cursor: default; }
.qty button:not(:disabled):active { background: var(--tint); }
.qty input[type="number"], .qty span { width: 40px; min-height: 0; border: 0; box-shadow: none; text-align: center; padding: 0; font: 500 1rem var(--body); -moz-appearance: textfield; appearance: textfield; background: transparent; }
.btn-add { white-space: nowrap; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-small button { width: 40px; height: 40px; font-size: 1.1rem; }
.qty-small span { width: 28px; }

/* Confirmation after adding */
.sheet-done { flex: 1; overflow-y: auto; padding: var(--s7) var(--s6) var(--s6); display: flex; flex-direction: column; align-items: center; text-align: center; }
.done-check { width: 56px; height: 56px; fill: none; stroke: var(--wa); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s4); }
.done-check circle { stroke-dasharray: 151; stroke-dashoffset: 0; }
.done-check path { stroke-dasharray: 36; stroke-dashoffset: 0; }
.js-anim .sheet-done:not([hidden]) .done-check circle { animation: draw .5s var(--ease-out) both; }
.js-anim .sheet-done:not([hidden]) .done-check path { animation: draw-check .35s var(--ease-out) .3s both; }
@keyframes draw { from { stroke-dashoffset: 151; } }
@keyframes draw-check { from { stroke-dashoffset: 36; } }
.sheet-done h2 { font-size: 1.5rem; }
.done-item {
  width: 100%; max-width: 460px; display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center;
  text-align: left; padding: var(--s4); margin: var(--s2) 0 var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.done-item strong { display: block; font-weight: 600; font-size: .95rem; }
.done-item .small { display: block; font-size: .84rem; }
.done-actions { width: 100%; max-width: 460px; display: grid; gap: 10px; }
.done-note { max-width: 380px; margin: var(--s5) 0 0; }
/* Computer: the "Added to your cart" window is only as tall as what's in it */
@media (min-width: 821px) {
  .sheet:has(.sheet-done:not([hidden])) { height: auto; }
  .sheet-done { flex: none; padding-bottom: var(--s7); }
}

/* ---------- Phone menu (slides in from the left) ---------- */
.menu-drawer {
  position: fixed; top: 0; left: 0; z-index: 45; width: min(340px, 88%); height: 100%; height: 100dvh;
  background: var(--bg); box-shadow: 20px 0 60px rgba(0, 0, 0, .18); display: flex; flex-direction: column;
  transform: translateX(-100%); visibility: hidden; transition: transform .4s var(--ease-out), visibility 0s linear .4s;
}
.menu-drawer.open { transform: none; visibility: visible; transition: transform .4s var(--ease-out); }
.menu-logo { height: 64px; width: auto; }
.menu-links { list-style: none; margin: 0; padding: var(--s3) 0; flex: 1; overflow-y: auto; }
.menu-links a {
  display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 10px var(--s5);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu-links a span { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.menu-links a small { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.menu-links a:hover, .menu-links a:focus-visible { background: var(--tint); }
.menu-links li:first-child a span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d9822b; margin-right: 10px; vertical-align: middle; }
.menu-foot { padding: var(--s4) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: var(--s3); }
.menu-foot .small { margin: 0; }
.menu-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.menu-contact .btn { padding: 0 10px; font-size: .78rem; }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 45; width: min(460px, 100%); height: 100%; height: 100dvh;
  background: var(--bg); box-shadow: -20px 0 60px rgba(0, 0, 0, .18); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease-out), visibility 0s linear .45s;
}
.cart-drawer.open { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
.drawer-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px var(--s5); border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.drawer-count { font-family: var(--body); font-size: .95rem; color: var(--muted); letter-spacing: 0; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s4) var(--s5) var(--s6); }

.cart-empty { text-align: center; padding: var(--s7) 0 var(--s2); }
.cart-empty p:first-child { font-family: var(--display); font-size: 1.2rem; margin-bottom: var(--s2); }
.cart-empty .btn { margin-top: var(--s3); }

.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-list:empty { display: none; }
.cart-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: start; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 56px; height: 56px; border-radius: 2px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .drawing { width: 70%; height: auto; color: var(--ink); }
.line-info strong { display: block; font-weight: 600; font-size: .96rem; line-height: 1.3; }
.line-info .small { display: block; margin: 2px 0 0; font-size: .84rem; line-height: 1.4; }
.line-ctrl { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s2); }
.cart-price { font-family: var(--display); font-size: 1.05rem; white-space: nowrap; }

.checkout { display: grid; gap: var(--s5); padding-top: var(--s5); }
.field { display: grid; gap: var(--s2); border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { font-weight: 600; font-size: 1rem; padding: 0; margin-bottom: var(--s2); }
.field-stack { display: grid; gap: var(--s3); }
.input-field { display: grid; gap: 6px; }
.input-field > span { font-size: .9rem; font-weight: 500; }
.input-field em { font-style: normal; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="date"], input[type="number"] {
  width: 100%; min-height: 48px; font: 400 1rem var(--body); color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: 2px; padding: 12px 14px;
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: .88rem; margin: -4px 0 0; }
.field-error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--error); color: #fff; font: 700 .7rem/16px var(--body); text-align: center; }
.js-anim .field-error:not([hidden]) { animation: rise .25s var(--ease-out); }
.field-hint { margin: -4px 0 0; font-size: .84rem; }

.choice-list { display: grid; gap: var(--s2); }
.choice-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; } /* every payment box the same height, even when one wraps */
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--field); border-radius: 2px; cursor: pointer; background: #fff;
  transition: border-color var(--t-quick), box-shadow var(--t-quick);
}
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.choice span { flex: 1; }
.choice em { font-style: normal; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.summary { border-top: 1px solid var(--line); padding-top: var(--s3); }
.summary-line { display: flex; justify-content: space-between; color: var(--muted); font-size: .95rem; padding: 2px 0; }

.drawer-foot {
  flex: none; display: grid; gap: var(--s2); padding: var(--s3) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--bg); box-shadow: 0 -8px 24px rgba(48, 40, 35, .06);
}
.foot-total { display: flex; justify-content: space-between; align-items: baseline; }
.foot-total span { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
.foot-total strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; display: inline-block; }
.js-anim #total.bump { animation: bump .35s var(--ease-out); }
.drawer-foot .btn { width: 100%; }

.cart-sent { padding-top: var(--s4); }
.cart-sent h3 { font-size: 1.3rem; }
.next-steps { padding-left: 20px; margin: var(--s4) 0; color: var(--muted); display: grid; gap: var(--s2); }
.next-steps li::marker { color: var(--gold); font-family: var(--display); }
.sent-actions { display: grid; gap: 10px; margin-top: var(--s4); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 50;
  display: flex; align-items: center; gap: var(--s4); max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); padding: 10px 12px 10px 20px; border-radius: 2px; min-height: 48px;
  font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-action {
  border: 0; background: transparent; color: #f2d7b8; font: 600 .85rem var(--body); text-transform: uppercase; letter-spacing: .08em;
  min-height: 40px; padding: 0 10px; cursor: pointer; border-radius: 2px;
}
.toast-action:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Loading placeholders, sold out, discount code ---------- */
.product.skeleton { pointer-events: none; }
.product.skeleton .product-art { background: var(--tint); }
.product.skeleton .product-body span { display: block; height: 12px; border-radius: 2px; background: var(--tint); margin-bottom: 10px; width: 70%; }
.product.skeleton .product-body span:nth-child(2) { width: 40%; }
.product.skeleton .product-body span:nth-child(3) { width: 30%; height: 16px; margin: 12px 0 0; }
.products-empty { grid-column: 1 / -1; color: var(--muted); padding: var(--s5) 0; margin: 0; }
/* ---------- Photo gallery in the product window (swipe on phones; arrows + thumbnails on computers) ---------- */
.gallery { position: absolute; inset: 0; }
.gallery-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; outline: none;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.gallery-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .65); box-shadow: 0 0 0 1px rgba(48, 40, 35, .2); transition: transform .2s, background .2s; }
.gallery-dots span.on { background: #fff; transform: scale(1.35); }
.gallery-arrow {
  position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; cursor: pointer;
  display: none; place-items: center; background: rgba(255, 252, 248, .94); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.gallery-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow.prev { left: 12px; } .gallery-arrow.next { right: 12px; }
.gallery-arrow:disabled { opacity: 0; pointer-events: none; }
.gallery-thumbs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: none; justify-content: center; gap: 6px; flex-wrap: wrap; }
.gallery-thumbs button { width: 52px; height: 52px; padding: 0; border: 2px solid rgba(255, 255, 255, .9); border-radius: 4px; overflow: hidden; background: #fff; cursor: pointer; opacity: .8; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
@media (hover: hover) and (min-width: 821px) {
  .gallery-arrow { display: grid; }
  .gallery-dots { display: none; }
  .gallery-thumbs { display: flex; }
}

/* ---------- Sales & bundles ---------- */
.section-offers { padding-bottom: var(--s7); }
.offer-jump { display: flex; gap: var(--s2); flex-wrap: wrap; margin: calc(-1 * var(--s2)) 0 var(--s5); }
.offer-jump a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--field); color: var(--ink); text-decoration: none; font-size: .9rem; background: #fff;
}
.offer-jump a span { color: var(--muted); font-size: .8rem; }
.offer-jump a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.offer-group + .offer-group { margin-top: var(--s7); }
.offer-group h3 { font-size: 1.15rem; margin: 0 0 var(--s4); }
/* Computer: a group of exactly 3 gift sets fills the row instead of leaving a gap on the right */
@media (min-width: 981px) {
  .offer-group .products:has(> .product:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.offer-tag {
  position: absolute; left: 10px; top: 10px; z-index: 1; background: var(--bg); color: var(--ink); padding: 5px 10px; border-radius: 2px;
  font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 2px 8px rgba(48, 40, 35, .12);
}
.offer-tag.is-sale { background: var(--sale); color: #fff; }
.price s, .sheet-price s, .bundle-save s { color: var(--muted); font-family: var(--body); font-size: .82em; font-weight: 400; text-decoration-thickness: 1px; margin-left: 2px; }
.price.is-sale, .sheet-price:has(s) { color: var(--sale); }
.product-meta .ends { display: block; margin-top: 2px; font-size: .8rem; color: var(--sale); }
.sheet-price .save { display: inline-block; margin-left: 6px; font: 600 .82rem var(--body); color: var(--sale); vertical-align: middle; }
.sheet-offer { margin: 2px 0 0; font-size: .9rem; color: var(--sale); }
.bundle-box { margin: 0 0 var(--s5); padding: var(--s4); background: var(--tint); border-radius: var(--radius); }
.bundle-box .chip-group { margin-top: 0; }
.bundle-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.bundle-items li { display: flex; align-items: center; gap: var(--s3); }
.bundle-thumb { width: 52px; height: 52px; flex: none; border-radius: 2px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.bundle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bundle-thumb .drawing { width: 70%; height: auto; color: var(--ink); }
.bundle-name { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.bundle-name strong { font-weight: 600; font-size: .95rem; }
.bundle-name small { color: var(--muted); font-size: .82rem; }
.bundle-items em { font-style: normal; font-size: .9rem; color: var(--muted); }
.bundle-save { margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: .92rem; }
/* Gift sets with several pieces: one row per piece; each opens that piece's own steps */
.gift-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.gift-piece {
  width: 100%; display: flex; align-items: center; gap: var(--s3); min-height: 76px; padding: 10px var(--s3);
  background: #fff; border: 1px solid var(--field); border-radius: 2px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); touch-action: manipulation;
  transition: border-color var(--t-quick), box-shadow var(--t-quick), transform .1s;
}
.gift-piece:hover { border-color: var(--ink); }
.gift-piece:active { transform: scale(.99); }
.gift-piece:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gift-piece.is-missing { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.gift-piece .bundle-thumb { width: 56px; height: 56px; }
.gift-piece .bundle-thumb.is-design { background: #f6ecdf; }
.gift-piece .bundle-name small { overflow-wrap: anywhere; }
.gift-piece-go { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.gift-piece-go::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
}
.gift-piece-go svg { width: 18px; height: 18px; fill: none; stroke: var(--wa); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gift-piece.is-done .gift-piece-go { font-weight: 500; color: var(--muted); }
#gift-step .bundle-save { border-top: 0; padding-top: 0; color: var(--muted); }
/* A piece's footer: Back + "Next: …" (the long piece names are cut with … rather than pushing the button off screen) */
.foot-back { flex: none; padding: 14px 16px 14px 12px; gap: 4px; }
.btn-add.is-next { min-width: 0; }
.btn-add.is-next .add-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btn-add.is-next:has(#item-total:empty) { justify-content: center; }
.btn-add.is-next:has(#item-total:empty) :is(.add-sep, #item-total) { display: none; }

.soldout-tag {
  position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 2px;
  font: 500 .7rem var(--body); text-transform: uppercase; letter-spacing: .08em;
}
.product-art { position: relative; }
.product.is-soldout .product-art img, .product.is-soldout .product-art .drawing { opacity: .55; }
.product.is-soldout .product-cta { box-shadow: inset 0 0 0 1px var(--field); color: var(--muted); }
.sheet-soldout { background: var(--tint); padding: var(--s3) var(--s4); border-radius: 2px; font-size: .92rem; margin: calc(-1 * var(--s2)) 0 var(--s5); }
.btn:disabled { background: #b9aea4; cursor: not-allowed; transform: none; }
.line-warn { color: var(--error) !important; }

.discount { border-top: 1px solid var(--line); padding-top: var(--s2); }
.code-form { display: grid; gap: 6px; padding-top: var(--s1); }
.code-row { display: flex; gap: var(--s2); }
.code-row input { flex: 1; text-transform: uppercase; letter-spacing: .06em; }
.code-row .btn { min-height: 48px; padding: 0 18px; flex: none; }
.code-applied { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 44px; color: var(--wa); font-size: .95rem; }
.code-applied strong { letter-spacing: .04em; }
.summary-discount { color: var(--wa) !important; }

/* ---------- Phones: floating "View cart" bar ---------- */
.cart-bar { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s6); }
  .scent-groups { columns: 2; }
  .occasions { grid-template-columns: 1fr 1fr; }
  .addon-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  /* Phones: labeled Menu button | logo in the middle | cart (NN/g: label the menu, keep it salient) */
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s2); height: 68px; }
  .menu-btn { display: inline-flex; justify-self: start; }
  a.logo { justify-self: center; }
  .logo img { height: 58px; }
  .logo-text { display: none; }
  .nav { display: none; }
  .cart-btn { justify-self: end; }
  .site-header { transition: transform .3s var(--ease-out); }
  .site-header.header-hidden { transform: translateY(-100%); }

  .hero { padding: var(--s6) 0 var(--s7); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-grid { aspect-ratio: 1 / 1; }

  /* Product sheet becomes a bottom sheet */
  .sheet {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: calc(100vh - 32px); height: calc(100dvh - 32px);
    border-radius: 12px 12px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .2);
    transform: translateY(100%); opacity: 1; padding-top: 22px;
    transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .sheet.open { transform: none; transition: transform .45s var(--ease-out); }
  .sheet.dragging { transition: none; }
  .sheet-grab { display: flex; justify-content: center; align-items: center; position: absolute; top: 0; left: 0; right: 0; height: 22px; z-index: 2; touch-action: none; cursor: grab; }
  .sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: rgba(48, 40, 35, .3); }
  .sheet-close { top: 26px; right: 8px; }
  .sheet-scroll { display: block; }
  .sheet-media { position: relative; aspect-ratio: auto; height: min(36vh, 300px); }
  /* With the 3D preview: big at first, then it shrinks into a small bar while the options scroll
     (script.js sets the numbers; only transforms change, so it stays smooth) */
  .sheet-media.can-design { position: sticky; top: 0; height: min(40vh, 320px); }
  .sheet-media.collapsible { background: var(--bg); }
  .sheet-media.collapsible .studio-host, .sheet-media.collapsible .photo-view {
    transform-origin: 0 0; transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--ms, 1));
    clip-path: inset(0 var(--mclip, 0px) 0 var(--mclip, 0px) round var(--mr, 0px)); will-change: transform;
  }
  .sheet-media.collapsible .studio-tools, .sheet-media.collapsible .media-tabs,
  .sheet-media.collapsible .studio-hint, .sheet-media.collapsible .studio-loading { opacity: var(--tools-o, 1); }
  .sheet-media.collapsible.is-mini .studio-tools, .sheet-media.collapsible.is-mini .media-tabs,
  .sheet-media.collapsible.is-mini .studio-hint { visibility: hidden; }
  .sheet-media.collapsible .media-mini {
    display: flex; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: var(--mini-h, 96px);
    align-items: center; gap: var(--s3); padding: 0 64px 0 var(--mini-x, 120px);
    opacity: var(--mini-p, 0); pointer-events: none; border-bottom: 1px solid var(--line);
  }
  .media-mini-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
  .media-mini-text strong {
    font-family: var(--display); font-weight: 400; font-size: .95rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
  .media-mini-text span { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .media-mini-price { font-family: var(--display); font-size: 1.15rem; flex: none; }
  .sheet-media.collapsible.is-mini { box-shadow: 0 10px 18px -14px rgba(48, 40, 35, .45); }
  .sheet-media.collapsible.is-mini .mini-expand {
    display: block; position: absolute; left: 0; right: 60px; bottom: 0; height: var(--mini-h, 96px); z-index: 3;
    border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .photo-view.is-drawing { border-bottom: 1px solid var(--line); }
  .photo-view .drawing { width: auto; height: 60%; }
  .studio-hint { right: 56px; top: 12px; }
  /* no room for both on a phone: the "Your design / Real photo" switch wins */
  .media-tabs:not([hidden]) ~ .studio-hint { display: none; }
  .burn { max-width: none; }
  .sheet-info { padding: var(--s5) var(--s4) var(--s5); }
  .sheet-info h2 { font-size: 1.4rem; margin-right: 0; }
  .sheet-foot { padding: 10px var(--s4) calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(48, 40, 35, .06); }
  .sheet-done { padding: var(--s7) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); }

  .cart-bar {
    display: flex; align-items: center; gap: var(--s3); position: fixed; z-index: 30;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 56px; padding: 0 18px;
    background: var(--ink); color: var(--bg); border: 0; border-radius: 2px; cursor: pointer; text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font: 500 .88rem var(--body); letter-spacing: .02em;
  }
  .cart-bar svg { width: 20px; height: 20px; flex: none; }
  .cart-bar span { flex: 1; }
  .cart-bar strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
  .js-anim .cart-bar { animation: rise .4s var(--ease-out); }
  /* room for the bar goes inside the dark footer, not as an empty cream strip under it */
  body.has-cart-bar .site-footer { padding-bottom: calc(var(--s7) + 84px); }
  body.has-cart-bar .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 var(--s4); }
  .section { padding: var(--s7) 0; }
  .section-shop { padding-top: var(--s6); }
  .section-lede { font-size: 1rem; margin-bottom: var(--s5); }
  .cart-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cart-btn { padding: 0 10px; }

  .announce { font-size: .7rem; letter-spacing: .04em; padding: 8px 12px; }
  .hero { padding: var(--s5) 0 var(--s6); }
  .hero-inner { gap: 28px; }
  .lede { font-size: 1.08rem; }
  .hero-actions { gap: 10px; margin: 22px 0 var(--s4); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { font-size: .9rem; }
  .hero-badge { padding: 12px 18px; }
  .hero-badge-big { font-size: 1.1rem; }

  /* Shop: two cards per row. Tabs keep their words on one line and stretch to fill each row
     ("Diffusers, burners & more" gets a row of its own on narrow phones), so the edges line up */
  .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s4); }
  .tabs button { flex: 1 1 auto; padding: 8px 12px; font-size: .72rem; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: var(--s3); }
  .product-body h3 { font-size: .86rem; }
  .product-meta { font-size: .8rem; margin-bottom: var(--s2); }
  .product-foot { flex-direction: column; align-items: stretch; gap: var(--s2); }
  .product-cta { justify-content: center; min-height: 40px; }
  .addons { margin-top: var(--s6); }
  .addon-list { gap: 10px; }
  .addon-body { padding: 10px var(--s3) var(--s3); }
  .addon-top { flex-direction: column; gap: 2px; }
  .addon-top h4 { font-size: .85rem; }

  /* Steps: a compact list */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { border-top: 1px solid var(--line); padding: 14px 0; }
  .steps li:first-child { border-top: 1px solid var(--ink); }
  .steps h3 { font-size: .98rem; margin-bottom: 2px; }
  .steps p { font-size: .92rem; }

  .scent-marquee { margin: 0 calc(-1 * var(--s4)) var(--s5); }
  .scent-features figure { width: min(58vw, 230px); }
  .scent-groups { columns: 1; padding: var(--s4); }
  .scent-group li { gap: 10px; }
  .scent-art { width: 38px; height: 38px; }
  .scent-art svg { width: 30px; height: 30px; }

  .occasions { grid-template-columns: 1fr; gap: 0; }
  .occasions div { padding: 14px 0; }

  .chip { font-size: .88rem; padding: 6px 12px; }
  .opt-row { grid-template-columns: 44px 1fr auto 22px; gap: 10px; padding: 10px; }
  .opt-row-art { width: 44px; height: 44px; }

  .drawer-head { padding-left: var(--s4); }
  .drawer-body { padding: var(--s3) var(--s4) var(--s5); }
  .drawer-foot { padding-left: var(--s4); padding-right: var(--s4); }
}

/* =========================================================
   Netlify's free-plan "Powered by Netlify" badge sits in the bottom-right corner.
   script.js measures it (--badge-h) and adds .has-host-badge; these rules keep every
   bottom button above it. Nothing changes when there's no badge.
   ========================================================= */
html.has-host-badge .site-footer { padding-bottom: calc(var(--s7) + var(--badge-h)); }
html.has-host-badge .drawer-foot { padding-bottom: calc(var(--s4) + max(env(safe-area-inset-bottom, 0px), var(--badge-h))); }
html.has-host-badge .menu-foot { padding-bottom: calc(var(--s5) + max(env(safe-area-inset-bottom, 0px), var(--badge-h))); }
html.has-host-badge .toast { bottom: calc(24px + var(--badge-h)); }
@media (min-width: 821px) {
  html.has-host-badge .sheet { top: calc(50% - var(--badge-h) / 2); height: min(720px, calc(100dvh - 48px - var(--badge-h))); }
}
@media (max-width: 820px) {
  html.has-host-badge .sheet-foot { padding-bottom: calc(10px + max(env(safe-area-inset-bottom, 0px), var(--badge-h))); }
  html.has-host-badge .sheet-done { padding-bottom: calc(var(--s5) + max(env(safe-area-inset-bottom, 0px), var(--badge-h))); }
  html.has-host-badge .cart-bar { bottom: calc(12px + max(env(safe-area-inset-bottom, 0px), var(--badge-h))); }
  html.has-host-badge body.has-cart-bar .site-footer { padding-bottom: calc(var(--s7) + 84px + var(--badge-h)); }
  html.has-host-badge body.has-cart-bar .toast { bottom: calc(84px + max(env(safe-area-inset-bottom, 0px), var(--badge-h))); }
}

/* =========================================================
   Animations. Only when <html> has "js-anim" (set in index.html <head>,
   skipped for reduced-motion users). Opacity/transform only.
   Scroll fade is limited to photo blocks with class="reveal";
   the rest of the motion answers something the visitor did.
   ========================================================= */
.js-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js-anim .hero-grid.reveal { transform: scale(.98); }
.js-anim .reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bump { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.js-anim .product.pop { animation: rise .45s var(--ease-out) both; animation-delay: var(--d, 0s); }

@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes answer-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-4px); } }
.js-anim details[open] p { animation: answer-in .3s var(--ease-out); }
.js-anim details.closing p { animation: answer-out .16s ease-in forwards; }

@media print { .js-anim * { opacity: 1 !important; transform: none !important; } }

/* People who turned off animations get instant changes */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn.is-busy::before { display: none; }
  /* no rolling: the spotlight photos become a row you can swipe */
  .scent-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .scent-features figure[aria-hidden="true"], .marquee-toggle { display: none; }
}
