/* Trendama — category aisles: one video carousel per category, each row with its own soft colour. */
.fresh {
  margin: 0 0 6px; padding: 10px 14px; border-radius: 14px; font-size: 14px; color: var(--ink);
  background: color-mix(in oklab, var(--heat) 12%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--heat) 30%, var(--line));
}
.aisles { display: flex; flex-direction: column; gap: 18px; padding-block: 6px 8px; }
.aisles[hidden], .fresh[hidden] { display: none; }

.aisle {
  --base: #888;
  --a-bg: color-mix(in oklab, var(--base) 20%, #ffffff);
  --a-ink: color-mix(in oklab, var(--base) 30%, #10131f);
  --a-accent: var(--heat);
  background: var(--a-bg); color: var(--a-ink);
  border: 1px solid color-mix(in oklab, var(--base) 22%, transparent);
  border-radius: 28px; padding: 20px 0 16px; min-width: 0;
}
.aisle[data-cat="tech"]    { --base: #5B7FB0; }
.aisle[data-cat="home"]    { --base: #6C9A68; }
.aisle[data-cat="kitchen"] { --base: #E7954B; }
.aisle[data-cat="tools"]   { --base: #D9A520; }
.aisle[data-cat="fitness"] { --base: #3DAA6B; }
.aisle[data-cat="beauty"]  { --base: #C46AA0; }
.aisle[data-cat="outdoor"] { --base: #6F8F3E; }
.aisle[data-cat="pets"]    { --base: #B8864B; }
.aisle.is-event { border-color: transparent; }

/* Christmas row: red/green/white + snow (his direction 28 Nov). The row's
   colours already come from events.js (deep green bg, warm white ink, red
   accent); this adds the snow: white flakes drifting down the green, plus
   a snowy white rim along the top edge. Flakes are a background layer, so
   they never cover text; the animation stops for reduced-motion users. */
.aisle.is-event[data-event="christmas"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' opacity='.5'%3E%3Cpath d='M20 18v14M13 25h14M15 20l10 10M25 20L15 30'/%3E%3Cpath d='M86 78v10M81 83h10M82.5 79.5l7 7M89.5 79.5l-7 7'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.45'%3E%3Ccircle cx='58' cy='38' r='2'/%3E%3Ccircle cx='104' cy='14' r='1.6'/%3E%3Ccircle cx='34' cy='96' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .65);
  animation: snowfall 14s linear infinite;
}
@keyframes snowfall { from { background-position: 0 0; } to { background-position: 0 120px; } }
@media (prefers-reduced-motion: reduce) {
  .aisle.is-event[data-event="christmas"] { animation: none; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aisle { --a-bg: color-mix(in oklab, var(--base) 26%, #0E1020); --a-ink: #ECEEF8; }
}
:root[data-theme="dark"] .aisle { --a-bg: color-mix(in oklab, var(--base) 26%, #0E1020); --a-ink: #ECEEF8; }
/* event rows set their own --a-bg / --a-ink inline, which wins over both of the rules above */

.aisle-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 14px; }
.aisle-titles { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.aisle-title { margin: 0; font: 800 clamp(24px, 3.2vw, 30px)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--a-ink); }
.aisle-sub { font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--a-ink); opacity: .78; }
.aisle.is-event .aisle-sub { opacity: .9; }
.aisle.is-event .aisle-sub::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--a-accent); }
.aisle-nav { display: flex; gap: 8px; flex: none; }
.anav {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; cursor: pointer;
  color: var(--a-ink); background: color-mix(in oklab, var(--a-ink) 9%, transparent);
  border: 1px solid color-mix(in oklab, var(--a-ink) 24%, transparent);
  transition: background .2s, opacity .2s;
}
.anav:hover:not(:disabled) { background: color-mix(in oklab, var(--a-ink) 18%, transparent); }
.anav:disabled { opacity: .35; cursor: default; }
.anav:focus-visible, .adot:focus-visible, .aisle-track:focus-visible { outline-color: var(--a-ink); }

.aisle-track {
  position: relative; display: flex; gap: 14px; overflow-x: auto; padding: 2px 20px 4px;
  scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.aisle-track::-webkit-scrollbar { display: none; }

.vcard {
  flex: 0 0 82%; max-width: 380px; scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
}
@media (min-width: 620px) { .vcard { flex-basis: calc((100% - 14px) / 2); max-width: none; } }
@media (min-width: 960px) { .vcard { flex-basis: calc((100% - 28px) / 3); } }

.vvisual { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vvisual > .yt, .vvisual > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vbody { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.vbrand { font: 600 11.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.vtitle { margin: 0; font: 700 17px/1.2 var(--font-display); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.vwhy { margin: 0 0 6px; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vbtn {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; text-decoration: none;
  transition: background .2s, transform .2s;
}
.vbtn:hover { background: var(--heat); color: #fff; transform: translateX(2px); }

.aisle-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 12px 20px 0; }
.adot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: color-mix(in oklab, var(--a-ink) 28%, transparent); transition: width .3s, background .3s;
}
.adot::after { content: ""; position: absolute; inset: -18px -4px; }
.adot[aria-current="true"] { width: 26px; background: var(--a-ink); }

.aisle.is-static .aisle-nav, .aisle.is-static .aisle-dots { display: none; }

@media (max-width: 760px) {
  .aisle { border-radius: 22px; padding-top: 16px; }
  .aisle-head { padding-inline: 16px; }
  .aisle-track { padding-inline: 16px; scroll-padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .anav, .adot, .vbtn { transition: none !important; } }

/* ---- Mobile-first simplification (Nov 2026) ---- */
.masthead { padding-block: 14px 4px; }
.intro { padding-block: 14px 12px; }
.intro p { margin: 8px 0 0; font-size: 15px; }
.live { display: none; }

.aisles { padding-block: 14px 6px; gap: 14px; }
.aisle { scroll-margin-top: 64px; }
.aisle.no-dots .aisle-dots { display: none; }

/* Special-event rows live in their own container now (above the Amazon
   group box, inside the rail layout — see index.html), not inside .aisles. */
.event-rows { display: flex; flex-direction: column; gap: 14px; padding-block: 6px 4px; }
.event-rows:empty { display: none; }

/* A row emptied by the current filters: say so inside the row, never
   another filter's picks, never blank. Colours follow the row (the event
   rows set --a-ink inline), so the note reads on green and near-black. */
.aisle-empty {
  margin: 0 20px 4px; padding: 14px 16px; border-radius: 12px;
  border: 1px dashed color-mix(in oklab, var(--a-ink) 45%, transparent);
  color: var(--a-ink); font-size: 14px; line-height: 1.5; opacity: .9;
}

.vwhy { -webkit-line-clamp: 2; }
.vbtn { justify-content: center; align-self: stretch; }

@media (max-width: 760px) {
  .aisle-nav { display: none; }
  .aisle-title { font-size: 24px; }
  .vcard { flex-basis: 78%; }
  .aisle.is-solo .vcard { flex-basis: 100%; max-width: none; }
  .aisle-head { padding-bottom: 10px; }

  .picks { padding-block: 24px 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 16px; }
  .card-visual { aspect-ratio: 4 / 3; }
  .card-visual .ph { padding: 12px; }
  .card-visual .ph-mark { width: 40px; top: 8px; right: 8px; }
  .card-body { padding: 10px 12px 14px; gap: 4px; }
  .card-why, .via, .chip, .card-meta { display: none; }
  .card-visual:has(.ph) + .card-body .card-title, .card-visual:has(.ph) + .card-body .brand-line { display: none; }
  .picks { scroll-margin-top: 64px; }
  .card-title { font-size: 15px; }
  .brand-line { font-size: 10.5px; }
  .card-cta { margin-top: auto; font-size: 13px; }
}

@media (min-width: 960px) {
  .aisles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .aisle { grid-column: 1 / -1; }
  .aisle.is-solo { grid-column: auto; }
  .aisle.is-solo .vcard { flex-basis: 100%; max-width: none; }
}
