/* ==========================================================================
   pricedrop.me — "Big percent"
   The price drop is the product: one bold element (the cobalt numerals),
   everything else quiet. One family (Archivo, variable wdth + wght).
   Order: tokens > base > layout > header > filters > cards > sections >
   page types > utilities > media queries.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0e1116;
  --muted: #626a76;
  --bg: #ffffff;
  --line: #e4e7eb;
  --soft: #f5f6f8;
  --cobalt: #1f3bff;
  --green: #0b7a3e;
  --warn: #a64500;
  --error: #b42318;

  --font: Archivo, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (1.25 ratio around a 16px base) */
  --t-xs: 0.8125rem;  /* 13 */
  --t-sm: 0.875rem;   /* 14 */
  --t-md: 1rem;       /* 16 */
  --t-lg: 1.125rem;   /* 18 */
  --t-xl: 1.25rem;    /* 20 */
  --t-2xl: 1.5rem;    /* 24 */
  --t-3xl: 1.875rem;  /* 30 */
  --t-4xl: clamp(2rem, 4.4vw, 3.25rem);  /* page h1 */
  --t-hero: clamp(2.25rem, 5vw, 3.75rem); /* home h1 */

  --gutter: 16px;
  --max: 1180px;
  --radius: 8px;
  --row-img: 96px;
  --ease: 160ms ease;
}

/* ---------- Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-md)/1.5 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: 650; }
em { font-style: normal; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }

/* Shared heading voice: width 112, weight 800 */
h1, h2, .section-heading {
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* Legacy arrow decorations are hidden; the whole row/button is the link */
.card-cta, .card-cta-arrow { display: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main.container { padding-bottom: 48px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 8px; top: 8px; z-index: 100;
  padding: 10px 14px;
  background: var(--ink); color: #fff; border-radius: 6px;
  font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; color: #fff; }

/* ---------- Header ---------- */
.header-top {
  position: relative;
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.header-top::after { /* 2px rule aligned to the content edges, not the gutters */
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 2px; background: var(--ink);
}
.site-logo-link { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.site-logo-link:hover { color: var(--ink); }
.logo-icon { display: none; }
.logo-text {
  font-weight: 900; font-stretch: 125%;
  font-size: var(--t-2xl); letter-spacing: -0.03em; line-height: 1;
  text-transform: lowercase;
}
.logo-dot { color: var(--muted); }

.site-nav { display: flex; gap: 22px; }
.site-nav a { font-weight: 500; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

.social-menu { position: relative; margin-left: auto; }
.social-menu-btn {
  list-style: none; cursor: pointer;
  font-weight: 500; padding: 6px 0; white-space: nowrap;
}
.social-menu-btn::-webkit-details-marker { display: none; }
.social-menu-btn::after { content: " +"; color: var(--muted); }
.social-menu[open] .social-menu-btn::after { content: " \2013"; }
.social-menu-btn:hover { color: var(--cobalt); }
.social-menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  display: grid; min-width: 200px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(14, 17, 22, 0.08);
}
.social-menu-dropdown a { padding: 8px 10px; border-radius: 4px; text-decoration: none; }
.social-menu-dropdown a:hover { background: var(--soft); }

.market-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.market-switch a {
  padding: 4px 10px; border-radius: 4px;
  font-size: var(--t-sm); font-weight: 600; text-decoration: none; color: var(--muted);
}
.market-switch a[aria-current] { background: var(--ink); color: #fff; }
.market-switch a:not([aria-current]):hover { color: var(--cobalt); }

/* Home masthead: headline left, the hero numeral right */
.masthead {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  padding-top: 48px; padding-bottom: 32px;
}
.home-h1 { font-size: var(--t-hero); line-height: 1; letter-spacing: -0.025em; max-width: 15ch; }
.masthead-meta { margin-top: 16px; color: var(--muted); font-size: var(--t-lg); max-width: 52ch; }
.masthead-meta strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

.top-drop-link {
  position: relative; isolation: isolate;
  display: grid; justify-items: end; text-align: right;
  text-decoration: none; color: var(--ink);
}
/* The deal's own photo, faded behind the numeral. Amazon photos sit on white, so on the white
   masthead only the product shows; the radial mask dissolves the edges into the page. Decorative
   (alt=""), the product name is right below it. Hotlinked from Amazon, never stored. */
.top-drop-img {
  position: absolute; z-index: -1; top: 50%; right: 4%;
  width: clamp(170px, 19vw, 250px); height: auto; aspect-ratio: 1; object-fit: contain;
  transform: translateY(-50%);
  opacity: 0.28; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
  mask-image: radial-gradient(closest-side, #000 60%, transparent);
  transition: opacity var(--ease);
}
.top-drop-link:hover .top-drop-img { opacity: 0.42; }
.top-drop-pct {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(4.5rem, 11vw, 9rem); line-height: 0.82; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt);
}
.top-drop-label { margin-top: 12px; color: var(--muted); font-size: var(--t-sm); }
.top-drop-name { max-width: 30ch; font-weight: 600; font-size: var(--t-sm); transition: color var(--ease); }
.top-drop-link:hover .top-drop-name { color: var(--cobalt); }

/* ---------- Filters bar (full-bleed, content aligned to the container) ---------- */
.filters-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 10px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.filter-controls { display: contents; }
.filter-group { display: flex; align-items: center; gap: 8px; }

.filters-bar input[type="search"],
.filters-bar input[type="number"],
.filters-bar select,
.subscribe-form input[type="email"] {
  height: 40px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  font-size: var(--t-sm);
  transition: border-color var(--ease);
}
.filters-bar input:hover, .filters-bar select:hover, .subscribe-form input:hover { border-color: #c5cad1; }
.filters-bar input:focus-visible, .filters-bar select:focus-visible, .subscribe-form input:focus-visible {
  border-color: var(--cobalt); outline: 2px solid var(--cobalt); outline-offset: 0;
}
.filters-bar ::placeholder, .subscribe-form ::placeholder { color: var(--muted); opacity: 1; }
.filters-bar select {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px; cursor: pointer; max-width: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23626a76' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

.search-field { position: relative; flex: 1 1 240px; min-width: 0; }
.filters-bar .search-field input { width: 100%; padding-left: 36px; padding-right: 36px; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-clear-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 4px; background: none;
  color: var(--muted); font-size: var(--t-xl); line-height: 1;
}
.search-clear-btn:hover { color: var(--ink); background: var(--soft); }

.filter-group-slider { gap: 10px; }
.slider-label {
  display: block; white-space: nowrap; font-size: var(--t-sm); color: var(--muted);
  min-width: 8.5em;
}
#drop-slider-value { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
#drop-slider { width: 120px; accent-color: var(--ink); cursor: pointer; }

.filter-group-price { gap: 4px; }
.filter-group-price input { width: 92px; }
.price-sep { color: var(--muted); }

.filters-toggle {
  display: none; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  font-size: var(--t-sm); font-weight: 600;
}
.filters-toggle:hover { border-color: #c5cad1; }
.filters-bar.filters-open .filters-toggle { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Results line + active filter pills */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.results-summary { color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: var(--t-xs); font-weight: 500;
  transition: border-color var(--ease), color var(--ease);
}
.filter-pill:hover { border-color: var(--ink); }
.pill-x { color: var(--muted); font-size: var(--t-md); line-height: 1; }
.filter-pill-clear { border-color: transparent; text-decoration: underline; text-underline-offset: 0.18em; }
.filter-pill-clear:hover { color: var(--cobalt); border-color: transparent; }

/* ---------- Deal card: the ledger row (default for every list) ---------- */
.products-grid { border-top: 1px solid var(--line); }
.product-card { position: relative; border-bottom: 1px solid var(--line); }
.product-card > .product-link {
  display: grid;
  grid-template-columns: var(--row-img) minmax(0, 1fr) auto;
  grid-template-rows: 1fr repeat(8, auto) 1fr;
  column-gap: 20px;
  padding: 18px 0;
  color: inherit; text-decoration: none;
}
.product-card > .product-link:focus-visible { outline-offset: 4px; border-radius: 4px; }
.product-card .product-info-col { display: contents; }

.product-card .product-img-col {
  grid-column: 1; grid-row: 1 / -1; align-self: center;
  width: var(--row-img); aspect-ratio: 1;
  display: grid; place-items: center; overflow: hidden;
  background: var(--soft); border-radius: var(--radius);
}
.product-card .product-img {
  width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply;
}
.product-img-placeholder { width: 100%; height: 100%; background: var(--soft); }

/* Text column: explicit rows so optional pieces collapse cleanly */
.product-card .product-name,
.product-card .rating-row,
.product-card .deal-badge,
.product-card .typical-price-row,
.product-card .product-desc,
.product-card .deal-countdown,
.product-card .category-badge,
.product-card .deal-date { grid-column: 2; justify-self: start; }
.product-card .product-name { grid-row: 2; }
.product-card .rating-row { grid-row: 3; }
.product-card .deal-badge { grid-row: 4; }
.product-card .typical-price-row { grid-row: 5; }
.product-card .product-desc { grid-row: 6; }
.product-card .deal-countdown { grid-row: 7; }
.product-card .category-badge { grid-row: 8; }
.product-card .deal-date { grid-row: 9; }

.product-card .product-name {
  font-size: 1.0625rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--ease);
}
.product-card > .product-link:hover .product-name { color: var(--cobalt); }

.rating-row { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; font-size: var(--t-sm); color: var(--muted); }
.rating-row .star { color: var(--ink); font-size: var(--t-xs); }
.rating-val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rating-count { font-variant-numeric: tabular-nums; }

.product-card .product-desc {
  margin-top: 6px; max-width: 70ch;
  font-size: var(--t-sm); line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-badge { margin-top: 4px; font-size: var(--t-xs); font-weight: 600; color: var(--warn); }
.deal-countdown { margin-top: 4px; font-size: var(--t-xs); font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; }
.deal-countdown:empty { display: none; }
.typical-price-row { display: flex; gap: 6px; margin-top: 4px; font-size: var(--t-xs); color: var(--muted); }
.typical-price { text-decoration: line-through; font-variant-numeric: tabular-nums; }
.below-typical-badge { color: var(--green); font-weight: 600; }
.category-badge { display: none; }
.deal-date { margin-top: 4px; font-size: var(--t-xs); color: var(--muted); }
.product-card.is-fresh .deal-date::before,
.product-card.is-recent .deal-date::before {
  content: "New"; margin-right: 6px; color: var(--green); font-weight: 650;
}
.card-ribbon { display: none; } /* section heading already says "Top deals" / "Seasonal" */

/* Price column: the drop % is the headline */
.product-card .price-row {
  grid-column: 3; grid-row: 1 / -1; align-self: center;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  min-width: 6.5rem;
  font-variant-numeric: tabular-nums;
}
.drop-badge {
  order: -1;
  font-weight: 900; font-stretch: 125%;
  font-size: 2.75rem; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--cobalt);
}
.current-price { margin-top: 6px; font-size: var(--t-xl); font-weight: 700; line-height: 1.2; }
.original-price { font-size: var(--t-sm); color: var(--muted); text-decoration: line-through; }
.save-amount { display: none; }
.price-check { max-width: 14ch; font-size: var(--t-sm); font-weight: 600; line-height: 1.35; color: var(--muted); }

/* ---------- Tiles (Top deals + Seasonal): one row, "Show all" opens the rest ---------- */
/* Collapsing is keyed on html.js so that without the script every card simply shows. The row
   length per breakpoint below must match TILE_COLUMNS in src/client/tiles.ts. */
.featured-deals, .seasonal-picks { margin-top: 40px; }
.featured-grid, .seasonal-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 20px;
}
.js .tiles-collapsed > .product-card:nth-child(n+6) { display: none; }
.show-more {
  display: block; margin: 20px auto 0; padding: 10px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 650; cursor: pointer;
}
.show-more:hover { border-color: var(--ink); }
.show-more[hidden] { display: none; }
.featured-grid .product-card, .seasonal-grid .product-card, .view-grid .products-grid .product-card { border: 0; }
.featured-grid .product-card > .product-link,
.seasonal-grid .product-card > .product-link,
.view-grid .products-grid .product-card > .product-link { display: flex; flex-direction: column; padding: 0; }
.featured-grid .product-info-col, .seasonal-grid .product-info-col, .view-grid .products-grid .product-info-col { display: flex; flex-direction: column; }
.featured-grid .product-img-col, .seasonal-grid .product-img-col, .view-grid .products-grid .product-img-col { width: 100%; border-radius: 10px; }
.featured-grid .price-row, .seasonal-grid .price-row, .view-grid .products-grid .price-row {
  order: -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px;
  align-self: stretch; margin-top: 14px; text-align: left; min-width: 0;
}
.featured-grid .drop-badge, .seasonal-grid .drop-badge, .view-grid .products-grid .drop-badge { flex-basis: 100%; font-size: 3rem; margin-bottom: 6px; }
.featured-grid .current-price, .seasonal-grid .current-price, .view-grid .products-grid .current-price { margin-top: 0; font-size: var(--t-lg); }
.featured-grid .price-check, .seasonal-grid .price-check, .view-grid .products-grid .price-check { max-width: none; }
.featured-grid .product-name, .seasonal-grid .product-name, .view-grid .products-grid .product-name { margin-top: 6px; font-size: var(--t-md); }
.featured-grid .rating-row, .seasonal-grid .rating-row,
.featured-grid .product-desc, .seasonal-grid .product-desc, .view-grid .products-grid .product-desc,
.featured-grid .typical-price-row, .seasonal-grid .typical-price-row, .view-grid .products-grid .typical-price-row,
.featured-grid .deal-badge, .seasonal-grid .deal-badge, .view-grid .products-grid .deal-badge { display: none; }

/* ---------- Grid view (toggle in the results bar; src/client/view.ts) ---------- */
.view-grid .products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px 20px; padding-top: 20px;
}
.view-toggle { display: none; margin-left: auto; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; }
.js .view-toggle { display: inline-flex; }
.view-toggle button {
  display: grid; place-items: center; width: 34px; height: 30px; padding: 0;
  border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer;
}
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Grid tiles keep the star rating and review count (the strips drop them to stay compact) */
.view-grid .products-grid .rating-row { margin-top: 4px; }

/* ---------- Section headings ---------- */
.section-heading { font-size: var(--t-2xl); margin-bottom: 16px; }
.grid-heading { margin-top: 48px; }
.grid-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; margin-bottom: 16px; }
.grid-heading-row .section-heading { margin-bottom: 0; }

/* ---------- Banners (event / viral / offer): quiet rows on the soft surface ---------- */
.viral-banner, .prime-banner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 20px;
  margin-top: 12px; padding: 16px 20px;
  background: var(--soft); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
main > .viral-banner:first-child, main > .prime-banner:first-child { margin-top: 24px; }
.banner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px; margin-top: 24px; }
.banner-row > .viral-banner { margin-top: 0; padding: 12px 16px; }
.banner-row .viral-banner-text { min-width: 0; }
.banner-row .viral-banner-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viral-banner { grid-template-columns: minmax(0, 1fr) auto; } /* text + CTA; no label column */
.viral-banner-text, .prime-banner-text { display: grid; gap: 2px; }
.viral-banner-text strong, .prime-banner-text strong { font-weight: 700; transition: color var(--ease); }
.viral-banner-text span, .prime-banner-text span { font-size: var(--t-sm); color: var(--muted); }
.viral-banner-cta, .prime-banner-cta { font-size: var(--t-sm); font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 0.2em; }
.viral-banner:hover, .prime-banner:hover { color: var(--ink); }
.viral-banner:hover strong, .prime-banner:hover strong, .viral-banner:hover .viral-banner-cta, .prime-banner:hover .prime-banner-cta { color: var(--cobalt); }
.prime-banner { margin-top: 24px; margin-bottom: 8px; }
.prime-banner-icon { color: var(--muted); }

/* ---------- Load more ---------- */
.load-more {
  display: block; margin: 28px auto 0; padding: 12px 28px;
  background: var(--bg); border: 1px solid var(--ink); border-radius: 6px;
  font-weight: 600;
  transition: background-color var(--ease), color var(--ease);
}
.load-more:hover { background: var(--ink); color: #fff; }

/* Client-side empty / no-match states */
.status-message { padding: 32px 0; color: var(--muted); font-size: var(--t-lg); }
.status-message .filter-pill { margin-top: 12px; }
.amazon-search-fallback, .search-fallback-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--ink); }
.suggestions-heading { margin: 8px 0 0; padding: 16px 0; font-size: var(--t-xl); border-top: 1px solid var(--line); }
.suggestions-heading + .product-card { border-top: 1px solid var(--line); }

/* ---------- Subscribe ---------- */
.subscribe-section { margin-top: 24px; }
.subscribe-box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 48px; align-items: center;
  padding: 36px 40px; background: var(--soft); border-radius: 12px;
}
.subscribe-heading { font-size: var(--t-3xl); grid-column: 1; }
.subscribe-deck { grid-column: 1; color: var(--muted); max-width: 48ch; }
.subscribe-form { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe-form input[type="email"] { flex: 1 1 220px; min-width: 0; height: 48px; font-size: var(--t-md); }
.subscribe-btn {
  height: 48px; padding: 0 22px; border: 0; border-radius: 6px;
  background: var(--ink); color: #fff; font-weight: 650;
  transition: background-color var(--ease);
}
.subscribe-btn:hover { background: var(--cobalt); }
.subscribe-btn:disabled { opacity: 0.6; cursor: progress; }
.telegram-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.telegram-btn:hover { color: #fff; }
.telegram-join { align-items: center; }
.subscribe-status { flex-basis: 100%; min-height: 1.5em; font-size: var(--t-sm); color: var(--muted); }
.subscribe-status[data-state="ok"] { color: var(--green); }
.subscribe-status[data-state="error"] { color: var(--error); }

/* ---------- Category nav, chips ---------- */
.category-nav { margin-top: 56px; }
.category-nav h2 { font-size: var(--t-2xl); margin-bottom: 16px; }
.category-nav-list, .nf-links, .empty-cat-siblings, .about-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.category-nav-list a, .nf-links a, .empty-cat-siblings a, .about-social-links a {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--t-sm); font-weight: 500; text-decoration: none;
  transition: border-color var(--ease), color var(--ease);
}
.category-nav-list a:hover, .nf-links a:hover, .empty-cat-siblings a:hover, .about-social-links a:hover { border-color: var(--ink); }
.category-nav-list a span, .empty-cat-siblings a span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--t-xs); }
.category-nav-list a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- FAQ ---------- */
.faq-section { margin-top: 56px; }
.faq-heading { font-size: var(--t-2xl); margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq-item summary {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font-size: var(--t-lg); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: var(--t-xl); line-height: 1.2; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--cobalt); }
.faq-item p { padding-bottom: 18px; color: var(--muted); max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--soft); }
.disclaimer-note {
  max-width: var(--max); margin-inline: auto; padding: 32px var(--gutter) 16px;
  font-size: var(--t-xs); color: var(--muted); line-height: 1.55;
}
.disclaimer-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: var(--t-sm); }
.footer-disclaimer, .footer-disclosure { max-width: 80ch; margin-top: 6px; }
.footer-disclosure { color: var(--ink); }
.app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding-top: 16px; padding-bottom: 40px; }
.footer-copy { font-size: var(--t-xs); color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { font-size: var(--t-sm); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast-notification {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-size: var(--t-sm); font-weight: 500;
  opacity: 0; transform: translate(-50%, 8px);
  transition: opacity var(--ease), transform var(--ease);
}
.toast-notification.toast-visible { opacity: 1; transform: translate(-50%, 0); }

/* Telegram nudge: a card offered when a visitor returns to the tab after clicking a deal (client/telegram-nudge.ts). */
.tg-nudge {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: min(360px, calc(100vw - 32px)); padding: 18px 18px 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(14, 17, 22, 0.16), 0 2px 6px rgba(14, 17, 22, 0.08);
  opacity: 0; transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.tg-nudge.tg-nudge-visible { opacity: 1; transform: translateY(0); }
.tg-nudge-title { margin: 0 28px 6px 0; font-size: var(--t-lg); font-weight: 650; line-height: 1.3; }
.tg-nudge-deck { margin: 0 0 14px; color: var(--muted); font-size: var(--t-sm); line-height: 1.45; }
.tg-nudge-join { display: flex; width: 100%; height: 44px; }
.tg-nudge-close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.tg-nudge-close:hover { background: var(--line); color: var(--ink); }
@media (max-width: 520px) {
  .tg-nudge { right: 16px; bottom: 16px; left: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tg-nudge { transition: none; transform: none; }
}

/* ==========================================================================
   Page types
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs { padding-top: 20px; font-size: var(--t-sm); color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; list-style: none; }
.breadcrumbs li { min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: #b3b9c2; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Category / roundup page head. On category pages it sits in the header, above the sticky filter bar. */
.category-head { padding-bottom: 24px; }
.category-h1, .hub-h1, .viral-index-h1 { margin-top: 20px; font-size: var(--t-4xl); line-height: 1.04; letter-spacing: -0.025em; max-width: 22ch; }
.h1-sub { display: block; margin-top: 10px; font-size: var(--t-sm); font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }
.category-intro, .hub-sub, .viral-index-sub { margin-top: 14px; max-width: 68ch; font-size: var(--t-lg); line-height: 1.55; color: var(--muted); }
.roundup-links, .hub-months, .roundup-as-of, .roundup-live-link { margin-top: 12px; max-width: 80ch; font-size: var(--t-sm); color: var(--muted); }
.roundup-links a, .hub-months a, .roundup-live-link a { color: var(--ink); font-weight: 500; }
.category-intro a, .hub-sub a { color: var(--ink); }
.roundup-live-link a:hover, .roundup-links a:hover, .hub-months a:hover { color: var(--cobalt); }
.roundup-video { margin-top: 24px; max-width: 720px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.roundup-video iframe, .viral-video iframe { width: 100%; height: 100%; border: 0; }
.roundup-grid { margin-top: 24px; }

.search-notice { margin-top: 20px; padding: 14px 18px; background: var(--soft); border-radius: var(--radius); }
.search-notice p + p { margin-top: 2px; }
.search-notice .search-fallback-link { margin-top: 0; }

/* Empty category / hub states */
.empty-cat-state, .hub-empty { margin-top: 28px; padding: 28px 0; border-top: 1px solid var(--line); max-width: 760px; }
.empty-cat-lead, .hub-empty-lead { font-size: var(--t-xl); font-weight: 650; }
.empty-cat-deck, .hub-empty-deck { margin-top: 8px; color: var(--muted); max-width: 66ch; }
.empty-cat-siblings { margin-top: 18px; }
.empty-cat-cross, .hub-empty-cross { margin-top: 16px; font-size: var(--t-sm); color: var(--muted); }
.empty-cat-cross a, .hub-empty-cross a, .hub-empty-deck a { color: var(--ink); font-weight: 600; }

/* Roundup hub + event hub: grouped ledger of months */
.hub-head { padding-bottom: 8px; }
.hub-groups { margin-top: 32px; display: grid; gap: 40px; }
.hub-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0 40px; padding-top: 16px; border-top: 2px solid var(--ink); }
.hub-group-head { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.hub-group-name { font-size: var(--t-2xl); }
.hub-group-count { font-size: var(--t-sm); color: var(--muted); }
.hub-group-live { margin-top: 6px; font-size: var(--t-sm); font-weight: 500; }
.hub-rows { list-style: none; padding: 0; }
.hub-row + .hub-row { border-top: 1px solid var(--line); }
.hub-row-link {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
  padding: 14px 0; text-decoration: none; color: var(--ink);
}
.hub-row-month { font-size: var(--t-sm); color: var(--muted); }
.hub-row-title { font-weight: 600; transition: color var(--ease); }
.hub-row-meta { font-size: var(--t-sm); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hub-row-link:hover { color: var(--ink); }
.hub-row-link:hover .hub-row-title { color: var(--cobalt); }

/* ---------- Sale-event hub (Black Friday): status, live top picks, a strip per category ---------- */
.event-status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
  font-size: var(--t-sm); font-weight: 650;
}
.event-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.event-status-live { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.event-status-live::before { background: #ff4d4d; }
.event-status-early::before { background: var(--cobalt); }
.event-head .hub-h1 { margin-top: 14px; }
.event-stats { margin-top: 14px; font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.event-head .hub-sub { margin-top: 8px; font-size: var(--t-md); }
.event-top { margin-top: 32px; }
.event-cats { margin-top: 56px; }
.event-cat { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.event-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.event-cat-name { font-size: var(--t-xl); }
.event-cat-name a { color: inherit; text-decoration: none; }
.event-cat-name a:hover { color: var(--cobalt); }
.event-cat-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--t-sm); font-weight: 600; }
.event-cat-links a { color: var(--ink); }
.event-roundups { margin-top: 56px; }

/* Roundup cross links */
.roundup-crosslinks { margin-top: 56px; }
.roundup-crosslinks h2 { font-size: var(--t-2xl); }
.roundup-nav-months { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 16px; padding: 14px 0; border-block: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.roundup-nav-months a { color: var(--ink); font-weight: 600; }
.roundup-nav-months a:hover { color: var(--cobalt); }
.roundup-sibling-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 16px; }
.roundup-sibling {
  display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color var(--ease);
}
.roundup-sibling:hover { border-color: var(--ink); color: var(--ink); }
.roundup-sibling-cat { font-weight: 650; }
.roundup-sibling:hover .roundup-sibling-cat { color: var(--cobalt); }
.roundup-sibling-month { font-size: var(--t-sm); color: var(--muted); }
.roundup-crosslinks-hub { margin-top: 16px; font-size: var(--t-sm); }
.roundup-crosslinks-hub a { font-weight: 600; }

/* Viral index */
.viral-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 36px; }
.viral-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.viral-card:hover { color: var(--ink); }
.viral-card-visual { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--soft); border-radius: 10px; overflow: hidden; }
.viral-card-emoji { font-size: 4rem; line-height: 1; }
.viral-card-photo { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.viral-card-body { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.viral-card-cat { font-size: var(--t-sm); color: var(--muted); }
.viral-card-hook { font-size: var(--t-xl); line-height: 1.2; transition: color var(--ease); }
.viral-card:hover .viral-card-hook { color: var(--cobalt); }
.viral-card-sub { font-size: var(--t-sm); color: var(--muted); }
.viral-card-more { margin-top: 2px; font-size: var(--t-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* Viral landing */
.viral-landing-article { max-width: 920px; }
.viral-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 48px; align-items: start;
  padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.viral-hero > * { grid-column: 1; }
.viral-hero > .viral-visual, .viral-hero > .viral-video { grid-column: 2; grid-row: 1 / span 7; margin-top: 20px; }
.viral-h1 { margin-top: 20px; font-size: var(--t-4xl); line-height: 1.04; letter-spacing: -0.025em; }
.viral-deck { margin-top: 14px; font-size: var(--t-xl); line-height: 1.45; color: var(--muted); max-width: 52ch; }
.viral-visual { aspect-ratio: 1; display: grid; place-items: center; background: var(--soft); border-radius: 12px; overflow: hidden; }
.viral-emoji { font-size: 7rem; line-height: 1; }
.viral-photo { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.viral-video { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--soft); }
.viral-proof { margin-top: 20px; }
.viral-trend-badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--green); }
.viral-trend-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.viral-cta-wrap { margin-top: 20px; }
.viral-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 6px;
  font-weight: 650; text-decoration: none;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.viral-cta-primary { background: var(--ink); color: #fff; }
.viral-cta-primary:hover { background: var(--cobalt); color: #fff; }
.viral-cta-secondary { border: 1px solid var(--ink); color: var(--ink); }
.viral-cta-secondary:hover { border-color: var(--cobalt); color: var(--cobalt); }
.viral-source { margin-top: 14px; font-size: var(--t-xs); color: var(--muted); }
.viral-pitch { margin-top: 32px; max-width: 66ch; font-size: var(--t-lg); line-height: 1.65; }
.viral-section { margin-top: 36px; max-width: 66ch; }
.viral-section h2 { font-size: var(--t-2xl); margin-bottom: 10px; }
.viral-section p { font-size: var(--t-lg); line-height: 1.65; }
.viral-section p + p { margin-top: 12px; }
.viral-bullets { padding-left: 1.2em; font-size: var(--t-lg); line-height: 1.6; }
.viral-bullets li + li { margin-top: 6px; }
.viral-bullets li::marker { color: var(--muted); }
.viral-cta-block { margin-top: 40px; padding: 28px; background: var(--soft); border-radius: 12px; max-width: 66ch; }
.viral-cta-block .viral-cta-wrap { margin-top: 0; }
.viral-disclosure { margin-top: 14px; font-size: var(--t-xs); color: var(--muted); }

/* Long-form prose: about, privacy, terms */
.about-content, .legal-page { max-width: 68ch; padding-top: 8px; }
.about-content h1, .legal-page h1 { margin-top: 20px; font-size: var(--t-4xl); line-height: 1.05; letter-spacing: -0.025em; }
.about-lead { margin-top: 16px; font-size: var(--t-xl); line-height: 1.5; color: var(--muted); }
.about-section { margin-top: 40px; }
.about-content h2, .legal-page h2 { margin-top: 40px; margin-bottom: 12px; font-size: var(--t-2xl); }
.about-section h2 { margin-top: 0; }
.about-content p, .legal-page p, .legal-page li { font-size: 1.0625rem; line-height: 1.7; }
.about-content p + p, .legal-page p + p, .legal-page p + ul, .legal-page ul + p { margin-top: 14px; }
.legal-page ul { padding-left: 1.2em; }
.legal-page li + li { margin-top: 6px; }
.legal-page li::marker { color: var(--muted); }
.legal-date { display: block; margin-top: 10px; margin-bottom: 24px; font-size: var(--t-sm); color: var(--muted); }
.about-social-links { margin-top: 16px; }
.about-content a:not(.about-social-links a), .legal-page a { color: var(--ink); text-decoration: underline; }
.about-content a:hover, .legal-page a:hover { color: var(--cobalt); }

/* Message page + 404 */
.message-page, .nf-wrap { max-width: 640px; padding: 56px 0 24px; }
.message-page h1, .nf-title { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.025em; }
.nf-code { margin-bottom: 12px; font-weight: 600; font-size: var(--t-md); color: var(--muted); }
.message-lead, .nf-deck { margin-top: 16px; font-size: var(--t-lg); line-height: 1.55; color: var(--muted); }
.message-home, .nf-home { display: inline-block; margin-top: 24px; font-weight: 650; }
.nf-links { margin-top: 28px; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Media queries
   ========================================================================== */
@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* Filter drawer below desktop width */
@media (max-width: 1040px) {
  .featured-grid, .seasonal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .js .tiles-collapsed > .product-card:nth-child(n+5) { display: none; }
  .filters-bar { flex-wrap: wrap; }
  .filters-toggle { display: inline-flex; }
  .filter-controls { display: none; }
  .filters-bar.filters-open .filter-controls {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px;
    flex-basis: 100%; padding: 8px 0 6px;
  }
  .filters-bar.filters-open .filter-group { min-width: 0; }
  .filters-bar.filters-open .filter-group > select,
  .filters-bar.filters-open .filter-group-price input { flex: 1; width: auto; max-width: none; min-width: 0; }
  .filters-bar.filters-open #drop-slider { flex: 1; width: auto; }
}

@media (max-width: 900px) {
  .viral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-group { grid-template-columns: 1fr; gap: 12px; }
  .featured-grid, .seasonal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .js .tiles-collapsed > .product-card:nth-child(n+4) { display: none; }
  .subscribe-box { grid-template-columns: 1fr; padding: 28px 24px; }
  .subscribe-form { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .viral-hero { grid-template-columns: minmax(0, 1fr) 200px; gap: 0 28px; }
}

@media (max-width: 720px) {
  :root { --row-img: 72px; }

  /* Header: logo + follow + store on one line, the full-width nav (scrolls if it must) on the next */
  .header-top { flex-wrap: wrap; gap: 0 10px; min-height: 0; padding-top: 12px; }
  .site-logo-link { order: 0; }
  .social-menu { order: 1; margin-left: auto; font-size: 0.9375rem; }
  .market-switch { order: 2; margin-left: 0; }
  .site-nav { order: 3; flex: 1 0 100%; min-width: 0; gap: 14px; font-size: 0.9375rem; overflow-x: auto; padding: 10px 0 8px; scrollbar-width: none; }
  .social-menu-dropdown { top: calc(100% + 4px); }
  .logo-text { font-size: var(--t-lg); }

  .masthead { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 24px; }
  .masthead-meta { font-size: var(--t-md); margin-top: 12px; }
  .category-intro, .hub-sub, .viral-index-sub { font-size: var(--t-md); }
  .top-drop-link { justify-items: start; text-align: left; padding-top: 20px; border-top: 1px solid var(--line); }
  .top-drop-pct { font-size: clamp(4.5rem, 26vw, 6.5rem); }
  .top-drop-label { margin-top: 10px; }

  .product-card > .product-link { column-gap: 14px; padding: 14px 0; }
  .product-card .product-name { font-size: var(--t-md); }
  .product-card .product-desc, .product-card .typical-price-row { display: none; }
  .product-card .price-row { min-width: 5rem; }
  .drop-badge { font-size: 2.125rem; }
  .current-price { font-size: var(--t-lg); margin-top: 4px; }
  .original-price { font-size: var(--t-xs); }
  .price-check { font-size: var(--t-xs); max-width: 10ch; }
  .rating-row { font-size: var(--t-xs); }

  .view-grid .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }

  .featured-grid, .seasonal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .js .tiles-collapsed > .product-card:nth-child(n+3) { display: none; }
  .featured-grid .drop-badge, .seasonal-grid .drop-badge, .view-grid .products-grid .drop-badge { font-size: 2.25rem; }
  .featured-grid .product-name, .seasonal-grid .product-name, .view-grid .products-grid .product-name { font-size: var(--t-sm); }

  .viral-banner, .prime-banner { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; gap: 4px; }
  .prime-banner-icon { display: none; }
  .viral-banner-cta, .prime-banner-cta { margin-top: 4px; }
  .viral-banner-text span { display: none; }
  .banner-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
  .banner-row > .viral-banner { padding: 10px 12px; }
  .banner-row .viral-banner-cta { white-space: normal; } /* two half-width banners: long CTAs wrap instead of spilling */

  .load-more { width: 100%; }

  .hub-row-link { grid-template-columns: 1fr; gap: 2px; }
  .hub-row-meta { text-align: left; }

  .viral-hero { grid-template-columns: 1fr; }
  .viral-hero > .viral-visual, .viral-hero > .viral-video { grid-column: 1; grid-row: auto; order: 1; margin-top: 24px; max-width: 200px; }
  .viral-hero > .viral-source { order: 2; }
  .viral-emoji { font-size: 5rem; }
  .viral-cta { width: 100%; }
  .viral-cta-block { padding: 20px; }

  .subscribe-heading { font-size: var(--t-2xl); }
  .subscribe-btn { flex: 1 1 100%; }
  .app-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .filters-bar.filters-open .filter-controls { grid-template-columns: 1fr; }
  .viral-grid { grid-template-columns: 1fr; }
  .viral-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
  .viral-card-visual { aspect-ratio: 1; }
  .viral-card-emoji { font-size: 2.5rem; }
  .viral-card-body { padding-top: 0; }
  .viral-card-hook { font-size: var(--t-lg); }
}

@media (hover: none) {
  .product-card > .product-link:hover .product-name { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Collections ---------- */
.collection-chips { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
/* Inside <main> (homepage) the row already sits in the page container. */
main .collection-chips.container { padding-inline: 0; max-width: none; }
.collection-chips-label { flex: none; font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
/* Wraps onto more lines rather than scrolling sideways: chips past the right edge were invisible. */
.collection-chips-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.collection-chips-list a {
  flex: none; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: border-color var(--ease), color var(--ease);
}
.collection-chips-list a:hover { border-color: var(--ink); }
.collection-chips-list a span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--t-xs); }
.collection-chips-list a.is-seasonal { border-color: var(--cobalt); color: var(--cobalt); }
.collection-chips-list a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.collection-chips-list a[aria-current] span { color: rgba(255, 255, 255, 0.7); }
.collection-chips-list .collection-chips-all { color: var(--muted); }
/* Homepage gift season: the gift row leads in cobalt; the rows under it sit tighter. */
.gift-chips .collection-chips-label { color: var(--ink); }
.gift-chips .collection-chips-list a { border-color: var(--cobalt); color: var(--cobalt); }
.collection-chips + .collection-chips { margin-top: 10px; }
.collection-group { margin-top: 40px; }
.collection-group h2 { font-size: var(--t-2xl); margin-bottom: 16px; }
.collection-group-list { display: flex; flex-wrap: wrap; gap: 8px; }
.collection-group-list a {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--t-sm); font-weight: 500; text-decoration: none;
  transition: border-color var(--ease);
}
.collection-group-list a:hover { border-color: var(--ink); }
.collection-group-list a span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--t-xs); }
.collection-season-note { margin-top: 12px; padding: 12px 16px; border-left: 3px solid var(--cobalt); background: rgba(31, 59, 255, 0.05); font-size: var(--t-sm); }
@media (max-width: 640px) {
  .collection-chips { flex-direction: column; align-items: flex-start; gap: 8px; }
  .collection-chips-list { max-width: 100%; }
}

/* Share button on deal cards: a corner icon over the image. Always visible on touch screens; on
   desktop it appears on hover/focus so the grid stays calm. */
.share-btn {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer;
}
.share-btn:hover { border-color: var(--ink); }
.share-btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .share-btn { opacity: 0; transition: opacity 0.15s; }
  .product-card:hover .share-btn, .share-btn:focus-visible { opacity: 1; }
}
