/* ==========================================================================
   PX Ampoule PDP — Option B: Flagship treatment (CRO PDP)
   Clear buy path, benefit-driven, trust chips, sticky buy bar on mobile.
   Extends base.css tokens; never overrides a token value.
   ========================================================================== */

/* Option B keeps a persistent buy bar at all viewports — reserve space for it. */
body { padding-bottom: 84px; }
@media (max-width: 760px) { body { padding-bottom: 76px; } }

/* ---------- Hero (split, buy-forward) ---------- */
.hero-b { padding-top: clamp(28px, 4vw, 48px); }
.hero-b__grid {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero-b__media { order: -1; }
.hero-b__shot {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--paper-soft); border: 1px solid var(--line);
  box-shadow: var(--shadow); aspect-ratio: 4 / 5;
}
.hero-b__shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-b__ribbon {
  position: absolute; top: 0; right: 0; padding: 10px 16px;
  background: var(--cypress); color: #f7efde; border-bottom-left-radius: var(--r);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

.hero-b__crumb { font-size: 12.5px; color: var(--shiitake); margin-bottom: 14px; }
.hero-b__crumb a { color: var(--cypress); }
.hero-b__name { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.06; margin-bottom: 6px; }
.hero-b__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--cypress); margin-bottom: 16px; }
.hero-b__lede { color: var(--jet-60); margin-bottom: 18px; max-width: 44ch; }

/* buy box */
.buy-b { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 16px; }
.buy-b__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.buy-b__amt { font-family: var(--serif); font-size: 2.4rem; color: var(--cypress-deep); line-height: 1; }
.buy-b__amt sup { font-size: .5em; top: -.6em; }
.buy-b__fmt { font-size: 13.5px; color: var(--jet-60); }
.buy-b__fmt strong { color: var(--jet); }
.buy-b__foot { font-size: 12.5px; color: var(--shiitake); margin-top: 4px; }
.buy-b__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-b__cta .btn { flex: 1 1 160px; }

/* trust chips */
.trust-b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust-b__chip {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--r);
  font-size: 13px; color: var(--jet-60); font-weight: 500;
}
.trust-b__chip svg { width: 18px; height: 18px; color: var(--sage); flex: none; }
.trust-b__chip strong { color: var(--jet); display: block; font-size: 13.5px; }

/* ---------- Section helpers ---------- */
.sec-b__head { text-align: center; max-width: 60ch; margin: 0 auto clamp(28px, 4vw, 44px); }
.sec-b__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 10px; }
.sec-b__head .lede { margin-top: 12px; }
.sec-b--alt { background: var(--paper-soft); }

/* ---------- Benefit explorer (concern → benefit) ---------- */
.ben-b__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ben-b__card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.ben-b__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ben-b__ic {
  width: 46px; height: 46px; border-radius: 999px; background: rgba(138,144,101,.14);
  color: var(--cypress); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.ben-b__ic svg { width: 24px; height: 24px; }
.ben-b__card h3 { font-size: 1.15rem; }
.ben-b__card p { font-size: 14px; color: var(--jet-60); line-height: 1.55; }
.ben-b__map { margin-top: 14px; font-size: 13px; color: var(--shiitake); }

/* ---------- Ritual (3-step timeline) ---------- */
.ritual-b__steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  position: relative;
}
.ritual-b__steps::before {
  content: ""; position: absolute; top: 22px; left: 12%; right: 12%; height: 2px;
  background: var(--line); z-index: 0;
}
.ritual-b__step { position: relative; z-index: 1; padding: 0 14px; text-align: center; }
.ritual-b__num {
  width: 46px; height: 46px; border-radius: 999px; background: var(--cypress); color: #f7efde;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif);
  font-size: 1.2rem; margin-bottom: 14px; border: 4px solid var(--paper);
}
.ritual-b__step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.ritual-b__step p { font-size: 14px; color: var(--jet-60); line-height: 1.55; max-width: 28ch; margin-inline: auto; }
.ritual-b__step strong { color: var(--cypress-deep); }

/* ---------- Ingredient spotlight ---------- */
.spot-b__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.spot-b__active {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 28px 26px; display: flex; gap: 18px; align-items: flex-start;
}
.spot-b__badge {
  width: 60px; height: 60px; border-radius: 999px; flex: none;
  background: var(--cypress-deep); color: #f3eada; display: inline-flex;
  align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.5rem;
}
.spot-b__active h3 { font-size: 1.25rem; color: var(--jet); margin-bottom: 3px; }
.spot-b__active .inci { font-size: 12.5px; color: var(--shiitake); font-style: italic; display: block; margin-bottom: 8px; }
.spot-b__active p { font-size: 14px; color: var(--jet-60); line-height: 1.55; }
.spot-b__inci {
  margin-top: 22px; padding: 20px 22px; background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); font-size: 14px; line-height: 1.7; color: var(--jet-60);
}
.spot-b__inci strong { color: var(--jet); font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ---------- Safety ---------- */
.safe-b__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.safe-b__panel { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 24px; }
.safe-b__panel h3 { font-size: 1.1rem; color: var(--cypress-deep); margin-bottom: 12px; }
.safe-b__list { display: grid; gap: 9px; }
.safe-b__list li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; color: var(--jet); }
.safe-b__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--sage); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/10px no-repeat; }
.safe-b__notes p { font-size: 14px; line-height: 1.6; color: var(--jet-60); margin-bottom: 9px; }

/* ---------- More products (carousel of cards) ---------- */
.more-b__rail { position: relative; }
.more-b__viewport { overflow: hidden; padding: 4px 0; }
.more-b__track { display: flex; gap: 18px; will-change: transform; }
.more-b__card {
  flex: 0 0 clamp(240px, 30vw, 300px); display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px; background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.more-b__cat { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.more-b__card h3 { font-size: 1.1rem; }
.more-b__fmt { font-size: 13px; color: var(--shiitake); }
.more-b__link { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--cypress); }

/* ---------- Booking / enquiry split ---------- */
.book-b__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
.book-b__locs { display: grid; gap: 12px; margin-top: 8px; }
.book-b__loc { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.book-b__loc h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--shiitake); margin-bottom: 4px; font-weight: 600; }
.book-b__loc p { font-size: 14px; color: var(--jet); }
.book-b__hours { margin-top: 14px; }
.book-b__hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.book-b__hours li:last-child { border-bottom: 0; }
.book-b__hours span:first-child { color: var(--jet-60); }
.book-b__hours span:last-child { font-weight: 600; color: var(--jet); }

/* ---------- Sticky buy bar (desktop + mobile) — repurposes .sticky-book ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; gap: 14px;
  padding: 12px clamp(16px, 4vw, 40px) calc(12px + env(safe-area-inset-bottom));
  background: rgba(243, 234, 218, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(33,35,34,.08);
}
.sticky-buy__info { display: flex; flex-direction: column; min-width: 0; }
.sticky-buy__name { font-family: var(--serif); font-size: 16px; color: var(--jet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font-size: 13.5px; color: var(--cypress-deep); font-weight: 600; }
.sticky-buy__price small { color: var(--shiitake); font-weight: 400; }
.sticky-buy .btn { margin-left: auto; }
.sticky-buy__ok { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 81;
  background: var(--cypress-deep); color: #f3eada; padding: 12px 18px; border-radius: 999px; font-size: 13px;
  box-shadow: var(--shadow); max-width: 90vw; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-b__grid { grid-template-columns: 1fr; }
  .hero-b__shot { max-width: 460px; margin-inline: auto; aspect-ratio: 1 / 1; }
  .spot-b__grid, .safe-b__grid, .book-b__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ben-b__grid { grid-template-columns: 1fr; }
  .ritual-b__steps { grid-template-columns: 1fr; gap: 24px; }
  .ritual-b__steps::before { display: none; }
  .ritual-b__num { margin-bottom: 8px; }
  .trust-b { grid-template-columns: 1fr; }
  body { padding-bottom: 84px; }
}
@media (max-width: 540px) {
  .buy-b__cta .btn { flex: 1 1 auto; }
  .sticky-buy__name { font-size: 14px; max-width: 44vw; }
}
