/* ═══════════════════════════════════════════════════════════
   Stein Bros. — the store
   Requires core.css and pages.css. Colours come from the tokens in
   core.css. --plate is the pale ground under product photos: the merch
   is black, so it needs a light ground in both themes.
   ═══════════════════════════════════════════════════════════ */

/* ── crumbs ─────────────────────────────────────────────── */

.crumbs{
  max-width:1320px; margin-inline:auto;
  padding:1.1rem var(--shell-x) .9rem;
  font-family:"Barlow Condensed",sans-serif; font-weight:600;
  font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ash);
}
.crumbs ol{ display:flex; flex-wrap:wrap; gap:.15rem .55rem; list-style:none; margin:0; padding:0; }
.crumbs li{ display:flex; align-items:center; gap:.55rem; }
.crumbs li + li::before{ content:"/"; color:color-mix(in srgb, var(--ash) 60%, transparent); }
.crumbs a{ color:inherit; transition:color .25s; }
.crumbs a:hover{ color:var(--heat); }
.crumbs [aria-current="page"]{ color:var(--bone); }

/* ── buying ─────────────────────────────────────────────── */

.buy{ display:inline-flex; align-items:stretch; gap:.6rem; margin:0; }
.buy .btn{ justify-content:center; }
.buy--big .btn{ min-width:11.5rem; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
[data-buy].is-busy .btn--heat{ cursor:progress; opacity:.75; }
[data-buy].is-added .btn--heat{ background:var(--bone); color:var(--ink); box-shadow:none; }
.buy .btn--sm{ min-width:4.9rem; }

.qty{
  display:inline-grid; grid-template-columns:2.75rem 2.75rem 2.75rem; align-items:stretch;
  border:1px solid var(--line); border-radius:2px; background:var(--surface-soft);
}
.qty button{
  padding:0; border:0; background:none; cursor:pointer; color:var(--bone);
  font:600 1.2rem/1 "Barlow",sans-serif; transition:color .2s, background .2s;
}
.qty button:hover:not([disabled]){ background:var(--surface-soft); color:var(--heat); }
.qty button[disabled]{ opacity:.35; cursor:not-allowed; }
.qty input, .qty__value{
  width:100%; min-width:0; padding:0; border:0; background:none; text-align:center; color:var(--bone);
  font:600 1rem/2.75rem "Barlow",sans-serif; font-variant-numeric:tabular-nums;
  appearance:textfield; -moz-appearance:textfield;
}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.qty input:focus-visible{ outline:2px solid var(--heat); outline-offset:-2px; }
.qty--sm{ grid-template-columns:2.25rem 2.1rem 2.25rem; }
.qty--sm button, .qty--sm .qty__value{ min-height:2.25rem; line-height:2.25rem; font-size:.95rem; }

.toast{
  position:fixed; z-index:45; inset:auto 1rem calc(1.25rem + env(safe-area-inset-bottom));
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  width:fit-content; max-width:min(30rem,calc(100vw - 2rem)); margin-inline:auto;
  padding:.8rem 1.1rem; border-radius:3px; box-shadow:var(--shadow);
  background:var(--bone); color:var(--ink); font-size:.94rem; line-height:1.3;
  transform:translateY(calc(100% + 2rem)); opacity:0; visibility:hidden;
  transition:transform .35s var(--easing), opacity .25s, visibility .35s;
}
.toast.is-shown{ transform:none; opacity:1; visibility:visible; }
/* At the bottom of a phone it would sit on the next row's Add button. */
@media (max-width:640px){
  .toast{ inset:calc(.6rem + env(safe-area-inset-top)) .75rem auto; transform:translateY(calc(-100% - 2rem)); }
}
.toast__action{
  flex:0 0 auto; padding:0; border:0; background:none; cursor:pointer; color:inherit;
  font:700 .8rem/1.3 "Barlow Condensed",sans-serif; letter-spacing:.14em; text-transform:uppercase;
  text-decoration:underline; text-underline-offset:.2em;
}

/* ── the roster: a bar chart of flames with the bottles on top ─ */

.shop-head{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,27rem); align-items:end;
  gap:1rem clamp(1.5rem,5vw,4rem); max-width:1320px; margin-inline:auto;
  padding:clamp(1.25rem,3.5vh,2.5rem) var(--shell-x) clamp(.5rem,1.5vh,1rem);
}
.shop-head .eyebrow{ margin-bottom:.8rem; }
.shop-head__side .lede{ margin:0; }
.ladder__key{ margin:.55rem 0 0; font-size:.88rem; line-height:1.45; color:var(--ash); }
.ladder__key a{ color:var(--bone); text-decoration:underline; text-decoration-color:var(--heat); text-underline-offset:.18em; white-space:nowrap; }
.ladder__key a:hover{ color:var(--heat); }
@media (max-width:820px){ .shop-head{ grid-template-columns:1fr; } }

.ladder{ padding-top:0; }

.ladder__plot{
  --bottle-h:clamp(12rem,34vh,18.5rem);
  --gap:clamp(.5rem,1.3vw,1.15rem);
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr));
  gap:var(--gap);
  list-style:none; margin:0; padding:0;
}
.rung{ display:flex; flex-direction:column; min-width:0; }
.rung__link{ display:block; }

/* One shelf under all six: each stage's line reaches into the gaps, so the
   segments meet. Headroom above the tallest bottle leaves room for the hover lift. */
.rung__stage{
  position:relative; display:flex; justify-content:center; align-items:flex-end;
  height:calc(var(--bottle-h) + 1.25rem);
  margin-inline:calc(var(--gap) / -2);
  border-bottom:2px solid color-mix(in srgb, var(--bone) 24%, transparent);
}
/* A pool of the sauce's own colour where the bottle stands. */
.rung__stage::after{
  content:""; position:absolute; left:18%; right:18%; bottom:-1px; height:1.4rem; z-index:0;
  background:radial-gradient(50% 100% at 50% 100%, color-mix(in srgb, var(--swatch) 42%, transparent), transparent);
  pointer-events:none;
}
.rung__bottle{
  position:relative; z-index:1; display:block; width:auto; max-width:82%; object-fit:contain;
  height:var(--bottle-h); margin-bottom:-1px;
  filter:drop-shadow(0 10px 10px rgba(30,20,10,.22));
  transition:transform .45s var(--easing);
  animation:standUp .7s var(--easing) both;
  animation-delay:calc(var(--i) * 70ms);
}
/* true scale: 151 mm of honey beside 170.5 mm of woozy */
.rung--honey .rung__bottle{ height:calc(var(--bottle-h) * .886); }

.heat{ display:inline-flex; flex-wrap:wrap; align-items:center; gap:.35rem .55rem; max-width:100%; }
.heat__num{ font:700 .8rem/1 "Barlow Condensed",sans-serif; letter-spacing:.06em; color:var(--ash); white-space:nowrap; }
@keyframes standUp{ from{ opacity:0; transform:translateY(1.5rem); } }
@keyframes meterIn{ from{ clip-path:inset(0 100% 0 0); } }

.rung__name{
  margin:.85rem 0 0; font:400 clamp(.98rem,1.3vw,1.18rem)/1.08 "Anton",sans-serif;
  text-wrap:balance;
  letter-spacing:.015em; text-transform:uppercase; color:var(--bone);
  transform:skewX(-8deg); transform-origin:left; transition:color .25s;
}
.rung__kind{
  margin:.35rem 0 0; font:600 .76rem/1.25 "Barlow Condensed",sans-serif;
  letter-spacing:.1em; text-transform:uppercase; color:var(--ash);
}
.ladder__plot .heat{ margin-top:.7rem; }
.ladder__plot .heat-meter{
  gap:3px;
  animation:meterIn .6s var(--easing) both;
  animation-delay:calc(.3s + var(--i) * 70ms);
}
.ladder__plot .heat-meter i{ width:clamp(11px,1.25vw,19px); height:6px; }
.rung__foot{
  display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap;
  margin-top:auto; padding-top:.8rem;
}
.rung__price{ margin:0; font:400 1.12rem/1 "Anton",sans-serif; letter-spacing:.02em; color:var(--bone); }

@media (hover:hover){
  .rung__link:hover .rung__bottle{ transform:translateY(-.5rem) rotate(-1.5deg); }
  .rung__link:hover .rung__name{ color:var(--heat); }
}

/* A tablet gets two shelves of three: mild above, hot below. */
@media (min-width:641px) and (max-width:999px){
  .ladder__plot{
    grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:2.5rem;
    --bottle-h:clamp(11rem,24vh,15rem);
  }
  .ladder__plot .heat-meter i{ width:clamp(14px,2.6vw,22px); }
}

@media (max-width:640px){
  /* A phone can't fit six columns, so the shelf becomes a ranked list. */
  .ladder__plot{ grid-template-columns:1fr; gap:0; }
  .rung{
    display:grid; grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"link foot" "meter foot";
    column-gap:.75rem; align-items:center;
    padding:.8rem 0; border-top:1px solid var(--line);
  }
  .rung:last-child{ border-bottom:1px solid var(--line); }
  .rung__link{ grid-area:link; display:grid; grid-template-columns:3.1rem minmax(0,1fr); column-gap:.8rem; align-items:center; }
  .rung__stage{ grid-row:1 / span 2; height:6rem; margin:0; border:0; justify-content:center; }
  .rung__stage::after{ display:none; }
  .rung__bottle,.rung--honey .rung__bottle{ height:100%; max-width:none; animation:none; }
  .rung--honey .rung__bottle{ height:88.6%; }
  .rung__name{ margin:0; font-size:1.12rem; align-self:end; }
  .rung__kind{ margin:.2rem 0 0; align-self:start; }
  .ladder__plot .heat{ grid-area:meter; margin:-1.45rem 0 0 3.9rem; }
  .ladder__plot .heat-meter{ animation:none; }
  .ladder__plot .heat-meter i{ width:18px; height:5px; }
  .rung__foot{ grid-area:foot; flex-direction:column; align-items:flex-end; gap:.45rem; margin:0; padding:0; }
}

/* ── the full lineup ────────────────────────────────────── */

.lineup{
  position:relative; overflow:hidden;
  display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); align-items:center;
  gap:clamp(1.5rem,4vw,3.5rem); padding:clamp(1.5rem,4vw,3.5rem);
  background:var(--ink-2); border:1px solid var(--line); border-radius:3px;
}
.lineup::before{
  content:""; position:absolute; inset:auto auto -30% -10%; width:70%; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle, var(--glow-a), transparent 68%); pointer-events:none;
}
.lineup__stage{
  --bottle:clamp(10rem,23vw,21rem);
  position:relative; display:flex; align-items:flex-end; justify-content:center;
  padding-bottom:.75rem;
  border-bottom:2px solid color-mix(in srgb, var(--bone) 28%, transparent);
}
.lineup__bottle{
  flex:0 1 auto; min-width:0; width:auto; height:var(--bottle); margin-inline:-.4%;
  filter:drop-shadow(0 12px 12px rgba(30,20,10,.25));
}
.lineup__bottle.is-honey{ height:calc(var(--bottle) * .886); }
/* On the band, the bottles open the Full Lineup page. */
a.lineup__stage{ cursor:pointer; }
a.lineup__stage .lineup__bottle{ transition:transform .4s var(--easing); transition-delay:calc(var(--i) * 25ms); }
@media (hover:hover){
  a.lineup__stage:hover .lineup__bottle{ transform:translateY(-.45rem); }
}
.lineup__info{ position:relative; }
.lineup__info .eyebrow{ margin-bottom:.9rem; }
.lineup__info .section__title a{ color:inherit; }
.lineup__info .section__title a:hover{ color:var(--heat); }
.lineup__info .lede{ margin-top:1rem; }
.lineup__price{
  display:inline-block; margin:1.25rem 0 0; font:400 clamp(2rem,4vw,2.8rem)/1 "Anton",sans-serif;
  transform:skewX(-8deg);
}
.lineup__saving{
  display:flex; align-items:center; flex-wrap:wrap; gap:.3rem .7rem; margin:.65rem 0 0;
  font:700 .92rem/1.2 "Barlow Condensed",sans-serif; letter-spacing:.1em; text-transform:uppercase;
}
.lineup__saving s{ color:var(--ash); font-weight:600; }
.lineup__saving span{ color:var(--heat-dim); }

@media (max-width:900px){
  .lineup{ grid-template-columns:1fr; }
  .lineup__stage{ --bottle:clamp(8rem,38vw,16rem); }
}

/* ── gear ───────────────────────────────────────────────── */

.gear__head{ display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.5rem 2rem; }
.gear__grid{
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(.75rem,1.6vw,1.4rem);
  list-style:none; margin:0; padding:0;
}
.gear__grid--four{ grid-template-columns:repeat(4,minmax(0,1fr)); }
/* Five cards in rows of two and three, so none is left alone with a hole beside it. */
@media (min-width:641px) and (max-width:1100px){
  .gear__grid:not(.gear__grid--four){ grid-template-columns:repeat(6,minmax(0,1fr)); }
  .gear__grid:not(.gear__grid--four) .gear{ grid-column:span 2; }
  .gear__grid:not(.gear__grid--four) .gear:nth-child(-n+2){ grid-column:span 3; }
}
.gear{ display:flex; flex-direction:column; min-width:0; }
.gear__link{ display:block; }
.gear__plate{
  position:relative; overflow:hidden; aspect-ratio:1; border-radius:3px; background:var(--plate);
}
.gear__img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain;
  mix-blend-mode:multiply;       /* some of these photos carry a white ground */
  transition:opacity .35s var(--easing), transform .5s var(--easing);
}
.gear__img--alt{ opacity:0; }
@media (hover:hover){
  .gear__link:hover .gear__img{ transform:scale(1.03); }
  .gear__link:hover .gear__img--alt{ opacity:1; }
  .gear__link:hover .gear__img:not(.gear__img--alt){ opacity:0; }
  .gear__link:hover .gear__name{ color:var(--heat); }
}
.gear__name{
  margin:.8rem 0 0; font:400 1.15rem/1.1 "Anton",sans-serif; letter-spacing:.02em; text-transform:uppercase;
  color:var(--bone); transform:skewX(-8deg); transform-origin:left; transition:color .25s;
}
.gear__tag{
  margin:.3rem 0 0; font:600 .76rem/1.25 "Barlow Condensed",sans-serif;
  letter-spacing:.1em; text-transform:uppercase; color:var(--ash);
}
.gear__foot{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem;
  margin-top:auto; padding-top:.7rem;
}
.gear__out{
  margin:0; font:700 .78rem/1.2 "Barlow Condensed",sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--ash);
}
.gear__price{ margin:0; font:600 .98rem/1.1 "Barlow",sans-serif; color:var(--bone); }

@media (max-width:640px){
  .gear__grid,.gear__grid--four{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gear__foot{ flex-direction:column; align-items:stretch; }
  .gear__foot .buy,.gear__foot .btn{ width:100%; justify-content:center; }
  /* five cards: the first runs the full width, so none is left alone at the end */
  .gear__grid:not(.gear__grid--four) .gear:first-child{ grid-column:1 / -1; }
}

.promise{ grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); }
.promise__go{ color:var(--bone); text-decoration:underline; text-decoration-color:var(--heat); text-underline-offset:.15em; }
.promise .card__body a{ color:var(--bone); text-decoration:underline; text-decoration-color:var(--heat); text-underline-offset:.15em; overflow-wrap:anywhere; }

/* ── a sauce's page ─────────────────────────────────────── */

/* In 3D Hot Honey stands shorter than a woozy on the same floor, so its photo scales
   from the point that lines its cap and base up with the model. Measured by eye against
   the model at 1280x800. */
.shelf__flat.is-honey{ transform:scale(.845); transform-origin:50% 86.5%; }
.section--shelf{ padding-top:clamp(.5rem,2vh,1.5rem); }

.tape{
  display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(1.5rem,4vw,3.5rem); align-items:center;
}
.tape__art{ margin:0; }
.tape__art a{ display:block; }
.tape__art img{
  display:block; width:100%; height:auto; object-fit:contain;
  border-radius:3px; box-shadow:var(--shadow); cursor:zoom-in;
  transition:transform .35s var(--easing);
}
.tape__art a:hover img{ transform:translateY(-3px); }
.tape__art figcaption{ display:block; margin-top:.85rem; line-height:1.4; }
.tape__story{ margin:1.1rem 0 0; max-width:62ch; line-height:1.7; color:var(--text-soft); }
.tape__rows{ margin:1.5rem 0 0; }
.tape__rows > div{
  display:grid; grid-template-columns:8rem minmax(0,1fr); gap:.3rem 1.25rem; padding:.95rem 0; border-top:1px solid var(--line);
}
.tape__rows > div:last-child{ border-bottom:1px solid var(--line); }
.tape__rows dd{ margin:0; line-height:1.6; color:var(--text-soft); }

.climb{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap:1rem; }
.climb__card{
  display:flex; flex-direction:column; gap:.9rem; padding:1.15rem 1.25rem;
  background:var(--ink-2); border:1px solid var(--line); border-left:4px solid var(--swatch); border-radius:3px;
  transition:border-color .3s, transform .35s var(--easing);
}
.climb__card:hover{ transform:translateY(-3px); }
.climb__link{ display:grid; grid-template-columns:3.4rem minmax(0,1fr); gap:1rem; align-items:center; }
.climb__link img{ width:100%; height:auto; max-height:8rem; object-fit:contain; }
.climb__name{
  margin:.3rem 0 .55rem; font:400 1.4rem/1.05 "Anton",sans-serif; letter-spacing:.015em; text-transform:uppercase;
  color:var(--bone); transform:skewX(-8deg); transform-origin:left;
}
.climb__link:hover .climb__name{ color:var(--heat); }
.climb .heat-meter i{ width:clamp(14px,5vw,22px); }
.climb__foot{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; }

@media (max-width:900px){
  .tape{ grid-template-columns:1fr; }
  .tape__copy{ order:-1; }
}
@media (max-width:520px){
  .tape__rows > div{ grid-template-columns:1fr; }
}

/* ── the bundle's page ──────────────────────────────────── */

/* The 3D canvas overhangs its stage so a hop isn't cut off at the edge. Clipping
   sideways here means it can never widen the page. */
.bundle{
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(1.5rem,4vw,3.5rem); align-items:center;
  padding-top:clamp(1rem,3vh,2rem); padding-bottom:clamp(1.5rem,4vh,2.5rem);
  overflow-x:clip;
}
.bundle__info .eyebrow{ margin-bottom:.8rem; }

/* The bottles take their height from the stage's width, so the row always fits
   without squeezing a photo: side by side, the six are 1.7 times as wide as a
   woozy is tall. Stacked above the price on a short screen, they also give way
   to it. Hot Honey stands 151 mm to a woozy's 170.5. */
.bundle__stage{ position:relative; container-type:inline-size; padding-top:1.5rem; }
.bundle__row{
  --bottle:min(25rem,24vw);
  position:relative; z-index:1;
  display:flex; align-items:flex-end; justify-content:center;
  margin:0; padding:0 0 .75rem; list-style:none;
  border-bottom:2px solid color-mix(in srgb, var(--bone) 28%, transparent);
  /* a sideways drag turns the bottles, and an up or down one still scrolls */
  touch-action:pan-y; -webkit-user-select:none; user-select:none;
}
@supports (width:1cqi){ .bundle__row{ --bottle:min(25rem,57cqi); } }
.bundle__slot{ flex:0 0 auto; margin-inline:-.2%; }
.bundle__bottle{ display:block; border-radius:4px; -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; }
.bundle__bottle:focus-visible{ outline-offset:5px; }
/* The pictures are stills of the 3D, contact shadows and all, so they need no
   shadow of their own, and one would show through the glass. */
.bundle__photo{
  display:block; width:auto; height:var(--bottle);
  transition:opacity .3s linear, transform .4s var(--easing);
}
.bundle__slot.is-honey .bundle__photo{ height:calc(var(--bottle) * .886); }
@media (hover:hover){
  .bundle__stage:not([data-lineup3d="live"]) .bundle__bottle:hover .bundle__photo{ transform:translateY(-.45rem); }
}
.bundle__stage:not([data-lineup3d="live"]) .bundle__bottle:focus-visible .bundle__photo{ transform:translateY(-.45rem); }

/* lineup-3d.js sizes and places the canvas. It sits under the row, so the
   pictures fade out over it and a focus ring still draws on top. The two match,
   so a short fade is enough to hide what little differs. */
.bundle__canvas{ position:absolute; z-index:0; pointer-events:none; opacity:0; transition:opacity .3s linear; }
.bundle__stage[data-lineup3d="live"] .bundle__canvas{ opacity:1; }
.bundle__stage[data-lineup3d="live"] .bundle__photo{ opacity:0; }
.bundle__stage[data-lineup3d="live"] .bundle__row{ cursor:grab; }
.bundle__stage[data-lineup3d="live"] .bundle__row.is-dragging{ cursor:grabbing; }
.bundle__stage[data-lineup3d="live"] .bundle__bottle{ cursor:pointer; transform-origin:50% 100%; transition:transform .3s var(--easing); }
/* The 3D lifts the bottle in focus by 7% of its height and grows it a little, so
   the focus ring rises with it. On a narrow stage it lifts 4%. */
.bundle__stage[data-lineup3d="live"] .bundle__bottle.is-active:focus-visible{ transform:translateY(-7%) scale(1.035); }

/* The name and heat of the bottle under the pointer or focus. Its line is always
   there, so nothing below moves when it fills. */
.bundle__caption{
  position:relative; height:2.75rem; margin:.7rem 0 0;
  font:600 .78rem/1.2 "Barlow Condensed",sans-serif; letter-spacing:.16em; text-transform:uppercase; color:var(--ash);
}
/* One fades out before the other fades in, so the two lines never print over
   each other. */
.bundle__hint{ position:absolute; inset:0 0 auto; text-align:center; text-wrap:balance; transition:opacity .14s linear .14s; }
.bundle__tag{
  position:absolute; top:0; left:0;
  display:grid; justify-items:center; gap:.4rem; white-space:nowrap;
  transform:translateX(var(--tag-x,0px)); opacity:0;
  transition:transform .35s var(--easing), opacity .14s linear;
}
.bundle__caption.has-tag .bundle__hint{ opacity:0; transition-delay:0s; }
/* lineup-stage.js changes the hint's words with a quick fade out and back in. */
.bundle__hint.is-going{ opacity:0; transition:opacity .16s linear; }
.bundle__hint.is-coming{ transition:opacity .2s linear; }
.bundle__caption.has-tag .bundle__tag{ opacity:1; transition:transform .35s var(--easing), opacity .14s linear .14s; }
.bundle__tag[data-align="start"]{ justify-items:start; }
.bundle__tag[data-align="end"]{ justify-items:end; }
.bundle__tag b{ font:700 .98rem/1 "Barlow Condensed",sans-serif; letter-spacing:.12em; color:var(--bone); }
.bundle__tag .heat, .bundle__heat{ gap:.5rem; }
.bundle__heat{ display:inline-flex; align-items:center; }
.bundle__tag .heat-meter{ gap:.2rem; }
.bundle__tag .heat-meter i{ width:14px; height:5px; }
.bundle__taste{ color:var(--ash); }
.bundle__keys{ display:none; font-size:.72rem; color:var(--ash); }
.bundle__caption.is-keyboard .bundle__keys{ display:block; }
@media (max-width:900px){
  .bundle{ grid-template-columns:1fr; }
  .bundle__row{ --bottle:min(25rem,50vw); }
  @supports (width:1cqi){ .bundle__row{ --bottle:min(25rem,57cqi); } }
  @supports (height:1svh){ .bundle__row{ --bottle:min(25rem,57cqi,34svh); } }
  /* Name, price and the button on the first screen. The story follows. */
  .bundle__info{ display:flex; flex-direction:column; align-items:flex-start; }
  .bundle__info > .shelf__blurb{ order:1; }
}
/* A tablet has the width for a centred buy block under a shorter row, so the
   page doesn't hang off the left edge of a wide empty column. */
@media (min-width:641px) and (max-width:900px){
  @supports (height:1svh){ .bundle__row{ --bottle:min(25rem,57cqi,30svh); } }
  .bundle__info{ align-items:center; text-align:center; }
  .bundle__info .lineup__saving, .bundle__info .actions{ justify-content:center; }
  .bundle__info .shelf__blurb{ margin-inline:auto; }
}
/* A phone's browser bars leave about 660 px of an 844 px screen and 550 px of a
   667 px one, so the space around the bottles is tighter here, and on a short
   screen the bottles give up height until Add to cart fits above the fold, with
   room for the caption's third line. The hops have room in the canvas, which
   reaches up over the breadcrumb. */
@media (max-width:640px){
  .bundle{ padding-top:.25rem; row-gap:1rem; }
  .bundle__stage{ padding-top:.25rem; }
  .bundle__caption{ height:2.5rem; margin-top:.45rem; }
  .bundle__info .eyebrow{ display:none; }
  .bundle__info .actions{ margin-top:1.25rem; }
  .bundle__info .buy--big .btn{ white-space:nowrap; }
  @supports (height:1svh){ .bundle__row{ --bottle:min(25rem,57cqi,max(8.5rem,calc(100svh - 25.7rem))); } }
}
@media (max-width:360px){
  .bundle__info .buy--big .btn{ padding-inline:1rem; letter-spacing:.1em; }
  .bundle__info .qty{ grid-template-columns:2.4rem 2.2rem 2.4rem; }
}
/* A phone's stage is too narrow for the heat and the taste on one line, so the
   taste takes a line of its own under the heat. */
@container (max-width:30rem){
  .bundle__stage[data-lineup3d="live"] .bundle__bottle.is-active:focus-visible{ transform:translateY(-4%) scale(1.02); }
  .bundle__caption{ height:3.7rem; }
  .bundle__tag .heat{ display:grid; justify-items:inherit; row-gap:.4rem; }
}

/* Close under the buy box, so the list reads as part of the same product. */
.bundle-box{ padding-top:clamp(1.5rem,4vh,2.5rem); }
.box{ list-style:none; margin:0; padding:0; }
.box__row{ border-top:1px solid var(--line); }
.box__row:last-child{ border-bottom:1px solid var(--line); }
.box__row a{
  display:grid; grid-template-columns:3rem minmax(0,1.6fr) minmax(0,1fr) auto; align-items:center; gap:1.1rem;
  padding:.65rem .5rem; transition:background .25s;
}
.box__row a:hover{ background:color-mix(in srgb, var(--swatch) 9%, transparent); }
.box__row img{ width:100%; height:5.25rem; object-fit:contain; }
.box__name{
  font:400 1.25rem/1.1 "Anton",sans-serif; letter-spacing:.015em; text-transform:uppercase; color:var(--bone);
}
.box__name small{
  display:block; margin-top:.3rem; font:600 .78rem/1.25 "Barlow Condensed",sans-serif;
  letter-spacing:.1em; color:var(--ash);
}
.nowrap{ white-space:nowrap; }
.box__price{ text-align:right; font:600 1rem/1.1 "Barlow",sans-serif; color:var(--bone); }
.box__price small{
  display:block; margin-top:.25rem; font:600 .7rem/1.1 "Barlow Condensed",sans-serif;
  letter-spacing:.12em; text-transform:uppercase; color:var(--ash);
}
@media (max-width:640px){
  .box__row a{ grid-template-columns:2.5rem minmax(0,1fr) auto; row-gap:.35rem; }
  .box__row .heat-meter{ grid-column:2; grid-row:2; }
  .box__row .heat-meter i{ width:16px; height:5px; }
  .box__row img{ grid-row:1 / span 2; }
  .box__price{ grid-column:3; grid-row:1 / span 2; }
}

/* ── a piece of gear's page ─────────────────────────────── */

.gearpdp{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); grid-template-rows:auto 1fr;
  column-gap:clamp(1.5rem,4vw,3.5rem); align-items:start;
  padding-top:clamp(.25rem,1.5vh,1rem);
}
.gallery{ grid-row:1 / span 2; position:sticky; top:1.5rem; min-width:0; }
.gearpdp__head{ min-width:0; }
.gearpdp__head .eyebrow{ margin-bottom:.8rem; }
.gallery__main{ aspect-ratio:1; overflow:hidden; border-radius:3px; background:var(--plate); }
.gallery__main img{ display:block; width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.gallery__thumbs{
  display:flex; gap:.5rem; margin:.6rem 0 0; padding:0 0 .25rem; list-style:none; overflow-x:auto;
  scrollbar-width:thin;
}
.gallery__thumbs button{
  display:block; width:4.5rem; height:4.5rem; padding:0; cursor:pointer; overflow:hidden;
  background:var(--plate); border:2px solid transparent; border-radius:3px; transition:border-color .25s;
}
.gallery__thumbs button:hover{ border-color:color-mix(in srgb, var(--heat) 50%, transparent); }
.gallery__thumbs button[aria-pressed="true"]{ border-color:var(--heat); }
.gallery__thumbs img{ display:block; width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }

.gearpdp__info{ min-width:0; }

.opts{ margin:1.5rem 0 0; padding:0; border:0; min-width:0; }
.opts legend{ padding:0; margin-bottom:.55rem; }
.opts__row{ display:flex; flex-wrap:wrap; gap:.45rem; }
.opt{ position:relative; cursor:pointer; }
.opt input{ position:absolute; inset:0; margin:0; opacity:0; cursor:inherit; }
.opt span{
  display:grid; place-items:center; min-width:3.1rem; height:2.75rem; padding:0 .8rem;
  border:1px solid var(--line); border-radius:2px; background:var(--surface-soft); color:var(--text-soft);
  font:700 .92rem/1 "Barlow Condensed",sans-serif; letter-spacing:.08em;
  transition:color .2s, border-color .2s, background .2s;
}
.opt:hover span{ border-color:color-mix(in srgb, var(--bone) 40%, transparent); color:var(--bone); }
.opt input:checked + span{ background:var(--heat-fill); border-color:var(--heat-fill); color:var(--on-fill); }
.opt input:focus-visible + span{ outline:2px solid var(--heat); outline-offset:2px; }
.opt.is-out{ cursor:not-allowed; }
.opt.is-out span{ opacity:.45; text-decoration:line-through; }
/* Until a size is chosen the button is a step still to do, so it doesn't look live. */
form[data-variant=""] .btn--heat,
body:has(form[data-variant=""]) [data-sticky-buy]{
  background:none; color:var(--bone); border:1px solid var(--bone); box-shadow:none;
}
form[data-variant=""] .btn--heat:hover,
body:has(form[data-variant=""]) [data-sticky-buy]:hover{ background:var(--surface-soft); }
.opts.is-asked .opt:not(.is-out) span{ border-color:var(--heat-fill); animation:ask .5s var(--easing); }
@keyframes ask{ 30%{ transform:translateY(-3px); } }
.opts__ask{ margin:.6rem 0 0; font:700 .92rem/1.3 "Barlow Condensed",sans-serif; letter-spacing:.1em; text-transform:uppercase; color:var(--bone); }
.opts__ask[hidden]{ display:none; }
.buyform .actions{ margin-top:1.25rem; }

.fit-note{
  margin:1.1rem 0 0; padding:.75rem .9rem; border-left:3px solid var(--heat); border-radius:2px;
  background:var(--surface-soft); font-size:.95rem; line-height:1.5; color:var(--text-soft);
}
.fit-note b{
  margin-right:.45rem; font:700 .76rem/1 "Barlow Condensed",sans-serif;
  letter-spacing:.18em; text-transform:uppercase; color:var(--bone);
}
.made-note{ margin:1rem 0 0; font-size:.9rem; line-height:1.5; color:var(--ash); }

.specs{ margin:0; padding:0 0 1rem; list-style:none; display:grid; gap:.45rem; }
.specs li{ position:relative; padding-left:1.1rem; font-size:.95rem; line-height:1.45; color:var(--text-soft); }
.specs li::before{
  content:""; position:absolute; left:0; top:.55em; width:6px; height:6px; background:var(--heat); transform:skewX(-8deg);
}

.sizes{ margin-top:1.4rem; border-block:1px solid var(--line); }
.sizes + .sizes{ margin-top:-1px; }
.sizes summary{
  padding:.9rem 0; cursor:pointer; list-style-position:inside;
  font:700 .84rem/1.2 "Barlow Condensed",sans-serif; letter-spacing:.18em; text-transform:uppercase;
}
.sizes__wrap{ overflow-x:auto; padding-bottom:1rem; }
.sizes table{ width:100%; border-collapse:collapse; font-size:.9rem; font-variant-numeric:tabular-nums; }
.sizes th,.sizes td{ padding:.45rem .6rem; border-bottom:1px solid var(--line-2); text-align:left; }
.sizes tbody td,.sizes tbody th{ white-space:nowrap; }
.sizes thead th{
  font:700 .74rem/1.2 "Barlow Condensed",sans-serif; letter-spacing:.1em; text-transform:uppercase; color:var(--ash);
}
.sizes tbody th{ font-weight:600; }

@media (max-width:900px){
  /* Name and price above the photo, so a phone shows what it is and what it costs
     before anything else. */
  .gearpdp{ grid-template-columns:1fr; grid-template-rows:none; row-gap:.9rem; }
  .gearpdp__head{ order:-1; }
  .gallery{ grid-row:auto; position:static; }
  .gallery__thumbs button{ width:3.5rem; height:3.5rem; }
  .opts{ margin-top:0; }
}
@media (max-width:420px){
  .opts__row{ gap:.3rem; }
  .opt span{ min-width:2.6rem; height:2.6rem; padding:0 .45rem; }
}

/* ── the bar that follows on a phone ────────────────────── */

.stickybuy{ display:none; }
@media (max-width:900px){
  /* Room under the footer, so the bar never sits on its last controls. */
  .shell:has(.stickybuy:not([hidden])) .foot--full{ padding-bottom:calc(5.5rem + env(safe-area-inset-bottom)); }
  .stickybuy:not([hidden]){
    position:fixed; z-index:30; inset:auto 0 0 0;
    display:flex; align-items:center; justify-content:space-between; gap:1rem;
    padding:.65rem var(--shell-x) calc(.65rem + env(safe-area-inset-bottom));
    background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -10px 24px -14px rgba(0,0,0,.35);
    transform:translateY(105%); visibility:hidden;
    transition:transform .3s var(--easing), visibility .3s;
  }
  .stickybuy.is-shown:not([hidden]){ transform:none; visibility:visible; }
}
.stickybuy__text{ display:flex; flex-direction:column; gap:.15rem; min-width:0; }
.stickybuy__text b{
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  font:400 1rem/1.35 "Anton",sans-serif; letter-spacing:.02em; text-transform:uppercase;
}
.stickybuy__text span{ font-size:.9rem; color:var(--text-soft); }

.buy--big{ flex-wrap:wrap; }
@media (max-width:640px){
  .buy--big{ display:flex; width:100%; flex-wrap:nowrap; }
  .buy--big .btn{ flex:1 1 auto; min-width:0; }
  .shelf__info > .actions, .bundle__info .actions, .gearpdp__info .actions{ width:100%; }
  .shelf__info #pFind{
    padding:.2rem 0; border:0; background:none; font-size:.82rem;
    text-decoration:underline; text-decoration-color:var(--heat); text-underline-offset:.25em;
  }
}

/* Below the desktop width the rack is one strip, so it never wraps into uneven rows
   and the bottle and its Add button stay on the first screen. bottles.js keeps the
   current bottle scrolled into view. */
@media (max-width:1000px){
  .rack--top{
    flex-wrap:nowrap; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none;
    margin-bottom:.5rem; padding-bottom:.25rem;
    mask-image:linear-gradient(90deg,#000 88%,transparent);
  }
  .rack--top::-webkit-scrollbar{ display:none; }
  .rack--top a{ flex:0 0 auto; min-width:0; padding:.6rem .7rem; white-space:nowrap; scroll-snap-align:center; }
  .rack--top a:hover{ transform:none; }
}
@media (max-width:640px){
  /* In 3D Hot Honey stands shorter than a woozy on the same floor, so its photo scales
   from the point that lines its cap and base up with the model. Measured by eye against
   the model at 1280x800. */
.shelf__flat.is-honey{ transform:scale(.845); transform-origin:50% 86.5%; }
.section--shelf{ padding-top:0; }
  .shelf__stage{ max-height:40vh; }
  .shelf__info .label:first-child{ margin-top:0; }
  .shelf{ gap:.9rem; }
}

/* On a phone: bottle, name, price, buy, on the first screen. The story follows. */
@media (max-width:900px){
  .shelf__info{ display:flex; flex-direction:column; align-items:flex-start; }
  .shelf__info > .label{ order:1; }
  .shelf__info > .shelf__name{ order:2; }
  .shelf__info > .shelf__price{ order:3; }
  .shelf__info > .actions{ order:4; margin-top:1rem; }
  .shelf__info > .shelf__blurb{ order:5; }
  .shelf__info > .spec{ order:6; }
}
