/* =========================
   1) BASE (tokens, resets)
   ========================= */

/* assets/app.css */
:root{
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif:'Cormorant Garamond', ui-serif, Georgia, 'Times New Roman', serif;
  --radius: 14px;
  --shadow: 0 18px 46px rgba(0,0,0,0.28);
  --mx: 50vw;
  --my: 30vh;
  --landing-hero-image:url('/assets/cellar-hero.png');
  --discovery-hero-image:url('/assets/cellar-discovery.png');
}
/* Dark: barrel room */
[data-theme="dark"]{
  --bg: #070504;
  --text: #f3ede2;
  --muted: rgba(243,237,226,0.64);
  --border: rgba(243,237,226,0.12);
  --card: rgba(12, 7, 5, 0.55);

  --wood-1: #070504;
  --wood-2: #0e0705;
  --glass: rgba(12, 7, 5, 0.58);
  --glass-2: rgba(22, 12, 8, 0.44);

  /* less yellow, more copper/amber */
  --accent: #c07a2b;
  --accent-2: #d7a056;
  --link: rgba(215,160,86,0.95);
  --ring: rgba(192, 122, 43, 0.35);

  /* whiskey-friendly, not neon */
  --good: #2f7d5a;
  --bad:  #b65a4e;

  /* Smoke Loader (match theme, avoid flicker) */
  --loader-bg: #070504;
  --loader-fg: rgba(243,237,226,0.92);
  --smoke: rgba(175, 175, 175, 0.603);
  --smoke2: rgba(179, 179, 179, 0.562);
  --amber-1: rgba(210, 140, 50, 0.75);
  --amber-2: rgba(120, 70, 25, 0.70);
  --shadow: rgba(0,0,0,0.12);

  /* background ambience */
  --vignette: rgba(0,0,0,0.70);
  --glow-a: rgba(192,122,43,0.12);
  --glow-b: rgba(215,160,86,0.08);
}
* { box-sizing: border-box; }
html, body{
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background-color: var(--wood-1);
}
html[data-theme="dark"]{
  background-color: #070504;
  color-scheme: dark;
}

/* =========================
   Immersive ambient backdrop
   ========================= */
body{
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--wood-1);
  background: linear-gradient(180deg, var(--wood-1), var(--wood-2));
  isolation: isolate;
}
html[data-theme="dark"] body{
  background-color: #070504;
  background-image: linear-gradient(180deg, #070504, #0e0705);
}

/* Ambient + vignette + cursor spotlight */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* cursor spotlight */
    radial-gradient(520px 360px at var(--mx) var(--my), color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    /* warm horizon glow */
    radial-gradient(900px 520px at 22% 18%, var(--glow-a), transparent 62%),
    radial-gradient(760px 520px at 78% 70%, var(--glow-b), transparent 60%),
    /* soft vignette */
    radial-gradient(1200px 900px at 50% 40%, transparent 40%, var(--vignette) 100%);
  filter: saturate(1.05) contrast(1.02);
}
html[data-theme="dark"] body::before{
  background:
    radial-gradient(520px 360px at var(--mx) var(--my), rgba(192,122,43,0.18), transparent 60%),
    radial-gradient(900px 520px at 22% 18%, rgba(192,122,43,0.12), transparent 62%),
    radial-gradient(760px 520px at 78% 70%, rgba(215,160,86,0.08), transparent 60%),
    radial-gradient(1200px 900px at 50% 40%, transparent 40%, rgba(0,0,0,0.70) 100%);
}

/* Subtle grain (cheap but effective; no external assets) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce){
  body::before{ background: radial-gradient(1200px 900px at 50% 40%, transparent 40%, var(--vignette) 100%); }
  body::after{ display:none; }
}

a, a:visited{ color: var(--link); text-decoration: none; font: inherit; }
a:hover{ text-decoration: underline; }
.container { position: relative; z-index: 1; max-width: 1680px; margin: 28px auto; padding: 0 clamp(12px, 2vw, 24px); }
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;         /* allow stacking on small screens */
  margin-bottom:18px;
}
.title{
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 0.98;
}
.header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;       /* keep the two controls together */
}
.btn {
  all:unset;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  cursor:pointer;
  transition: transform 140ms ease, border-color 140ms ease, filter 140ms ease;
  font-size: 0.85rem;
}
.btn:hover{ filter: brightness(1.06); }
.btn:active{ transform: translateY(1px); }
.btn-link{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.06));
  color: var(--accent);
  text-decoration:none;
  transition: transform 140ms ease, border-color 140ms ease, filter 140ms ease;
}
.btn-link:hover{ filter: brightness(1.06); }
.btn-link:active{ transform: translateY(1px); }
@media (max-width: 520px){
  header {
    flex-direction: column;
    align-items:flex-start;
  }
  .header-actions{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}


/* Combo */
.combo{ position: relative; display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--border);
  border-radius: 12px; width: 100%; max-width: 100%; min-width: 0;
  overflow: visible; z-index: 100001; }
.combo input[type='search']{
  flex: 1 1 auto; min-width: 0; height: 42px; border: 0; outline: none; padding: 10px 12px;
  background: transparent; color: var(--text); font: inherit;
}
.combo button#product-toggle{
  height: 42px; border: 0; background: transparent; color: var(--text);
  padding: 0 10px; cursor: pointer; border-left: 1px solid var(--border);
}
.combo select{ position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dropdown{
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #130b08;
  border: 1px solid rgba(244,239,230,0.18);
  border-radius: 12px;
  max-height: 320px; overflow: auto; z-index: 9999;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  /* Backdrop blur is expensive during rapid list updates (search typing). */
  backdrop-filter: none;
  contain: paint;
}

/* Make glass feel more "premium" */
.shelf, .focus-head, .card, .figure, .grid{
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
}
.shelf, .focus-head{
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.dropdown.hidden{ display: none; }
.dropdown .item{
  min-height: 40px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  line-height: 1.25;
  font-size: 13.5px;
}
.dropdown .item:hover{
  background: rgba(197,138,58,0.12);
  border-color: rgba(197,138,58,0.22);
}

mark{
  background: rgba(197,138,58,0.22);
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}
.dropdown .item.active{
  background: rgba(197,138,58,0.18);
  border-color: rgba(197,138,58,0.28);
}

.bar{
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 12px;
  /* prevent overlap: safe min widths + allow shrink */
  grid-template-columns: minmax(280px, 1.6fr) auto minmax(240px, 360px);
  align-items: center;
  overflow: visible;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.side { display: flex; align-items: flex-start; gap: 12px; justify-self: end; min-width:0; }
#product-image { max-height: 110px; max-width: 160px; width: auto; border-radius: 10px; display: block; border: 1px solid var(--border); object-fit: contain; }
#retailer-links a,
.retailer-links a {
  display: inline-block; padding: 6px 10px; border: 1px solid var(--border);
  border-radius: 999px; text-decoration: none; color: var(--accent);
  background: var(--card); font-size: 12px; margin-right: 6px;
}
#retailer-links a:hover,
.retailer-links a:hover { filter: brightness(1.05); }
.retailer-links a{ margin-top: 8px; }

.cards { margin-top: 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card h3{
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat{
  font-family: var(--font-serif);
  font-size: clamp(20px,2.6vw,30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.muted { color: var(--muted); font-size: 12px; }

.chip-honesty{
  display:inline-flex;
  align-items:center;
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 45%, transparent);
  background: color-mix(in srgb, var(--good) 12%, transparent);
  margin-left: 0;
  margin-top: 2px;
  font-size: 11px;
  white-space: nowrap;
}

/* Insights panel */
#insights-panel .grid { margin-top: 8px; overflow-x: auto; overflow-y: hidden; }
#retailer-insights-table { table-layout: fixed; min-width: 520px; }
#retailer-insights-table th, #retailer-insights-table td { font-size: 12px; }
#retailer-insights-table .numeric { text-align: right; white-space: nowrap; }

/* On very small phones, allow wrapping of the first column */
@media (max-width: 420px){
#retailer-insights-table td:first-child { white-space: normal; }
}

.grid { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--card); backdrop-filter: blur(8px); }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
tbody tr:hover td { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent); }
.price-up { color: var(--bad); font-weight: 600; }
.price-down { color: var(--good); font-weight: 600; }

.figure { margin-top: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 8px 0; width: 100%; }
.graph { width: 100% !important; max-width: 100%; }
.js-plotly-plot .plotly, .js-plotly-plot .plot-container, .js-plotly-plot .svg-container { width: 100% !important; max-width: 100% !important; overflow: visible !important; }
.figure, .panel, .grid, .graph { min-width: 0; }

.panel{
  margin-top: 14px;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* =======================
    Best Deals: Floating Story Scroll
    ======================= */
.story-deals{
  margin-top: 10px;
  padding: 8px 4px 2px;
}
.story-title{
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.0vw, 22px);
  letter-spacing: -0.01em;
}
.story-sub{ margin-bottom: 14px; max-width: 62ch; }

/* Free-flow stage: NOT a grid. Each deal lives on its own line. */
.float-stage{
  display:flex;
  flex-direction:column;
  gap: clamp(22px, 4.0vw, 54px);
  padding: 10px clamp(12px, 3.2vw, 52px) 2px;
}
/* =======================
   Best Deals: Scroll reveal (single source of truth)
   ======================= */
.deal-card{
  width: min(780px, 92vw);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
  --enter-x: 0px;   /* offscreen-ish start */
  --rest-x: 0px;    /* slight settled offset (left/right) */
  --delay: 0ms;
  opacity: 0;
  transform: translate3d(calc(var(--enter-x) + var(--rest-x)), 10px, 0) scale(0.985);
  filter: blur(1.5px);
  transition:
    transform 760ms cubic-bezier(.16,1,.3,1) var(--delay),
    opacity 520ms ease var(--delay),
    filter 760ms ease var(--delay);
  will-change: transform, opacity, filter;
}

/* Leave them slightly offset left/right once they settle */
.deal-card.float-left{  align-self:flex-start; }
.deal-card.float-right{ align-self:flex-end; }
.deal-card.float-left{  padding-left:  clamp(10px, 2.2vw, 36px); }
.deal-card.float-right{ padding-right: clamp(10px, 2.2vw, 36px); }

@media (max-width: 860px){
  .deal-card.float-left,
  .deal-card.float-right{
    align-self:stretch;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Quiet header utilities (Theme + Insights) */
header .header-actions{
  gap: 6px;
}
header .header-actions .btn,
header .header-actions .btn-link{
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
  opacity: 0.85;
  box-shadow: none;
}
header .header-actions .btn:hover,
header .header-actions .btn-link:hover{
  opacity: 1;
  color: var(--text);
  border-color: color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  text-decoration: none;
}
header .header-actions .btn:active,
header .header-actions .btn-link:active{
  transform: translateY(1px);
}
/* Make cards feel unbounded */
.deal-card::before{
  content:"";
  position:absolute;
  inset:-26px;
  pointer-events:none;
  opacity:0.48;
  filter: blur(22px);
  background:
    radial-gradient(120px 90px at 18% 18%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    radial-gradient(140px 100px at 82% 68%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
}

/* The actual surface is a thin glass strip, not a full card */
.deal-btn{
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}
.deal-top{
  padding: 12px 12px 10px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: end;
}
.deal-top::after{
  content:"";
  grid-column: 1 / -1;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--border) 70%, transparent),
    transparent
  );
  opacity: 0.9;
}

/* Drawer: keep it, but make it feel like a note not a panel */
/* =======================
   Bottle shelf: scroll-reveal (keep this; make it compatible with resting offset)
   ======================= */
.deal-card.is-inview{
  opacity: 1;
  transform: translate3d(var(--rest-x), 0, 0) scale(1);
  filter: blur(0);
}
.deal-card.enter-left{  --enter-x: -26px; }
.deal-card.enter-right{ --enter-x:  26px; }


@media (prefers-reduced-motion: reduce){
  .deal-card{
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
/* SVG whisky bottle (etched glass style) */
.bottle-svg{
  width: 48px;
  height: 96px;
  stroke: var(--text);
  stroke-opacity: 0.75;
  fill: none;
}
.bottle-svg .glass{
  fill: rgba(255,255,255,0.04);
  stroke-width: 1.4;
}
.bottle-svg .whisky{
  fill: linear-gradient(to top, rgba(197,138,58,0.35), rgba(224,177,92,0.15));
  stroke: none;
}
.bottleIcon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  color: color-mix(in srgb, var(--accent) 55%, var(--text));
}
.bottleIcon svg{ width:46px; height:46px; }
.bottleStroke{
  fill:none;
  stroke:currentColor;
  stroke-width:2.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bottleSubtle{ opacity:.5; }

.deal-name{
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-size: 18px;
  margin: 0 0 6px;
}
.deal-price{
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 22px;
  margin: 0;
}
.deal-sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-size: 11px;
  color: var(--text);
}
.pill-amber{ color: var(--accent); border-color: rgba(197,138,58,0.35); background: rgba(197,138,58,0.08); }
.pill-good{ color: var(--good); border-color: rgba(127,191,149,0.35); background: rgba(127,191,149,0.10); }

.deal-drawer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.06);
}
.deal-card[aria-expanded="true"] .deal-drawer{ max-height: 360px; }
.deal-drawer-inner{
  padding: 12px;
  display: grid;
  gap: 10px;
}
.deal-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kv{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.kv .k{ font-size: 11px; color: var(--muted); letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 6px; }
.kv .v{ font-weight: 700; font-family: var(--font-serif); letter-spacing: -0.01em; }
.deal-actions{
  display:flex;
  gap:8px;
  flex-wrap: wrap;
}
.deal-actions .btn, .deal-actions .btn-link{ height: 20px; padding: 5px 10px; font-size: 0.85rem; border-radius: 8px;}

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tooltip-bubble{
  position: fixed; z-index: 99999; pointer-events: none;
  background: var(--card); color: var(--text); border:1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-width: 320px; white-space: pre-wrap;
}

/* Timeframe pills */
.time-pills{ display:flex; gap:8px; margin:6px 0 10px; flex-wrap:wrap; }
.time-pills button{
  all:unset; cursor:pointer; padding:6px 10px; border:1px solid var(--border);
  border-radius:999px; background: var(--card); color: var(--text); font-size:12px;
}
.time-pills button.active{ color:var(--accent); border-color:var(--accent); }

/* Badges */
.chip{
  display:inline-block;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--accent);
  margin-right: 6px;
  background: rgba(195,138,47,0.10);
}

/* Row reveal animation */
@keyframes rise { from { transform: translateY(8px); opacity:0; } to { transform:none; opacity:1; } }
#top5-table tbody tr { animation: rise 280ms ease both; }
#top5-table tbody tr:nth-child(1){ animation-delay: 40ms }
#top5-table tbody tr:nth-child(2){ animation-delay: 80ms }
#top5-table tbody tr:nth-child(3){ animation-delay: 120ms }
#top5-table tbody tr:nth-child(4){ animation-delay: 160ms }
#top5-table tbody tr:nth-child(5){ animation-delay: 200ms }

a.top5-product:hover { filter: brightness(1.1); text-decoration: underline; }

/* Top-5 product column layout */
#top5-table .col-product{
  max-width: 260px;
}
#top5-table td.col-product{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
#top5-table .product-main{
  line-height:1.25;
}
#top5-table .product-badge{
  line-height:1.1;
}

/* Extra meta line under product (used to surface hidden columns on mobile) */
#top5-table .product-meta{
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* ---- Mobile table stays a real table ---- */
@media (max-width: 680px){
  .bar { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .side { display: flex; align-items: flex-start; gap: 10px; justify-self: start; }
  #product-image { max-height: 90px; max-width: 60vw; }

  /* Compact density */
  #retailer-table.table-compact th,
  #retailer-table.table-compact td { padding: 6px 8px; font-size: 12px; line-height: 1.2; }
  #retailer-table .numeric { text-align: right; white-space: nowrap; }
  #retailer-table .muted { font-size: 11px; }

  .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 420px){
  .title { font-size: 18px; }
  .stat  { font-size: 18px; }
  #retailer-table.table-compact th,
  #retailer-table.table-compact td { padding: 5px 6px; font-size: 11px; }
}

/* Mobile: ensure As-of fits "06 Oct 14:35" */
@media (max-width: 680px){
  #retailer-table .col-asof {
    width: 128px;           /* enough for "DD Mon HH:MM" */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Slightly reduce font for the as-of cell to win a few pixels */
  #retailer-table.table-compact .col-asof { font-size: 11px; }
}

/* Ultra narrow phones: be even tighter */
@media (max-width: 380px){
  #retailer-table .col-asof { width: 120px; }
}

@media (max-width: 480px){
  #top5-table td,
  #top5-table th{
    padding: 6px 6px;
    font-size: 11px;
  }
  #top5-table .col-product{
    max-width: 220px;
  }
}

/* Mobile layout for Top-5: keep only key columns, hide the rest */
@media (max-width: 600px){
  /* Hide "Usual (12-month)", "12-month Low", "Retailer", "Drop %" columns */
  #top5-table th:nth-child(3),
  #top5-table td:nth-child(3),
  #top5-table th:nth-child(4),
  #top5-table td:nth-child(4),
  #top5-table th:nth-child(6),
  #top5-table td:nth-child(6),
  #top5-table th:nth-child(8),
  #top5-table td:nth-child(8){
    display:none;
  }

  /* Slightly tighter numeric columns so values do not clip on the right edge */
  #top5-table td:nth-child(5),
  #top5-table td:nth-child(7){
    padding-right: 4px;
    font-size: 10px;
  }
  /* Small extra breathing room inside the Top-5 panel when scrollable */
  .panel.scroll-x {
    padding-right: 8px;
  }
  /* Let the product column breathe, since it now carries meta info too */
  #top5-table .col-product{
    max-width: none;
  }
}

/* @media (min-width: 681px){
  #density-toggle { display: none; }
} */

/* Fixed layout for horizontal scroll stability (optional but recommended) */
#retailer-table { table-layout: fixed; min-width: 920px; }
#retailer-table .col-retailer { width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#retailer-table .col-asof { width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* was 120px */
#retailer-table .numeric { white-space: nowrap; }

.retailer-rail-grid{
  overflow: visible;
  padding: 8px;
  background: transparent;
}

#retailer-table.retailer-rail-table{
  display: block;
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: separate;
  background: transparent;
  backdrop-filter: none;
}

#retailer-table.retailer-rail-table thead{
  display: none;
}

#retailer-table.retailer-rail-table tbody{
  display: grid;
  gap: 7px;
}

#retailer-table.retailer-rail-table tr{
  display: block;
}

#retailer-table.retailer-rail-table td{
  display: block;
  padding: 0;
  border: 0;
  background: transparent !important;
}

#retailer-table.retailer-rail-table tr.ret-row{
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  background: color-mix(in srgb, var(--card) 54%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.retailer-offer{
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 0.8fr) minmax(116px, auto);
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 9px 11px;
}

.retailer-offer__name{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff7ec;
  font-weight: 600;
  line-height: 1.2;
}

.retailer-offer__name > span:first-child{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retailer-offer__badge{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: color-mix(in srgb, #fff2bf 88%, var(--accent));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.retailer-offer__badge--up{
  border-color: color-mix(in srgb, var(--bad) 36%, transparent);
  background: color-mix(in srgb, var(--bad) 9%, transparent);
  color: color-mix(in srgb, var(--bad) 82%, #fff);
}

.retailer-offer__rail{
  position: relative;
  height: 18px;
}

.retailer-offer__rail::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(224,177,92,0.28), rgba(247,229,198,0.12));
}

.retailer-offer__rail span{
  position: absolute;
  left: var(--price-pos, 0%);
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(247,229,198,0.78);
  box-shadow: 0 0 0 3px rgba(224,177,92,0.10);
}

.retailer-offer__price{
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
  line-height: 1.1;
}

.retailer-offer__price strong{
  color: #fff7ec;
  font-size: 15px;
  font-weight: 700;
}

.retailer-offer__price span{
  color: color-mix(in srgb, var(--muted) 90%, var(--text));
  font-size: 11px;
  font-weight: 600;
}

#retailer-table.retailer-rail-table tr.ret-row.is-best{
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: linear-gradient(90deg, rgba(224,177,92,0.105), rgba(255,255,255,0.028));
}

#retailer-table.retailer-rail-table tr.ret-row.is-best .retailer-offer__rail span{
  background: #fff2bf;
}

#retailer-table.retailer-rail-table tr.ret-row:hover,
#retailer-table.retailer-rail-table tr.ret-row.is-highlighted,
#retailer-table.retailer-rail-table tr.ret-row[aria-expanded="true"]{
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: linear-gradient(90deg, rgba(224,177,92,0.14), rgba(255,255,255,0.035));
}

#retailer-table.retailer-rail-table tr.ret-row:focus-visible{
  outline: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  outline-offset: 2px;
}

#retailer-table.retailer-rail-table tr.ret-row.is-dimmed{
  opacity: 0.46;
}

#retailer-table.retailer-rail-table tr.var-row td{
  padding: 0 6px 4px;
}

#retailer-table.retailer-rail-table tr.retailer-empty td{
  padding: 14px 12px;
  color: var(--muted);
  font-size: 12px;
}

.retailer-offer-detail{
  display: grid;
  gap: 10px;
  margin: 0 0 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
  background: rgba(255,255,255,0.032);
}

.retailer-offer-detail__facts{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.retailer-offer-detail__fact{
  display: grid;
  gap: 3px;
  min-width: 0;
}

.retailer-offer-detail__fact span{
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retailer-offer-detail__fact strong{
  color: #fff7ec;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.retailer-offer-detail__link{
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 680px){
  .retailer-rail-grid{
    padding: 7px;
  }

  .retailer-offer{
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    min-height: 58px;
    padding: 10px;
  }

  .retailer-offer__rail{
    grid-column: 1 / -1;
    order: 3;
    height: 12px;
  }

  .retailer-offer__price strong{
    font-size: 14px;
  }

  .retailer-offer-detail__facts{
    grid-template-columns: 1fr 1fr;
  }
}


/* Sticky header inside scroll */

/* ---- Variants block (desktop + mobile) ---- */
.wpt-var-box{
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
  padding:10px;
}
.wpt-var-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.wpt-var-item:last-child{ border-bottom:0; }
.wpt-var-left{ min-width:0; }
.wpt-var-link{
  color:var(--accent);
  text-decoration:none;
  display:inline-block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wpt-var-meta{ margin-top:2px; }
.wpt-var-price{ white-space:nowrap; font-weight:600; }

/* Mobile: keep variant price visible without horizontal scrolling */
@media (max-width: 680px){
  /* If user is scrolled horizontally, keep the variants cell anchored to the left */
  #retailer-table tr.var-row td{
    position: sticky;
    left: 0;
    background: var(--card);
    z-index: 2;
  }
  #retailer-table.retailer-rail-table tr.var-row td{
    position: static;
    left: auto;
    background: transparent !important;
    z-index: auto;
  }
  /* Stack label + meta + price vertically (price is now always in view) */
  .wpt-var-item{
    display:grid;
    grid-template-columns: 1fr;
    gap:4px;
    align-items:start;
  }
  .wpt-var-link{
    white-space:normal;     /* allow wrapping instead of pushing price off-screen */
    overflow:visible;
    text-overflow:clip;
  }
  .wpt-var-price{
    justify-self:start;     /* price sits under the title, left-aligned */
  }
}
.hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin: 10px 0 16px;
  padding: 14px 14px 6px;
}
.hero-left{ max-width: 760px; }
.subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.quicknav{
  margin: 10px 0 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.quicknav__btn{
  all: unset;
  cursor: pointer;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
}
.quicknav__btn:hover{
  color: var(--text);
}
.quicknav__btn.is-active{
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Critical: keep search dropdown above panels */
.bar{
  position: relative;
  z-index: 100000;
  isolation: isolate; /* prevents other stacking contexts jumping above */
}
.dropdown{
  z-index: 100002;
}
.panel,
.grid,
.figure{
  position: relative;
  z-index: 1;
}

/* --- Deal stream layout (less grid, more editorial) --- */
.deal-stream{
  display:flex;
  flex-direction:column;
  gap: clamp(18px, 5vh, 48px);
  padding: clamp(10px, 2vh, 18px) 0;
}

/* Each item is "free-floating" with offsets, not a rigid card */
.deal-item{
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2.4vh, 22px) clamp(14px, 2.4vw, 26px);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  background: color-mix(in srgb, var(--card) 78%, transparent);
  box-shadow: none; /* kill "dashboard card" */
  position: relative;
  overflow: clip;
}

/* Subtle "glass/paper" edge without looking like a widget */
.deal-item::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  background:
    radial-gradient(1200px 240px at 15% 0%, rgba(255,255,255,0.07), transparent 60%),
    radial-gradient(900px 200px at 85% 100%, rgba(255,255,255,0.05), transparent 55%);
  opacity: 0.9;
}

/* Persistent left/right resting positions */
.deal-item.from-left { transform: translate3d(-22px,0,0); }
.deal-item.from-right{ transform: translate3d( 22px,0,0); }

/* Reveal states (reveal once; no popping out) */
.deal-item.is-pre{
  opacity: 0;
  filter: blur(2px);
}
.deal-item.is-pre.from-left { transform: translate3d(-64px, 0, 0); }
.deal-item.is-pre.from-right{ transform: translate3d( 64px, 0, 0); }

.deal-item{
  transition:
    transform 900ms cubic-bezier(.2,.9,.2,1),
    opacity  900ms cubic-bezier(.2,.9,.2,1),
    filter   900ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, opacity;
}
.deal-item.is-in{
  opacity: 1;
  filter: blur(0);
}

/* Mobile: more padding + smaller offsets so content never hits the edge */
@media (max-width: 680px){
  .deal-stream{ gap: clamp(18px, 6vh, 56px); }
  .deal-item{
    width: 100%;
    margin: 0;
    padding: 16px 16px;
    border-radius: 16px;
  }
  .deal-item.from-left  { transform: translate3d(-10px,0,0); }
  .deal-item.from-right { transform: translate3d( 10px,0,0); }
  .deal-item.is-pre.from-left  { transform: translate3d(-34px,0,0); }
  .deal-item.is-pre.from-right { transform: translate3d( 34px,0,0); }
}

@media (prefers-reduced-motion: reduce){
  .deal-item{ transition:none !important; transform:none !important; filter:none !important; opacity:1 !important; }
}

/* ===== Override: floating deal vignettes (append at END of file) ===== */

/* More vertical breathing room so reveals aren't manic */
#top5-shelf.float-stage{
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(24px, 6vh, 64px) !important;
  padding: 10px clamp(12px, 4vw, 56px) 2px !important;
}

/* Make them feel less like cards */
#top5-shelf .deal-card{
  width: min(820px, 92vw) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  position: relative !important;
  isolation: isolate !important;
}

/* Soft glow instead of card chrome */
#top5-shelf .deal-card::before{
  content:"" !important;
  position:absolute !important;
  inset:-28px !important;
  pointer-events:none !important;
  opacity:0.45 !important;
  filter: blur(22px) !important;
  background:
    radial-gradient(140px 110px at 18% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(160px 120px at 82% 68%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 72%) !important;
}

/* Keep the "settled" offset left/right */
#top5-shelf .deal-card.float-left{
  align-self: flex-start !important;
  --rest-x: -16px; /* resting offset without fighting transform */
  padding-left: clamp(10px, 2.2vw, 36px) !important;
}
#top5-shelf .deal-card.float-right{
  align-self: flex-end !important;
  --rest-x: 16px;  /* resting offset without fighting transform */
  padding-right: clamp(10px, 2.2vw, 36px) !important;
}

/* Mobile: no hugging edges, smaller offsets */
@media (max-width: 680px){
  #top5-shelf.float-stage{
    padding-left: 14px !important;
    padding-right: 14px !important;
    gap: clamp(22px, 7vh, 72px) !important;
  }
  #top5-shelf .deal-card{
    width: 100% !important;
  }
  #top5-shelf .deal-card.float-left,
  #top5-shelf .deal-card.float-right{
    align-self: stretch !important;
    --rest-x: 0px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* =========================
+   Discovery layout (shelf + focus)
+   ========================= */
.discovery{
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  position: relative;
  z-index: 0;
}
.shelf{
  position: sticky;
  top: 14px;
  z-index: 50;
  max-height: calc(100vh - 28px);
  overflow: visible;
  min-width: 0;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.shelf-head{
  padding: 12px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 600; /* ensure dropdown layers above shelf list */
  overflow: visible;
  min-width: 0;
}
.shelf-title{
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.shelf-head .combo{
  width: 100%;
  border-radius: 12px;
}

/* --- Browse filters (guided search) --- */
.filterbar{
  display: grid;
  gap: 8px;
  contain: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 2px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
}
.filterbar__toolbar{
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 120px 140px 96px;
  gap: 10px;
  align-items: end;
}
.filterdrawer{
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 0;
  background: transparent;
}
.sortdrawer{
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 0;
  background: color-mix(in srgb, var(--card) 38%, transparent);
}
.filterdrawer.hidden{
  display: none;
}
.sortdrawer.hidden{
  display: none;
}
.filterdrawer__intro{
  font-size: 12px;
  line-height: 1.4;
}
.sortdrawer__intro{
  font-size: 12px;
  line-height: 1.4;
}
.filterdrawer__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.sortdrawer__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 10px;
  align-items: end;
}
.filtergroup{
  margin: 0;
  border-radius: 12px;
  border: 0;
  background: color-mix(in srgb, var(--card) 34%, transparent);
  overflow: visible;
}
.filtergroup__summary{
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 10px 52px 10px 12px;
  position: relative;
}
.filtergroup__summary::-webkit-details-marker{
  display: none;
}
.filtergroup__summary::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid color-mix(in srgb, var(--text) 72%, transparent);
  border-bottom: 1.8px solid color-mix(in srgb, var(--text) 72%, transparent);
  transform: translateY(-60%) rotate(45deg);
}
.filtergroup[open] .filtergroup__summary::after{
  transform: translateY(-35%) rotate(-135deg);
}
.filtergroup__title{
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.filtergroup__desc{
  font-size: 11px;
  min-width: 0;
  line-height: 1.35;
}
.filtergroup__body{
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}
.filtergroup__body--product{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.filtergroup__body--origin{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.filtergroup__body--shopping{
  grid-template-columns: minmax(0, 1fr);
}
.filterrange{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.filterdrawer__actions{
  display: flex;
  justify-content: flex-end;
}
.filterfield--priceblock{
  align-content: start;
}
.filterctl--sortmobile{
  display: none;
}
.filterrow{
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.filterrow--facets{ grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
.filterrow--price{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filterrow--actions{ grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.filterrow > *{
  min-width: 0;
}
.filterfield{
  display: grid;
  gap: 5px;
  min-width: 0;
  position: relative;
}
.filterfield--inline{
  gap: 4px;
}
.filterfield__label{
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.filterfield__label--ghost{
  visibility: hidden;
}
.filtermulti__trigger{
  text-align: left;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  padding-right: 46px;
}
.filtermulti__trigger::after{
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid color-mix(in srgb, var(--text) 72%, transparent);
  border-bottom: 1.8px solid color-mix(in srgb, var(--text) 72%, transparent);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.filtermulti.is-open .filtermulti__trigger::after{
  transform: translateY(-35%) rotate(-135deg);
}
.filtermulti__panel{
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  width: min(460px, calc(100vw - 42px));
  z-index: 5000;
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  border-radius: 10px;
  background: #130b08;
  box-shadow: 0 14px 26px rgba(0,0,0,0.35);
  padding: 8px;
  max-height: min(320px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.filterrow--facets .filterfield:nth-child(2) .filtermulti__panel{
  left: 50%;
  transform: translateX(-50%);
}
.filterrow--facets .filterfield:nth-child(3) .filtermulti__panel{
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.filterrow--facets .filterfield:nth-child(4) .filtermulti__panel{
  left: auto;
  right: 0;
  transform: none;
}
.filterrow--facets .filterfield:nth-child(5) .filtermulti__panel{
  left: auto;
  right: 0;
  transform: none;
}
.filtermulti.is-open .filtermulti__panel{
  display: grid;
  gap: 7px;
}
.filtermulti__controls{
  display: flex;
  gap: 6px;
}
.filtermulti__search{
  display: block;
}
.filtermulti__search-input{
  height: 36px;
}
.filtermini{
  all: unset;
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.filtermini:hover{
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.filtermulti__options{
  display: grid;
  gap: 4px;
  max-height: min(250px, 40vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: color-mix(in srgb, #000 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 8px;
  padding: 6px;
}
.filteropt{
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  min-height: 34px;
  padding: 6px 5px;
  cursor: pointer;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.filteropt.is-hidden{
  display: none;
}
.filteropt input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: color-mix(in srgb, var(--accent) 85%, #fff);
}
.filteropt:hover{
  background: rgba(255,255,255,0.08);
}
.filteropt span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filtermulti__empty{
  font-size: 12px;
  color: var(--muted);
  padding: 6px 4px 2px;
}
.filterctl{
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--text);
  padding: 0 11px;
  font-family: var(--font-sans);
  font-size: 14px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filterhelp{
  font-size: 11px;
  color: var(--muted);
  padding: 0 2px;
}
.browse-meta{
  margin-top: -2px;
}
.filterchips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filterchips.hidden{
  display: none;
}
.filterchip{
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 11px;
  color: var(--text);
}
.filterbar select.filterctl:not([multiple]){
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, color-mix(in srgb, var(--text) 68%, transparent) 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--text) 68%, transparent) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 54%,
    calc(100% - 11px) 54%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.combo input[type='search']:focus,
.filterctl:focus,
.filterbtn:focus{
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.filterbtn{
  height: 40px;
  align-self: end;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  padding: 0 12px !important;
  border-radius: 12px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  font-size: 14px;
}
.filterfield--action .filterbtn{
  margin-top: 0;
}
#filterbar .filterbtn#filter-clear{
  color: var(--accent);
  background: color-mix(in srgb, var(--card) 55%, transparent);
}
.filterctl--toggle{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.filterctl--filters.has-filters{
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.filterctl--filters.is-open{
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.filtertoggle__count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.filtertoggle__count--sort{
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filterbtn--drawer{
  width: auto;
  min-width: 140px;
}
@media (max-width: 980px){
  .filterbar{
    padding: 9px;
  }
  .filterbar__toolbar{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .filterfield--sort-desktop,
  .filterctl--sortdir-desktop,
  .filterfield--clear-desktop{
    display: none;
  }
  .filterctl--sortmobile{
    display: inline-flex;
  }
  .filterctl--sortmobile > span:first-child{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sortdrawer{
    padding: 12px;
    gap: 12px;
  }
  .sortdrawer__grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .filterdrawer__grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .filterdrawer{
    padding: 12px;
    gap: 12px;
  }
  .filtergroup{
    border-radius: 14px;
  }
  .filtergroup__summary{
    padding: 12px 54px 12px 14px;
  }
  .filtergroup__body{
    gap: 12px;
    padding: 0 14px 14px;
  }
  .filtergroup__body--product,
  .filtergroup__body--origin{
    grid-template-columns: 1fr;
  }
  .filterrange{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .filterfield{
    gap: 6px;
  }
  .filterctl,
  .filterbtn{
    min-height: 44px;
    font-size: 15px;
  }
  .filtermulti__search-input{
    height: 40px;
  }
  .filteropt{
    min-height: 40px;
  }
  .filterdrawer__actions{
    justify-content: stretch;
  }
  .filterbtn--drawer{
    width: 100%;
    min-width: 0;
  }
  .filterchips{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .filterchips::-webkit-scrollbar{
    display: none;
  }
  .filterchip{
    flex: 0 0 auto;
  }
  .filterrow--facets{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filterrow--price,
  .filterrow--actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filterrow--actions .filterfield--action{
    grid-column: span 2;
  }
  .filterrow--facets .filterfield .filtermulti__panel{
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: -14px;
    right: -14px;
    transform: none;
    width: auto;
    max-width: none;
    max-height: min(420px, 58dvh);
    margin: 0;
    padding: 10px;
    border-radius: 16px;
  }

  .filtermulti__panel{
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: -14px;
    right: -14px;
    transform: none;
    width: auto;
    max-width: none;
    max-height: min(420px, 58dvh);
    margin: 0;
    padding: 10px;
    border-radius: 16px;
  }

  .filtermulti__options{
    max-height: min(300px, 42dvh);
  }

  .filteropt span{
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.25;
  }
}
@media (max-width: 1280px){
  .filterdrawer__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filterrow--facets{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  .quicknav{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .container{
    padding: 0 10px;
  }
  .shelf-head{
    padding: 10px;
    gap: 8px;
  }
  .shelf-title{
    font-size: 17px;
  }
  .combo input[type='search']{
    height: 40px;
    padding: 9px 10px;
    font-size: 15px;
  }
  .combo button#product-toggle{
    height: 40px;
    padding: 0 8px;
  }
  .dropdown{
    max-height: 280px;
    padding: 5px;
  }
  .dropdown .item{
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .filterrow--facets{
    grid-template-columns: minmax(0, 1fr);
  }
  .filterrow--price,
  .filterrow--actions{
    grid-template-columns: minmax(0, 1fr);
  }
  .filterctl,
  .filterbtn{
    height: 39px;
    font-size: 13px;
  }
  .filtermulti__options{
    max-height: min(220px, 36dvh);
  }
  .filteropt{
    font-size: 12px;
    min-height: 36px;
  }
}

/* Price range bar above Top 5 */
.pricebar{
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  box-shadow: var(--shadow);
}
.pricebar__title{
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 8px;
}
.pricebar__row{
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.pricebar__input{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  color: var(--text);
  outline: none;
}
.pricebar__hint{ margin-top: 6px; font-size: 12px; }

/* Button variants used above */
.btn--soft{
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}
.btn--ghost{
  background: transparent;
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
}
.shelf-list{
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  max-height: min(58vh, calc(100vh - 210px));
  min-width: 0;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  position: relative;
  z-index: 1;
}
.shelf-item{
  all: unset;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: color-mix(in srgb, var(--card) 78%, transparent);
  margin-bottom: 6px;
  min-width: 0;
  overflow: hidden;
}
.shelf-item:hover{
  background: color-mix(in srgb, var(--card) 55%, transparent);
  border-color: color-mix(in srgb, var(--border) 85%, transparent);
}
.shelf-item.is-active{
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}
.shelf-thumb-frame{
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 3px;
  border: 1px solid rgba(27,18,12,0.12);
  background: #fff;
  overflow: hidden;
}

.shelf-image-btn{
  cursor: zoom-in;
}

.shelf-image-btn:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 3px;
}

.shelf-image-btn:hover .shelf-thumb,
.shelf-image-btn:focus-visible .shelf-thumb{
  filter: saturate(1.05) brightness(1.04);
}

.shelf-thumb{
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.shelf-thumb-placeholder{
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(230,224,214,0.78));
}
.shelf-name{
  display: block;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.shelf-sub{
  margin-top: 2px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shelf-deal{
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shelf-body{
  all: unset;
  display: block;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

.shelf-body:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 4px;
  border-radius: 8px;
}

.focus{
  min-width: 0;
  position: relative;
  z-index: 1;
}
.focus-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
  padding: 14px 14px 10px;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.focus-meta{
  min-width: 240px;
  flex: 1 1 340px;
}
.focus-image{
  max-height: 120px;
  max-width: 190px;
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: contain;
  display: block;
}
.badge-row{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 8px; }
@media (max-width: 900px){
  .discovery{
    grid-template-columns: 1fr;
  }
  .focus{
    order: 1;
  }
  .shelf{
    order: 2;
    position: relative;
    max-height: none;
  }
  .shelf-list{
    max-height: min(46vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.plot-stage{
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: clip;
}

.plot-kicker{ font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.plot-h1{
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(18px, 2.0vw, 26px);
  line-height: 1.1;
}
.plot-actions{ display:flex; gap:8px; }
.plot-stage .figure{
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: clamp(14px, 2vw, 20px) clamp(14px, 2vw, 20px) 4px;
}

@media (max-width: 680px){
  .plot-stage .figure{
    padding: 10px 10px 2px;
  }

  #plot-expand,
  .js-plotly-plot .modebar,
  .js-plotly-plot .rangeselector{
    display: none !important;
  }
}

/* Fullscreen overlay */
.plot-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
}
.plot-overlay.is-open{ display: block; }
.plot-overlay-inner{
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.plot-overlay-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.plot-overlay-title{
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.plot-overlay-host{
  padding: 10px 10px 0;
}

.plot-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 4px 10px;
}
.plot-title{
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plot-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  z-index: 200000;
  display: none;
}
.plot-modal.is-open{ display:block; }
.plot-modal__inner{
  position:absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.plot-modal__body{
  flex: 1 1 auto;
  min-height: 0;
}

/* Plot expanded (plot-modal): lock page + hide picker/shelf behind overlay */
body:has(.plot-modal.is-open){
  overflow: hidden;
}

/* Hide the top picker bar while expanded (immersive) */
body:has(.plot-modal.is-open) .bar{
  display: none;
}

/* Optional: also hide the left shelf while expanded */
body:has(.plot-modal.is-open) .shelf{
  visibility: hidden;
  pointer-events: none;
}

/* Ensure modal sits above everything */
.plot-modal{ z-index: 300000; }
/* =========================
   Plot expanded: lock page + hide picker/shelf behind overlay
   (CSS-only using :has; works in modern Chromium)
   ========================= */
body:has(.plot-modal.is-open),
body:has(.plot-overlay.is-open){
  overflow: hidden;
}

/* Hide the product picker area while expanded (immerse) */
body:has(.plot-modal.is-open) .bar,
body:has(.plot-overlay.is-open) .bar{
  display: none;
}

/* Optional: also hide the left shelf while expanded */
body:has(.plot-modal.is-open) .shelf,
body:has(.plot-overlay.is-open) .shelf{
  visibility: hidden;
  pointer-events: none;
}

/* Make sure the expanded plot always sits above everything */
.plot-modal{ z-index: 300000; }
.plot-overlay{ z-index: 300000; }
body.plot-open{
  overflow: hidden;
}
body.plot-open .shelf{
  display: none;
}

/* ==================================================
   Immersive Experience Overrides
   ================================================== */
.eyebrow{
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.journey-nav{
  position: sticky;
  top: 8px;
  z-index: 3000;
  margin: 2px 0 14px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 75%, transparent);
  display: flex;
  align-items: stretch;
  gap: 8px;
  backdrop-filter: blur(12px);
}

.journey-nav__btn{
  all: unset;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 10px;
}

.journey-nav__btn:hover{
  color: var(--text);
  border-color: color-mix(in srgb, var(--border) 90%, transparent);
}

.journey-nav__btn.is-active{
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.selector-dock{
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 56%, transparent), color-mix(in srgb, var(--glass-2) 62%, transparent));
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.selector-dock__head{
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.selector-dock__title{
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.3vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.selector-dock__sub{
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.selector-controls{
  width: 100%;
  max-width: none;
}

.selector-controls .combo{
  width: 100%;
}

.selector-dock > #product-combo{
  width: 100%;
  margin-top: 8px;
  position: relative;
  z-index: 24;
}

.selector-dock .browse-meta{
  margin-top: 8px;
}

.deal-pager{
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.deal-pager.hidden{
  display: none;
}

.deal-pager__btn{
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deal-pager__btn:disabled{
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.deal-pager__info{
  align-self: center;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.deal-pager__pick{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.deal-pager__pick .muted{
  font-size: 11px;
  white-space: nowrap;
}

.deal-pager__pick .filterctl{
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  padding-right: 28px;
}

.selector-browse{
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 28%, transparent);
  overflow: hidden;
}

.selector-browse > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 0;
}

.selector-browse > summary::-webkit-details-marker{
  display: none;
}

.selector-browse > summary::after{
  content: "+";
  float: right;
  color: var(--muted);
}

.selector-browse[open] > summary::after{
  content: "-";
}

.selector-shelf-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  max-height: none;
  overflow: visible;
  padding: 14px;
  background: transparent;
  border-top: 0;
}

.selector-shelf-list .shelf-item{
  margin-bottom: 0;
  grid-template-columns: 1fr;
  gap: 11px;
  align-items: start;
  min-height: 284px;
  padding: 14px;
  border: 0;
  overflow: hidden;
  background:
    radial-gradient(210px 155px at 50% 20%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%),
    color-mix(in srgb, var(--card) 48%, transparent);
  box-shadow: 0 14px 32px rgba(0,0,0,0.13);
}

.selector-shelf-list .shelf-thumb-frame{
  justify-self: center;
  width: var(--shelf-thumb-w, 180px);
  max-width: 86%;
  height: var(--shelf-thumb-h, 168px);
  border-radius: 18px;
  padding: 6px;
  border: 1px solid rgba(27,18,12,0.10);
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 10px 22px rgba(0,0,0,0.12);
}

.selector-shelf-list .shelf-thumb{
  filter: drop-shadow(0 16px 20px rgba(0,0,0,0.28));
}

.selector-shelf-list .shelf-image-btn:hover .shelf-thumb,
.selector-shelf-list .shelf-image-btn:focus-visible .shelf-thumb{
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.33)) saturate(1.06) brightness(1.04);
}

.selector-shelf-list .shelf-name{
  font-size: 16px;
  line-height: 1.18;
  text-align: left;
}

.selector-shelf-list .shelf-sub{
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.selector-shelf-list .shelf-deal{
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
}

.selector-shelf-list .shelf-item:hover{
  border: 0;
  background:
    radial-gradient(220px 165px at 50% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%),
    color-mix(in srgb, var(--card) 56%, transparent);
  box-shadow: 0 18px 36px rgba(0,0,0,0.16);
}

.selector-shelf-list .shelf-item.is-active{
  border: 0;
  background:
    radial-gradient(230px 175px at 50% 20%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%),
    color-mix(in srgb, var(--accent) 10%, var(--card));
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* With shelf moved into selector dock, keep the content stage full width. */
.discovery{
  display: block;
  margin-top: 0;
}

.detail-shell{
  margin-top: 24px;
}

.detail-shell--standalone{
  margin-top: 0;
}

.detail-shell--standalone .detail-shell__head{
  display: grid;
  gap: 4px;
  align-items: start;
}

.detail-shell--standalone .detail-shell__sub{
  max-width: 72ch;
  text-align: left;
}

.detail-shell--standalone .focus-head{
  display: grid;
  grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 2.4vw, 34px);
}

.detail-shell--standalone .focus-meta{
  min-width: 0;
  flex: none;
  display: grid;
  align-content: start;
  gap: 10px;
}

.detail-shell--standalone .focus-meta .badge-row{
  margin-bottom: 0;
}

.detail-shell--standalone .focus-meta .retailer-links{
  margin-top: 0;
}

.detail-shell--standalone .focus-meta .cards--spotlight{
  margin-top: 8px;
}

.detail-shell--standalone .focus-meta .spotlight-insight{
  margin-top: 0;
}

.detail-shell--standalone #product-image.focus-image{
  order: -1;
  justify-self: start;
  align-self: start;
  width: min(40vw, 460px);
  height: clamp(360px, 42vw, 560px);
  max-width: 460px;
  max-height: 560px;
  padding: 16px;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(210px 270px at 50% 42%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%),
    color-mix(in srgb, var(--card) 62%, transparent);
  box-shadow: 0 22px 42px rgba(0,0,0,0.2);
}

@media (max-width: 900px){
  .detail-shell--standalone .focus-head{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-shell--standalone #product-image.focus-image{
    width: min(84vw, 360px);
    height: min(84vw, 380px);
    max-width: 360px;
    max-height: 380px;
    padding: 10px;
  }
}

.detail-shell__head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.detail-shell__title{
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.detail-shell__sub{
  margin: 0;
  max-width: 58ch;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.focus{
  width: 100%;
}

.focus-stage{
  background: linear-gradient(145deg, color-mix(in srgb, var(--card) 78%, transparent), color-mix(in srgb, var(--glass-2) 82%, transparent));
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 20px;
  padding: clamp(14px, 2vw, 24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.focus-head{
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.focus-kicker{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.focus-title{
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.02;
}

.focus-image{
  max-height: 220px;
  max-width: 280px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 55%, transparent);
}

.focus-image.is-zoomable{
  cursor: zoom-in;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.focus-image.is-zoomable:hover{
  transform: translateY(-1px) scale(1.015);
  filter: saturate(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.image-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.8vw, 30px);
  background: rgba(7, 5, 3, 0.78);
  backdrop-filter: blur(8px);
  z-index: 320000;
}

.image-modal.is-open{
  display: flex;
}

.image-modal__inner{
  position: relative;
  width: min(96vw, 1060px);
  max-height: 92vh;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 28px 72px rgba(0,0,0,0.52);
  padding: 14px;
}

.image-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.image-modal__img{
  display: block;
  width: 100%;
  max-height: calc(92vh - 28px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  background: color-mix(in srgb, var(--card) 56%, transparent);
}

body.image-modal-open{
  overflow: hidden;
}

.identity-panel{
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  display: grid;
  gap: 10px;
}

.identity-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.identity-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  background: color-mix(in srgb, var(--card) 68%, transparent);
  padding: 4px 10px;
  font-size: 12px;
}

.identity-chip__k{
  color: var(--muted);
}

.identity-chip__v{
  color: var(--text);
  font-weight: 600;
}

.identity-description{
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.identity-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.identity-link{
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

a.identity-link{
  text-decoration: none;
}

.identity-link--related{
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
}

.identity-link--related:hover{
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.identity-link--muted{
  opacity: 0.7;
  cursor: default;
}

.cards.cards--spotlight{
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.cards--spotlight .card{
  box-shadow: none;
  border-color: color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--card) 62%, transparent);
}

.spotlight-insight{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--card) 54%, transparent);
}

.plot-bridge{
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-deals{
  margin-top: 18px;
}

.retailer-details{
  margin-top: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 64%, transparent);
  overflow: hidden;
}

.retailer-details > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  font-family: var(--font-serif);
  font-size: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.retailer-details > summary::-webkit-details-marker{
  display: none;
}

.retailer-details > summary::after{
  content: "+";
  float: right;
  opacity: 0.7;
}

.retailer-details[open] > summary::after{
  content: "-";
}

.retailer-details .grid{
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.plot-stage{
  margin-top: 18px;
}

.focus-stage .plot-stage{
  margin-top: 10px;
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  box-shadow: none;
}

.focus-stage .plot-head{
  padding: 8px 8px 10px;
}

/* Dial down motion to feel intentional instead of gamified. */
.deal-card{
  transition:
    transform 420ms cubic-bezier(.22,.8,.26,1) var(--delay),
    opacity 300ms ease var(--delay),
    filter 360ms ease var(--delay);
}

.deal-card::before{
  opacity: 0.34;
}

@media (max-width: 900px){
  .selector-dock{
    margin-bottom: 12px;
    padding: 12px;
  }

  .selector-dock__title{
    font-size: clamp(19px, 6vw, 24px);
  }

  .selector-dock__sub{
    font-size: 12px;
  }

  .selector-shelf-list{
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding: 8px;
  }

  .focus-image{
    max-height: 170px;
    max-width: 60vw;
  }
  .cards.cards--spotlight{
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   Second Pass: Desktop Rhythm + Deal Stream Alignment
   ================================================== */
.focus-stage{
  padding: clamp(16px, 2.1vw, 28px);
}

.identity-description{
  max-width: 74ch;
}

.cards.cards--spotlight .card{
  padding: 16px;
}

@media (min-width: 901px){
  .story-deals{
    overflow: visible;
    padding-left: 2px;
    padding-right: 2px;
  }

  #top5-shelf.float-stage{
    overflow: visible;
    padding-left: clamp(20px, 3.2vw, 52px) !important;
    padding-right: clamp(20px, 3.2vw, 52px) !important;
  }

  #top5-shelf .deal-card{
    width: min(820px, 100%) !important;
    max-width: 100%;
  }

  /* Fix left-edge clipping: do not rest left cards outside the stage bounds. */
  #top5-shelf .deal-card.float-left{
    --rest-x: 0px !important;
    padding-left: 0 !important;
    margin-left: 0;
  }

  #top5-shelf .deal-card.float-right{
    --rest-x: 10px !important;
    padding-right: 0 !important;
    margin-right: 0;
  }

  #top5-shelf .deal-card.enter-left{
    --enter-x: -12px;
  }

  #top5-shelf .deal-card.enter-right{
    --enter-x: 12px;
  }
}

/* ==================================================
   Micro Pass: Typographic Rhythm + Section Flow
   ================================================== */
@media (min-width: 901px){
  .hero{
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .subtitle{
    font-size: 13px;
    line-height: 1.5;
    max-width: 62ch;
  }

  .journey-nav{
    margin-bottom: 22px;
  }

  .selector-dock{
    margin-bottom: 22px;
    padding: 16px;
  }

  .selector-dock__sub{
    max-width: 68ch;
  }

  .selector-shelf-list{
    max-height: none;
    overflow: visible;
  }

  .focus-head{
    margin-bottom: 18px;
    gap: clamp(16px, 2vw, 28px);
  }

  .focus-title{
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.04;
    max-width: 20ch;
  }

  .identity-panel{
    margin: 14px 0 18px;
    padding: 14px;
    gap: 11px;
  }

  .cards.cards--spotlight{
    gap: 12px;
  }

  .spotlight-insight{
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .plot-bridge{
    margin-top: 18px;
    margin-bottom: 10px;
  }

  .story-deals{
    margin-top: 28px;
    padding-top: 6px;
  }

  .story-title{
    margin-bottom: 8px;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.08;
  }

  .story-sub{
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.55;
    max-width: 66ch;
  }

  .retailer-details{
    margin-top: 24px;
  }

  .retailer-details > summary{
    padding: 13px 16px;
    font-size: 20px;
    line-height: 1.1;
  }

  .plot-stage{
    margin-top: 26px;
  }

  .plot-head{
    align-items: flex-end;
    padding: 10px 8px 12px;
  }

  .plot-kicker{
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .plot-title{
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.08;
  }
}

@media (max-width: 900px){
  .focus-stage{
    padding: 14px;
  }

  .story-title{
    font-size: clamp(20px, 5.3vw, 24px);
    line-height: 1.1;
  }

  .story-sub{
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .retailer-details{
    margin-top: 14px;
  }

  .plot-stage{
    margin-top: 16px;
  }
}

/* ==================================================
   Final Polish Pass: Surface Cohesion + Micro-Interactions
   ================================================== */
.title{
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0,0,0,0.26);
}


.subtitle{
  max-width: 66ch;
  text-wrap: pretty;
}

:where(button,[role="button"],a,input,select,summary):focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 36%, transparent),
    0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

.selector-dock,
.focus-stage,
.retailer-details,
.focus-stage .plot-stage{
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.journey-nav{
  position: sticky;
  top: 8px;
  z-index: 3000;
  isolation: isolate;
  overflow: hidden;
}

.journey-nav::before,
.selector-dock::before,
.focus-stage::before,
.retailer-details::before,
.focus-stage .plot-stage::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 42%),
    radial-gradient(120% 72% at 8% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%);
}

.journey-nav > *,
.selector-dock > *,
.focus-stage > *,
.retailer-details > *,
.focus-stage .plot-stage > *{
  position: relative;
  z-index: 1;
}

.journey-nav{
  border-color: color-mix(in srgb, var(--border) 94%, transparent);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.10);
}


.journey-nav__btn,
.identity-link,
#retailer-links a,
.retailer-links a,
.shelf-item,
.btn,
.btn-link{
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    filter 180ms ease;
}

.journey-nav__btn:hover,
.identity-link:hover,
#retailer-links a:hover,
.retailer-links a:hover,
.shelf-item:hover{
  transform: translateY(-1px);
}

.journey-nav__btn.is-active{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 8px 18px rgba(0,0,0,0.22);
}


.selector-dock{
  border: 0;
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}

.focus-stage{
  border-color: color-mix(in srgb, var(--border) 94%, transparent);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.09);
}

.focus-stage .plot-stage{
  box-shadow:
    0 14px 32px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.retailer-details{
  box-shadow:
    0 16px 38px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.07);
}


#retailer-table tbody tr:nth-child(even) td{
  background: color-mix(in srgb, var(--card) 80%, transparent);
}

#retailer-table tbody tr:hover td{
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 14%, transparent),
    color-mix(in srgb, var(--accent) 5%, transparent)
  );
}

#retailer-table tbody tr.ret-row{
  cursor: pointer;
}

#retailer-table tbody tr.ret-row td,
#retailer-links a,
.retailer-links a{
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

#retailer-table tbody tr.ret-row.is-near-low td{
  background: color-mix(in srgb, var(--good) 6%, transparent);
}

#retailer-table tbody tr.ret-row.is-highlighted td{
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 22%, transparent),
    color-mix(in srgb, var(--accent) 7%, transparent)
  ) !important;
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 84%, #fff);
}

#retailer-table tbody tr.ret-row.is-dimmed td{
  opacity: 0.48;
}

#retailer-table tbody tr.ret-row:focus-visible td{
  outline: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  outline-offset: -2px;
}

#retailer-links a.is-highlighted,
.retailer-links a.is-highlighted{
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

#retailer-links a.is-dimmed,
.retailer-links a.is-dimmed{
  opacity: 0.56;
}

/* Identity metadata readability + refined pill treatment */
.identity-panel{
  padding: 14px;
  gap: 12px;
}

.identity-chips{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.identity-chip{
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card) 88%, transparent), color-mix(in srgb, var(--glass-2) 72%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 8px 18px rgba(0,0,0,0.16);
  padding: 10px 12px 9px;
  min-height: 54px;
  gap: 4px;
}

.identity-chip__k{
  display: block;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
}

.identity-chip__v{
  display: block;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--text);
}

.identity-description{
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.62;
  max-width: 86ch;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}

.identity-links{
  gap: 10px;
}

.identity-link{
  border-radius: 9px;
  min-height: 34px;
  height: auto;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card) 86%, transparent), color-mix(in srgb, var(--glass-2) 68%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 8px 18px rgba(0,0,0,0.14);
  color: color-mix(in srgb, var(--text) 94%, var(--muted));
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.identity-link:hover{
  border-color: color-mix(in srgb, var(--border) 92%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, transparent), color-mix(in srgb, var(--glass-2) 74%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 10px 22px rgba(0,0,0,0.18);
}

.identity-link--related{
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 16%, var(--card)),
      color-mix(in srgb, var(--accent) 9%, var(--glass-2))
    );
}

.identity-link--related:hover{
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 22%, var(--card)),
      color-mix(in srgb, var(--accent) 14%, var(--glass-2))
    );
}

.identity-link--muted{
  opacity: 0.62;
  box-shadow: none;
}


@media (max-width: 900px){
  .identity-chips{
    grid-template-columns: 1fr 1fr;
  }

  .identity-description{
    font-size: 13.5px;
    line-height: 1.55;
  }
}

@media (max-width: 560px){
  .identity-chips{
    grid-template-columns: 1fr;
  }
}

/* Final micro-pass: editorial metadata treatment (less pill, less glow) */
.identity-chips{
  gap: 8px;
}

.identity-chip{
  position: relative;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  box-shadow: none;
  padding: 10px 11px 9px;
}

.identity-chip::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 58%, transparent),
    color-mix(in srgb, var(--accent) 26%, transparent)
  );
  opacity: 0.75;
}

.identity-chip__k{
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
}

.identity-chip__v{
  font-size: 14.5px;
  line-height: 1.25;
  font-weight: 630;
}

.identity-link{
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  background: color-mix(in srgb, var(--card) 66%, transparent);
  box-shadow: none;
  font-size: 12px;
  letter-spacing: 0.005em;
}

.identity-link:hover{
  transform: none;
  border-color: color-mix(in srgb, var(--border) 98%, transparent);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  box-shadow: none;
}

.identity-link--related{
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
}

.identity-link--related:hover{
  border-color: color-mix(in srgb, var(--accent) 68%, var(--border));
  background: color-mix(in srgb, var(--accent) 19%, var(--card));
}


/* Filter dropdown visibility fix: opaque + above surrounding sections */
.selector-dock{
  overflow: visible !important;
  z-index: 2200;
}

.filterbar,
.filterrow,
.filterfield,
.filtermulti{
  overflow: visible;
}

.filtermulti{
  position: relative;
}

.filtermulti.is-open{
  z-index: 120000;
}

.filtermulti__panel{
  z-index: 120001;
  background: #120b08 !important;
  background-image: none !important;
  opacity: 1 !important;
  border: 0;
  box-shadow: 0 18px 36px rgba(0,0,0,0.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mix-blend-mode: normal;
}


.filtermulti__options{
  background: #1a120d !important;
  opacity: 1 !important;
  border: 0;
}


.filteropt{
  background: #241711 !important;
  border: 0;
  opacity: 1 !important;
}

.filteropt:hover{
  background: #2d1d16 !important;
}



/* Ensure filter dropdowns paint above browse/meta blocks in selector dock */
.selector-dock > .selector-controls{
  position: relative;
  z-index: 40;
}

.selector-dock > #browse-meta,
.selector-dock > .selector-browse{
  position: relative;
  z-index: 12;
}

.selector-controls .filtermulti.is-open{
  z-index: 120100;
}

.selector-controls .filtermulti.is-open .filtermulti__panel{
  z-index: 120101;
}

.story-deals.story-deals--merged{
  display: none !important;
}

/* Mobile polish: stack floating nav + unsquash pager controls */
@media (max-width: 980px){
  .deal-pager{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    align-items: center;
  }

  .deal-pager__info{
    grid-column: 1 / -1;
    text-align: left;
  }

  .deal-pager__pick{
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px){
  .journey-nav{
    top: calc(env(safe-area-inset-top, 0px) + 2px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 6px;
    margin-bottom: 12px;
    border-radius: 14px;
    box-shadow:
      0 10px 24px rgba(0,0,0,0.24),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .journey-nav__btn{
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .deal-pager{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "info info info"
      "prev pick next";
    gap: 6px;
    align-items: center;
  }

  .deal-pager__info{
    grid-area: info;
    white-space: normal;
    line-height: 1.3;
  }

  #deal-page-prev{
    grid-area: prev;
  }

  #deal-page-next{
    grid-area: next;
  }

  .deal-pager__pick{
    grid-area: pick;
    justify-content: center;
  }

  .deal-pager__btn{
    width: 100%;
    min-width: 0;
    padding: 0 8px;
  }

  .deal-pager__pick .muted{
    display: none;
  }

  .deal-pager__pick .filterctl{
    width: 82px;
    min-width: 82px;
    max-width: 82px;
  }
}

@media (max-width: 560px){
  .deal-pager{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deal-pager__btn{
    font-size: 11px;
  }

  .deal-pager__pick{
    justify-content: center;
  }

  .deal-pager__pick .filterctl{
    width: 74px;
    min-width: 74px;
    max-width: 74px;
  }
}

#tbl-retailers td.numeric {
    text-align: right;
  }

/* Final override: structured identity panel */
.identity-panel{
  padding: 16px;
  gap: 14px;
}

.identity-section{
  display: grid;
  gap: 10px;
}

.identity-section + .identity-section{
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
}

.identity-section__title{
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
}

.identity-facts{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 9px;
}

.identity-fact{
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 56px;
  padding: 10px 11px 9px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  background: color-mix(in srgb, var(--card) 72%, transparent);
}

.identity-fact__k{
  font-size: 9.5px;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
}

.identity-fact__v{
  font-size: 14.5px;
  line-height: 1.28;
  font-weight: 630;
  color: var(--text);
}

.identity-maturation{
  margin: 0;
  padding: 11px 12px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--accent) 56%, var(--border));
  background: color-mix(in srgb, var(--card) 68%, transparent);
  font-size: 14px;
  line-height: 1.58;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.identity-description{
  margin: 0;
  max-width: 86ch;
}

.identity-links{
  padding-top: 2px;
}

@media (max-width: 900px){
  .identity-facts{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px){
  .identity-panel{
    padding: 14px;
    gap: 12px;
  }

  .identity-section + .identity-section{
    padding-top: 10px;
  }

  .identity-facts{
    grid-template-columns: 1fr;
  }
}


/* Editorial product profile override */
.identity-facts{
  display: block;
}

.identity-profile{
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.identity-portrait{
  display: grid;
  gap: 11px;
  padding: 2px 0 0;
}

.identity-portrait__headline{
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

.identity-portrait__sub{
  max-width: 54ch;
  font-size: 13px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
}

.identity-portrait__description{
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.62;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}

.identity-ribbon{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.identity-ribbon__item{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--card) 76%, transparent);
}

.identity-ribbon__label{
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
}

.identity-ribbon__value{
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 650;
  color: var(--text);
}

.identity-ledger{
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--card) 84%, transparent), color-mix(in srgb, var(--glass) 88%, transparent));
}

.identity-ledger__row{
  display: grid;
  gap: 4px;
}

.identity-ledger__row + .identity-ledger__row{
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.identity-ledger__label{
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 90%, var(--text));
}

.identity-ledger__value{
  font-size: 13px;
  line-height: 1.42;
  font-weight: 620;
  color: var(--text);
}

.identity-flight{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 10px;
}

.identity-flight__stop{
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card) 82%, transparent), color-mix(in srgb, var(--glass) 94%, transparent));
  overflow: hidden;
}

.identity-flight__stop::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.identity-flight__stop--colour::before{ background: linear-gradient(90deg, #d1a650, #f1e2a0); }
.identity-flight__stop--nose::before{ background: linear-gradient(90deg, #b96f3a, #d89b5a); }
.identity-flight__stop--palate::before{ background: linear-gradient(90deg, #8e4f1f, #c37636); }
.identity-flight__stop--finish::before{ background: linear-gradient(90deg, #5d3a21, #92633a); }

.identity-flight__label{
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
}

.identity-flight__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: color-mix(in srgb, var(--text) 94%, var(--muted));
}

.identity-links{
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px){
  .identity-profile{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  .identity-portrait__headline{
    font-size: clamp(22px, 7vw, 30px);
  }

  .identity-ledger{
    padding: 11px;
  }

  .identity-flight{
    grid-template-columns: 1fr;
  }

  .identity-flight__stop{
    min-height: 0;
  }
}

/* Landing page overhaul */
body.landing-shell{
  --landing-header-height: 94px;
  --landing-bg-y: 0px;
  --landing-copy-y: 0px;
  --landing-trend-y: 0px;
  --landing-metrics-y: 0px;
  --landing-transition-y: 0px;
  --landing-transition-sweep: 0%;
  background-color: #050302 !important;
  background-image: none !important;
}

body.landing-shell .container{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.landing-shell .site-header{
  position: sticky;
  top: 0;
  z-index: 12000;
  height: var(--landing-header-height);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(84px, 176px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 10px clamp(18px, 4%, 56px);
  border-bottom: 0;
  background-color: #050302;
  background-image: none;
  box-shadow: none;
}

body.landing-shell .site-brand{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.landing-shell .site-brand__logo{
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}

body.landing-shell .site-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3%, 42px);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body.landing-shell .site-nav::-webkit-scrollbar{
  display: none;
}

body.landing-shell .site-nav__link{
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  flex: 0 0 auto;
  cursor: pointer;
  color: rgba(245, 236, 222, 0.74);
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

body.landing-shell .site-nav__link:hover,
body.landing-shell .site-nav__link.is-active{
  color: #fff7ec;
  border-bottom-color: #d59136;
  text-decoration: none;
}

body.landing-shell .site-nav__link:focus-visible{
  outline: 2px solid rgba(230, 157, 64, 0.76);
  outline-offset: 4px;
}

body.landing-shell .landing-hero{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(430px, 1fr) auto;
  gap: 24px 28px;
  min-height: calc(100svh - var(--landing-header-height));
  margin-top: calc(var(--landing-header-height)/-2);
  padding: 44px clamp(18px, 7%, 112px) 30px;
  background-color: #050302;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.18) 52%, rgba(0,0,0,.38)),
    var(--landing-hero-image);
  background-size: 100% 100%, cover;
  background-position: center center, center calc(50% + var(--landing-bg-y));
  background-repeat: no-repeat;
  overflow: hidden;
}

body.landing-shell .landing-hero::after{
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.76));
  pointer-events: none;
}

body.landing-shell .landing-hero__copy{
  position: relative;
  z-index: 1;
  align-self: start;
  max-width: 720px;
  padding-bottom: 36px;
  transform: translate3d(0, var(--landing-copy-y), 0);
  will-change: transform;
}

body.landing-shell .landing-kicker{
  margin: 0 0 14px;
  color: #d2913d;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.landing-shell .landing-title{
  margin: 0;
  color: #fff8ed;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

body.landing-shell .landing-subtitle{
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(250, 241, 225, 0.78);
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: 0;
}

body.landing-shell .landing-hero__trend{
  position: absolute;
  z-index: 1;
  right: clamp(24px, 6vw, 112px);
  top: clamp(132px, 24vh, 260px);
  width: min(48vw, 680px);
  min-width: 380px;
  pointer-events: none;
  display: grid;
  gap: 2px;
  align-content: center;
  color: #f0b24b;
  text-align: right;
  isolation: isolate;
  transform: translate3d(0, var(--landing-trend-y), 0);
  will-change: transform;
}

body.landing-shell .landing-hero__trend.is-hidden{
  display: none;
}

body.landing-shell .hero-trend__copy{
  position: relative;
  z-index: 3;
  justify-self: end;
  max-width: 460px;
  padding: 10px clamp(12px, 1.8vw, 24px) 12px clamp(18px, 2vw, 28px);
  text-shadow: 0 3px 28px rgba(0,0,0,0.74), 0 1px 2px rgba(0,0,0,0.72);
}

body.landing-shell .hero-trend__copy::before{
  content: "";
  position: absolute;
  inset: -8px -4px -10px -22px;
  z-index: -1;
  border-radius: 8px;
  background: radial-gradient(ellipse at right, rgba(5,3,2,0.82), rgba(5,3,2,0.58) 58%, rgba(5,3,2,0) 76%);
  filter: blur(2px);
}

body.landing-shell .hero-trend__label{
  color: rgba(255,248,226,0.76);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.landing-shell .hero-trend__value{
  margin-top: 2px;
  color: #f2ad3b;
  font-family: var(--font-serif);
  font-size: clamp(76px, 8vw, 138px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: 0;
}

body.landing-shell .hero-trend__sub{
  max-width: 430px;
  margin-top: 10px;
  margin-left: auto;
  color: rgba(255,248,226,0.72);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
}

body.landing-shell .hero-trend__svg{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 220px;
  margin-top: -18px;
  overflow: visible;
}

body.landing-shell .hero-trend__glow,
body.landing-shell .hero-trend__line{
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body.landing-shell .hero-trend__glow{
  stroke: rgba(224, 132, 35, 0.24);
  stroke-width: 18;
  filter: drop-shadow(0 0 20px rgba(214, 122, 32, 0.38));
}

body.landing-shell .hero-trend__line{
  stroke: #f2ad3b;
  stroke-width: 4.5;
  filter: drop-shadow(0 7px 14px rgba(0,0,0,0.42));
}

body.landing-shell .landing-metrics{
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-self: end;
  width: min(100%, 1480px);
  margin: 0 auto;
  transform: translate3d(0, var(--landing-metrics-y), 0);
  will-change: transform;
}

body.landing-shell .landing-metric{
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid rgba(248, 231, 204, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 40px rgba(0,0,0,0.24);
}

body.landing-shell .landing-metric__value{
  color: #fff8ed;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

body.landing-shell .landing-metric__label{
  color: rgba(255,248,237,0.86);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.landing-shell .landing-metric__sub{
  color: rgba(255,248,237,0.58);
  font-size: 12px;
  line-height: 1.35;
}

body.landing-shell .landing-transition{
  position: relative;
  height: clamp(128px, 15vw, 214px);
  margin: -1px 0 -74px;
  overflow: hidden;
  transform: translate3d(0, var(--landing-transition-y), 0);
  will-change: transform;
  isolation: isolate;
  pointer-events: none;
}

body.landing-shell .landing-transition::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5,3,2,0.98), rgba(5,3,2,0.72) 28%, rgba(13,8,4,0.98) 70%, #050302),
    linear-gradient(105deg, transparent 0 10%, rgba(242,173,59,0.26) 28%, rgba(255,248,226,0.10) 38%, transparent 58% 100%);
  background-size: 100% 100%, 68% 100%;
  background-repeat: no-repeat;
  background-position: 0 0, var(--landing-transition-sweep) 0;
}

body.landing-shell .landing-transition::after{
  content: "";
  position: absolute;
  left: clamp(18px, 7vw, 112px);
  right: clamp(18px, 7vw, 112px);
  top: 38%;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(242,173,59,0.72), rgba(255,248,226,0.34), transparent);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  background-position: var(--landing-transition-sweep) 0;
  box-shadow: 0 18px 54px rgba(214,122,32,0.34);
}

body.landing-shell .landing-intelligence{
  --intelligence-y: 0px;
  --intelligence-intro-y: 0px;
  --intelligence-fade: 1;
  --intelligence-sweep: 0%;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 22px;
  width: 100%;
  max-width: none;
  margin: 0 0 26px;
  padding: 0 clamp(16px, 4%, 44px) 12px;
  position: relative;
  z-index: 2;
  isolation: isolate;
  opacity: var(--intelligence-fade);
  transform: translate3d(0, var(--intelligence-y), 0);
  will-change: transform, opacity;
}

body.landing-shell .landing-intelligence::before,
body.landing-shell .landing-intelligence::after{
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

body.landing-shell .landing-intelligence::before{
  left: clamp(16px, 4%, 44px);
  right: clamp(16px, 4%, 44px);
  top: -26px;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(242,173,59,0.82), rgba(255,248,226,0.40), transparent);
  background-size: 62% 100%;
  background-repeat: no-repeat;
  background-position: var(--intelligence-sweep) 0;
  box-shadow: 0 16px 56px rgba(214,122,32,0.44);
}

body.landing-shell .landing-intelligence::after{
  inset: -68px clamp(16px, 4%, 44px) -44px;
  background:
    linear-gradient(180deg, rgba(5,3,2,0), rgba(20,11,5,0.78) 42%, rgba(5,3,2,0));
  opacity: 0.90;
}

body.landing-shell .landing-intelligence[hidden]{
  display: none !important;
}

body.landing-shell .landing-intelligence__intro{
  min-width: 0;
  padding: 12px 0 0;
  position: relative;
  z-index: 1;
  transform: translate3d(0, var(--intelligence-intro-y), 0);
  will-change: transform;
}

body.landing-shell .landing-intelligence__intro .landing-kicker{
  margin-bottom: 10px;
}

body.landing-shell .landing-intelligence__title{
  margin: 0;
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: 0;
}

body.landing-shell .landing-intelligence__sub{
  max-width: 28ch;
  margin: 14px 0 0;
  color: rgba(250,241,225,0.68);
  font-size: 13.5px;
  line-height: 1.55;
}

body.landing-shell .landing-intelligence__link{
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 22px;
  padding: 0 14px;
  border: 1px solid rgba(247,229,198,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,248,237,0.90);
  font-size: 13px;
  text-decoration: none;
}

body.landing-shell .landing-intelligence__link:hover{
  border-color: rgba(216,148,60,0.44);
  background: rgba(255,255,255,0.080);
  text-decoration: none;
}

body.landing-shell .landing-intelligence__cards{
  --intelligence-cards-y: 0px;
  --intelligence-cards-fade: 1;
  --intelligence-cards-scale: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
  opacity: var(--intelligence-cards-fade);
  transform: translate3d(0, var(--intelligence-cards-y), 0) scale(var(--intelligence-cards-scale));
  transform-origin: center top;
  will-change: transform, opacity;
}

body.landing-shell .intelligence-card{
  --card-hover-y: 0px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 206px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(247,229,198,0.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.070), rgba(255,255,255,0.025)),
    rgba(7,4,3,0.72);
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 34px rgba(0,0,0,0.22);
  overflow: hidden;
  transform: translate3d(0, var(--card-hover-y), 0);
  will-change: transform;
}

body.landing-shell .intelligence-card:hover{
  --card-hover-y: -3px;
  border-color: rgba(216,148,60,0.52);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.095), rgba(255,255,255,0.035)),
    rgba(9,5,3,0.82);
  text-decoration: none;
}

body.landing-shell .intelligence-card:focus-visible{
  outline: 2px solid rgba(230,157,64,0.76);
  outline-offset: 4px;
}

body.landing-shell .intelligence-card__label{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #d99a43;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.landing-shell .intelligence-card__label span{
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(217,154,67,0.32);
  color: rgba(255,248,237,0.86);
  font-size: 10px;
  letter-spacing: 0;
}

body.landing-shell .intelligence-card__body{
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  margin-top: 12px;
}

body.landing-shell .intelligence-card__media{
  width: 72px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: radial-gradient(ellipse at center, rgba(214,148,65,0.18), rgba(255,255,255,0.030) 62%, rgba(0,0,0,0));
  overflow: hidden;
}

body.landing-shell .intelligence-card__media img{
  display: block;
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.42));
}

body.landing-shell .intelligence-card__media span{
  width: 34px;
  height: 86px;
  border-radius: 12px 12px 8px 8px;
  border: 1px solid rgba(247,229,198,0.18);
  background: linear-gradient(180deg, rgba(245,182,88,0.34), rgba(111,55,22,0.42));
}

body.landing-shell .intelligence-card__copy{
  min-width: 0;
}

body.landing-shell .intelligence-card__copy h3{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35em;
  margin: 0;
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0;
}

body.landing-shell .intelligence-card__meta{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.35em;
  margin: 5px 0 0;
  color: rgba(250,241,225,0.58);
  font-size: 12px;
  line-height: 1.35;
}

body.landing-shell .intelligence-card__price{
  margin-top: 10px;
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

body.landing-shell .intelligence-card__metric{
  margin-top: 8px;
  color: #d99a43;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

body.landing-shell .intelligence-card__detail{
  margin-top: 3px;
  color: rgba(250,241,225,0.58);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1180px){
  body.landing-shell .landing-title{
    font-size: 56px;
  }

  body.landing-shell .landing-hero{
    grid-template-columns: minmax(0, 1fr);
  }

  body.landing-shell .landing-hero__trend{
    right: 24px;
    width: min(44vw, 520px);
    min-width: 330px;
  }

  body.landing-shell .hero-trend__value{
    font-size: clamp(68px, 8vw, 108px);
  }

  body.landing-shell .landing-metrics{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-shell .landing-intelligence__cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  body.landing-shell{
    --landing-header-height: 64px;
  }

  body.landing-shell .site-header{
    height: var(--landing-header-height);
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "brand nav";
    gap: 14px;
    padding: 8px 14px;
  }

  body.landing-shell .site-brand{
    grid-area: brand;
    justify-self: start;
    align-self: center;
  }

  body.landing-shell .site-brand__logo{
    width: 48px;
    height: 48px;
  }

  body.landing-shell .site-nav{
    grid-area: nav;
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 0;
    border-top: 0;
  }

  body.landing-shell .site-nav__link{
    min-height: 32px;
    font-size: 13px;
  }

  body.landing-shell .landing-hero{
    min-height: calc(100svh - var(--landing-header-height));
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 26px 16px 22px;
    background-position: center center, center center;
  }

  body.landing-shell .landing-hero__copy{
    max-width: none;
    padding-bottom: 0;
  }

  body.landing-shell .landing-hero__trend{
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    margin-top: -6px;
    text-align: left;
  }

  body.landing-shell .hero-trend__copy{
    justify-self: start;
    max-width: 100%;
    padding: 8px 10px 10px 0;
  }

  body.landing-shell .hero-trend__copy::before{
    inset: -6px -10px -8px -10px;
    background: radial-gradient(ellipse at left, rgba(5,3,2,0.82), rgba(5,3,2,0.58) 58%, rgba(5,3,2,0) 76%);
  }

  body.landing-shell .hero-trend__value{
    font-size: 72px;
  }

  body.landing-shell .hero-trend__sub{
    margin-left: 0;
  }

  body.landing-shell .hero-trend__svg{
    height: 136px;
    margin-top: 6px;
  }

  body.landing-shell .landing-title{
    font-size: 44px;
  }

  body.landing-shell .landing-subtitle{
    font-size: 16px;
  }

  body.landing-shell .landing-transition{
    height: 96px;
    margin-bottom: -38px;
    transform: none;
  }

  body.landing-shell .landing-intelligence{
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 22px;
  }

  body.landing-shell .landing-intelligence__intro{
    padding-top: 0;
  }

  body.landing-shell .landing-intelligence__sub{
    max-width: 52ch;
  }

}

@media (max-width: 560px){
  body.landing-shell .site-brand__logo{
    width: 44px;
    height: 44px;
  }

  body.landing-shell .site-nav{
    gap: 12px;
  }

  body.landing-shell .site-nav__link{
    font-size: 12.5px;
  }

  body.landing-shell .landing-title{
    font-size: 36px;
  }

  body.landing-shell .hero-trend__label{
    font-size: 11px;
  }

  body.landing-shell .hero-trend__value{
    font-size: 58px;
  }

  body.landing-shell .hero-trend__sub{
    font-size: 12px;
  }

  body.landing-shell .hero-trend__svg{
    height: 112px;
    margin-top: 4px;
  }

  body.landing-shell .landing-metrics{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.landing-shell .landing-metric{
    min-height: 92px;
    padding: 14px 16px;
  }

  body.landing-shell .landing-metric__value{
    font-size: 30px;
  }

  body.landing-shell .landing-intelligence__title{
    font-size: 28px;
  }

  body.landing-shell .landing-intelligence__link{
    margin-top: 16px;
  }

  body.landing-shell .landing-intelligence__cards{
    grid-template-columns: 1fr;
  }

  body.landing-shell .intelligence-card{
    min-height: 0;
  }

  body.landing-shell .intelligence-card__body{
    grid-template-columns: 68px minmax(0, 1fr);
  }

  body.landing-shell .intelligence-card__media{
    width: 68px;
    height: 108px;
  }

  body.landing-shell .intelligence-card__media img{
    max-height: 102px;
  }

}

body.insights-page .insights-content{
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: -22px auto 54px;
  padding: 0 0 48px;
}

body.insights-page .insights-content .panel{
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 900px){
  body.insights-page .insights-content{
    width: calc(100% - 24px);
    margin-top: -10px;
    padding-bottom: 36px;
  }
}

/* Product discovery redesign */
body[data-page="browse"] .scroll-reveal{
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 620ms ease,
    transform 720ms cubic-bezier(.2,.74,.18,1);
  will-change: opacity, transform;
}

body[data-page="browse"] .scroll-reveal.is-visible{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body[data-page="browse"] .discovery-shell{
  --discovery-y: 0px;
  --discovery-fade: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  width: 100%;
  max-width: none;
  margin: 0 0 96px;
  padding: 0 clamp(16px, 4%, 44px);
  position: relative;
  z-index: 2;
  opacity: var(--discovery-fade);
  transform: translate3d(0, var(--discovery-y), 0);
  will-change: transform, opacity;
}

body[data-page="browse"] .discovery-panel{
  border-radius: 8px;
  border: 1px solid rgba(247,229,198,0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022)),
    rgba(8,5,3,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 22px 52px rgba(0,0,0,0.24);
}

body[data-page="browse"] .selector-dock,
body[data-page="browse"] .browse-dock,
body[data-page="browse"] .discovery-side-card{
  padding: clamp(22px, 2.6vw, 34px);
}

body[data-page="browse"] .discovery-hero{
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.7fr) minmax(250px, 330px);
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  padding: clamp(24px, 4vw, 54px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5,3,2,0.92), rgba(5,3,2,0.58) 48%, rgba(5,3,2,0.86)),
    var(--discovery-hero-image);
  background-size: 100% 100%, cover;
  background-position: center, center 58%;
}

body[data-page="browse"] .discovery-hero::after{
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(5,3,2,0.94));
  pointer-events: none;
}

body[data-page="browse"] .discovery-hero__copy,
body[data-page="browse"] .discovery-hero__visual,
body[data-page="browse"] .discovery-profile-card{
  position: relative;
  z-index: 1;
}

body[data-page="browse"] .discovery-hero__title{
  margin: 0;
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

body[data-page="browse"] .discovery-hero__title span{
  display: block;
  color: #e0a04a;
}

body[data-page="browse"] .discovery-hero__sub{
  max-width: 50ch;
  margin: 20px 0 0;
  color: rgba(250,241,225,0.76);
  font-size: 16px;
  line-height: 1.55;
}

body[data-page="browse"] .discovery-hero__visual{
  min-height: 220px;
  display: grid;
  place-items: center;
}

body[data-page="browse"] .discovery-profile-card{
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(247,229,198,0.15);
  background: rgba(6,4,3,0.62);
}

body[data-page="browse"] .discovery-profile-card h3,
body[data-page="browse"] .discovery-side-card h3{
  margin: 0;
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="browse"] .discovery-profile-card__body{
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

body[data-page="browse"] .discovery-profile-meter{
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  position: relative;
}

body[data-page="browse"] .discovery-profile-meter svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

body[data-page="browse"] .discovery-profile-meter circle{
  fill: none;
  stroke-width: 9;
}

body[data-page="browse"] .discovery-profile-meter__track{
  stroke: rgba(255,255,255,0.11);
}

body[data-page="browse"] .discovery-profile-meter__bar{
  stroke: #e0a04a;
  stroke-linecap: round;
  stroke-dasharray: var(--profile-score) 100;
  filter: drop-shadow(0 0 10px rgba(224,160,74,0.45));
}

body[data-page="browse"] .discovery-profile-meter strong{
  position: relative;
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

body[data-page="browse"] .discovery-profile-meter--criteria strong{
  transform: translateY(-8px);
}

body[data-page="browse"] .discovery-profile-meter--criteria span{
  position: relative;
  transform: translateY(16px);
  color: rgba(250,241,225,0.58);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="browse"] .discovery-profile-card p{
  margin: 0;
  color: rgba(250,241,225,0.70);
  font-size: 13px;
  line-height: 1.45;
}

body[data-page="browse"] .discovery-profile-card__link{
  display: inline-flex;
  margin-top: 18px;
  color: #e0a04a;
  font-size: 13px;
}

body[data-page="browse"] .selector-dock{
  position: relative;
  top: auto;
  padding-bottom: clamp(18px, 2vw, 26px);
  overflow: visible;
}

body[data-page="browse"] .selector-dock__head{
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin: 0 0 18px;
}

body[data-page="browse"] .selector-dock__title{
  max-width: 760px;
  margin: 0;
  color: #fff7ec;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

body[data-page="browse"] .discovery-builder{
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(190px, 1fr));
  gap: 0;
  border: 1px solid rgba(247,229,198,0.12);
  border-radius: 8px;
  background: rgba(5,3,2,0.36);
  overflow: visible;
}

body[data-page="browse"] .discovery-step{
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid rgba(247,229,198,0.12);
  display: grid;
  align-content: start;
  gap: 12px;
}

body[data-page="browse"] .discovery-step:nth-of-type(4){
  border-right: 0;
}

body[data-page="browse"] .discovery-step__label{
  color: rgba(255,248,237,0.86);
  font-size: 13px;
  line-height: 1.25;
}

body[data-page="browse"] .discovery-step__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="browse"] .discovery-step__hint{
  margin: 4px 0 0;
  color: rgba(250,241,225,0.50);
  font-size: 11px;
  line-height: 1.25;
}

body[data-page="browse"] .discovery-art-slot{
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(247,229,198,0.13);
  background-color: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

body[data-page="browse"] .discovery-art-slot::before,
body[data-page="browse"] .discovery-art-slot::after{
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(224,160,74,0.34);
}

body[data-page="browse"] .discovery-art-slot--style::before{
  border-radius: 50%;
}

body[data-page="browse"] .discovery-art-slot--style::after{
  inset: 14px 8px;
  border-radius: 999px;
}

body[data-page="browse"] .discovery-art-slot--cask::before{
  inset: 8px 12px;
  border-radius: 999px;
}

body[data-page="browse"] .discovery-art-slot--cask::after{
  inset: 14px 7px;
  border-left: 0;
  border-right: 0;
}

body[data-page="browse"] .discovery-art-slot--price::before{
  inset: 10px 8px;
  border-top: 0;
  border-left: 0;
  transform: skewX(-16deg);
}

body[data-page="browse"] .discovery-art-slot--price::after{
  inset: auto 8px 10px 8px;
  height: 7px;
  border-top: 1px solid rgba(224,160,74,0.46);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

body[data-page="browse"] .discovery-step--search .combo{
  width: 100%;
  max-width: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  border-color: rgba(247,229,198,0.18);
}

body[data-page="browse"] .discovery-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

body[data-page="browse"] .discovery-chip{
  all: unset;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(224,160,74,0.33);
  background: rgba(224,160,74,0.095);
  color: #f2c78c;
  font-size: 12px;
  cursor: pointer;
}

body[data-page="browse"] .discovery-chip:hover,
body[data-page="browse"] .discovery-chip:focus-visible{
  border-color: rgba(224,160,74,0.62);
  background: rgba(224,160,74,0.16);
  outline: none;
}

body[data-page="browse"] .discovery-chip.is-active,
body[data-page="browse"] .discovery-chip[aria-pressed="true"]{
  border-color: #e0a04a;
  background: linear-gradient(180deg, #e0a04a, #a86a24);
  color: #130904;
  box-shadow: 0 10px 22px rgba(224,160,74,0.16);
}

body[data-page="browse"] .discovery-scale{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  height: 26px;
  position: relative;
}

body[data-page="browse"] .discovery-scale::before{
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: rgba(247,229,198,0.20);
}

body[data-page="browse"] .discovery-scale span{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(247,229,198,0.32);
  background: #100906;
  position: relative;
  z-index: 1;
  justify-self: center;
}

body[data-page="browse"] .discovery-scale span.is-active{
  width: 15px;
  height: 15px;
  border-color: #e0a04a;
  background: #e0a04a;
  box-shadow: 0 0 18px rgba(224,160,74,0.52);
}

body[data-page="browse"] .discovery-scale__labels{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(250,241,225,0.55);
  font-size: 11px;
}

body[data-page="browse"] .discovery-builder .filterbar{
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid rgba(247,229,198,0.12);
}

body[data-page="browse"] .discovery-builder .filterbar__toolbar{
  grid-template-columns: minmax(190px, 1fr) auto auto auto;
  align-items: end;
}

body[data-page="browse"] .discovery-builder .filterdrawer{
  padding: 0;
  background: transparent;
}

body[data-page="browse"] .discovery-builder .filterdrawer__grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="browse"] .discovery-builder .filtergroup{
  border: 1px solid rgba(247,229,198,0.10);
  background: rgba(255,255,255,0.035);
}

body[data-page="browse"] .discovery-builder .filtergroup__body--product{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="browse"] .discovery-builder__actions{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(247,229,198,0.10);
  margin-top: 10px;
}

body[data-page="browse"] .discovery-builder__actions .btn-link,
body[data-page="browse"] .discovery-find-btn{
  min-height: 42px;
  border-radius: 8px;
}

body[data-page="browse"] .discovery-find-btn{
  padding: 0 22px;
  background: linear-gradient(180deg, #c88936, #8b531c);
  border-color: rgba(255,213,147,0.35);
  color: #fff8ed;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 14px 24px rgba(0,0,0,0.25);
}

body[data-page="browse"] .discovery-results{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(20px, 2vw, 30px);
  align-items: stretch;
}

body[data-page="browse"] .browse-dock{
  min-width: 0;
}

body[data-page="browse"] .browse-dock__head{
  align-items: start;
  margin-bottom: 14px;
}

body[data-page="browse"] .browse-dock__sub{
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

body[data-page="browse"] .browse-dock .browse-meta{
  max-width: 320px;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

body[data-page="browse"] .selector-shelf-list{
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}

body[data-page="browse"] .selector-shelf-list .shelf-item{
  min-height: 330px;
  position: relative;
  padding: 18px;
  border: 1px solid rgba(247,229,198,0.13);
  background:
    radial-gradient(210px 148px at 50% 12%, rgba(224,160,74,0.14), transparent 72%),
    rgba(255,255,255,0.038);
}

body[data-page="browse"] .selector-shelf-list .shelf-item:hover{
  border-color: rgba(224,160,74,0.46);
  background:
    radial-gradient(220px 160px at 50% 12%, rgba(224,160,74,0.20), transparent 72%),
    rgba(255,255,255,0.060);
}

body[data-page="browse"] .selector-shelf-list .shelf-thumb-frame{
  width: min(176px, 82%);
  height: 156px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(234,227,216,0.88));
}

body[data-page="browse"] .selector-shelf-list .shelf-body{
  display: grid;
  gap: 7px;
  min-width: 0;
  color: inherit;
}

body[data-page="browse"] .selector-shelf-list .shelf-name{
  min-height: 2.32em;
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.16;
  font-weight: 600;
}

body[data-page="browse"] .selector-shelf-list .shelf-sub{
  margin: 0;
  color: rgba(255,248,237,0.92);
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1;
}

body[data-page="browse"] .shelf-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

body[data-page="browse"] .shelf-tags span{
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(247,229,198,0.15);
  background: rgba(255,255,255,0.045);
  color: rgba(250,241,225,0.74);
  font-size: 11px;
  line-height: 1;
}

body[data-page="browse"] .shelf-tags span[data-tag="peat"]{
  border-color: rgba(122,184,198,0.30);
  color: #abd7df;
}

body[data-page="browse"] .shelf-tags span[data-tag="price"]{
  border-color: rgba(143,195,95,0.32);
  color: #b8df8e;
}

body[data-page="browse"] .shelf-why{
  min-height: 4.35em;
  color: rgba(250,241,225,0.58);
  font-size: 12px;
  line-height: 1.45;
}

body[data-page="browse"] .shelf-why span{
  display: block;
  margin-bottom: 3px;
  color: rgba(255,248,237,0.78);
  font-size: 11px;
  letter-spacing: 0.02em;
}

body[data-page="browse"] .selector-shelf-list .shelf-deal{
  display: none;
}

body[data-page="browse"] .shelf-action{
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(143,195,95,0.095);
  color: #b8df8e;
  font-size: 13px;
}

body[data-page="browse"] .shelf-action i{
  color: rgba(255,248,237,0.52);
  font-style: normal;
  font-size: 19px;
}

body[data-page="browse"] .discovery-side{
  display: grid;
  gap: 12px;
  align-content: start;
}

body[data-page="browse"] .discovery-side-card{
  padding: 18px;
  overflow: hidden;
}

body[data-page="browse"] .discovery-side-card__head{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body[data-page="browse"] .discovery-side-card__head p{
  margin: 5px 0 0;
  font-size: 12px;
}

body[data-page="browse"] .discovery-map-key{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(250,241,225,0.62);
  font-size: 11px;
}

body[data-page="browse"] .discovery-map-key i{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8cc9d6;
  box-shadow: 0 0 12px rgba(140,201,214,0.68);
}

body[data-page="browse"] #discovery-value-view-all{
  all: unset;
  color: #e0a04a;
  font-size: 12px;
  cursor: pointer;
}

body[data-page="browse"] .taste-map{
  position: relative;
  min-height: clamp(340px, 38vw, 520px);
  border-radius: 0;
  border: 0;
  background:
    repeating-radial-gradient(circle at 50% 52%, transparent 0 48px, rgba(224,160,74,0.075) 49px 50px, transparent 51px 78px),
    radial-gradient(circle at 50% 52%, rgba(224,160,74,0.12), transparent 66%),
    transparent;
  overflow: visible;
}

body[data-page="browse"] .taste-map__axis{
  position: absolute;
  background: rgba(247,229,198,0.12);
}

body[data-page="browse"] .taste-map__axis--x{
  left: 9%;
  right: 9%;
  top: 52%;
  height: 1px;
}

body[data-page="browse"] .taste-map__axis--y{
  top: 9%;
  bottom: 9%;
  left: 50%;
  width: 1px;
}

body[data-page="browse"] .taste-map__label{
  position: absolute;
  color: rgba(223,170,98,0.78);
  font-size: 12px;
  line-height: 1.1;
}

body[data-page="browse"] .taste-map__label--left{ left: 0; top: 50%; transform: translateY(-50%); }
body[data-page="browse"] .taste-map__label--right{ right: 0; top: 50%; transform: translateY(-50%); }
body[data-page="browse"] .taste-map__label--top{ top: 0; left: 50%; transform: translateX(-50%); }
body[data-page="browse"] .taste-map__label--bottom{ bottom: 0; left: 50%; transform: translateX(-50%); }

body[data-page="browse"] .taste-map__point{
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(250,241,225,0.78);
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  transform: translate(-8px, -8px);
  max-width: 170px;
}

body[data-page="browse"] .taste-map__point span{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.22);
  background: #8cc9d6;
  box-shadow: 0 0 16px rgba(140,201,214,0.60);
}

body[data-page="browse"] .taste-map__point em{
  font-style: normal;
  text-shadow: 0 2px 10px rgba(0,0,0,0.82);
}

body[data-page="browse"] .taste-map__empty{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

body[data-page="browse"] .discovery-value-picks{
  display: grid;
  gap: 8px;
}

body[data-page="browse"] .discovery-value-pick{
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(247,229,198,0.10);
  background: rgba(255,255,255,0.035);
  color: inherit;
  text-decoration: none;
}

body[data-page="browse"] .discovery-value-pick:hover{
  border-color: rgba(224,160,74,0.38);
  background: rgba(255,255,255,0.055);
  text-decoration: none;
}

body[data-page="browse"] .discovery-value-pick__media{
  width: 48px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  overflow: hidden;
}

body[data-page="browse"] .discovery-value-pick__media img{
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

body[data-page="browse"] .discovery-value-pick__body,
body[data-page="browse"] .discovery-value-pick__price{
  display: grid;
  min-width: 0;
  gap: 3px;
}

body[data-page="browse"] .discovery-value-pick__body strong{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
}

body[data-page="browse"] .discovery-value-pick__body em,
body[data-page="browse"] .discovery-value-pick__price em{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(250,241,225,0.56);
  font-size: 11px;
  font-style: normal;
}

body[data-page="browse"] .discovery-value-pick__price{
  justify-items: end;
  text-align: right;
}

body[data-page="browse"] .discovery-value-pick__price strong{
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

body[data-page="browse"] .discovery-value-pick__price em{
  color: #a8d37b;
}

@media (max-width: 1240px){
  body[data-page="browse"] .discovery-hero{
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }

  body[data-page="browse"] .discovery-hero__visual{
    display: none;
  }

  body[data-page="browse"] .discovery-builder{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="browse"] .discovery-step:nth-of-type(2){
    border-right: 0;
  }

  body[data-page="browse"] .discovery-step:nth-of-type(3){
    border-top: 1px solid rgba(247,229,198,0.12);
  }

  body[data-page="browse"] .discovery-step:nth-of-type(4){
    border-top: 1px solid rgba(247,229,198,0.12);
  }

  body[data-page="browse"] .discovery-results{
    grid-template-columns: 1fr;
  }

  body[data-page="browse"] .discovery-side{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 900px){
  body[data-page="browse"] .scroll-reveal{
    transform: translate3d(0, 22px, 0);
  }

  body[data-page="browse"] .discovery-shell{
    gap: 18px;
    margin-bottom: 48px;
    padding: 0 14px;
  }

  body[data-page="browse"] .discovery-hero{
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  body[data-page="browse"] .discovery-hero__title{
    font-size: 44px;
  }

  body[data-page="browse"] .discovery-profile-card{
    padding: 16px;
  }

  body[data-page="browse"] .selector-dock{
    padding: 18px 14px;
  }

  body[data-page="browse"] .selector-dock__head{
    display: grid;
    align-items: start;
  }

  body[data-page="browse"] .discovery-builder{
    grid-template-columns: 1fr;
  }

  body[data-page="browse"] .discovery-step,
  body[data-page="browse"] .discovery-step:nth-of-type(2),
  body[data-page="browse"] .discovery-step:nth-of-type(3),
  body[data-page="browse"] .discovery-step:nth-of-type(4){
    border-right: 0;
    border-top: 1px solid rgba(247,229,198,0.12);
  }

  body[data-page="browse"] .discovery-step:first-child{
    border-top: 0;
  }

  body[data-page="browse"] .discovery-builder .filterbar__toolbar,
  body[data-page="browse"] .discovery-builder .filterdrawer__grid,
  body[data-page="browse"] .discovery-builder .filtergroup__body--product,
  body[data-page="browse"] .discovery-builder .filtergroup__body--origin{
    grid-template-columns: 1fr;
  }

  body[data-page="browse"] .discovery-builder__actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="browse"] .browse-dock{
    order: 1;
    padding: 14px;
  }

  body[data-page="browse"] .browse-dock__head{
    display: grid;
  }

  body[data-page="browse"] .browse-dock .browse-meta{
    max-width: none;
    text-align: left;
  }

  body[data-page="browse"] .discovery-side{
    display: contents;
  }

  body[data-page="browse"] .discovery-side-card--map{
    order: 0;
  }

  body[data-page="browse"] .discovery-side-card--values{
    order: 2;
  }

}

@media (max-width: 560px){
  body[data-page="browse"] .discovery-hero__title{
    font-size: 36px;
  }

  body[data-page="browse"] .discovery-profile-card__body{
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  body[data-page="browse"] .discovery-profile-meter{
    width: 82px;
    height: 82px;
  }

  body[data-page="browse"] .taste-map{
    min-height: 360px;
  }

  body[data-page="browse"] .selector-shelf-list .shelf-item{
    min-height: 0;
  }

  body[data-page="browse"] .selector-shelf-list .shelf-thumb-frame{
    width: min(170px, 82%);
    height: 150px;
  }

  body[data-page="browse"] .discovery-value-pick{
    grid-template-columns: 44px minmax(0, 1fr);
  }

  body[data-page="browse"] .discovery-value-pick__price{
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce){
  body[data-page="browse"] .scroll-reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Product page alignment with landing aesthetic */
body[data-page="product"]{
  --landing-header-height: 94px;
  background-color: #050302 !important;
  background-image: none !important;
  overflow-x: hidden;
}

body[data-page="product"] .container{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body[data-page="product"] .site-header{
  position: sticky;
  top: 0;
  z-index: 12000;
  height: var(--landing-header-height);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(84px, 176px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 10px clamp(18px, 4%, 56px);
  border-bottom: 0;
  background-color: #050302;
  background-image: none;
  box-shadow: none;
}

body[data-page="product"] .site-brand{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body[data-page="product"] .site-brand__logo{
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}

body[data-page="product"] .site-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3%, 42px);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body[data-page="product"] .site-nav::-webkit-scrollbar{
  display: none;
}

body[data-page="product"] .site-nav__link{
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  flex: 0 0 auto;
  cursor: pointer;
  color: rgba(245, 236, 222, 0.74);
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

body[data-page="product"] .site-nav__link:hover,
body[data-page="product"] .site-nav__link.is-active{
  color: #fff7ec;
  border-bottom-color: #d59136;
  text-decoration: none;
}

body[data-page="product"] .site-nav__link:focus-visible{
  outline: 2px solid rgba(230, 157, 64, 0.76);
  outline-offset: 4px;
}

body[data-page="product"] .product-hero{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  min-height: clamp(260px, 28vw, 390px);
  padding: clamp(40px, 7vw, 96px) clamp(18px, 7%, 112px) clamp(32px, 4vw, 54px);
  background-color: #050302;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.24) 56%, rgba(0,0,0,.54)),
    var(--landing-hero-image);
  background-size: 100% 100%, cover;
  background-position: center center, center 58%;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

body[data-page="product"] .product-hero::after{
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(5,3,2,0.92));
  pointer-events: none;
}

body[data-page="product"] .product-hero__copy{
  position: relative;
  z-index: 1;
}

body[data-page="product"] .product-hero__copy{
  max-width: 860px;
}

body[data-page="product"] .product-hero__title{
  margin: 0;
  color: #fff8ed;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(44px, 5.8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

body[data-page="product"] .product-hero__sub{
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(250,241,225,0.76);
  font-size: 17px;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

body[data-page="product"] .product-journey-nav{
  width: auto;
  max-width: none;
  margin: 0 clamp(16px, 4%, 44px) 12px;
  box-sizing: border-box;
  position: sticky;
  top: calc(var(--landing-header-height) + 8px);
  border-radius: 999px;
  border: 1px solid rgba(247,229,198,0.13);
  background: rgba(8,5,3,0.72);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

body[data-page="product"] .journey-nav__label--short{
  display: none;
}

body[data-page="product"] .detail-shell{
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(16px, 4%, 44px) 72px;
}

body[data-page="product"] .detail-shell__head{
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(247,229,198,0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022)),
    rgba(8,5,3,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 18px 42px rgba(0,0,0,0.22);
  padding: 18px 22px;
  margin: 0 0 12px;
}

body[data-page="product"] .detail-shell__title{
  color: #fff7ec;
  font-size: clamp(28px, 3.1vw, 44px);
  letter-spacing: 0;
}

body[data-page="product"] .detail-shell__sub{
  color: rgba(250,241,225,0.62);
}

body[data-page="product"] .focus-stage,
body[data-page="product"] .retailer-details{
  border-radius: 8px;
  border: 1px solid rgba(247,229,198,0.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022)),
    rgba(8,5,3,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 22px 52px rgba(0,0,0,0.24);
}

body[data-page="product"] .focus-stage{
  padding: clamp(18px, 2.4vw, 34px);
}

body[data-page="product"] .focus-head{
  gap: clamp(20px, 3vw, 46px);
}

body[data-page="product"] .detail-shell--standalone .focus-head{
  grid-template-columns: 1fr;
}

body[data-page="product"] .focus-kicker,
body[data-page="product"] .plot-kicker{
  color: #d2913d;
  letter-spacing: 0.14em;
}

body[data-page="product"] .focus-title{
  color: #fff7ec;
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 66px);
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body[data-page="product"] .cards--spotlight .card,
body[data-page="product"] .identity-panel,
body[data-page="product"] .plot-stage{
  border-radius: 8px;
  border: 1px solid rgba(247,229,198,0.12);
  background: rgba(255,255,255,0.038);
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="product"] .detail-shell--standalone #product-image.focus-image{
  order: 0;
  justify-self: center;
  align-self: start;
  width: min(100%, 360px);
  height: clamp(220px, 26vw, 360px);
  max-width: 360px;
  max-height: 360px;
  margin: 4px auto 8px;
  border-radius: 8px;
  border-color: rgba(247,229,198,0.13);
  background:
    radial-gradient(260px 310px at 50% 42%, rgba(224,160,74,0.18), transparent 72%),
    rgba(255,255,255,0.045);
  box-shadow: 0 26px 54px rgba(0,0,0,0.26);
}

body[data-page="product"] .plot-bridge{
  display: none;
}

body[data-page="product"] .retailer-details{
  margin-top: 12px;
  padding: 14px;
}

body[data-page="product"] .retailer-details > summary{
  color: #fff7ec;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

@media (min-width: 1100px){
  body[data-page="product"] .focus-stage{
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    gap: 14px;
    align-items: start;
  }

  body[data-page="product"] .detail-shell--standalone .focus-head{
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
    align-content: start;
  }

  body[data-page="product"] .identity-panel{
    grid-column: 2;
    margin: 0;
    align-self: stretch;
  }

  body[data-page="product"] .plot-stage,
  body[data-page="product"] .retailer-details{
    grid-column: 1 / -1;
  }

  body[data-page="product"] .detail-shell--standalone #product-image.focus-image{
    justify-self: center;
    width: min(100%, 380px);
    height: clamp(240px, 22vw, 380px);
    max-width: 380px;
    max-height: 380px;
  }
}

@media (max-width: 900px){
  body[data-page="product"]{
    --landing-header-height: 64px;
  }

  body[data-page="product"] .site-header{
    height: var(--landing-header-height);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 8px 14px;
  }

  body[data-page="product"] .site-brand__logo{
    width: 48px;
    height: 48px;
  }

  body[data-page="product"] .site-nav{
    justify-content: flex-start;
    gap: 14px;
  }

  body[data-page="product"] .site-nav__link{
    min-height: 32px;
    font-size: 13px;
  }

  body[data-page="product"] .product-hero{
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 16px 30px;
  }

  body[data-page="product"] .product-hero__title{
    font-size: 42px;
  }

  body[data-page="product"] .product-journey-nav{
    top: calc(var(--landing-header-height) + 6px);
    margin-left: 14px;
    margin-right: 14px;
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 8px;
    overflow: visible;
  }

  body[data-page="product"] .product-journey-nav .journey-nav__btn{
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 7px 6px;
    border-radius: 6px;
    font-size: 11.5px;
    line-height: 1.15;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
  }

  body[data-page="product"] .journey-nav__label--full{
    display: none;
  }

  body[data-page="product"] .journey-nav__label--short{
    display: inline;
  }

  body[data-page="product"] .detail-shell{
    padding: 0 14px 48px;
  }

  body[data-page="product"] .detail-shell__head{
    padding: 16px;
  }

  body[data-page="product"] .detail-shell__sub{
    text-align: left;
  }

  body[data-page="product"] .focus-title{
    font-size: clamp(30px, 9vw, 42px);
  }

  body[data-page="product"] .identity-panel{
    padding: 10px;
  }
}

@media (max-width: 560px){
  body[data-page="product"] .site-brand__logo{
    width: 44px;
    height: 44px;
  }

  body[data-page="product"] .site-nav{
    gap: 12px;
  }

  body[data-page="product"] .site-nav__link{
    font-size: 12.5px;
  }

  body[data-page="product"] .product-hero__title{
    font-size: 34px;
  }

  body[data-page="product"] .product-hero__sub{
    font-size: 15px;
  }

  body[data-page="product"] .product-journey-nav .journey-nav__btn{
    font-size: 10.5px;
    min-height: 40px;
  }
}
