/* ============================================================
   HEALING RAYS — Atelier design system (fresh rebuild)
   The only site stylesheet besides the cinematic engine.
   Nothing here is carried over from the previous design.
   ============================================================ */

/* ---- Theme tokens (also consumed by cinematic.css) ---- */
:root {
  --cream-50: 253 252 247;
  --cream-100: 250 248 240;
  --cream-200: 244 239 224;
  --cream-300: 234 225 200;
  --sage-50: 240 249 240;
  --sage-100: 221 240 221;
  --sage-200: 184 214 184;
  --sage-300: 141 182 141;
  --sage-400: 96 150 96;
  --sage-500: 58 115 58;
  --sage-600: 37 90 37;
  --sage-700: 20 61 20;

  --ink: #232019;
  --ink-soft: #5c574c;
  --ink-faint: #8b8577;
  --paper: #fbf8f1;
  --paper-2: #f4efe2;
  --line: #e6dfcd;
  --brass: #c19a53;
  --brass-deep: #9c7a38;
  --rose: #d97a94;

  --ease: cubic-bezier(.16, .84, .44, 1);
  --shadow-card: 0 24px 60px -34px rgba(50, 42, 26, .5);
  --maxw: 1240px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgb(var(--sage-300)); color: #fff; }

/* ---- Type helpers ---- */
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--brass-deep);
}
.section-h {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; color: var(--ink);
}
.lede { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 56ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem); }
.section { padding: clamp(4.5rem, 10vw, 9rem) 0; position: relative; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Thin scroll progress ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, rgb(var(--sage-500)), var(--brass));
  z-index: 90; transition: width .1s linear;
}

/* ============================================================
   NAV
   ============================================================ */
#main-nav {
  position: sticky; top: 0; z-index: 70;
  background: rgb(var(--cream-50) / .72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
#main-nav.scrolled {
  background: rgb(var(--cream-50) / .92);
  border-bottom-color: var(--line);
  box-shadow: 0 20px 50px -40px rgba(50, 42, 26, .6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: .01em; color: rgb(var(--sage-700)); }
.nav-brand .ray {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe9b8, var(--brass) 55%, var(--brass-deep));
  box-shadow: 0 0 0 4px rgb(var(--sage-100)), 0 6px 18px -6px var(--brass);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-soft);
  position: relative; padding: .35rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: rgb(var(--sage-600)); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); border: 1px solid transparent; transition: background .25s, border-color .25s, transform .2s;
  position: relative;
}
.nav-icon:hover { background: rgb(var(--sage-100) / .7); transform: translateY(-1px); }
.nav-icon svg { width: 19px; height: 19px; }
.nav-badge {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: rgb(var(--sage-600)); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 9px; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease);
}
.nav-badge.show { transform: scale(1); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============================================================
   STORY — design-thinking narrative (sticky index + steps)
   ============================================================ */
#story { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.story-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story-rail { position: sticky; top: 120px; }
.story-rail .eyebrow { margin-bottom: 1.2rem; }
.story-rail h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.story-steps { display: grid; gap: 1.2rem; margin-top: 2rem; }
.story-step-link {
  display: flex; gap: .8rem; align-items: baseline; font-size: .85rem; color: var(--ink-faint);
  transition: color .3s; padding-left: 0;
}
.story-step-link .n { font-family: var(--serif); font-size: .8rem; color: var(--brass-deep); width: 1.4rem; }
.story-step-link.active { color: var(--ink); }
.story-body { display: grid; gap: clamp(2rem, 5vw, 3.6rem); }
.story-card {
  background: rgb(var(--cream-50)); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: 0 30px 60px -50px rgba(50,42,26,.5);
  scroll-margin-top: 110px;
}
.story-card .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: .9rem; }
.story-card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: .7rem; }
.story-card p { color: var(--ink-soft); font-size: 1.02rem; }
.story-card.hmw { background: rgb(var(--sage-700)); border-color: rgb(var(--sage-700)); }
.story-card.hmw .tag { color: #e6c98a; }
.story-card.hmw h3, .story-card.hmw p { color: var(--cream-100); }
.story-card.hmw h3 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.pain-list { display: grid; gap: .7rem; margin-top: 1.2rem; }
.pain-list li { list-style: none; display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; }
.pain-list li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: .55rem; border-radius: 50%; background: var(--rose); }
.idea-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.idea-feat { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; background: rgb(var(--cream-100)); }
.idea-feat .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(var(--sage-100)); color: rgb(var(--sage-600)); margin-bottom: .7rem; }
.idea-feat h4 { font-size: .92rem; font-weight: 600; margin-bottom: .25rem; }
.idea-feat p { font-size: .82rem; color: var(--ink-faint); }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } .story-rail { position: static; } .story-steps { display: none; } }

/* ============================================================
   QUIET BAND — cinematic still interlude (ships as a frame)
   ============================================================ */
.band {
  position: relative; min-height: 62vh; display: grid; place-items: center;
  text-align: center; overflow: hidden; background: #14100b; color: #fff;
}
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.band-scrim { position: absolute; inset: 0; background:
  radial-gradient(120% 120% at 50% 40%, transparent 35%, rgba(16,13,10,.72)),
  linear-gradient(180deg, rgba(16,13,10,.5), transparent 40%, rgba(16,13,10,.6)); }
.band-copy { position: relative; z-index: 2; padding: 2rem; max-width: 46ch; }
.band-copy .eyebrow { color: #e6c98a; }
.band-copy h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.06; margin: 1rem 0; text-shadow: 0 8px 50px rgba(0,0,0,.5); }
.band-copy p { color: rgba(255,255,255,.8); font-size: 1rem; }

/* ============================================================
   SHOP
   ============================================================ */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.chip {
  font-size: .8rem; font-weight: 500; letter-spacing: .01em; color: var(--ink-soft);
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(var(--cream-50));
  transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: .4rem;
}
.chip:hover { border-color: rgb(var(--sage-300)); color: var(--ink); }
.chip.active { background: rgb(var(--sage-700)); border-color: rgb(var(--sage-700)); color: #fff; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.filter-divider { width: 1px; align-self: stretch; background: var(--line); margin: 0 .3rem; }

#products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.4rem; }
@media (max-width: 1080px) { #products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { #products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem .9rem; } }

.card { display: flex; flex-direction: column; opacity: 0; transform: translateY(24px); }
.card.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.card-media {
  position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4/5;
  background: rgb(var(--cream-200)); box-shadow: 0 1px 0 var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2; background: rgb(var(--cream-50) / .92);
  color: rgb(var(--sage-700)); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 7px; backdrop-filter: blur(4px);
}
.card-wish {
  position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgb(var(--cream-50) / .9); color: #b7bcae; display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: transform .2s, color .2s;
}
.card-wish:hover { transform: scale(1.12); }
.card-wish.active { color: var(--rose); }
.card-wish svg { width: 16px; height: 16px; }
.card-add {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem; z-index: 2;
  background: rgb(var(--sage-700) / .96); color: #fff; border-radius: 11px; padding: .72rem;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
  backdrop-filter: blur(6px);
}
.card:hover .card-add { opacity: 1; transform: none; }
.card-add:hover { background: rgb(var(--sage-600)); }
.card-body { padding: .85rem .15rem 0; display: flex; flex-direction: column; gap: .28rem; }
.card-eyebrow { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--sage-500)); font-weight: 700; }
.card-name { font-family: var(--serif); font-size: 1.02rem; line-height: 1.2; color: var(--ink); font-weight: 500; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .15rem; }
.card-price { font-family: var(--serif); font-size: .98rem; color: rgb(var(--sage-700)); font-weight: 600; }
.card-colors { display: flex; gap: .28rem; }
.card-colors span { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.grid-empty { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; color: var(--ink-faint); }
.grid-empty svg { width: 40px; height: 40px; margin: 0 auto 1rem; opacity: .5; }

/* ============================================================
   FIT — interactive body map
   ============================================================ */
#fit { background: rgb(var(--sage-700)); color: var(--cream-100); }
#fit .eyebrow { color: #e6c98a; }
#fit .section-h { color: #fff; }
#fit .lede { color: rgb(var(--cream-200) / .85); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-top: 3rem; }
.bodymap { position: relative; max-width: 320px; margin: 0 auto; }
.bodymap svg { width: 100%; height: auto; overflow: visible; }
.bm-region { fill: rgb(var(--cream-200) / .1); stroke: rgb(var(--cream-200) / .35); stroke-width: 1.5; cursor: pointer; transition: fill .3s, stroke .3s; }
.bm-region:hover { fill: rgb(230 201 138 / .35); stroke: #e6c98a; }
.bm-region.active { fill: rgb(230 201 138 / .55); stroke: #e6c98a; stroke-width: 2; }
.bm-body { fill: rgb(var(--cream-200) / .06); stroke: rgb(var(--cream-200) / .2); stroke-width: 1.5; }
.bm-label { fill: var(--cream-100); font-size: 11px; font-weight: 600; font-family: var(--sans); pointer-events: none; letter-spacing: .02em; }
.fit-info h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; margin-bottom: .6rem; }
.fit-info p { color: rgb(var(--cream-200) / .82); margin-bottom: 1.4rem; }
.fit-areas { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.fit-area-chip { font-size: .8rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgb(var(--cream-200) / .3); color: var(--cream-100); transition: all .25s; }
.fit-area-chip:hover, .fit-area-chip.active { background: #e6c98a; border-color: #e6c98a; color: rgb(var(--sage-700)); font-weight: 600; }
.fit-count { font-size: .85rem; color: rgb(var(--cream-200) / .7); }
.btn-light {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--cream-100); color: rgb(var(--sage-700));
  font-weight: 600; font-size: .85rem; padding: .8rem 1.5rem; border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }
@media (max-width: 780px) { .fit-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONCIERGE showcase
   ============================================================ */
#concierge { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.con-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.con-feats { display: grid; gap: 1rem; margin-top: 2rem; }
.con-feat { display: flex; gap: 1rem; align-items: flex-start; }
.con-feat .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgb(var(--sage-100)); color: rgb(var(--sage-600)); display: grid; place-items: center; }
.con-feat h4 { font-size: .98rem; font-weight: 600; margin-bottom: .15rem; }
.con-feat p { font-size: .88rem; color: var(--ink-soft); }
.con-demo {
  background: rgb(var(--cream-50)); border: 1px solid var(--line); border-radius: 24px; padding: 1.4rem;
  box-shadow: var(--shadow-card);
}
.con-demo-head { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.con-demo-orb { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe9b8, var(--brass) 55%, var(--brass-deep)); box-shadow: 0 0 0 4px rgb(var(--sage-100)); }
.con-demo-head b { font-size: .92rem; }
.con-demo-head span { font-size: .75rem; color: var(--ink-faint); }
.con-bubble { padding: .7rem 1rem; border-radius: 14px; font-size: .88rem; margin-bottom: .7rem; max-width: 88%; }
.con-bubble.user { background: rgb(var(--sage-700)); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.con-bubble.ray { background: rgb(var(--cream-200)); color: var(--ink); border-bottom-left-radius: 4px; }
.con-cta { margin-top: 1rem; }
@media (max-width: 820px) { .con-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTING / testimonials
   ============================================================ */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.test-card { background: rgb(var(--cream-50)); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.test-card .stars { color: var(--brass); font-size: .8rem; letter-spacing: .1em; margin-bottom: .8rem; }
.test-card p { font-size: .95rem; color: var(--ink); line-height: 1.6; }
.test-card .who { display: flex; align-items: center; gap: .7rem; margin-top: 1.2rem; }
.test-card .who .av { width: 38px; height: 38px; border-radius: 50%; background: rgb(var(--sage-200)); color: rgb(var(--sage-700)); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.test-card .who b { font-size: .85rem; display: block; }
.test-card .who span { font-size: .76rem; color: var(--ink-faint); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; text-align: center; }
.stat b { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); color: rgb(var(--sage-700)); display: block; line-height: 1; }
.stat span { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 760px) { .test-grid { grid-template-columns: 1fr; } .stat-row { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: rgb(var(--sage-700)); color: var(--cream-100); padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.foot-brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.foot-brand .ray { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe9b8, var(--brass) 55%, var(--brass-deep)); }
footer p { color: rgb(var(--cream-200) / .75); font-size: .9rem; max-width: 34ch; }
.foot-col h5 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #e6c98a; margin-bottom: 1rem; }
.foot-col a { display: block; font-size: .88rem; color: rgb(var(--cream-200) / .82); padding: .3rem 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgb(var(--cream-200) / .15); font-size: .8rem; color: rgb(var(--cream-200) / .6); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CART DRAWER + overlay
   ============================================================ */
#overlay {
  position: fixed; inset: 0; background: rgba(35, 30, 22, .5); backdrop-filter: blur(2px);
  z-index: 80; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
#overlay.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 85;
  background: var(--paper); box-shadow: -30px 0 60px -30px rgba(0,0,0,.4);
  transform: translateX(100%); transition: transform .5s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.drawer-close:hover { background: rgb(var(--sage-100)); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.5rem; }
.cart-line { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 68px; height: 84px; object-fit: cover; border-radius: 10px; background: rgb(var(--cream-200)); flex: none; }
.cart-line .cl-body { flex: 1; min-width: 0; }
.cart-line .cl-name { font-family: var(--serif); font-size: .96rem; font-weight: 500; }
.cart-line .cl-meta { font-size: .78rem; color: var(--ink-faint); margin: .1rem 0 .5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; font-size: 1rem; color: var(--ink-soft); }
.qty button:hover { background: rgb(var(--sage-100)); }
.qty span { min-width: 26px; text-align: center; font-size: .82rem; font-weight: 600; }
.cl-price { font-family: var(--serif); font-weight: 600; color: rgb(var(--sage-700)); }
.cl-remove { font-size: .74rem; color: var(--ink-faint); margin-top: .4rem; }
.cl-remove:hover { color: var(--rose); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-faint); }
.cart-empty svg { width: 46px; height: 46px; margin: 0 auto 1rem; opacity: .4; }
.drawer-foot { padding: 1.3rem 1.5rem; border-top: 1px solid var(--line); background: rgb(var(--cream-100)); }
.cart-row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .5rem; color: var(--ink-soft); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: .8rem 0 1rem; }
.promo-row { display: flex; gap: .5rem; margin-bottom: 1rem; }
.promo-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; font-size: .82rem; background: var(--paper); }
.promo-row input:focus { outline: none; border-color: rgb(var(--sage-400)); }
.promo-row button { padding: .6rem 1rem; border-radius: 10px; background: rgb(var(--sage-100)); font-size: .8rem; font-weight: 600; color: rgb(var(--sage-700)); }
.promo-msg { font-size: .78rem; margin-bottom: .8rem; min-height: 1em; }
.promo-msg.ok { color: rgb(var(--sage-500)); }
.promo-msg.err { color: var(--rose); }
.btn-primary {
  width: 100%; background: rgb(var(--sage-700)); color: #fff; font-weight: 600; font-size: .92rem;
  padding: .95rem; border-radius: 12px; letter-spacing: .02em; transition: background .25s, transform .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-primary:hover { background: rgb(var(--sage-600)); transform: translateY(-1px); }

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
#product-modal {
  position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
#product-modal.open { opacity: 1; visibility: visible; }
#product-modal .pm-back { position: absolute; inset: 0; background: rgba(35,30,22,.55); backdrop-filter: blur(3px); }
.pm-card {
  position: relative; z-index: 2; background: var(--paper); border-radius: 24px; overflow: hidden;
  width: min(880px, 100%); max-height: 90vh; display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.5); transform: scale(.96); transition: transform .4s var(--ease);
}
#product-modal.open .pm-card { transform: none; }
.pm-media { position: relative; background: rgb(var(--cream-200)); }
.pm-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.pm-info { padding: clamp(1.5rem, 3vw, 2.4rem); overflow-y: auto; }
.pm-info .card-tag { position: static; display: inline-block; margin-bottom: .8rem; }
.pm-info h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; margin-bottom: .5rem; }
.pm-price { font-family: var(--serif); font-size: 1.4rem; color: rgb(var(--sage-700)); font-weight: 600; margin-bottom: 1rem; }
.pm-desc { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.pm-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .6rem; }
.pm-colors { display: flex; gap: .5rem; margin-bottom: 1.4rem; }
.pm-swatch { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; transition: transform .2s; position: relative; }
.pm-swatch:hover { transform: scale(1.12); }
.pm-swatch.active::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgb(var(--sage-600)); }
.pm-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgb(var(--cream-50) / .9); display: grid; place-items: center; backdrop-filter: blur(4px); transition: transform .2s; }
.pm-close:hover { transform: rotate(90deg); }
@media (max-width: 680px) { .pm-card { grid-template-columns: 1fr; max-height: 92vh; } .pm-media img { min-height: 240px; max-height: 40vh; } }

/* ============================================================
   RAY — the AI concierge (floating orb + panel + whispers)
   ============================================================ */
#ray-orb {
  position: fixed; bottom: 24px; right: 24px; z-index: 75; width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffe9b8, var(--brass) 52%, var(--brass-deep));
  box-shadow: 0 12px 34px -8px rgba(155,122,56,.7), 0 0 0 0 rgb(193 154 83 / .5);
  display: grid; place-items: center; color: #fff; transition: transform .3s var(--ease), box-shadow .3s;
  animation: rayPulse 3.4s ease-in-out infinite;
}
#ray-orb:hover { transform: scale(1.08); }
#ray-orb svg { width: 26px; height: 26px; }
@keyframes rayPulse { 0%,100% { box-shadow: 0 12px 34px -8px rgba(155,122,56,.7), 0 0 0 0 rgb(193 154 83 / .45); } 50% { box-shadow: 0 12px 34px -8px rgba(155,122,56,.7), 0 0 0 14px rgb(193 154 83 / 0); } }
body.in-cine #ray-orb { opacity: 0; visibility: hidden; pointer-events: none; }

/* whisper toast rising from the orb */
#ray-whisper {
  position: fixed; bottom: 98px; right: 24px; z-index: 74; max-width: 280px;
  background: rgb(var(--cream-50)); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px;
  padding: .85rem 1rem; box-shadow: var(--shadow-card); font-size: .86rem; color: var(--ink);
  opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
#ray-whisper.show { opacity: 1; transform: none; pointer-events: auto; }
#ray-whisper .wh-head { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: .3rem; display: flex; align-items: center; justify-content: space-between; }
#ray-whisper .wh-x { color: var(--ink-faint); font-size: 1rem; line-height: 1; }
#ray-whisper .wh-cta { margin-top: .6rem; font-size: .78rem; font-weight: 600; color: rgb(var(--sage-700)); }

/* the full chat panel */
#ray-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 86; width: min(390px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 48px)); background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); display: flex; flex-direction: column;
  transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease), opacity .4s, visibility .4s;
}
#ray-panel.open { transform: none; opacity: 1; visibility: visible; }
.ray-head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; background: rgb(var(--sage-700)); color: #fff; }
.ray-head .orb-sm { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffe9b8, var(--brass) 52%, var(--brass-deep)); flex: none; box-shadow: 0 0 0 3px rgb(255 255 255 / .12); }
.ray-head b { font-size: .98rem; display: block; }
.ray-head span { font-size: .74rem; color: rgb(var(--cream-200) / .8); display: flex; align-items: center; gap: .35rem; }
.ray-head span .live { width: 7px; height: 7px; border-radius: 50%; background: #7fdc8a; box-shadow: 0 0 8px #7fdc8a; }
.ray-head .ray-min { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s; }
.ray-head .ray-min:hover { background: rgb(255 255 255 / .12); }
.ray-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.ray-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 15px; font-size: .9rem; line-height: 1.5; animation: rayIn .35s var(--ease); }
@keyframes rayIn { from { opacity: 0; transform: translateY(8px); } }
.ray-msg.ray { background: rgb(var(--cream-200)); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.ray-msg.me { background: rgb(var(--sage-700)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ray-msg a { text-decoration: underline; }
.ray-typing { align-self: flex-start; display: flex; gap: 4px; padding: .8rem 1rem; background: rgb(var(--cream-200)); border-radius: 15px; }
.ray-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: rayDot 1.2s infinite; }
.ray-typing i:nth-child(2) { animation-delay: .18s; } .ray-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes rayDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
/* inline product cards inside chat */
.ray-cards { display: flex; gap: .6rem; overflow-x: auto; padding: .2rem 0 .4rem; align-self: stretch; scrollbar-width: thin; }
.ray-mini { flex: none; width: 128px; background: rgb(var(--cream-50)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.ray-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.ray-mini img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: rgb(var(--cream-200)); }
.ray-mini .rm-b { padding: .5rem .55rem; }
.ray-mini .rm-n { font-size: .72rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ray-mini .rm-p { font-family: var(--serif); font-size: .8rem; color: rgb(var(--sage-700)); font-weight: 600; margin-top: .2rem; }
.ray-mini .rm-add { display: block; width: 100%; text-align: center; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--sage-700)); border-top: 1px solid var(--line); padding: .45rem; }
.ray-mini .rm-add:hover { background: rgb(var(--sage-100)); }
.ray-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .6rem; }
.ray-quick button { font-size: .76rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: rgb(var(--cream-50)); transition: all .2s; }
.ray-quick button:hover { border-color: rgb(var(--sage-300)); color: var(--ink); }
.ray-input { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line); background: rgb(var(--cream-100)); }
.ray-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1rem; font-size: .88rem; background: var(--paper); }
.ray-input input:focus { outline: none; border-color: rgb(var(--sage-400)); }
.ray-input button { width: 42px; height: 42px; border-radius: 50%; background: rgb(var(--sage-700)); color: #fff; display: grid; place-items: center; flex: none; transition: background .2s, transform .2s; }
.ray-input button:hover { background: rgb(var(--sage-600)); transform: scale(1.05); }
.ray-input button svg { width: 18px; height: 18px; }

/* toast */
#toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.toast { background: rgb(var(--sage-700)); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-size: .86rem; font-weight: 500; box-shadow: 0 16px 40px -14px rgba(0,0,0,.5); display: flex; align-items: center; gap: .6rem; animation: toastIn .4s var(--ease); }
.toast svg { width: 17px; height: 17px; color: #a9e0af; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px); } }

/* back to top */
#back-to-top { position: fixed; bottom: 24px; left: 24px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; background: rgb(var(--sage-700)); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
#back-to-top.show { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { background: rgb(var(--sage-600)); }
body.in-cine #back-to-top { opacity: 0 !important; visibility: hidden !important; }

@media (max-width: 520px) {
  #ray-panel { bottom: 0; right: 0; width: 100vw; height: 88vh; border-radius: 22px 22px 0 0; }
  #ray-orb { bottom: 18px; right: 18px; }
}
