/* label.css and theme.css are linked by the pages themselves (an @import
   here would make the browser fetch them only after this file). */
/* Shop browsing: shop home, category lists and the product page.
   Builds on kit.css (.tile, .btn, .price, .sample, .stock, .qty, .notice)
   and the can label system in shared/label.css. */

/* ---------- Shop home ---------- */
.shop-top { padding: clamp(32px, 6vw, 72px) 0 0; border-bottom: 1px solid var(--line); }
.shop-top h1 { margin-bottom: 18px; }
.shop-top h1 .warm { display: block; text-transform: none; font-size: .62em; line-height: 1.05; margin-top: .12em; color: var(--warm); }
.shop-top__facts { font-size: 1rem; color: var(--fg); margin-bottom: 24px; }

.shop-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.shop-cats a { display: inline-block; padding: 12px 0 10px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none; border-bottom: 3px solid transparent; }
.shop-cats a:hover { border-bottom-color: var(--line); }
.shop-cats a[aria-current="page"] { border-bottom-color: currentColor; }

.shop-list { padding-top: clamp(32px, 5vw, 56px); }
.shop-list > .notice { margin-bottom: 24px; }
.shop-cat + .shop-cat, .shop-cat + .shop-cat-row, .shop-cat-row + .shop-cat { margin-top: clamp(48px, 7vw, 88px); }
.shop-cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 48px 16px; align-items: start; }
.shop-cat-row .shop-cat__head { grid-template-columns: 1fr; min-height: 0; }
.shop-cat-row .shop-cat__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.shop-cat-row .tiles { grid-template-columns: 1fr; }
.shop-cat-row > .shop-cat { margin-top: 0; }
.shop-cat__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; align-items: end; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--fg); }
.shop-cat__head p { margin: 0; }
@media (max-width: 760px) { .shop-cat__head { grid-template-columns: 1fr; } }

/* ---------- Tiles ---------- */
.shop-tile { position: relative; }
.shop-tile .tile__name a { display: inline-block; padding-block: 13px; margin-block: -13px; color: inherit; text-decoration: none; }
.shop-tile .tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.shop-tile:hover .tile__name a, .shop-tile .tile__name a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.shop-tile .tile__name a:focus-visible { outline: none; }
.shop-tile:has(.tile__name a:focus-visible) { outline: 3px solid var(--fg); outline-offset: 3px; }
.shop-tile__add { position: relative; z-index: 2; white-space: nowrap; }
.shop-tile .tile__foot { flex-wrap: wrap; }
.shop-tile__more { font-family: var(--font-body); font-weight: 700; font-size: .875rem; border-bottom: 2px solid currentColor; }
.shop-tile__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.shop-tile .stock { margin: 0; }
.shop-tile__fulfil { font-family: var(--font-body); font-weight: 600; font-size: .875rem; }
.stock--ok { color: var(--ok); }
.tile__foot { margin-top: auto; padding-top: 6px; }
.shop-tile .tile__body { grid-template-rows: auto; height: 100%; }

.shop-face { gap: 10px; }
/* Canned beer: the can still standing on its own colour. */
.shop-face--can { background: radial-gradient(ellipse at 50% 85%, color-mix(in oklab, var(--c) 70%, #fff) 0, var(--c) 60%); }
.tile__face.shop-face--can img { position: absolute; inset: 7% 0 5%; width: 100%; height: 88%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); will-change: transform; }
/* The can lifts and leans about 4deg on hover with a deeper shadow; on touch
   screens it leans once as the tile comes into view (site.js, [data-tilt]).
   Both states use the same filter list (shadow, then a zero-opacity second
   shadow) so the change eases instead of popping, with no pale glow. */
@media (hover: hover) {
  .tile__face.shop-face--can img { transition: transform .3s var(--ease-out), filter .3s; }
  html[data-motion="full"] .shop-tile:hover .shop-face--can img, html[data-motion="full"] .shop-tile:focus-within .shop-face--can img { transform: translateY(-6px) rotate(-4deg); filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .55)); }
}
@media (hover: none) { html[data-motion="full"] .shop-tile.is-seen .shop-face--can img { animation: tilt-once 1s var(--ease-out) calc(var(--i, 0) * 80ms) both; } }
/* Kegs: three beers' labels side by side, as on the home page's Kegs card (home.css .extra__face--kegs). */
.tile__face.shop-face--kegs { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; place-items: stretch; gap: 2px; padding: 0; }
.shop-face--kegs .kegface { position: relative; display: block; overflow: clip; }
/* Not on sale yet. */
/* Coming soon: one compact row of names, not a second grid of tiles */
.shop-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: clamp(24px, 3vw, 32px); padding-top: 16px; border-top: 1px solid var(--line); }
.shop-soon__h { margin: 0; font-size: 1rem; }
.shop-soon__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.shop-soon__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-weight: 600; font-size: .9375rem; text-decoration: none; color: inherit; }
.shop-soon__list a:hover { border-color: var(--fg); }
.shop-soon__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line-strong); }

/* Phones: two tiles a row, the facts that matter, the add button full width. */
@media (max-width: 600px) {
  .shop-list .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-list .tile__body { padding: 10px 12px 12px; gap: 4px; }
  .shop-list .tile__name { font-size: 1rem; }
  .shop-list .tile__meta { font-size: .875rem; }
  .shop-list .tile__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .shop-list .shop-tile__add { width: 100%; padding-inline: 8px; }
  .shop-list .shop-face__mark .wordmark { font-size: 1.4rem; padding: 0 8px; }
  .shop-list .shop-cat-row .tiles { grid-template-columns: 1fr; }
  /* The section intro already says how each thing reaches you. */
  .shop-list .shop-tile__fulfil, .shop-list .stock--ok { display: none; }
}
.shop-face--photo { background: var(--surface-2); }
.shop-face__mark { display: grid; justify-items: center; gap: 6px; }
.shop-face__mark .wordmark { padding: 0 16px; }
.shop-face__note { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-body); font-weight: 600; font-size: .875rem; }
.face-hop { display: block; }

/* ---------- Product page ----------
   A full-bleed label hero (label.css .bl-hero) with the buy controls in its
   band, then sections themed from the product (theme.css). */

/* The band: the label's info strip, holding real controls. */
.lp-band { display: grid; gap: 14px; }
.lp-lede { margin: 0; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.25; }
/* A beer with an award: the real medal beside the line, a 72 to 104px wide so it reads as an award (kit.css .award-medal). */
.lp-award { display: flex; align-items: center; gap: 14px; }
.lp-medal { width: clamp(72px, 7vw, 104px); }
.lp-buy { display: grid; gap: 14px; }
.lp-spec { margin: 0; padding: 10px 0; border-block: 1px solid currentColor; display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--font-body); font-weight: 600; font-size: .9375rem; }
.lp-spec__sep { margin: 0 .75em; }
.lp-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; }
.lp-legend { display: block; margin: 0 0 6px; padding: 0; font-family: var(--font-body); font-weight: 600; font-size: .875rem; }
.lp-choose { margin: 0; }
.lp-opts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lp-opt { position: relative; display: grid; align-content: center; min-width: 52px; min-height: 48px; padding: 6px 12px; border: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; text-decoration: none; }
.lp-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lp-opt__name { font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.1; }
.lp-opt__sub { font-size: .8125rem; line-height: 1.25; }
.lp-opt:has(input:checked), .lp-opt[aria-current="page"] { background: var(--beer-ink); color: var(--beer); }
.lp-opt:has(input:focus-visible) { outline: 3px solid currentColor; outline-offset: 2px; }
.t-field .lp-opt:has(input:focus-visible) { outline-color: var(--beer-ink); }
.lp-opt.is-out { cursor: not-allowed; border-style: dashed; }
.lp-opt.is-out .lp-opt__name { text-decoration: line-through; }
.lp-opt.is-out input { cursor: not-allowed; }
.lp-beers .lp-opt { grid-template-columns: 12px auto; column-gap: 8px; align-items: center; }
.lp-kegbeer__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.lp-select { min-height: 48px; min-width: min(100%, 300px); padding: 8px 12px; border: 1px solid currentColor; border-radius: var(--radius); background: var(--beer); color: var(--beer-ink); font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.lp-select:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.lp-kegbeer .btn { min-height: 48px; }
.lp-swatch { width: 12px; height: 24px; background: var(--c); outline: 1px solid currentColor; }
.lp-qty .qty { border: 1px solid currentColor; }
.lp-qty .qty button { color: inherit; width: 44px; height: 46px; }
.lp-qty .qty button[disabled] { opacity: .45; cursor: not-allowed; }
.lp-pricebox p { margin: 0; }
.lp-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.lp-price .price { font-size: 2.2rem; line-height: 1; }
.lp-price small { font-size: .875rem; }
.t-field .stock, .t-field .sample, .t-field .at-launch { color: inherit; }
.lp-add { min-height: 54px; padding: 10px 28px; font-size: 1.05rem; margin-left: auto; }
.lp-soon { margin: 0; }
.lp-fulfil { margin: 0; font-size: .9375rem; }
.lp-cold { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: .9375rem; }
.lp-cold svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* Sections */
.lp-story, .lp-range, .lp-related { padding: clamp(56px, 8vw, 112px) 0; }
.lp .crumbs { padding: 0 0 clamp(28px, 4vw, 48px); color: var(--muted); }
.lp-story__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lp-story__in--text { grid-template-columns: 1fr; }
.lp-taste .kicker { color: var(--muted); margin-bottom: 14px; }
.lp-taste__text { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.32; letter-spacing: -.005em; margin: 0 0 28px; }
.lp-story__fulfil { margin: 0; font-size: 1.0625rem; }
.lp-more { margin: 0; }
.lp-more a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.lp-cross { margin: 22px 0 0; }

/* Facts as a short list on the deep shade (no grey spec table, no nutrition:
   the brewery's figures are not in yet). */
.lp-facts { margin: 0 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0 28px; border-top: 2px solid var(--accent); }
.lp-facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lp-facts dt { font-family: var(--font-body); font-weight: 600; font-size: .875rem; color: var(--accent); }
.lp-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.0625rem; }
.lp-taste .lp-facts { margin-bottom: 4px; }
.lp-taste .lp-more { margin-top: 20px; }
.lp-crumbs { padding: 28px 0 8px; }
/* "Powered by Untappd": full-strength text, never faded (4.5:1 or better). */
.untappd-credit, .untappd-credit a { color: var(--fg); opacity: 1; }

.lp-range h2, .lp-related h2 { padding-bottom: 12px; border-bottom: 2px solid currentColor; margin-bottom: 24px; }
.lp-range ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 18px; }
.lp-range a { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.lp-range__label { display: block; transition: transform .25s var(--ease-out); }
.lp-range a:hover .lp-range__label { transform: translateY(-4px); }
.lp-range__name { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; line-height: 1.1; margin-top: 6px; }
.lp-range a:hover .lp-range__name, .lp-range a:focus-visible .lp-range__name { text-decoration: underline; text-underline-offset: 3px; }
.lp-range__meta { font-size: .875rem; color: var(--muted); }

.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0, 0, 0, .5); }
.lp-sticky[hidden] { display: none; }
.lp-sticky__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-sticky p { margin: 0; font-size: .875rem; line-height: 1.3; }
.lp-sticky__name { display: block; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.lp-sticky .btn { flex: none; }

.pd-missing h1, .pd-nojs h1 { margin-bottom: 16px; }
html.js .pd-nojs h1 { visibility: hidden; }

/* Quick add needs JavaScript; without it the tile link goes to the product. */
html:not(.js) .shop-tile__add { display: none; }

@media (min-width: 861px) { .lp-sticky { display: none !important; } }
@media (max-width: 1100px) { .lp-add { margin-left: 0; } }
@media (max-width: 860px) {
  .lp-story__in { grid-template-columns: 1fr; }
  body.has-sticky-buy .site-footer { padding-bottom: 104px; }
  .lp-add { width: 100%; }
  .lp-pricebox { margin-left: auto; text-align: right; }
}
@media (max-width: 420px) {
  .lp-spec { font-size: .875rem; }
  .lp-spec__sep { margin: 0 .5em; }
}

/* Keg beer picker: the select and its button wrap on narrow phones. */
.lp-kegbeer__row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.lp-kegbeer__row .lp-select { flex: 1 1 180px; min-width: 0; max-width: 100%; }
/* Never let a band child widen the band past the screen. */
.lp-band > * { min-width: 0; }
.lp-kegbeer, .lp-kegbeer__row > * { min-width: 0; }
/* Fieldsets default to min-content width; let the keg size choices wrap instead. */
.lp fieldset { min-inline-size: 0; }
.lp-choose { flex-wrap: wrap; }
/* A select is as wide as its longest option unless told otherwise. */
.lp-kegbeer__row .lp-select { width: 100%; flex-basis: 100%; }
@media (min-width: 600px) { .lp-kegbeer__row .lp-select { width: auto; flex: 1 1 260px; } }
.noscript-order { padding: 24px 0; }
