/* =============================================================================
   Public catalogue pages: /products, /brands, /categories   (.lpc)

   Loaded by those three pages only (landing/partials/catalogue-assets), after
   landing.css, landing-plus.css and the theme sheet, so nothing here leaks
   into the home page or the builder.

   Look: white, full width, neutral. Every grey is mixed from the theme's own
   ink with white -- no sand, cream, tint or gradient fills anywhere, and the
   search/filter bar in particular is plain white with a hairline. The accent
   is used for one thing only: the small "live" dot next to the totals. Radius
   and pill shape still follow the theme (--lp-radius*, --thx-btn-radius), so
   the pages read as Classic, Obsidian or Aurora without recolouring them.

   Motion lives in landing-catalogue.js (in-place filtering, FLIP reflow, load
   more, counters, tilt); this sheet only holds the states it toggles. Both
   honour reduced motion and the Builder's "No animation" setting.
   ========================================================================== */

.lpc {
  --lpc-ink: var(--lp-ink);
  --lpc-text: color-mix(in srgb, var(--lp-ink) 80%, #fff);
  --lpc-muted: color-mix(in srgb, var(--lp-ink) 55%, #fff);
  --lpc-faint: color-mix(in srgb, var(--lp-ink) 36%, #fff);
  --lpc-line: color-mix(in srgb, var(--lp-ink) 9%, #fff);
  --lpc-line-2: color-mix(in srgb, var(--lp-ink) 16%, #fff);
  --lpc-fill: color-mix(in srgb, var(--lp-ink) 3.5%, #fff);
  --lpc-fill-2: color-mix(in srgb, var(--lp-ink) 7%, #fff);
  --lpc-r: var(--lp-radius, 12px);
  --lpc-r-lg: var(--lp-radius-lg, 20px);
  --lpc-pill: var(--thx-btn-radius, 999px);
  --lpc-gutter: clamp(16px, 3vw, 56px);
  --lpc-max: 2200px;
  --lpc-ease: cubic-bezier(.2, .8, .2, 1);
  --lpc-spring: cubic-bezier(.34, 1.45, .64, 1);
  --lpc-top: 0px;
  position: relative;
  background: #fff;
  color: var(--lpc-text);
  padding-block-end: clamp(56px, 7vw, 112px);
}
.lpc [hidden] { display: none !important; }

/* The page behind the catalogue is white too. Without this the theme canvas
   (cream on Obsidian, the colour wash on Aurora) shows in the gap the footer
   keeps above itself (.lp-footer margin-block-start). The catalogue's own
   bottom padding already spaces the footer, so that gap goes as well. Only
   these three pages load this sheet, and :has(.lpc) keeps it to them anyway. */
body.lp-body:has(.lpc) { background: #fff; }
body.lp-body:has(.lpc) .lp-footer { margin-block-start: 0; }
.lpc-wrap {
  width: 100%;
  max-width: var(--lpc-max);
  margin-inline: auto;
  padding-inline: var(--lpc-gutter);
}
.lpc-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
[dir="rtl"] .lpc-flip { transform: scaleX(-1); }

/* Entrances: a touch deeper than the site default, and scaled, so a grid
   settles in rather than just fading. landing.js still drives .is-visible. */
.lpc .lp-reveal { transform: translate3d(0, 26px, 0) scale(.985); }
.lpc .lp-reveal.is-visible { transform: none; }

/* =============================================================================
   Hero
   ========================================================================== */

.lpc-hero { padding-block: clamp(22px, 3.2vw, 48px) clamp(24px, 3vw, 44px); }

.lpc-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 clamp(18px, 2.4vw, 32px); padding: 0; list-style: none;
  font-size: 13px; color: var(--lpc-muted);
}
.lpc-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.lpc-crumbs li + li::before { content: '/'; color: var(--lpc-faint); }
.lpc-crumbs a { color: inherit; text-decoration: none; transition: color .2s var(--lpc-ease); }
.lpc-crumbs a:hover { color: var(--lpc-ink); }
.lpc-crumbs [aria-current] { color: var(--lpc-ink); font-weight: 600; }

.lpc-hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 56px;
}
.lpc-hero__main { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); flex: 1 1 560px; min-width: 0; }
.lpc-hero__text { min-width: 0; }
.lpc-hero__badge {
  flex: none; display: grid; place-items: center;
  width: clamp(76px, 8vw, 124px); aspect-ratio: 1;
  padding: clamp(10px, 1.2vw, 18px);
  background: #fff; border: 1px solid var(--lpc-line); border-radius: var(--lpc-r-lg);
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .35);
  animation: lpc-pop .8s var(--lpc-spring) both;
}
.lpc-hero__badge--wide { aspect-ratio: 3 / 2; width: clamp(112px, 11vw, 176px); }
.lpc-hero__badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes lpc-pop { from { opacity: 0; transform: scale(.7) rotate(-6deg); } }

.lpc-hero__title {
  margin: 0;
  font-family: var(--lp-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 82px); line-height: 1.02; letter-spacing: -.035em;
  color: var(--lpc-ink); text-wrap: balance;
}
[dir="rtl"] .lpc-hero__title { letter-spacing: 0; line-height: 1.25; }
.lpc-hero__lead {
  margin: 14px 0 0; max-width: 64ch;
  font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.65;
  color: var(--lpc-muted); text-wrap: pretty;
}
.lpc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 20px; }

/* The total, big. Counts up on arrival and follows every filter. */
.lpc-stat { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.lpc-stat__num {
  font-family: var(--lp-display); font-weight: 700;
  font-size: clamp(46px, 6.4vw, 116px); line-height: .9; letter-spacing: -.045em;
  color: var(--lpc-ink); font-variant-numeric: tabular-nums;
}
[dir="rtl"] .lpc-stat__num { letter-spacing: -.01em; }
.lpc-stat__label {
  display: inline-flex; align-items: center; gap: 9px; margin-block-start: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lpc-muted);
}
[dir="rtl"] .lpc-stat__label { letter-spacing: 0; font-size: 13px; }
.lpc-live { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent); }
.lpc-live::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--lp-accent);
  animation: lpc-ping 2.4s var(--lpc-ease) infinite;
}
@keyframes lpc-ping {
  0% { transform: scale(.4); opacity: .9; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

.lpc-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 20px; }

/* Brand logos drifting past under the /brands hero. Decorative only: the grid
   below carries the same brands as real links. */
.lpc-marquee {
  position: relative; overflow: hidden;
  margin-block-start: clamp(26px, 3.4vw, 48px);
  padding-block: clamp(14px, 1.6vw, 22px);
  border-block: 1px solid var(--lpc-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lpc-marquee__track {
  display: flex; width: max-content;
  animation: lpc-marquee var(--lpc-marquee-d, 50s) linear infinite;
}
[dir="rtl"] .lpc-marquee__track { animation-name: lpc-marquee-rtl; }
.lpc-marquee:hover .lpc-marquee__track { animation-play-state: paused; }
.lpc-marquee__item {
  flex: none; display: grid; place-items: center;
  height: 44px; margin-inline-end: clamp(44px, 5vw, 96px);
}
.lpc-marquee__item img {
  max-height: 44px; max-width: 150px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .55; mix-blend-mode: multiply;
  transition: filter .4s var(--lpc-ease), opacity .4s var(--lpc-ease);
}
.lpc-marquee__item:hover img { filter: none; opacity: 1; }
@keyframes lpc-marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes lpc-marquee-rtl { to { transform: translate3d(50%, 0, 0); } }

/* =============================================================================
   The bar: search + filters. Plain white, sticky under the header.

   Deliberately no backdrop-filter or transform at rest: either would make the
   bar the containing block of the phone filter sheets (position: fixed), and
   they would open inside the bar instead of over the page.
   ========================================================================== */

.lpc-bar {
  position: sticky; top: var(--lpc-top); z-index: 30;
  background: #fff;
  border-block: 1px solid var(--lpc-line);
  transition: box-shadow .35s var(--lpc-ease), border-color .35s var(--lpc-ease), translate .4s var(--lpc-ease);
}
.lpc-bar.is-stuck { border-block-start-color: transparent; box-shadow: 0 16px 36px -26px rgba(0, 0, 0, .38); }
.lpc-bar:has(.lpc-pop[open]) { z-index: 1200; }
.lpc-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-block: 14px; }
.lpc-bar__group { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.lpc-bar__end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lpc-bar__count {
  margin-inline-start: auto; font-size: 13.5px; color: var(--lpc-muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* A thin running line along the bar's bottom edge while results load. */
.lpc-bar__progress {
  position: absolute; inset-inline: 0; inset-block-end: -1px; height: 2px;
  overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s;
}
.lpc-bar__progress::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 38%;
  background: var(--lpc-ink);
  animation: lpc-indet 1.05s var(--lpc-ease) infinite;
}
[dir="rtl"] .lpc-bar__progress::before { animation-name: lpc-indet-rtl; }
.lpc.is-busy .lpc-bar__progress { opacity: 1; }
@keyframes lpc-indet { from { transform: translateX(-100%); } to { transform: translateX(270%); } }
@keyframes lpc-indet-rtl { from { transform: translateX(100%); } to { transform: translateX(-270%); } }

/* No-JS only: with the script on, every control applies itself. */
.lpc-js .lpc-apply { display: none; }

/* ---------- Search ---------- */

.lpc-search { position: relative; flex: 1 1 340px; max-width: 620px; min-width: 220px; }
.lpc-search__icon {
  position: absolute; top: 50%; inset-inline-start: 17px; translate: 0 -50%;
  color: var(--lpc-muted); pointer-events: none; transition: color .2s;
}
.lpc-search__input {
  display: block; width: 100%; height: 48px; margin: 0;
  padding-block: 0; padding-inline: 48px 50px;
  font: inherit; font-size: 15px; color: var(--lpc-ink);
  background: #fff; border: 1px solid var(--lpc-line-2); border-radius: var(--lpc-pill);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--lpc-ease), box-shadow .3s var(--lpc-ease);
}
.lpc-search__input::placeholder { color: var(--lpc-faint); opacity: 1; }
.lpc-search__input::-webkit-search-decoration,
.lpc-search__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.lpc-search__input:hover { border-color: color-mix(in srgb, var(--lp-ink) 32%, #fff); }
.lpc-search__input:focus {
  border-color: var(--lpc-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-ink) 8%, transparent);
}
.lpc-search:focus-within .lpc-search__icon { color: var(--lpc-ink); }
.lpc-search__kbd {
  position: absolute; top: 50%; inset-inline-end: 14px; translate: 0 -50%;
  display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px;
  border: 1px solid var(--lpc-line-2); border-radius: 6px; background: var(--lpc-fill);
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--lpc-muted); pointer-events: none; transition: opacity .2s;
}
.lpc-search__input:focus ~ .lpc-search__kbd,
.lpc-search__input:not(:placeholder-shown) ~ .lpc-search__kbd { opacity: 0; }
@media (hover: none) { .lpc-search__kbd { display: none; } }
.lpc-search__clear {
  position: absolute; top: 50%; inset-inline-end: 8px; translate: 0 -50%;
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: var(--lpc-fill-2); color: var(--lpc-ink);
  cursor: pointer; opacity: 0; scale: .5; pointer-events: none;
  transition: opacity .2s, scale .35s var(--lpc-spring), background-color .2s, color .2s;
}
.lpc-search__input:not(:placeholder-shown) ~ .lpc-search__clear { opacity: 1; scale: 1; pointer-events: auto; }
.lpc-search__clear:hover { background: var(--lpc-ink); color: #fff; }

/* ---------- Pills: popover triggers, toggles ---------- */

.lpc-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding-inline: 18px;
  border: 1px solid var(--lpc-line-2); border-radius: var(--lpc-pill);
  background: #fff; color: var(--lpc-ink);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, background-color .25s, color .25s, scale .3s var(--lpc-spring);
}
.lpc-pill:hover { border-color: var(--lpc-ink); }
.lpc-pill:active { scale: .96; }
.lpc-pill:focus-visible { outline: 2px solid var(--lpc-ink); outline-offset: 2px; }
.lpc-pill__k { color: var(--lpc-muted); font-weight: 500; transition: color .25s; }
.lpc-pill__v { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; }
.lpc-pill__chev { flex: none; margin-inline-start: 2px; transition: transform .4s var(--lpc-spring); }
.lpc-pill.is-on { background: var(--lpc-ink); border-color: var(--lpc-ink); color: #fff; }
.lpc-pill.is-on .lpc-pill__k { color: color-mix(in srgb, #fff 60%, transparent); }

.lpc-toggle { position: relative; display: inline-flex; flex: none; }
.lpc-toggle input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lpc-toggle:hover .lpc-pill { border-color: var(--lpc-ink); }
.lpc-toggle:active .lpc-pill { scale: .96; }
.lpc-toggle input:focus-visible + .lpc-pill { outline: 2px solid var(--lpc-ink); outline-offset: 2px; }
.lpc-toggle input:checked + .lpc-pill { background: var(--lpc-ink); border-color: var(--lpc-ink); color: #fff; }
.lpc-toggle__tick {
  flex: none; width: 0; opacity: 0; margin-inline-end: -8px; overflow: visible;
  transition: width .35s var(--lpc-spring), margin .35s var(--lpc-spring), opacity .2s;
}
.lpc-toggle__tick path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--lpc-ease) .06s; }
.lpc-toggle input:checked + .lpc-pill .lpc-toggle__tick { width: 14px; opacity: 1; margin-inline-end: 0; }
.lpc-toggle input:checked + .lpc-pill .lpc-toggle__tick path { stroke-dashoffset: 0; }

/* ---------- Popovers (brand, sort, parent) ----------
   A native <details>: opens and closes with no script at all. The script adds
   only outside-click / Escape closing and the in-list search. */

.lpc-pop { position: relative; flex: none; }
.lpc-pop > summary { list-style: none; }
.lpc-pop > summary::-webkit-details-marker { display: none; }
.lpc-pop > summary::marker { content: ''; }
.lpc-pop[open] > summary { border-color: var(--lpc-ink); }
.lpc-pop[open] > summary .lpc-pill__chev { transform: rotate(180deg); }
.lpc-pop--end { margin-inline-start: auto; }

.lpc-pop__panel {
  position: absolute; z-index: 5;
  inset-block-start: calc(100% + 10px); inset-inline-start: 0;
  display: flex; flex-direction: column; gap: 6px;
  width: min(340px, 86vw); padding: 8px;
  background: #fff; border: 1px solid var(--lpc-line);
  border-radius: calc(var(--lpc-r) + 6px);
  box-shadow: 0 32px 70px -28px rgba(0, 0, 0, .36), 0 2px 8px -2px rgba(0, 0, 0, .06);
  transform-origin: top center;
  animation: lpc-pop-in .28s var(--lpc-ease) both;
}
.lpc-pop--end .lpc-pop__panel { inset-inline-start: auto; inset-inline-end: 0; }
@keyframes lpc-pop-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

.lpc-pop__find {
  display: block; width: 100%; height: 42px; margin: 0; padding-inline: 14px;
  font: inherit; font-size: 14px; color: var(--lpc-ink);
  background: #fff; border: 1px solid var(--lpc-line-2); border-radius: var(--lpc-r);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s;
}
.lpc-pop__find::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.lpc-pop__find:focus { border-color: var(--lpc-ink); }
.lpc-pop__list {
  display: flex; flex-direction: column; gap: 2px;
  max-height: min(52vh, 430px); margin: 0; padding: 0;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.lpc-pop__none { margin: 0; padding: 18px 10px; text-align: center; font-size: 13.5px; color: var(--lpc-muted); }

.lpc-opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 6px 10px; border-radius: var(--lpc-r);
  font-size: 14px; font-weight: 500; color: var(--lpc-ink);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.lpc-opt:hover { background: var(--lpc-fill); }
.lpc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lpc-opt:has(input:focus-visible), .lpc-opt:focus-visible { outline: 2px solid var(--lpc-ink); outline-offset: -2px; }
.lpc-opt.is-on, .lpc-opt:has(input:checked) { background: var(--lpc-fill-2); font-weight: 700; }
.lpc-opt__media {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 34px; padding: 4px; overflow: hidden;
  background: #fff; border: 1px solid var(--lpc-line); border-radius: calc(var(--lpc-r) * .7);
  color: var(--lpc-muted);
}
.lpc-opt__media--sq { width: 34px; }
.lpc-opt__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lpc-opt__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpc-opt__tick { flex: none; opacity: 0; scale: .4; transition: opacity .2s, scale .35s var(--lpc-spring); }
.lpc-opt.is-on .lpc-opt__tick, .lpc-opt:has(input:checked) .lpc-opt__tick { opacity: 1; scale: 1; }
.lpc-mono { font-family: var(--lp-display); font-size: 14px; font-weight: 700; color: var(--lpc-muted); line-height: 1; }

/* ---------- Grid density (products) ---------- */

.lpc-seg {
  position: relative; display: inline-grid; grid-auto-flow: column; flex: none;
  padding: 4px; background: #fff;
  border: 1px solid var(--lpc-line-2); border-radius: var(--lpc-pill);
}
.lpc-seg button {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 38px; padding: 0; border: 0; border-radius: var(--lpc-pill);
  background: none; color: var(--lpc-muted); cursor: pointer;
  transition: color .3s var(--lpc-ease);
}
.lpc-seg button:hover { color: var(--lpc-ink); }
/* Keyed on the root's data-density, which the inline script sets before
   first paint, so the control is right before landing-catalogue.js runs. */
.lpc:not([data-density="lg"]) .lpc-seg [data-lpc-density="sm"],
.lpc[data-density="lg"] .lpc-seg [data-lpc-density="lg"] { color: #fff; }
.lpc-seg button:focus-visible { outline: 2px solid var(--lpc-ink); outline-offset: 2px; }
.lpc-seg__thumb {
  position: absolute; z-index: 0; inset-block: 4px; inset-inline-start: 4px; width: 40px;
  border-radius: var(--lpc-pill); background: var(--lpc-ink);
  transition: transform .45s var(--lpc-spring);
}
.lpc[data-density="lg"] .lpc-seg__thumb { transform: translateX(100%); }
[dir="rtl"] .lpc[data-density="lg"] .lpc-seg__thumb { transform: translateX(-100%); }
html:not(.lpc-js) .lpc-seg { display: none; }

/* =============================================================================
   Category rail (products)
   ========================================================================== */

.lpc-rail { padding-block: 16px 2px; }
.lpc-rail__inner { position: relative; }
.lpc-rail__track {
  --lpc-fl: #000; --lpc-fr: #000;
  display: flex; gap: 8px; padding-block: 4px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, var(--lpc-fl), #000 64px, #000 calc(100% - 64px), var(--lpc-fr));
          mask-image: linear-gradient(90deg, var(--lpc-fl), #000 64px, #000 calc(100% - 64px), var(--lpc-fr));
}
.lpc-rail__track::-webkit-scrollbar { display: none; }
.lpc-rail.is-fade-left .lpc-rail__track { --lpc-fl: transparent; }
.lpc-rail.is-fade-right .lpc-rail__track { --lpc-fr: transparent; }
.lpc-rail.is-dragging .lpc-rail__track { scroll-behavior: auto; cursor: grabbing; }
.lpc-rail.is-dragging .lpc-chip { pointer-events: none; }

.lpc-rail__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--lpc-line-2); border-radius: 50%;
  background: #fff; color: var(--lpc-ink);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35);
  cursor: pointer; opacity: 0; scale: .7; pointer-events: none;
  transition: opacity .25s, scale .35s var(--lpc-spring), background-color .2s, color .2s;
}
.lpc-rail__nav:hover { background: var(--lpc-ink); color: #fff; border-color: var(--lpc-ink); }
.lpc-rail__nav--l { left: calc(var(--lpc-gutter) - 8px); }
.lpc-rail__nav--r { right: calc(var(--lpc-gutter) - 8px); }
.lpc-rail.is-fade-left .lpc-rail__nav--l,
.lpc-rail.is-fade-right .lpc-rail__nav--r { opacity: 1; scale: 1; pointer-events: auto; }
@media (hover: none) { .lpc-rail__nav { display: none; } }

.lpc-chip { position: relative; display: inline-flex; flex: none; }
.lpc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.lpc-chip__face {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding-inline: 6px 18px;
  border: 1px solid var(--lpc-line); border-radius: var(--lpc-pill);
  background: #fff; color: var(--lpc-text);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, background-color .3s var(--lpc-ease), color .3s var(--lpc-ease), scale .3s var(--lpc-spring);
}
.lpc-chip__face:hover { border-color: var(--lpc-ink); color: var(--lpc-ink); }
.lpc-chip:active .lpc-chip__face { scale: .95; }
.lpc-chip__icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden;
  border-radius: max(0px, calc(var(--lpc-pill) - 6px));
  background: var(--lpc-fill-2); color: var(--lpc-muted);
  transition: background-color .3s var(--lpc-ease), transform .5s var(--lpc-spring);
}
.lpc-chip__icon img { width: 72%; height: 72%; object-fit: contain; }
.lpc-chip__face:hover .lpc-chip__icon { transform: rotate(-8deg) scale(1.08); }
.lpc-chip input:checked + .lpc-chip__face { background: var(--lpc-ink); border-color: var(--lpc-ink); color: #fff; }
.lpc-chip input:checked + .lpc-chip__face .lpc-chip__icon { background: #fff; color: var(--lpc-ink); }
.lpc-chip input:focus-visible + .lpc-chip__face { outline: 2px solid var(--lpc-ink); outline-offset: 2px; }

/* =============================================================================
   Results header: count + the filters in force
   ========================================================================== */

.lpc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 22px 20px; }
.lpc-results--tiles { padding-block-start: clamp(20px, 2.4vw, 34px); }
.lpc-meta__count { margin: 0; font-size: 14px; color: var(--lpc-muted); font-variant-numeric: tabular-nums; }

.lpc-achips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lpc-achip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding-inline: 14px 6px;
  border-radius: var(--lpc-pill); background: var(--lpc-fill-2); color: var(--lpc-ink);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  animation: lpc-chip-in .45s var(--lpc-spring) both;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition: background-color .2s;
}
.lpc-achip:hover { background: var(--lpc-line-2); }
.lpc-achip__k { color: var(--lpc-muted); font-weight: 500; }
.lpc-achip__x {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--lpc-ink);
  transition: transform .4s var(--lpc-spring), background-color .2s, color .2s;
}
.lpc-achip:hover .lpc-achip__x { transform: rotate(90deg); background: var(--lpc-ink); color: #fff; }
.lpc-achip--clear {
  padding-inline: 10px; background: none; color: var(--lpc-muted);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--lpc-line-2);
}
.lpc-achip--clear:hover { background: none; color: var(--lpc-ink); text-decoration-color: currentColor; }
@keyframes lpc-chip-in { from { opacity: 0; transform: scale(.8); } }

/* =============================================================================
   Products grid, load more, skeletons
   ========================================================================== */

/* Desktop only: under 561px landing.css already lays the products out two by
   two, and that rule must keep winning. */
@media (min-width: 561px) {
  .lpc .lpc-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--lpc-col, 232px), 1fr));
    gap: clamp(14px, 1.3vw, 24px);
  }
  .lpc[data-density="lg"] .lpc-grid { --lpc-col: 320px; }
}
.lpc-grid { transition: opacity .25s var(--lpc-ease), filter .25s var(--lpc-ease); }
.lpc.is-busy .lpc-grid,
.lpc.is-busy .lpc-list { opacity: .35; filter: grayscale(.5); pointer-events: none; }

.lpc-skel {
  display: flex; flex-direction: column; gap: 10px; padding: 10px;
  background: #fff; border: 1px solid var(--lpc-line); border-radius: 18px;
  animation: lpc-fade-in .3s var(--lpc-ease) both;
}
.lpc-skel__media { aspect-ratio: 1; border-radius: 12px; }
.lpc-skel__line { height: 12px; border-radius: 6px; }
.lpc-skel__line--s { width: 42%; }
.lpc-skel__line--m { width: 78%; }
.lpc-skel__btn { height: 42px; margin-block-start: 8px; border-radius: 999px; }
.lpc-skel__media, .lpc-skel__line, .lpc-skel__btn {
  background: linear-gradient(90deg, var(--lpc-fill) 0%, var(--lpc-fill-2) 40%, var(--lpc-fill) 80%);
  background-size: 220% 100%;
  animation: lpc-shimmer 1.25s linear infinite;
}
@keyframes lpc-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes lpc-fade-in { from { opacity: 0; } }

.lpc-more {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-block-start: clamp(36px, 4.4vw, 64px);
}
.lpc-more__bar { width: min(280px, 70%); height: 3px; overflow: hidden; border-radius: 3px; background: var(--lpc-line); }
.lpc-more__bar span {
  display: block; height: 100%; border-radius: inherit; background: var(--lpc-ink);
  width: calc(var(--p, 0) * 100%);
  transition: width .7s var(--lpc-ease);
}
.lpc-more__text { margin: 0; font-size: 13.5px; color: var(--lpc-muted); font-variant-numeric: tabular-nums; }
.lpc-more__end { margin: 0; font-size: 13px; color: var(--lpc-faint); }
.lpc-more__start { font-size: 13px; color: var(--lpc-muted); text-decoration: underline; text-underline-offset: 4px; }
.lpc-more__start:hover { color: var(--lpc-ink); }

/* ---------- Buttons ---------- */

.lpc-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding-inline: 28px;
  border: 1px solid var(--lpc-ink); border-radius: var(--lpc-pill);
  background: var(--lpc-ink); color: #fff;
  font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--lpc-spring), box-shadow .35s var(--lpc-ease), background-color .2s, color .2s, border-color .2s;
}
.lpc-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -18px rgba(0, 0, 0, .55); }
.lpc-btn:active { transform: translateY(0) scale(.98); }
.lpc-btn:focus-visible { outline: 2px solid var(--lpc-ink); outline-offset: 3px; }
.lpc-btn--ghost { background: #fff; color: var(--lpc-ink); border-color: var(--lpc-line-2); }
.lpc-btn--ghost:hover { border-color: var(--lpc-ink); background: var(--lpc-ink); color: #fff; }
.lpc-btn__icon { transition: transform .4s var(--lpc-spring); }
.lpc-btn:hover .lpc-btn__icon { transform: translateY(3px); }
.lpc-btn__spin { display: none; animation: lpc-spin .8s linear infinite; }
.lpc-btn.is-loading { pointer-events: none; }
.lpc-btn.is-loading .lpc-btn__icon { display: none; }
.lpc-btn.is-loading .lpc-btn__spin { display: block; }
@keyframes lpc-spin { to { transform: rotate(360deg); } }

/* ---------- Empty states ---------- */

.lpc-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: clamp(52px, 8vw, 120px) 24px; text-align: center;
  border: 1px dashed var(--lpc-line-2); border-radius: var(--lpc-r-lg);
  animation: lpc-rise .6s var(--lpc-ease) both;
}
.lpc-empty__art {
  display: grid; place-items: center; width: 80px; height: 80px; margin-block-end: 8px;
  border-radius: 50%; background: var(--lpc-fill-2); color: var(--lpc-ink);
}
.lpc-empty__art svg { animation: lpc-bob 3.2s ease-in-out infinite; }
.lpc-empty h2 { margin: 0; font-family: var(--lp-display); font-size: clamp(20px, 2vw, 28px); font-weight: 700; color: var(--lpc-ink); }
.lpc-empty p { margin: 0 0 14px; max-width: 48ch; line-height: 1.6; color: var(--lpc-muted); }
@keyframes lpc-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-6deg); } }
@keyframes lpc-rise { from { opacity: 0; transform: translateY(16px); } }

/* =============================================================================
   Shared tile pieces: arrow disc, lit edge, lock, unlock
   ========================================================================== */

.lpc-item { min-width: 0; }

.lpc-go {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--lpc-line-2); border-radius: var(--lpc-pill);
  color: var(--lpc-ink);
  transition: background-color .3s var(--lpc-ease), color .3s var(--lpc-ease), border-color .3s;
}
.lpc-go svg { transition: transform .5s var(--lpc-spring); }

/* The edge lights up under the pointer (landing-plus.js feeds --mx/--my to
   every [data-lpx-spot]). Ink, never colour. */
.lpc-edge {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  padding: 1px; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--lp-ink) 70%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s var(--lpc-ease);
}

.lpc-lock {
  position: absolute; z-index: 3; inset-block-start: 12px; inset-inline-end: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding-inline: 10px;
  border-radius: var(--lpc-pill); background: var(--lpc-ink); color: #fff;
  font-size: 11.5px; font-weight: 600; pointer-events: none;
}

/* The unlock request (landing.partials.unlock-button, landing-unlock.js).
   Neutral here: outlined ink, filled on hover; muted once asked. */
.lpc-unlock {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; padding-inline: 16px;
  border: 1px solid var(--lpc-ink); border-radius: var(--lpc-pill);
  background: #fff; color: var(--lpc-ink);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--lpc-spring);
}
.lpc-unlock:hover { background: var(--lpc-ink); color: #fff; }
.lpc-unlock:active { transform: scale(.97); }
.lpc-unlock.is-lp-requested,
.lpc-unlock.is-lp-requested:hover {
  border-color: var(--lpc-line-2); background: var(--lpc-fill); color: var(--lpc-muted); cursor: default; transform: none;
}
.lpc-unlock--inline { width: auto; height: 44px; padding-inline: 20px; }

/* =============================================================================
   /brands
   ========================================================================== */

.lpc-letters { position: relative; flex: 1 1 420px; min-width: 0; }
.lpc-letters__track {
  position: relative; display: flex; gap: 2px; padding: 4px;
  overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--lpc-line-2); border-radius: var(--lpc-pill);
}
.lpc-letters__track::-webkit-scrollbar { display: none; }
.lpc-letter {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center;
  min-width: 38px; height: 38px; padding-inline: 10px;
  border-radius: var(--lpc-pill);
  font-size: 13.5px; font-weight: 700; color: var(--lpc-muted); text-decoration: none;
  transition: color .3s var(--lpc-ease), opacity .3s var(--lpc-ease);
}
.lpc-letter:hover { color: var(--lpc-ink); }
.lpc-letter.is-active { color: #fff; }
.lpc-letter.is-dim { opacity: .28; }
.lpc-letter:focus-visible { outline: 2px solid var(--lpc-ink); outline-offset: -2px; }
html:not(.lpc-js) .lpc-letter.is-active { background: var(--lpc-ink); }
.lpc-letters__thumb {
  position: absolute; z-index: 0; top: 0; left: 0; width: 38px; height: 38px;
  border-radius: var(--lpc-pill); background: var(--lpc-ink); opacity: 0;
  transition: transform .5s var(--lpc-spring), width .5s var(--lpc-spring), opacity .2s;
}

.lpc-brands, .lpc-cats { display: grid; gap: clamp(12px, 1.2vw, 20px); margin: 0; padding: 0; list-style: none; }
.lpc-brands { grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); }

.lpc-brand {
  --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--lpc-line); border-radius: var(--lpc-r-lg);
  transition: transform .6s var(--lpc-ease), box-shadow .45s var(--lpc-ease), border-color .3s;
}
.lpc-brand:hover {
  border-color: var(--lpc-line-2);
  box-shadow: 0 30px 56px -32px rgba(0, 0, 0, .34);
  transform: perspective(1000px) translateY(-6px) rotateX(var(--rx)) rotateY(var(--ry));
}
.lpc-brand:hover .lpc-edge,
.lpc-cat:hover .lpc-edge { opacity: 1; }
.lpc-brand__link { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; border-radius: inherit; }
.lpc-brand__link:focus-visible { outline: 2px solid var(--lpc-ink); outline-offset: 3px; }
.lpc-brand__media {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 16 / 10; padding: 13% 15%;
  border-block-end: 1px solid var(--lpc-line);
}
/* Contained and never upscaled: max-* only ever shrinks a logo. */
.lpc-brand__media img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: transform .7s var(--lpc-ease);
}
.lpc-brand:hover .lpc-brand__media img { transform: scale(1.07); }
.lpc-brand__mono,
.lpc-cat__mono {
  font-family: var(--lp-display); font-weight: 700; line-height: 1;
  color: var(--lpc-faint); transition: color .3s, transform .6s var(--lpc-spring);
}
.lpc-brand__mono { font-size: clamp(44px, 4vw, 64px); }
.lpc-brand:hover .lpc-brand__mono { color: var(--lpc-ink); transform: scale(1.08); }
.lpc-brand__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.lpc-brand__text { min-width: 0; }
.lpc-brand__name {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15.5px; font-weight: 700; color: var(--lpc-ink);
}
.lpc-brand__meta { display: block; margin-block-start: 3px; font-size: 12.5px; color: var(--lpc-muted); }
.lpc-brand:hover .lpc-go,
.lpc-cat__main:hover .lpc-go { background: var(--lpc-ink); border-color: var(--lpc-ink); color: #fff; }
.lpc-brand:hover .lpc-go svg,
.lpc-cat__main:hover .lpc-go svg { transform: rotate(-45deg); }
[dir="rtl"] .lpc-brand:hover .lpc-go svg,
[dir="rtl"] .lpc-cat__main:hover .lpc-go svg { transform: scaleX(-1) rotate(-45deg); }
.lpc-brand__unlock { padding: 0 16px 16px; }

/* =============================================================================
   /categories
   ========================================================================== */

.lpc-cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.lpc-cat {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--lpc-line); border-radius: var(--lpc-r-lg);
  transition: transform .5s var(--lpc-ease), box-shadow .45s var(--lpc-ease), border-color .3s;
}
.lpc-cat:hover { border-color: var(--lpc-line-2); transform: translateY(-4px); box-shadow: 0 26px 50px -32px rgba(0, 0, 0, .32); }
.lpc-cat__main {
  display: flex; flex: 1; align-items: center; gap: 16px; padding: 16px;
  color: inherit; text-decoration: none; border-radius: inherit;
}
.lpc-cat__main:focus-visible { outline: 2px solid var(--lpc-ink); outline-offset: 3px; }
.lpc-cat__icon {
  flex: none; display: grid; place-items: center; overflow: hidden;
  width: 76px; aspect-ratio: 1;
  background: #fff; border: 1px solid var(--lpc-line); border-radius: var(--lpc-r);
  transition: border-color .3s, transform .6s var(--lpc-spring);
}
.lpc-cat__icon img { width: 74%; height: 74%; object-fit: contain; transition: transform .6s var(--lpc-spring); }
.lpc-cat__mono { font-size: 30px; }
.lpc-cat:hover .lpc-cat__icon { border-color: var(--lpc-line-2); }
.lpc-cat:hover .lpc-cat__icon img { transform: rotate(-7deg) scale(1.1); }
.lpc-cat:hover .lpc-cat__mono { color: var(--lpc-ink); }
.lpc-cat__body { flex: 1; min-width: 0; }
.lpc-cat__name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--lpc-ink);
}
.lpc-cat__meta { display: block; margin-block-start: 4px; font-size: 12.5px; color: var(--lpc-muted); }
.lpc-cat__subs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.lpc-sub {
  display: inline-flex; align-items: center; height: 30px; padding-inline: 12px;
  border: 1px solid var(--lpc-line); border-radius: var(--lpc-pill);
  font-size: 12.5px; font-weight: 600; color: var(--lpc-text); text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.lpc-sub:hover { border-color: var(--lpc-ink); color: var(--lpc-ink); }
.lpc-sub--more { background: var(--lpc-fill-2); border-color: transparent; }

/* =============================================================================
   Phones
   ========================================================================== */

@media (max-width: 760px) {
  .lpc-hero__row { align-items: flex-start; gap: 18px; }
  .lpc-hero__main { flex-basis: 100%; }
  .lpc-stat { flex-direction: row; align-items: baseline; gap: 10px; text-align: start; }
  .lpc-stat__num { font-size: 40px; }
  .lpc-stat__label { margin: 0; }

  .lpc-bar__inner { padding-block: 10px; gap: 8px; }
  .lpc-search { flex-basis: 100%; max-width: none; min-width: 0; }
  .lpc-search__input { height: 46px; font-size: 16px; }   /* 16px: iOS does not zoom */
  .lpc-bar__group {
    flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--lpc-gutter) * -1); padding-inline: var(--lpc-gutter);
  }
  .lpc-bar__group::-webkit-scrollbar { display: none; }
  .lpc-bar__count { display: none; }
  .lpc-pill { height: 40px; padding-inline: 14px; font-size: 13.5px; }
  .lpc-pop--end { margin-inline-start: 0; }
  .lpc-seg { display: none; }
  .lpc-letters { flex-basis: 100%; }

  /* Hide the bar while scrolling down, bring it back on the way up. */
  .lpc-bar.is-tucked { translate: 0 calc(-100% - 2px); box-shadow: none; }

  /* Popovers become bottom sheets over a dimmed page. The backdrop is the
     summary's own ::before, so tapping it closes the sheet natively. */
  .lpc-pop[open] > summary::before {
    content: ''; position: fixed; inset: 0; z-index: 4;
    background: rgba(0, 0, 0, .42); cursor: default;
    animation: lpc-fade-in .25s var(--lpc-ease) both;
  }
  .lpc-pop__panel {
    position: fixed; inset: auto 0 0 0; width: auto;
    max-height: 78vh; padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0; border-inline: 0; border-block-end: 0;
    transform-origin: bottom center;
    animation: lpc-sheet-in .38s var(--lpc-ease) both;
  }
  .lpc-pop__panel::before {
    content: ''; flex: none; align-self: center;
    width: 42px; height: 4px; margin-block-end: 6px;
    border-radius: 4px; background: var(--lpc-line-2);
  }
  .lpc-pop__list { max-height: 58vh; }
  .lpc-opt { min-height: 50px; font-size: 15px; }
  html:has(.lpc-pop[open]) { overflow: hidden; }

  .lpc-chip__face { height: 42px; font-size: 13.5px; }
  .lpc-chip__icon { width: 30px; height: 30px; }
  .lpc-meta { padding-block: 16px 14px; }

  .lpc-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lpc-brand__foot { padding: 10px 12px 12px; gap: 8px; }
  .lpc-brand__name { font-size: 14px; }
  .lpc-brand__meta { font-size: 11.5px; }
  .lpc-brand .lpc-go { width: 30px; height: 30px; }
  .lpc-brand__unlock { padding: 0 12px 12px; }
  .lpc-unlock { height: 38px; font-size: 12.5px; padding-inline: 10px; }
  .lpc-lock { inset-block-start: 8px; inset-inline-end: 8px; height: 24px; padding-inline: 8px; font-size: 10.5px; }

  .lpc-cat__main { padding: 12px; gap: 12px; }
  .lpc-cat__icon { width: 62px; }
}
@keyframes lpc-sheet-in { from { transform: translateY(100%); } }

/* =============================================================================
   Reduced motion, and the Builder's motion setting
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .lpc *, .lpc *::before, .lpc *::after { animation: none !important; transition-duration: .01ms !important; }
  .lpc-brand, .lpc-brand:hover { transform: none; }
}
.lp-motion--subtle .lpc-marquee__track,
.lp-motion--subtle .lpc-live::after { animation: none; }
.lp-motion--subtle .lpc-brand,
.lp-motion--subtle .lpc-brand:hover { transform: none; }
.lp-motion--none .lpc-brand,
.lp-motion--none .lpc-brand:hover,
.lp-motion--none .lpc-cat:hover { transform: none; }
