/* Product page. Builds on styles.css tokens; --c is the blend's label color. */
.pdp .nav { background: rgb(var(--paper) / 0.86); }

/* hero: stage + buy box */
.pdp-hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 128px; padding-bottom: clamp(80px, 10vw, 140px); }
.pdp-hero > * { min-width: 0; }
.stage-col { position: sticky; top: 120px; }
.stage {
  position: relative; height: min(76vh, 780px); min-height: 520px; border-radius: var(--r); overflow: clip; isolation: isolate;
  background: radial-gradient(60% 54% at 50% 42%, #fff 0%, color-mix(in srgb, var(--c) 10%, #fbfaf8) 58%, color-mix(in srgb, var(--c) 22%, var(--bg)) 100%);
}
.stage__word {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: -1;
  font-family: var(--serif); font-style: italic; font-size: clamp(8rem, 19vw, 18rem); line-height: 1; letter-spacing: -0.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 45%, transparent); user-select: none; padding-bottom: 0.1em;
}
.stage__word--long { font-size: clamp(5.5rem, 12vw, 12rem); }
/* no blend mode: packshots are cut out (img/pc) and photos are opaque, so the outlined name stays behind the image */
.stage__bag { position: absolute; inset: 6% 10%; display: grid; place-items: center; }
.stage__bag img { width: 100%; height: 100%; object-fit: contain; transition: opacity 250ms ease; }
.stage.is-photo .stage__bag { inset: 0; }
.stage.is-photo .stage__bag img { object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 68px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: clip; background: var(--tile); cursor: pointer; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb:active { transform: scale(0.96); }
.thumb.is-on { border-color: var(--fg); }

.buy { padding-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--fg-2); }
.crumbs i { font-size: 12px; }
.crumbs a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--fg); } }
.buy__title { font-family: var(--serif); font-size: clamp(3.25rem, 6.4vw, 5.75rem); line-height: 0.98; letter-spacing: -0.03em; margin-top: 18px; text-wrap: balance; }
.buy__kind { margin-top: 8px; color: var(--fg-2); }
.buy__rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.9375rem; color: var(--fg-2); }
.buy__rating .rstars svg { width: 15px; height: 15px; }

/* the key attribute: who the product page lists it as safe for */
.safe { margin-top: 24px; padding: 18px 18px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--c) 10%, var(--bg-2)); }
.safe__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.9375rem; font-weight: 500; }
.safe__n { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; }
.safe__grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.safe__cell { display: grid; justify-items: center; gap: 6px; padding: 16px 6px 12px; border-radius: 12px; background: rgb(255 255 255 / 0.7); text-align: center; }
.safe__dot { width: 30px; height: 30px; border-radius: 50%; background: rgb(var(--ink) / 0.1); }
.safe__cell.is-on .safe__dot { background: var(--fg); box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--c) 70%, #fff); }
.safe__lab { font-weight: 500; font-size: 0.9375rem; line-height: 1.2; }
.safe__state { font-size: 0.75rem; color: var(--fg-2); }
.safe__cell:not(.is-on) .safe__lab { color: var(--fg-3); }
.safe__note { margin-top: 12px; font-size: 0.8125rem; color: var(--fg-2); }

.buy__lede { margin-top: 22px; color: var(--fg-1); font-size: 1.125rem; max-width: 48ch; }
.buy__price { margin-top: 26px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price { font-family: var(--serif); font-size: 3rem; line-height: 1; display: inline-block; font-variant-numeric: tabular-nums; }
.per { color: var(--fg-2); font-size: 0.9375rem; display: inline-block; }
.buy__form { margin-top: 26px; display: grid; gap: 20px; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { font-size: 0.875rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.seg__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.seg__thumb { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; background: var(--fg); will-change: transform, width; }
.seg label { position: relative; z-index: 1; height: 46px; display: grid; place-items: center; cursor: pointer; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--fg-2); transition: color 250ms ease; white-space: nowrap; padding-inline: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { color: var(--on-fg); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg label:not(:has(input:checked)):hover { color: var(--fg); } }
.buy__row { display: flex; gap: 12px; }
.buy__cta { flex: 1; height: 56px; justify-content: space-between; padding-inline: 28px; font-size: 1.0625rem; }
.buy__cta-price { font-variant-numeric: tabular-nums; padding-left: 16px; border-left: 1px solid rgb(var(--paper) / 0.3); }
.buy__facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.buy__facts li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--fg-1); }
.buy__facts i { font-size: 20px; width: 28px; text-align: center; color: var(--fg-2); }

/* what's inside: pinned, one oil per step */
.notes { position: relative; overflow: clip; color: #fff; }
.notes__pin { position: relative; height: 100dvh; min-height: 560px; display: grid; place-items: center; }
.notes__h { position: absolute; top: 112px; left: 0; right: 0; text-align: center; font-size: 0.9375rem; font-weight: 500; color: rgb(255 255 255 / 0.75); padding-inline: var(--gutter); }
.notes__stage { position: relative; width: 100%; height: 60%; }
.note { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding-inline: var(--gutter); pointer-events: none; }
.note__word { font-family: var(--serif); font-size: clamp(3.75rem, 12vw, 11.5rem); line-height: 0.92; letter-spacing: -0.04em; padding-bottom: 0.1em; }
.note__word .nc { display: inline-block; will-change: transform; }
.note__line { margin-top: 24px; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); color: rgb(255 255 255 / 0.82); max-width: 40ch; }
.note:not(.is-active) { visibility: hidden; }
.notes__tabs { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; padding: 0 var(--gutter); list-style: none; font-size: 0.9375rem; }
.notes__tabs li { color: rgb(255 255 255 / 0.5); position: relative; padding-bottom: 8px; transition: color 300ms ease; }
.notes__tabs li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff; transform: scaleX(0); transition: transform 500ms var(--ease-out); }
.notes__tabs li.is-active { color: #fff; }
.notes__tabs li.is-active::after { transform: scaleX(1); }

/* how to use it: 3 unequal cells */
.profile__grid { margin-top: 56px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; }
.profile__grid--two { grid-template-columns: 1.6fr 1fr; }
.pcell { border-radius: var(--r); padding: clamp(24px, 3vw, 40px); background: var(--bg-2); display: flex; flex-direction: column; min-height: 320px; }
.pcell h3 { font-size: 0.9375rem; font-weight: 500; color: var(--fg-2); font-family: var(--sans); }
.pcell p { color: var(--fg-1); margin-top: 12px; }
.pcell__big { font-family: var(--serif); font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.15; color: var(--fg) !important; margin-top: auto !important; padding-top: 32px; }
.pcell__mid { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; color: var(--fg) !important; }
.pcell--use { background: color-mix(in srgb, var(--c) 16%, var(--bg)); }
.pcell--quote { background: var(--fg); color: var(--on-fg); justify-content: space-between; }
.pcell--quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
.pcell--quote p { color: rgb(var(--paper) / 0.7); }

/* sets */
.inset .lede { margin-top: 12px; }
.grid--set { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }

/* details (wholesale, gift card, gift box) */
.gdetail__copy { max-width: 760px; }
.gdetail__copy p, .blist li { color: var(--fg-1); font-size: 1.0625rem; margin-top: 16px; }
.gdetail__copy .h2 + p { margin-top: 28px; }
.blist { padding-left: 1.2em; }

/* reviews: cards stack and recede */
.pdp-reviews { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.pdp-reviews__head { position: sticky; top: 140px; }
.pdp-reviews__head .score { margin-top: 28px; }
.stack { display: grid; gap: 24px; padding-bottom: 8vh; }
.stack__card { position: sticky; top: calc(130px + var(--i, 0) * 26px); margin: 0; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r); background: var(--bg-2); min-height: 260px; display: flex; flex-direction: column; box-shadow: 0 -12px 32px rgb(var(--shade) / 0.08); transform-origin: 50% 0; }
.stack__card:nth-child(1) { --i: 0; }
.stack__card:nth-child(2) { --i: 1; background: var(--bg-3); }
.stack__card:nth-child(3) { --i: 2; }
.stack__card:nth-child(4) { --i: 3; background: color-mix(in srgb, var(--c) 14%, var(--bg)); }
.stack__card:nth-child(5) { --i: 4; }
.stack__card .rstars svg { width: 18px; height: 18px; }
.stack__card blockquote { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.2; }
.stack__card figcaption { margin-top: auto; padding-top: 24px; font-size: 0.9375rem; font-weight: 500; }

/* floating buy bar */
.bar {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  width: min(640px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px;
  border-radius: 999px; background: rgb(var(--paper) / 0.9); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 40px rgb(var(--shade) / 0.18), 0 0 0 1px var(--line);
  translate: -50% 160%; transition: translate 600ms var(--ease-out);
}
.bar.is-on { translate: -50% 0; }
.bar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--tile); mix-blend-mode: multiply; }
.bar__info { flex: 1; min-width: 0; }
.bar__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__variant { font-size: 0.8125rem; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__cta { height: 48px; padding-inline: 20px; gap: 14px; }

@media (max-width: 1100px) {
  .pdp-hero { grid-template-columns: 1fr; padding-top: 112px; }
  .stage-col { position: static; }
  .stage { height: min(68vh, 620px); min-height: 420px; }
  .profile__grid, .profile__grid--two { grid-template-columns: 1fr 1fr; }
  .pcell--use { grid-column: 1 / -1; }
  .grid--set { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .pdp-reviews { grid-template-columns: 1fr; }
  .pdp-reviews__head { position: static; }
  .grid--set { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pdp-hero { padding-top: 96px; gap: 28px; }
  .stage { height: 420px; min-height: 0; }
  .safe { padding: 14px 12px 12px; }
  .safe__grid { gap: 6px; }
  .safe__cell { padding: 12px 2px 10px; }
  .safe__dot { width: 24px; height: 24px; }
  .safe__cell.is-on .safe__dot { box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--c) 70%, #fff); }
  .safe__lab { font-size: 0.8125rem; }
  .safe__state { font-size: 0.6875rem; }
  .buy__row { flex-direction: column; }
  .qty { align-self: flex-start; }
  .buy__cta { flex: none; }
  .profile__grid, .profile__grid--two { grid-template-columns: 1fr; }
  .pcell { min-height: 0; }
  .notes__h { top: 96px; }
  .notes__tabs { gap: 6px 14px; font-size: 0.8125rem; bottom: 104px; }
  .stack__card { min-height: 200px; top: calc(96px + var(--i, 0) * 18px); }
  .grid--set { gap: 28px 12px; }
  .bar { padding-left: 8px; gap: 10px; }
  .bar__name { font-size: 1.0625rem; }
  .bar__cta { padding-inline: 16px; }
  .bar__cta > span:first-child { display: none; }
  .bar__cta .buy__cta-price { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .notes__pin { height: auto; padding-block: 160px 120px; }
  .notes__stage { height: auto; display: grid; gap: 64px; }
  .note { position: relative; visibility: visible !important; }
  .notes__tabs { display: none; }
  .stack__card { position: relative; top: auto; }
  .bar { transition: none; }
}
