/* ==========================================================================
   TALA — Brew Theme · Product page
   arched gallery stage · buy box (radar, sizes, grinds, Brew Club) · sticky
   glass add bar · farm card · brew timer · cherry-to-cup trail · pairings ·
   reviews · more coffee
   ========================================================================== */

@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; }
.rail-arrows { display: flex; gap: 8px; }
.prail {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100% - 1520px) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - 1520px) / 2));
}
.prail::-webkit-scrollbar { display: none; }
.prail .card { flex: 0 0 clamp(260px, 23vw, 350px); scroll-snap-align: start; }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: 13px; color: var(--mute); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ==========================================================================
   01 · PDP
   ========================================================================== */
.pdp { position: relative; padding: calc(var(--bar-h) + var(--head-h) + 20px) 0 clamp(60px, 7vw, 110px); isolation: isolate; }
.pdp__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.pdp__glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 50% at 26% 46%, rgba(201, 154, 104, .26), transparent 70%); }
.pdp__glow::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-radial-gradient(circle at 26% 46%, transparent 0 46px, rgba(123, 82, 53, .07) 46px 47px);
  mask-image: radial-gradient(45% 55% at 26% 46%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(45% 55% at 26% 46%, #000 20%, transparent 75%);
}
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 96px); align-items: start; }

/* gallery */
.gallery { position: sticky; top: calc(var(--head-h) + 20px); display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; }
.gallery__thumbs { display: grid; gap: 10px; align-content: start; }
.thumb {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--r-xs) var(--r-xs);
  background: var(--bg, var(--paper-2));
  display: grid; place-items: center;
  outline: 1.5px solid transparent; outline-offset: 3px;
  opacity: .62;
  transition: outline-color .4s var(--ease), opacity .4s var(--ease), transform .5s var(--ease);
}
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.is-on { outline-color: var(--ink); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .bag { width: 62%; }
.is-gift { filter: saturate(.62) sepia(.18); }

.stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--r-l) var(--r-l);
  background: var(--paper-2);
  isolation: isolate;
  clip-path: inset(100% 0 0 0 round 999px 999px var(--r-l) var(--r-l));
  transition: clip-path 1.4s var(--ease-io);
}
.pdp.is-ready .stage { clip-path: inset(0 0 0 0 round 999px 999px var(--r-l) var(--r-l)); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.slide.is-on { opacity: 1; z-index: 1; }
.slide--photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.slide--photo.is-on img { transform: none; }
.slide--photo.is-zoom img { transform: scale(1.8); transition: transform .5s var(--ease); cursor: zoom-in; }
.slide--bag { display: grid; place-items: center; background: var(--bg); perspective: 900px; }
.slide__spot { position: absolute; inset: 0; background: radial-gradient(46% 38% at var(--mx, 50%) var(--my, 40%), rgba(255, 253, 249, .85), transparent 72%); transition: background-position .3s; }
.slide--bag::after { content: ""; position: absolute; inset: 0; opacity: .6; background: repeating-radial-gradient(circle at 50% 112%, transparent 0 40px, rgba(123, 82, 53, .08) 40px 41px); }
.slide__bag { position: relative; z-index: 1; width: 50%; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.slide__bag .bag { filter: drop-shadow(0 40px 34px rgba(60, 35, 20, .32)); animation: bob 6s ease-in-out infinite; }
.slide__shadow { position: absolute; left: 50%; bottom: 17%; width: 36%; height: 18px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 35, 20, .28), transparent); }

.stage__chip, .stage__nav {
  position: absolute; z-index: 3;
  background: rgba(250, 245, 238, .66);
  backdrop-filter: saturate(160%) blur(22px); -webkit-backdrop-filter: saturate(160%) blur(22px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 14px 30px -18px rgba(60, 35, 20, .5);
  border-radius: 999px;
}
.stage__chip { left: 18px; bottom: 18px; display: grid; gap: 1px; padding: 9px 18px; font-size: 13.5px; line-height: 1.3; max-width: calc(100% - 200px); }
.stage__chip > * { animation: fadeUp .5s var(--ease) both; }
.stage__chip .mono { font-size: 9.5px; color: var(--mute); }
.stage__chip b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__nav { right: 18px; bottom: 18px; display: flex; align-items: center; gap: 2px; padding: 4px; }
.stage__nav .icon-btn { width: 38px; height: 38px; }
.stage__nav .icon-btn .i { width: 16px; height: 16px; }
.stage__nav .mono { font-size: 10px; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.stage__badges { position: absolute; top: 12%; left: 50%; translate: -50% 0; z-index: 3; display: flex; gap: 6px; }

/* buy box */
.buy { padding-top: 6px; }
.buy > *, .opts-form > * { animation: fadeUp .8s var(--ease) both; }
.buy > :nth-child(2) { animation-delay: .06s; } .buy > :nth-child(3) { animation-delay: .12s; } .buy > :nth-child(4) { animation-delay: .16s; } .buy > :nth-child(n+5) { animation-delay: .22s; }
.buy__kicker { color: var(--roast); font-size: 10.5px; }
.buy__name { margin: 14px 0 16px; font-family: var(--f-serif); font-weight: 340; font-size: clamp(2.6rem, 4.6vw, 4.8rem); line-height: .95; letter-spacing: -.045em; font-variation-settings: "SOFT" 60, "opsz" 144; }
.buy__name em { font-style: italic; font-weight: 300; color: var(--roast); font-variation-settings: "SOFT" 100, "opsz" 144; }
.buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.buy__meta .rating { font-size: 13.5px; gap: 8px; }
.buy__meta .rating b { color: var(--ink); font-weight: 600; }
.buy__meta .rating .stars .i { width: 14px; height: 14px; }
.buy__meta .rating:hover { color: var(--ink); }
.buy__meta .stock { font-size: 13px; }
.buy__notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 16px; }
.buy__notes li { padding: 6px 14px; border-radius: 999px; font-size: 13px; background: var(--white); border: 1px solid var(--line); }
.buy__desc { color: var(--mute); max-width: 54ch; line-height: 1.65; }

.profile { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 22px; margin-top: 26px; padding: 14px 22px 14px 10px; border-radius: var(--r-l); background: var(--white); border: 1px solid var(--line-2); }
.profile__radar svg { width: 100%; overflow: visible; }
.radar__ring { fill: none; stroke: var(--line); }
.radar__axis { stroke: var(--line-2); }
.radar__shape { fill: rgba(123, 82, 53, .18); stroke: var(--roast); stroke-width: 1.5; stroke-linejoin: round; }
.radar__dot { fill: var(--roast); }
.profile__radar text { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .06em; fill: var(--mute); text-transform: uppercase; }
.profile__side .mono { font-size: 10px; color: var(--mute); margin-bottom: 6px; }
.profile__roast { margin-bottom: 14px; }
.profile__axes { display: grid; gap: 7px; margin: 0; }
.profile__axes div { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; font-size: 12.5px; }
.profile__axes dt { color: var(--mute); }
.profile__axes dd { margin: 0; height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.profile__axes dd i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--roast); border-radius: inherit; }

.opts-form { margin-top: 26px; display: grid; gap: 22px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 500; font-size: 14px; }
.field legend .mono { font-size: 10px; color: var(--mute); font-weight: 400; }
.field legend .link-u { font-size: 10px; }
.field input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.size { position: relative; cursor: pointer; }
.size__card {
  position: relative; display: grid; justify-items: center; align-content: end; gap: 1px; height: 100%;
  padding: 14px 10px 12px; border-radius: var(--r-m); text-align: center;
  background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s, transform .5s var(--ease), box-shadow .4s;
}
.size:hover .size__card { transform: translateY(-2px); }
.size input:checked + .size__card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.size input:focus-visible + .size__card { outline: 1.5px solid var(--roast); outline-offset: 3px; }
.size input:disabled + .size__card { opacity: .5; cursor: not-allowed; }
.size__bag { display: block; width: calc(var(--h) * 46px); margin-bottom: 8px; }
.size__bag .bag { filter: drop-shadow(0 8px 8px rgba(60, 35, 20, .2)); }
.size__card b { font-weight: 600; font-size: 14.5px; }
.size__price { font-family: var(--f-serif); font-size: 19px; letter-spacing: -.02em; }
.size__card small { color: var(--mute); font-size: 11px; line-height: 1.3; }
.size__save { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; background: var(--leaf); color: var(--paper); }
.field.is-one .sizes { grid-template-columns: minmax(0, 200px); }

.grinds { display: flex; flex-wrap: wrap; gap: 8px; }
.grind { position: relative; cursor: pointer; }
.grind span { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 13.5px; background: var(--white); border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s; }
.grind .i { width: 18px; height: 18px; stroke-width: 1.4; }
.grind:hover span { border-color: var(--ink); }
.grind input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grind input:focus-visible + span { outline: 1.5px solid var(--roast); outline-offset: 3px; }

.mode { display: grid; gap: 10px; }
.mode__opt { position: relative; cursor: pointer; display: block; }
.mode__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--r-m);
  background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.mode__card b { display: block; font-weight: 600; font-size: 14.5px; }
.mode__card small { color: var(--mute); font-size: 12.5px; }
.mode__radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: border-color .3s; }
.mode__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .35s var(--ease); }
.mode__opt input:checked + .mode__card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mode__opt input:checked + .mode__card .mode__radio { border-color: var(--ink); }
.mode__opt input:checked + .mode__card .mode__radio::after { transform: none; }
.mode__opt input:focus-visible + .mode__card { outline: 1.5px solid var(--roast); outline-offset: 3px; }
.mode__price { font-family: var(--f-serif); font-size: 20px; letter-spacing: -.02em; text-align: right; }
.mode__price s { display: block; font-family: var(--f-sans); font-size: 12px; color: var(--mute); }
.mode__save { font-style: normal; font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--leaf); color: var(--paper); margin-left: 6px; vertical-align: 2px; }
.mode__opt--club input:checked + .mode__card { background: linear-gradient(120deg, var(--white), #eef0e6); }
.mode__freq { display: none; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 18px 2px 50px; font-size: 13px; color: var(--mute); }
.mode.is-club .mode__freq { display: flex; animation: fadeUp .5s var(--ease); }
.mode__freq button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); background: var(--white); }
.mode__freq button.is-on { background: var(--leaf); border-color: var(--leaf); color: var(--paper); }

.buy__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.stepper { display: inline-flex; align-items: center; height: 58px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.stepper button { width: 42px; height: 100%; display: grid; place-items: center; }
.stepper .i { width: 15px; height: 15px; }
.stepper input { width: 30px; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy__add { --bh: 58px; justify-content: space-between; padding: 0 26px; font-size: 15.5px; }
.buy__add-price { font-family: var(--f-serif); font-size: 19px; letter-spacing: -.02em; padding-left: 16px; border-left: 1px solid rgba(255, 248, 240, .25); }
.buy__add.is-added { background: var(--leaf); }
.buy__wish { width: 58px; height: 58px; }
.buy__wish.is-on { background: var(--ink); color: var(--paper); }
.buy__wish.is-on .i { fill: currentColor; }

.notify { padding: 20px; border-radius: var(--r-m); background: var(--paper-2); font-size: 14px; }
.notify__row { display: flex; gap: 10px; margin-top: 14px; }
.notify input { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }

.buy__perks { display: grid; gap: 12px; margin-top: 24px; padding: 18px 0; border-block: 1px solid var(--line); font-size: 13.5px; color: var(--mute); }
.buy__perks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.buy__perks .i { width: 19px; height: 19px; color: var(--roast); margin-top: 1px; }
.buy__perks b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.acc details[open] summary .i { transform: rotate(45deg); }
.acc__body { padding-bottom: 20px; color: var(--mute); font-size: 14px; display: grid; gap: 10px; animation: fadeUp .5s var(--ease); }
.acc__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; }
.acc__dl dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.acc__dl dd { margin: 2px 0 0; color: var(--ink); }

/* ==========================================================================
   02 · FARM
   ========================================================================== */
.farm { position: relative; min-height: clamp(560px, 84vh, 800px); display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; isolation: isolate; background: var(--ink); }
.farm__media { position: absolute; inset: 0; z-index: -1; }
.farm__media img { width: 100%; height: 100%; object-fit: cover; }
.farm__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 13, 9, .78), rgba(20, 13, 9, .1) 70%), linear-gradient(90deg, rgba(20, 13, 9, .4), transparent 60%); }
.farm__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 40px; padding-block: clamp(60px, 7vw, 100px); }
.farm .eyebrow { color: var(--crema); }
.farm .h-1 { margin: 18px 0 18px; }
.farm .h-1 .serif { color: #f0d6b6; }
.farm .lede { color: rgba(255, 248, 240, .78); }
.farm__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0;
  border-radius: var(--r-l); overflow: hidden;
  background: rgba(255, 248, 240, .16);
  backdrop-filter: saturate(150%) blur(26px); -webkit-backdrop-filter: saturate(150%) blur(26px);
  border: 1px solid rgba(255, 248, 240, .2);
}
.farm__facts > div { padding: 18px 20px; background: rgba(31, 22, 17, .3); }
.farm__facts dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 248, 240, .6); }
.farm__facts dd { margin: 6px 0 0; font-family: var(--f-serif); font-size: 24px; font-weight: 360; letter-spacing: -.025em; line-height: 1.1; }
.farm__link { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: rgba(31, 22, 17, .3); font-size: 14px; transition: background-color .4s; }
.farm__link span { flex: 1; }
.farm__link:hover { background: rgba(31, 22, 17, .5); }

/* ==========================================================================
   03 · BREW GUIDE
   ========================================================================== */
.brew .sec-head .eyebrow { color: var(--roast); }
.brew .h-1 .serif { color: var(--roast); }
.brew__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: center; max-width: 1180px; margin-inline: auto; }
.timer { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; border-radius: 50%; background: var(--latte); }
.timer::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 22px, rgba(123, 82, 53, .07) 22px 23px); }
.timer__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer__track { fill: none; stroke: rgba(123, 82, 53, .16); stroke-width: 6; }
.timer__prog { fill: none; stroke: var(--roast); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.timer__tick { fill: var(--paper); stroke: var(--roast); stroke-width: 2; }
.timer__face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; }
.timer__face .mono { color: var(--mute); font-size: 10.5px; }
.timer__face b { font-family: var(--f-serif); font-weight: 300; font-size: clamp(3.6rem, 7vw, 6rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; font-variation-settings: "SOFT" 100, "opsz" 144; }
.timer__ctrl { display: flex; gap: 8px; margin-top: 12px; }
.timer__ctrl .icon-btn { width: 42px; height: 42px; }
.timer__ctrl .btn:disabled { opacity: .45; pointer-events: none; }
.brew__specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 30px; border-block: 1px solid var(--line); }
.brew__specs > div { padding: 18px 16px 18px 0; }
.brew__specs > div + div { padding-left: 16px; border-left: 1px dashed var(--line); }
.brew__specs dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.brew__specs dd { margin: 6px 0 0; font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 23px); letter-spacing: -.02em; line-height: 1.15; }
.brew__steps { display: grid; gap: 4px; }
.brew__steps li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: var(--r-s); font-size: 15px; transition: background-color .4s, color .4s; }
.brew__steps .mono { color: var(--roast); font-variant-numeric: tabular-nums; }
.brew__steps li.is-now { background: var(--ink); color: var(--paper); }
.brew__steps li.is-now .mono { color: var(--crema); }
.brew__steps li.is-done { color: var(--mute-2); }

/* ==========================================================================
   04 · CHERRY TO CUP
   ========================================================================== */
.journey { padding-block: var(--section); background: var(--paper-2); border-block: 1px solid var(--line); }
.journey .sec-head .eyebrow { color: var(--roast); }
.journey .h-1 .serif { color: var(--roast); }
.trail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.trail::before { content: ""; position: absolute; left: 60px; right: 12%; top: 60px; border-top: 1.5px dashed rgba(123, 82, 53, .35); }
.trail__step { position: relative; }
.trail__img { display: block; width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--paper-2); box-shadow: 0 0 0 1px var(--line); margin-bottom: 20px; position: relative; }
.trail__img img { width: 100%; height: 100%; object-fit: cover; }
.trail__step:last-child .trail__img { box-shadow: 0 0 0 1.5px var(--roast); }
.trail__when { display: block; color: var(--roast); font-size: 10.5px; margin-bottom: 8px; }
.trail__step h3 { margin-bottom: 8px; }
.trail__step p { color: var(--mute); font-size: 14px; max-width: 30ch; }

/* ==========================================================================
   05 · PAIRS
   ========================================================================== */
.pairs .sec-head .eyebrow { color: var(--roast); }

/* ==========================================================================
   06 · REVIEWS
   ========================================================================== */
.reviews { padding-bottom: var(--section); }
.reviews .sec-head .eyebrow { color: var(--roast); }
.rv { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.rv__sum { position: sticky; top: calc(var(--head-h) + 30px); display: grid; gap: 24px; padding: 28px; border-radius: var(--r-l); background: var(--leaf); color: var(--paper); }
.rv__score { display: grid; gap: 6px; }
.rv__score b { font-family: var(--f-serif); font-weight: 300; font-size: 5rem; line-height: .9; letter-spacing: -.05em; }
.rv__score .stars .i { width: 16px; height: 16px; }
.rv__score small { color: rgba(255, 248, 240, .65); font-size: 13px; }
.rv__dist { display: grid; gap: 6px; font-size: 12px; }
.rv__dist li { display: grid; grid-template-columns: 26px 1fr 34px; gap: 10px; align-items: center; }
.rv__dist li > span:last-child { text-align: right; color: rgba(255, 248, 240, .65); }
.rv__dist i { height: 5px; border-radius: 5px; background: rgba(255, 248, 240, .14); position: relative; overflow: hidden; }
.rv__dist i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--crema); border-radius: inherit; }
.rv__match .mono, .rv__photos .mono { font-size: 10px; color: var(--crema); margin-bottom: 12px; }
.scale { display: grid; gap: 5px; margin-bottom: 14px; font-size: 13px; }
.scale b { font-weight: 500; }
.scale__bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 248, 240, .16); }
.scale__bar i { position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 14px; height: 14px; translate: -50% -50%; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px rgba(201, 154, 104, .35); }
.scale small { display: flex; justify-content: space-between; color: rgba(255, 248, 240, .55); font-size: 11.5px; }
.rv__photos > div { display: flex; align-items: center; }
.rv__photos img, .rv__photos > div > span { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--leaf); margin-left: -10px; }
.rv__photos img:first-child { margin-left: 0; }
.rv__photos > div > span { display: grid; place-items: center; background: var(--crema); color: var(--ink); font-size: 11.5px; font-weight: 600; }

.rv__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rv__filters .chip { height: 38px; }
.rv__list { display: grid; }
.rvi { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); animation: fadeUp .5s var(--ease) both; }
.rvi__head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.rvi__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--latte); font-family: var(--f-serif); font-style: italic; color: var(--roast); }
.rvi__head b { display: block; font-weight: 600; font-size: 14px; }
.rvi__head small { color: var(--mute); font-size: 12px; }
.rvi__date { color: var(--mute); font-size: 10px; }
.rvi h3 { font-family: var(--f-serif); font-weight: 400; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.rvi p { color: var(--mute); max-width: 64ch; }
.rvi__ph { width: 128px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--r-s) var(--r-s); }
.rvi__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
.rvi__tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--paper-2); }
.rvi__tag .i { width: 15px; height: 15px; }
.rvi__help { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; transition: background-color .3s, color .3s; }
.rvi__help:hover, .rvi__help.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rvi--empty { color: var(--mute); }
.rv__more { margin-top: 26px; }

/* ==========================================================================
   07 · MORE
   ========================================================================== */
.more { padding-top: 0; }
.more .sec-head .eyebrow { color: var(--roast); }

/* ==========================================================================
   STICKY ADD BAR
   ========================================================================== */
.sbar { position: fixed; left: 50%; bottom: 18px; z-index: 50; width: min(620px, calc(100% - 24px)); translate: -50% 140%; transition: translate .6s var(--ease); }
.sbar.is-on { translate: -50% 0; }
.sbar__in {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 8px 8px 8px 8px; border-radius: 999px;
  background: rgba(250, 245, 238, .72);
  backdrop-filter: saturate(160%) blur(24px); -webkit-backdrop-filter: saturate(160%) blur(24px);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 50px -24px rgba(60, 35, 20, .5);
}
.sbar__thumb { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.sbar__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sbar__thumb .bag { width: 56%; }
.sbar__txt { min-width: 0; line-height: 1.3; }
.sbar__txt b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar__txt small { display: block; color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar .btn { --bh: 46px; white-space: nowrap; }
.has-sbar .to-top, .has-sbar .proof { translate: 0 -78px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid .card:nth-child(4) { display: none; }
  .profile { grid-template-columns: 170px minmax(0, 1fr); }
  .rv { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .pdp__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); max-width: 620px; width: 100%; margin-inline: auto; }
  .gallery__thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 64px; justify-content: center; }
  .farm__in { grid-template-columns: minmax(0, 1fr); }
  .brew__grid { grid-template-columns: minmax(0, 1fr); }
  .trail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .trail::before { display: none; }
  .rv { grid-template-columns: minmax(0, 1fr); }
  .rv__sum { position: relative; top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 12px; }
  .grid .card:nth-child(4) { display: flex; }
  .prail { gap: 12px; }
  .prail .card { flex-basis: 70vw; }
  .pairs .rail-arrows { display: none; }
  .stage__chip { left: 12px; bottom: 12px; max-width: calc(100% - 150px); padding: 7px 14px; font-size: 12.5px; }
  .stage__nav { right: 12px; bottom: 12px; }
  .stage__nav .mono { display: none; }
  .gallery__thumbs { grid-auto-columns: 54px; }
  .buy__name { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .profile { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 18px; }
  .profile__radar { width: min(100%, 240px); }
  .profile__side { width: 100%; }
  .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .size__card small { font-size: 10.5px; }
  .grind span { height: 40px; padding: 0 13px 0 10px; font-size: 13px; }
  .mode__card { padding: 13px 14px; gap: 12px; }
  .mode__freq { padding-left: 14px; }
  .buy__row { grid-template-columns: auto minmax(0, 1fr); }
  .buy__wish { display: none; }
  .buy__add { padding: 0 18px; }
  .stepper button { width: 36px; }
  .notify__row { flex-direction: column; }
  .acc__dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .farm__facts dd { font-size: 20px; }
  .brew__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brew__specs > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .brew__specs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .brew__steps li { grid-template-columns: 54px 1fr; font-size: 14px; padding: 12px; }
  .trail { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .trail__step { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 18px; }
  .trail__img { width: 84px; grid-row: span 4; margin: 0; }
  .rv__sum { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .rvi__head { grid-template-columns: auto 1fr; }
  .rvi__date { grid-column: 2; }
  .sbar { bottom: 10px; }
  .sbar__in { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .sbar__thumb { width: 44px; height: 44px; }
  .has-sbar .to-top { translate: 0 -70px; }
  .has-sbar .proof { translate: 0 -70px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage { clip-path: none; }
  .slide__bag .bag { animation: none; }
}
