/* =====================================================================================
   v3 brand look (locked with the owner, 2026-11-05):
   - light, airy pages; a dark hero frame with a hot-crimson neon edge
   - medium-rounded corners: frames 20px, cards 16px, buttons and fields 12px
   - frosted "liquid glass" panels; soft shadows on cards
   - Barlow Condensed + Barlow (brand fonts, kept)
   - neon: #ff2a4f glow around the brand crimson #960018
   Contrast: text on glass over photos sits on a dark scrim; all text pairs are 4.5:1 or better.
   ===================================================================================== */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #1d1d1f;
  --text-muted: #4c4c4c;
  --border-subtle: #e6e6e8;
  --neon: #ff2a4f;
  --neon-soft: rgb(255 42 79 / 0.45);
  --r-frame: 20px;
  --r-card: 16px;
  --r-ctl: 12px;
  --radius-button: var(--r-ctl);
  --radius-input: var(--r-ctl);
  --radius-card: var(--r-card);
  --radius-panel: var(--r-frame);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 30px rgb(0 0 0 / 0.07);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.05), 0 18px 40px rgb(0 0 0 / 0.12);
  --glass-light: rgb(255 255 255 / 0.62);
  --glass-dark: rgb(22 22 24 / 0.5);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #101012; --surface: #1c1c1e; --surface-raised: #1c1c1e; --text: #f5f5f7; --text-muted: #c7c7cc; --border-subtle: #2c2c2e; --glass-light: rgb(28 28 30 / 0.6); }
}
:root[data-theme="dark"] { --bg: #101012; --surface: #1c1c1e; --surface-raised: #1c1c1e; --text: #f5f5f7; --text-muted: #c7c7cc; --border-subtle: #2c2c2e; --glass-light: rgb(28 28 30 / 0.6); }
body { background: var(--bg); }

/* ---------- Header: dark glass ---------- */
.site-top { background: var(--glass-chrome); box-shadow: var(--glass-hi); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); }
.site-header, .category-rail { background: transparent; }
.rail-button { border-radius: 10px; }

/* ---------- Buttons, fields, chips ---------- */
.btn { border-radius: var(--r-ctl); transition: background-color 180ms var(--ease-smooth), transform 120ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth); }
.btn:active:not([disabled]) { transform: scale(0.97); }
.btn--primary:hover { box-shadow: 0 6px 20px rgb(150 0 24 / 0.28); }
.btn--inverse { background: #fff; color: #1d1d1f; }
.btn--inverse:hover { background: #f5f5f7; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }
.input, .select, .qty__input { border-radius: var(--r-ctl); }
.qty__btn:first-child { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.qty__btn:last-child { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.chip, .subcategory-list a, .badge, .tag__note { border-radius: 999px; }
.pill-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border: 0; border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: var(--text-sm); text-decoration: none; box-shadow: var(--shadow-card); cursor: pointer; transition: box-shadow 180ms var(--ease-smooth), transform 180ms var(--ease-smooth); }
.pill-link:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }

/* ---------- Neon hero ---------- */
.home.v3 { margin-top: calc(-1 * var(--space-5)); }
.neon-hero { padding-top: var(--space-3); }
.neon-hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(34rem, calc(100svh - 11rem), 46rem);
  border-radius: var(--r-frame); background: #08080a;
  box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft), 0 0 60px rgb(255 42 79 / 0.18), var(--shadow-lift);
  display: grid; align-content: center; justify-items: center;
}
.neon-hero__slides { position: absolute; inset: 0; z-index: -1; }
.neon-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease-smooth); }
.neon-hero__img.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .neon-hero__img.is-active { animation: hero-drift 9s var(--ease-smooth) both; } }
@keyframes hero-drift { from { scale: 1.06; } to { scale: 1; } }
.neon-hero__scrim { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, rgb(8 8 10 / 0.55), rgb(8 8 10 / 0.82)); }
.neon-hero__content { width: min(100%, 46rem); padding: var(--space-7) var(--space-5) 7.5rem; text-align: center; color: #fff; display: grid; justify-items: center; }
.neon-hero__pill { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 6px 14px; border-radius: 999px; background: var(--glass-dark); -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft); box-shadow: var(--glass-rim-dark), var(--glass-hi); font-size: var(--text-sm); font-weight: 600; }
.neon-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.neon-hero__title { margin: 0 0 var(--space-3); color: #fff; font-size: clamp(3rem, 8.5vw, 6.5rem); line-height: 0.92; letter-spacing: -0.02em; text-shadow: 0 2px 30px rgb(0 0 0 / 0.45); }
.neon-hero__lede { margin: 0 auto var(--space-5); max-width: 38ch; color: #e5e5ea; font-size: var(--text-lg); }
.neon-hero :focus-visible { outline-color: #fff; }

.glass-search { display: flex; align-items: center; gap: 6px; width: min(100%, 38rem); padding: 6px; border-radius: 999px; background: rgb(255 255 255 / 0.16); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28), 0 10px 40px rgb(0 0 0 / 0.35); }
.glass-search__input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-4); border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.94); color: #1d1d1f; font-size: var(--text-base); }
.glass-search__input::placeholder { color: #4c4c4c; opacity: 1; }
.glass-search__mic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.18); color: #fff; cursor: pointer; transition: background-color 180ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth); }
.glass-search__mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.glass-search__mic:hover { background: var(--crimson); box-shadow: 0 0 18px var(--neon-soft); }
.glass-search__go { flex: none; min-height: 48px; padding: 0 var(--space-5); border: 0; border-radius: 999px; background: var(--crimson); color: #fff; font-weight: 600; cursor: pointer; transition: background-color 180ms var(--ease-smooth); }
.glass-search__go:hover { background: var(--crimson-deep); }
.neon-hero__quick { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.glass-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--glass-dark); -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft); color: #fff; font: inherit; font-size: var(--text-sm); font-weight: 600; text-decoration: none; box-shadow: var(--glass-rim-dark), var(--glass-hi); cursor: pointer; transition: background-color 160ms var(--ease-smooth); }
.glass-chip:hover { background: rgb(150 0 24 / 0.85); }
.glass-chip--light { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.glass-chip--light:hover { background: var(--crimson); color: #fff; }

.neon-hero__caption { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.neon-hero__toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--glass-dark); -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft); color: #fff; cursor: pointer; box-shadow: var(--glass-rim-dark), var(--glass-hi); }
.neon-hero__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.neon-hero__caption-link { display: inline-flex; align-items: baseline; gap: var(--space-3); padding: 8px 16px; border-radius: 999px; background: var(--glass-dark); -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft); color: #fff; text-decoration: none; box-shadow: var(--glass-rim-dark), var(--glass-hi); }
.neon-hero__caption-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.neon-hero__caption-cta { color: #ffb3c0; font-size: var(--text-sm); font-weight: 600; }
.neon-hero__caption-link:hover .neon-hero__caption-cta { text-decoration: underline; }
.neon-hero__dots { display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.neon-hero__dotbtn { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.neon-hero__dotbtn::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgb(255 255 255 / 0.5); transition: width 220ms var(--ease-smooth), background-color 220ms; }
.neon-hero__dotbtn[aria-current="true"]::before { width: 22px; background: var(--neon); box-shadow: 0 0 8px var(--neon-soft); }
@media (max-width: 40rem) {
  .neon-hero__content { padding: var(--space-6) var(--space-4) 8rem; }
  .glass-search { flex-wrap: wrap; border-radius: 22px; }
  .glass-search__input { flex-basis: 100%; }
  .glass-search__go { flex: 1; }
  .neon-hero__dots { display: none; }
}

/* Frame settles as you scroll past it (where the browser supports scroll-driven animation). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .neon-hero__frame { animation: frame-settle linear both; animation-timeline: view(); animation-range: exit 0% exit 60%; }
    @keyframes frame-settle { to { scale: 0.96; opacity: 0.85; } }
  }
}

/* ---------- Section heads ---------- */
.v3 .section__head { align-items: center; }

/* ---------- Department switches: rounded board, neon when on ---------- */
.db-board { border-radius: var(--r-frame); background: #1c1c1e; padding: var(--space-4); box-shadow: var(--shadow-card); }
.breaker { border-radius: var(--r-card); overflow: hidden; box-shadow: 0 1px 0 rgb(255 255 255 / 0.04); transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth); }
.breaker:hover, .breaker:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--neon), 0 0 22px var(--neon-soft); }
.breaker__body { background: #2c2c2e; }
.breaker__slot { border-radius: 8px; background: #0b0b0c; }
.breaker__lever { border-radius: 6px; }
.breaker:hover .breaker__lever, .breaker:focus-visible .breaker__lever { background: var(--neon); box-shadow: 0 0 14px var(--neon); }
.breaker__label { background: #fff; }

/* ---------- Ideas: titles centred on the pictures ---------- */
.idea-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .idea-cards { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.idea-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-card); background: #1c1c1e; box-shadow: var(--shadow-card); isolation: isolate; }
.idea-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease-smooth); }
.idea-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.15) 55%, rgb(0 0 0 / 0.25)); pointer-events: none; }
.idea-card:hover img, .idea-card:focus-within img { scale: 1.05; }
.idea-card__label { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: max-content; max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 999px; background: rgb(22 22 24 / 0.45); -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft); box-shadow: var(--glass-rim-dark), var(--glass-hi); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.1; text-align: center; text-decoration: none; transition: background-color 200ms var(--ease-smooth), box-shadow 200ms; }
.idea-card__label::before { content: ""; position: absolute; inset: -400px; }
.idea-card:hover .idea-card__label, .idea-card__label:focus-visible { background: rgb(150 0 24 / 0.75); box-shadow: inset 0 0 0 1px var(--neon), 0 0 20px var(--neon-soft); outline: none; }
.idea-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Delivery, planner and sell cards ---------- */
.delivery-card, .sell-card { position: relative; overflow: hidden; display: grid; border-radius: var(--r-frame); background: #111113; color: #fff; box-shadow: var(--shadow-card); isolation: isolate; }
.delivery-card__img, .sell-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.45; }
.delivery-card::before, .sell-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 10 12 / 0.92), rgb(10 10 12 / 0.55)); }
.delivery-card__body, .sell-card__body { padding: clamp(1.5rem, 4vw, 3.5rem); max-width: 44rem; display: grid; gap: var(--space-3); justify-items: start; }
.delivery-card .h-section, .sell-card .h-section { color: #fff; }
.delivery-card p, .sell-card p { margin: 0; color: #d1d1d6; font-size: var(--text-lg); }
.delivery-card__steps { display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; list-style: none; width: 100%; }
@media (min-width: 48rem) { .delivery-card__steps { grid-template-columns: repeat(3, 1fr); } }
.delivery-card__steps li { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--r-ctl); background: rgb(255 255 255 / 0.08); -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.delivery-card__steps strong { font-family: var(--font-display); font-size: var(--text-lg); }
.delivery-card__steps span { color: #d1d1d6; }
.delivery-card :focus-visible, .sell-card :focus-visible { outline-color: #fff; }
.sell-card::before { background: linear-gradient(90deg, rgb(150 0 24 / 0.95), rgb(150 0 24 / 0.6)); }

.planner-card { display: grid; gap: var(--space-5); padding: clamp(1rem, 3vw, 2rem); border-radius: var(--r-frame); background: var(--surface); box-shadow: var(--shadow-card); }
@media (min-width: 64rem) { .planner-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
.planner-card__photo { overflow: hidden; border-radius: var(--r-card); }
.planner-card__photo img { display: block; width: 100%; height: auto; }
@media (min-width: 64rem) { .planner-card__photo { position: sticky; top: 9.5rem; } }
.planner__item, .segmented__option span, .action-cell { border-radius: var(--r-ctl); }
.planner__result { border-radius: var(--r-card); }
.planner__actions { gap: var(--space-2); }

/* ---------- Product cards: rounded white, soft lift ---------- */
.tag { clip-path: none; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; transition: transform 240ms var(--ease-smooth), box-shadow 240ms var(--ease-smooth); }
.tag:hover { translate: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.product-media { border-radius: 0; }
.tag__note { background: var(--bg); }

/* ---------- Other pages pick up the same shapes ---------- */
.filters__form, .seller-box, .summary-panel, .facts--wide, .review, .trade-note, .group-card, .brand-tile, .empty-state, .card { border-radius: var(--r-card); }
.filters__form, .summary-panel, .group-card, .review { background: var(--surface); box-shadow: var(--shadow-card); }
.gallery .product-media, .gallery__thumb { border-radius: var(--r-card); overflow: hidden; }
.modal { border-radius: var(--r-frame); }

/* ---------- AI shopping assistant ("Ask an expert") ---------- */
.ai-panel { width: min(30rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0;
  background: var(--bg); color: var(--text); box-shadow: -20px 0 60px rgb(0 0 0 / 0.25); }
.ai-panel[open] { display: grid; grid-template-rows: auto 1fr auto auto auto; }
.ai-panel::backdrop { background: rgb(10 10 12 / 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) { .ai-panel[open] { animation: ai-in 320ms var(--ease-smooth); } }
@keyframes ai-in { from { opacity: 0; translate: 32px 0; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 48rem) { .ai-panel { height: calc(100dvh - 24px); margin: 12px 12px 12px auto; border-radius: var(--r-frame); } }
.ai-panel__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.ai-panel__badge { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--crimson); color: #fff; }
.ai-panel__badge svg { width: 22px; height: 22px; }
.ai-panel__heading { flex: 1; min-width: 0; }
.ai-panel__title { margin: 0; font-size: var(--text-xl); line-height: 1.1; }
.ai-panel__sub { margin: 2px 0 0; color: var(--text-muted); font-size: var(--text-sm); }
.ai-panel__new { min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.ai-panel__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.ai-panel__close svg { width: 20px; height: 20px; }
.ai-panel__log { overflow-y: auto; padding: var(--space-4); overscroll-behavior: contain; }
.ai-panel__start p { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; }
.ai-panel__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.ai-chip { min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-sm); text-align: left; cursor: pointer; transition: border-color 160ms, transform 160ms; }
.ai-chip:hover { border-color: var(--link); }
.ai-chip:active { transform: scale(0.98); }
.ai-panel__messages { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.ai-msg { display: grid; gap: var(--space-2); }
.ai-msg__bubble { max-width: 90%; margin: 0; padding: 10px 14px; border-radius: 18px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg--user .ai-msg__bubble { justify-self: end; background: var(--crimson); color: #fff; border-bottom-right-radius: 6px; }
.ai-msg--assistant .ai-msg__bubble { justify-self: start; background: var(--surface); border-bottom-left-radius: 6px; box-shadow: var(--shadow-card); }
.ai-msg__typing { display: inline-flex; align-items: center; gap: 5px; padding: 12px 16px; }
.ai-msg__working { margin-right: 6px; color: var(--text-muted); font-size: var(--text-sm); }
.ai-msg__typing span[aria-hidden] { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .ai-msg__typing span[aria-hidden] { animation: ai-dot 1s ease-in-out infinite; }
  .ai-msg__typing span[aria-hidden]:nth-child(3) { animation-delay: 0.15s; }
  .ai-msg__typing span[aria-hidden]:nth-child(4) { animation-delay: 0.3s; }
}
@keyframes ai-dot { 50% { opacity: 1; transform: translateY(-3px); } }
.ai-cards { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.ai-card { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-2); border-radius: var(--r-card); background: var(--surface-raised); box-shadow: var(--shadow-card); border: 1px solid var(--border-subtle); }
.ai-card__media { display: block; width: 64px; border-radius: 10px; overflow: hidden; }
.ai-card__media .product-media { aspect-ratio: 1; }
.ai-card__body { display: grid; gap: 2px; min-width: 0; }
.ai-card__title { color: var(--text); font-weight: 600; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-card__title:hover { text-decoration: underline; }
.ai-card__seller { color: var(--text-muted); font-size: var(--text-sm); }
.ai-card__price { font-weight: 700; }
.ai-card__out { color: var(--text-muted); font-weight: 400; font-size: var(--text-sm); }
.ai-card__add { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border: 0; border-radius: 999px; background: var(--crimson); color: #fff; font: inherit; font-weight: 600; font-size: var(--text-sm); text-decoration: none; cursor: pointer; }
.ai-card__add:hover { background: var(--crimson-deep); }
.ai-card__add:disabled { opacity: 0.7; cursor: default; }
.ai-panel__consent { margin: 0 var(--space-4) var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--r-ctl); background: var(--surface); }
.ai-panel__consent p { margin: 0 0 var(--space-2); font-size: var(--text-sm); }
.ai-panel__consent-actions { display: flex; gap: var(--space-2); }
.ai-panel__form { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-2); border-top: 1px solid var(--border-subtle); }
.ai-panel__field { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-4); border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--text); font: inherit; }
.ai-panel__field::placeholder { color: var(--text-placeholder); opacity: 1; }
.ai-panel__mic, .ai-panel__send { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; cursor: pointer; }
.ai-panel__mic { background: var(--surface); color: var(--text); }
.ai-panel__send { background: var(--crimson); color: #fff; }
.ai-panel__send:disabled { opacity: 0.55; cursor: default; }
.ai-panel__mic svg, .ai-panel__send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ai-panel__mic.is-listening { background: var(--crimson); color: #fff; box-shadow: 0 0 0 calc(3px + var(--level, 0) * 10px) var(--neon-soft), 0 0 calc(8px + var(--level, 0) * 24px) var(--neon-soft); transition: box-shadow 90ms linear; }
@media (prefers-reduced-motion: reduce) { .ai-panel__mic.is-listening { transition: none; box-shadow: 0 0 0 4px var(--neon-soft); } }
.ai-panel__mic:disabled { opacity: 0.5; cursor: default; }
.ai-panel__privacy { margin: 0; padding: 0 var(--space-4) max(var(--space-3), env(safe-area-inset-bottom)); color: var(--text-muted); font-size: var(--text-xs, 0.78rem); line-height: 1.45; }
.ai-panel__privacy a { color: var(--link); }

/* Round "ask" button on phones; on wider screens the header button does the job. */
.ai-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--crimson); color: #fff;
  box-shadow: 0 8px 24px rgb(150 0 24 / 0.4), 0 0 0 3px rgb(255 255 255 / 0.9); cursor: pointer; }
.ai-fab svg { width: 26px; height: 26px; }
.ai-fab:hover { background: var(--crimson-deep); }
.ai-fab:focus-visible { outline: 3px solid var(--near-black); outline-offset: 3px; }
/* Desktop: a labelled pill, always in the same corner, so it is easy to find. */
.ai-fab__label { display: none; }
@media (min-width: 64rem) {
  .ai-fab { width: auto; height: 52px; padding: 0 20px 0 16px; grid-auto-flow: column; gap: 8px; border-radius: 999px; font: inherit; font-weight: 700; }
  .ai-fab__label { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
  .ai-fab { animation: fab-in 420ms var(--ease-out) both; }
  .ai-fab svg { animation: fab-twinkle 3.2s ease-in-out 1s 3; }
}
@keyframes fab-in { from { opacity: 0; transform: translateY(12px) scale(0.92); } }
@keyframes fab-twinkle { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(18deg) scale(1.15); } }
@media (max-width: 63.99rem) { .site-tools__ask { display: none; } }

/* ---------- Search suggestions (header) ---------- */
.site-search { position: relative; }
.suggest-list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; max-height: min(70vh, 30rem); overflow-y: auto; margin: 0; padding: 6px;
  list-style: none; border-radius: var(--r-card); background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-lift); border: 1px solid var(--border-subtle); }
.suggest-list[hidden] { display: none; }
.suggest-list__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); min-height: 44px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.suggest-list__item.is-active { background: var(--surface); box-shadow: inset 3px 0 0 var(--link); }
.suggest-list__kind { min-width: 4.6rem; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: var(--text-xs, 0.75rem); font-weight: 600; text-align: center; }
.suggest-list__item.is-active .suggest-list__kind { background: var(--surface-raised); }
.suggest-list__kind--ai { background: var(--crimson); color: #fff; }
.suggest-list__item.is-active .suggest-list__kind--ai { background: var(--crimson); }
.suggest-list__main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-list__sub { color: var(--text-muted); }
.suggest-list__price { font-weight: 700; white-space: nowrap; }
.suggest-list__item--ask { border-top: 1px solid var(--border-subtle); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* Shop page: corrected spelling and "ask" line. */
.search-corrected, .search-ask { margin: var(--space-2) 0 0; color: var(--text-muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }

@keyframes listen { 50% { box-shadow: 0 0 0 10px rgb(255 42 79 / 0.12); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-6); background: #111113; border-radius: var(--r-frame) var(--r-frame) 0 0; }
.site-footer__qr { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-4); border-radius: var(--r-card); background: rgb(255 255 255 / 0.06); max-width: 34rem; }
.site-footer__qr img { flex: none; width: 112px; height: 112px; border-radius: 12px; background: #fff; padding: 6px; }
.site-footer__qr p { margin: 0; color: var(--chrome-text-muted); font-size: var(--text-sm); }
.site-footer__qr strong { color: #fff; font-size: var(--text-base); }
.social-page { max-width: 36rem; padding-block: var(--space-6); }
.social-list { display: grid; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.social-list__link { display: flex; align-items: center; min-height: 56px; padding: 0 var(--space-5); border-radius: var(--r-card); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-card); }
.social-list__link:hover { box-shadow: 0 0 0 1px var(--crimson), var(--shadow-card); }

@media (prefers-reduced-motion: reduce) {
  .tag:hover, .breaker:hover, .pill-link:hover, .suggest:hover { transform: none; }
  .idea-card img { transition: none; }
}

/* ---------- Footer: follow us (logos + QR) and the sounds switch ---------- */
.site-footer__follow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-6); padding: var(--space-4) var(--space-5);
  border-radius: var(--r-card); background: rgb(255 255 255 / 0.06); }
.site-footer__follow .site-footer__qr { margin: 0; padding: 0; background: none; max-width: 26rem; }
.site-footer__social { display: grid; gap: var(--space-3); flex: 1 1 16rem; }
.site-footer__follow-title { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.social-icons { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.social-icons__link { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); transition: background-color 180ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth), transform 180ms var(--ease-smooth); }
.social-icons__link:hover, .social-icons__link:focus-visible { background: var(--crimson); box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft); transform: translateY(-2px); }
.social-icons__link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.social-icon { width: 22px; height: 22px; fill: currentColor; }
.social-list__link { gap: var(--space-3); }
.social-list__link .social-icon { flex: none; color: var(--crimson); }
.social-list__name { font-weight: 700; }
.social-list__handle { margin-left: auto; color: var(--text-muted); font-weight: 400; font-size: var(--text-sm); }
.sound-toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--chrome-text-muted); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.sound-toggle:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .social-icons__link:hover, .social-icons__link:focus-visible { transform: none; } }

/* Search bar: one liquid-glass capsule (field + button). On focus the glass brightens and a soft neon
   glow rings the whole capsule, instead of a hard outline. The ring is crimson tint on the dark header
   (well over 3:1), so it still works as the keyboard focus indicator. */
.site-search {
  padding: 4px; gap: 4px; border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.07));
  border: 1px solid rgb(255 255 255 / 0.18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 6px 20px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft);
  transition: background 200ms var(--ease-smooth), border-color 200ms var(--ease-smooth), box-shadow 240ms var(--ease-smooth);
}
.site-search__input, .site-search__input:focus-visible { outline: none; }
.site-search__input { border-radius: 12px; background: rgb(255 255 255 / 0.94); transition: background 200ms var(--ease-smooth); }
.site-search__button { border-radius: 12px; }
.site-search:focus-within {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.24), rgb(255 255 255 / 0.1));
  border-color: rgb(255 255 255 / 0.45);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 0 0 3px rgb(255 138 155 / 0.75), 0 0 28px 2px rgb(255 42 79 / 0.35), 0 10px 30px rgb(0 0 0 / 0.3);
}
.site-search:focus-within .site-search__input { background: #fff; }
@media (prefers-reduced-motion: reduce) { .site-search, .site-search__input { transition: none; } }
@media (forced-colors: active) { .site-search:focus-within { outline: 3px solid CanvasText; } }

/* Footer brand column: room to breathe between the blurb, contacts and the app card. */
.site-footer__brand { display: grid; gap: var(--space-4); align-content: start; }
.site-footer__brand img { margin-bottom: 0; }
.site-footer__brand p { margin: 0; line-height: 1.6; }
.site-footer__contact-list { gap: var(--space-2); margin: 0; line-height: 1.5; }
.site-footer__contact-list li:last-child { color: var(--chrome-text-muted); }
.install {
  gap: var(--space-3);
  max-width: 22rem;
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-card, 12px);
  background: rgba(255, 255, 255, 0.04);
}
.install p { line-height: 1.55; }
.install .install__title { color: var(--chrome-text); font-weight: 700; font-size: var(--text-base); }
.install .btn { margin-top: var(--space-1); }

/* Password fields: the eye says "Show"/"Hide" in words too, so nobody misses it. */
.password__input { padding-right: 92px; }
.password__toggle { width: auto; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font: 600 var(--text-sm)/1 var(--font-body); color: var(--text); }
.password__toggle svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- department slider */
.dept-slider { position: relative; }
.dept-slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: var(--space-4);
  margin: 0; padding: var(--space-2) 2px var(--space-3); list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.dept-slider__track::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .dept-slider__track { grid-auto-columns: 128px; gap: var(--space-5); } }
.dept-slider__item { scroll-snap-align: start; }
.dept-tile { display: grid; justify-items: center; gap: var(--space-2); text-align: center; color: var(--text); text-decoration: none; border-radius: var(--r-card); }
.dept-tile__photo {
  display: block; width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px -8px rgba(0,0,0,.25);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
@media (min-width: 48rem) { .dept-tile__photo { width: 128px; } }
.dept-tile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.dept-tile__name { font-weight: 600; font-size: var(--text-sm); line-height: 1.25; max-width: 12ch; }
.dept-tile:hover .dept-tile__photo { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 28px -10px rgba(0,0,0,.35); }
.dept-tile:hover .dept-tile__photo img { transform: scale(1.06); }
.dept-tile:active .dept-tile__photo { transform: scale(.97); }
.dept-tile:focus-visible { outline: 3px solid var(--focus, var(--crimson)); outline-offset: 4px; }
.dept-tile:hover .dept-tile__name { color: var(--link, var(--crimson)); }

/* Pills (ranges inside a department) */
.dept-slider--pills .dept-slider__track { grid-auto-columns: max-content; gap: var(--space-2); padding-block: var(--space-1) var(--space-2); }
.dept-slider--pills .dept-tile { padding: 10px 16px; border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--surface-raised); min-height: 44px; align-content: center; }
.dept-slider--pills .dept-tile__name { max-width: none; white-space: nowrap; }
.dept-slider--pills .dept-tile:hover { border-color: var(--border); }

.dept-slider__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }
.dept-slider__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-subtle); background: var(--surface-raised); color: var(--text); cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.dept-slider__arrow svg { width: 20px; height: 20px; }
.dept-slider__arrow:hover:not(:disabled) { background: var(--surface); }
.dept-slider__arrow:disabled { opacity: .35; cursor: default; }
.dept-slider__dots { display: flex; gap: 6px; }
.dept-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--border); cursor: pointer; transition: width .25s ease, background .25s ease; }
.dept-slider__dot.is-current { width: 22px; background: var(--crimson); }
/* 24px tap area around the small dots (WCAG 2.5.8) */
.dept-slider__dot { position: relative; }
.dept-slider__dot::after { content: ""; position: absolute; inset: -8px -3px; }
@media (hover: none) { .dept-slider__arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .dept-tile__photo, .dept-tile__photo img, .dept-slider__dot { transition: none; } }

/* Department page header with its photo */
.page-header--dept { display: flex; gap: var(--space-5); align-items: center; }
.page-header__photo { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px -8px rgba(0,0,0,.3); }
@media (min-width: 48rem) { .page-header__photo { width: 120px; height: 120px; } }

/* Deliver-to: "Use my location" */
.deliver-to__locate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: var(--space-2) 0; }
.deliver-to__locate svg { width: 18px; height: 18px; }
.deliver-to__or { margin: 0 0 var(--space-2); text-align: center; font-size: var(--text-sm); color: var(--text-muted); }

/* Rail: "Track my order" pinned at the right; the department row snaps item by item. */
.category-rail__track { display: none; }
@media (min-width: 48rem) {
  .category-rail__list { scroll-snap-type: x proximity; }
  .category-rail__item { scroll-snap-align: start; }
  .category-rail__track {
    display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 var(--space-3);
    color: var(--chrome-text); font-weight: 600; font-size: var(--text-sm); white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,.14); text-decoration: none;
  }
  .category-rail__track:hover { color: var(--crimson-tint); }
}

/* First-visit "Shopping from your area?" card */
.location-prompt {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-3); align-items: center;
  margin-block: var(--space-3) var(--space-2); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-raised);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.35);
}
.location-prompt__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--crimson); }
.location-prompt__icon svg { width: 20px; height: 20px; }
.location-prompt__text { margin: 0; line-height: 1.45; }
.location-prompt__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
@media (min-width: 56rem) {
  .location-prompt { grid-template-columns: auto 1fr auto; }
  .location-prompt__actions { grid-column: auto; }
}

/* Menus: a small round photo per department */
.menu-thumb { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.sheet__row .menu-thumb { width: 32px; height: 32px; }
.mega__tab > span, .sheet__row > span { flex: 1; text-align: left; }

/* Themed product rows: a sideways, swipeable row of cards */
.theme-row__lede { margin: var(--space-1) 0 0; color: var(--text-muted); }
.theme-row .product-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); grid-template-columns: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--space-2); scrollbar-width: thin;
}
.theme-row .product-grid > li { scroll-snap-align: start; }
@media (min-width: 64rem) { .theme-row .product-grid { grid-auto-columns: calc((100% - 3 * var(--space-4)) / 4); } }
@media (max-width: 47.99rem) {
  .page-header--dept { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .page-header__photo { width: 72px; height: 72px; }
  .location-prompt { padding: var(--space-3); font-size: var(--text-sm); grid-template-columns: auto 1fr; }
  .location-prompt__icon { width: 32px; height: 32px; }
  .location-prompt__actions .btn { flex: 1 1 auto; }
}

/* The glass header is its own stacking layer (backdrop-filter); lift it so its pop-ups
   (Deliver to, menus) sit above the hero banner and page content. */
.site-top { position: relative; z-index: 50; }

/* "Get the app" on the home page, under the selling block (light card, outside the dark footer) */
.home-app:empty { display: none; }
.home-app { margin-block: calc(-1 * var(--space-4)) var(--space-7); }
.home-app .install {
  max-width: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-2) var(--space-5);
  border-color: var(--border-subtle); background: var(--surface-raised); color: var(--text); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35);
}
.home-app .install p { color: var(--text-muted); }
.home-app .install .install__title { color: var(--text); grid-column: 1; }
.home-app .install .btn { grid-column: 2; grid-row: 1 / span 2; background: var(--crimson); color: #fff; }
@media (max-width: 47.99rem) { .home-app .install { grid-template-columns: 1fr; } .home-app .install .btn { grid-column: 1; grid-row: auto; } }

.dash__toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }

/* Department images are transparent cut-outs: show them on a soft disc, never cropped */
.dept-tile__photo { background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--surface) 75%); }
.dept-tile__photo img { object-fit: contain; padding: 10%; }
.dept-tile:hover .dept-tile__photo img { transform: scale(1.08) translateY(-2px); }
.menu-thumb, .page-header__photo { object-fit: contain; background: var(--surface); padding: 3px; }
.page-header__photo { padding: 10px; background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--surface) 75%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dept-tile__photo, :root:not([data-theme="light"]) .page-header__photo { background: radial-gradient(circle at 50% 40%, #3a3a3d 0%, #222224 75%); }
}

/* ================================================================ Admin: app shell */
.admin { padding: var(--space-4) 0 var(--space-7); }
.admin__shell { width: min(100% - 24px, 1440px); margin-inline: auto; display: grid; gap: var(--space-4); }
@media (min-width: 64rem) { .admin__shell { grid-template-columns: 248px minmax(0, 1fr); gap: var(--space-5); align-items: start; } }

.admin__nav {
  display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; padding: var(--space-2);
  border-radius: var(--r-frame); background: linear-gradient(160deg, #2b2b2e, #18181a); color: #f5f5f7;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 40px -24px rgba(0,0,0,.6);
}
.admin__nav::-webkit-scrollbar { display: none; }
.admin__brand { display: none; margin: var(--space-2) var(--space-3) var(--space-3); font: 700 1.25rem/1 var(--font-display, inherit); letter-spacing: .01em; }
.admin__brand span { color: var(--crimson-tint); }
.admin__group { display: contents; }
.admin__group-title { display: none; }
.admin__group ul { display: contents; list-style: none; }
.admin__link {
  position: relative; display: flex; align-items: center; gap: 10px; flex: none; min-height: 40px; padding: 8px 12px;
  border: 0; border-radius: 12px; background: none; color: #d6d6da; font: 600 var(--text-sm)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.admin__link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.admin__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin__link[aria-current="page"] { background: linear-gradient(135deg, var(--crimson), #6e0012); color: #fff; box-shadow: 0 8px 18px -10px rgba(150,0,24,.9); }
.admin__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.admin__badge { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; text-align: center; }
.admin__link[aria-current="page"] .admin__badge { background: rgba(255,255,255,.25); }
.admin__signout { color: #bdbdc2; }
@media (min-width: 64rem) {
  .admin__nav { position: sticky; top: var(--space-4); flex-direction: column; overflow: visible; padding: var(--space-3); max-height: calc(100vh - 2rem); overflow-y: auto; }
  .admin__brand { display: block; }
  .admin__group { display: block; margin-bottom: var(--space-3); }
  .admin__group-title { display: block; margin: 0 0 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8e8e93; }
  .admin__group ul { display: grid; gap: 2px; margin: 0; padding: 0; }
  .admin__signout { margin-top: auto; }
}

.admin__main { min-width: 0; }
.admin__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.admin__crumb { margin: 0; font-size: var(--text-sm); color: var(--text-muted); font-weight: 600; }
.admin__title { margin: 2px 0 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; }
.admin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.admin__actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.admin__actions .btn svg { width: 16px; height: 16px; }
.admin__panel {
  padding: clamp(var(--space-4), 3vw, var(--space-6)); border-radius: var(--r-frame); background: var(--surface-raised);
  border: 1px solid var(--border-subtle); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -32px rgba(0,0,0,.35);
  animation: admin-enter .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes admin-enter { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }

.live-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-raised); border: 1px solid var(--border-subtle); color: var(--text); font-size: var(--text-sm); text-decoration: none; }
.live-pill strong { font-size: 1rem; }
.live-pill__dot { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #1fa64a; }
.live-pill__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #1fa64a; opacity: 0; animation: live-ping 2s ease-out infinite; }
@keyframes live-ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* ================================================================ Admin: command centre */
.cc { display: grid; gap: var(--space-3); }
.cc-heading { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; font-size: var(--text-lg); }
.cc-count { font: 600 var(--text-sm)/1 var(--font-body); padding: 5px 10px; border-radius: 999px; background: var(--surface); color: var(--text-muted); }

.cc-hero {
  display: grid; gap: var(--space-4); padding: clamp(var(--space-4), 3vw, var(--space-6)); border-radius: var(--r-frame); color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #3a0a12 0%, #1b1b1d 45%, #111113 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -30px rgba(150,0,24,.55);
}
@media (min-width: 56rem) { .cc-hero { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.cc-hero__kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffb3bf; }
.cc-hero__big { margin: 6px 0 0; font: 700 clamp(3.5rem, 8vw, 6rem)/.9 var(--font-display, inherit); letter-spacing: -.02em; text-shadow: 0 10px 30px rgba(150,0,24,.6); }
.cc-hero__sub { margin: var(--space-2) 0 0; color: #e5e5ea; }
.cc-hero__fine { margin: var(--space-2) 0 0; font-size: 12px; color: #b0b0b5; }
.cc-pages { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cc-pages li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); }
.cc-pages__path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; font-size: 13px; }
.cc-pages__n { font-weight: 700; }

.cc-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); perspective: 900px; }
.cc-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: grid; gap: 4px; padding: var(--space-4); border-radius: var(--r-card); color: var(--text); text-decoration: none;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface)); border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 4px rgba(0,0,0,.04), 0 18px 32px -22px rgba(0,0,0,.4);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .25s ease;
  animation: cc-rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.cc-card:hover { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 10px rgba(0,0,0,.06), 0 28px 44px -24px rgba(0,0,0,.5); }
a.cc-card:hover .cc-card__value { color: var(--link); }
.cc-card__icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 11px; background: var(--surface); color: var(--link); transform: translateZ(24px); }
.cc-card__icon svg { width: 20px; height: 20px; }
.cc-card__label { font-size: var(--text-sm); color: var(--text-muted); font-weight: 600; }
.cc-card__value { font: 700 1.75rem/1.1 var(--font-display, inherit); transform: translateZ(18px); }
.cc-card__note { font-size: 12px; color: var(--text-muted); }
.cc-card--brand { background: linear-gradient(150deg, var(--crimson), #5e0010); color: #fff; border-color: transparent; }
.cc-card--brand .cc-card__label, .cc-card--brand .cc-card__note { color: #ffd6dc; }
.cc-card--brand .cc-card__icon { background: rgba(255,255,255,.16); color: #fff; }
@keyframes cc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; } }

.cc-flow { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; perspective: 1000px; }
.cc-flow__item {
  --rx: 0deg; --ry: 0deg;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: 16px; color: var(--text); text-decoration: none;
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px -20px rgba(0,0,0,.45); transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .18s ease-out, box-shadow .25s ease, border-color .2s ease;
  animation: cc-rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.cc-flow__item:hover { border-color: var(--border); box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.cc-flow__item.is-urgent { border-color: color-mix(in srgb, var(--crimson) 45%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--crimson) 8%, var(--surface-raised)), var(--surface-raised)); }
.cc-flow__item.is-clear { opacity: .6; }
.cc-flow__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--link); }
.cc-flow__icon svg { width: 20px; height: 20px; }
.cc-flow__text { display: grid; gap: 2px; min-width: 0; }
.cc-flow__text span { font-size: var(--text-sm); color: var(--text-muted); }
.cc-flow__count { font: 700 1.5rem/1 var(--font-display, inherit); }
.cc-flow__item.is-urgent .cc-flow__count { color: var(--link); }
.cc-flow__go { width: 18px; height: 18px; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) {
  .cc-card, .cc-flow__item, .admin__panel { animation: none; transition: none; transform: none; }
  .live-pill__dot::after { animation: none; }
}
.admin__link span { white-space: nowrap; }

/* ---------- Footer: "Get the app" back in the footer, and a compact phone layout ---------- */
.site-footer__app:empty { display: none; }
.site-footer__app .install { max-width: 24rem; background: rgb(255 255 255 / 0.05); }
.site-footer__chip { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 47.99rem) {
  .site-footer { padding-block: var(--space-6) var(--space-5); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); }
  .site-footer__brand { grid-column: 1 / -1; gap: var(--space-3); }
  .site-footer__brand img { width: 120px; height: auto; }
  .site-footer__contact-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .site-footer__contact-list li:last-child { flex-basis: 100%; font-size: var(--text-xs, 0.8125rem); }
  .site-footer__chip { padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14);
    text-decoration: none; font-size: var(--text-sm); }
  .site-footer__heading { font-size: var(--text-base); margin-bottom: var(--space-2); }
  .site-footer__top > nav:first-of-type { grid-row: span 2; }   /* Shop on the left; Sell and Help stacked on the right */
  .site-footer__list { gap: 0; }
  .site-footer__list a, .site-footer__list .site-footer__button { display: inline-flex; align-items: center; min-height: 40px; }
  .site-footer__follow { gap: var(--space-4); padding: var(--space-4); }
  .site-footer__follow .site-footer__qr { display: none; }   /* you can't scan a QR code on your own screen */
  .site-footer__app { flex: 1 1 100%; }
  .site-footer__app .install { max-width: none; }
  .site-footer__base { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .site-footer__base ul { gap: var(--space-1) var(--space-4); }
}

/* The round assistant button waits until the cookie choice is made, so it never covers the banner. */
body:has(.cookie-banner) .ai-fab { display: none; }

@media (max-width: 63.99rem) { .site-footer { padding-bottom: calc(var(--space-5) + 80px); } }   /* room for the round assistant button */

/* ---------- Install invitation (slides up after the cookie choice) ---------- */
.install-toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; translate: -50% 0;
  width: min(30rem, calc(100vw - 32px)); display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-3); align-items: center;
  padding: var(--space-3) var(--space-4); border-radius: 20px; color: #fff;
  background: linear-gradient(180deg, rgb(38 38 40 / 0.86), rgb(22 22 24 / 0.9)); border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 18px 48px rgb(0 0 0 / 0.4), 0 0 24px rgb(255 42 79 / 0.18);
  -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); }
@media (prefers-reduced-motion: no-preference) { .install-toast { animation: install-in 420ms var(--ease-smooth); } }
@keyframes install-in { from { opacity: 0; translate: -50% 24px; } to { opacity: 1; translate: -50% 0; } }
.install-toast img { border-radius: 12px; }
.install-toast p { margin: 0; color: #d9d9d9; font-size: var(--text-sm); line-height: 1.45; }
.install-toast .install-toast__title { color: #fff; font-weight: 700; font-size: var(--text-base); }
.install-toast__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--space-2); }
.install-toast__actions .btn { background: var(--crimson); color: #fff; }
.install-toast__later { min-height: 44px; padding: 0 var(--space-3); border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.1); color: #fff; font: inherit; font-size: var(--text-sm); cursor: pointer; }
body:has(.install-toast) .ai-fab { display: none; }

/* ---------- Admin › Users ---------- */
.people__bar { display: grid; gap: var(--space-3); margin-bottom: var(--space-2); }
.people__search .input { max-width: 32rem; }
.people__list > li { padding: 0; }
.people__row { display: grid; gap: 4px; width: 100%; padding: var(--space-3) 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.people__row:hover .people__who strong { text-decoration: underline; }
.people__who { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); align-items: baseline; }
.people__who span, .people__meta { color: var(--text-muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.people__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.people__tags:empty { display: none; }
.people__links { display: flex; gap: var(--space-3); margin: 0 0 var(--space-2); font-size: var(--text-sm); }
/* Staff Call / WhatsApp buttons (ContactButtons.js): 44px tap targets, wrap on narrow screens */
.contact-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.contact-actions__number { font-variant-numeric: tabular-nums; }
.contact-btn { min-height: 44px; gap: 6px; }
.contact-btn svg { width: 18px; height: 18px; flex: none; }
.contact-btn--wa svg { fill: currentColor; stroke: none; }
.contact-line { margin: 0 0 var(--space-3); }
.people-danger { margin-top: var(--space-3); padding: var(--space-3); border: 1px solid var(--danger); border-radius: var(--r-ctl); }
.people-danger summary { color: var(--danger); font-weight: 600; cursor: pointer; min-height: 32px; }
.seller-facts { margin-bottom: var(--space-3); }

/* ---------- Company pages (About, Advertise, Click and collect) ---------- */
.info-hero { padding: clamp(24px, 5vw, 56px); border-radius: var(--r-frame); color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, rgb(150 0 24 / 0.55), transparent 55%), linear-gradient(160deg, #1c1c1f, #0f0f11);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 24px 60px -30px rgb(150 0 24 / 0.6); }
.info-hero h1 { color: #fff; max-width: 18ch; }
.info-hero .page-header__lede { color: #d9d9d9; max-width: 60ch; }
.info-hero__kicker { margin: 0 0 var(--space-2); color: var(--crimson-tint); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--text-sm); }
.info-lead { font-size: var(--text-lg); line-height: 1.55; }
.info-split { display: grid; gap: var(--space-6); }
@media (min-width: 56rem) { .info-split { grid-template-columns: 1fr 1fr; } }
.value-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.value-card { padding: var(--space-5); border-radius: var(--r-card); background: var(--surface-raised); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card); transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth); }
.value-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(150 0 24 / 0.25), var(--shadow-lift); }
.value-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-3); border-radius: 12px; background: var(--crimson); color: #fff;
  box-shadow: 0 6px 18px rgb(150 0 24 / 0.35); }
.value-card__icon svg { width: 22px; height: 22px; }
.value-card__title { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.value-card p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.info-faq { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-ctl); background: var(--surface); }
.info-faq summary { font-weight: 600; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.info-faq p { margin: var(--space-2) 0 0; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .value-card, .value-card:hover { transition: none; transform: none; } }

/* ---------- WhatsApp, sale badges, Picked for you, store search ---------- */
.wa-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: var(--space-2); padding: 0 16px; border-radius: 999px;
  background: #15703a; color: #fff;   /* 6.1:1 with white */ font-weight: 700; text-decoration: none; transition: filter 160ms ease, transform 160ms ease; }
.wa-button:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.wa-button svg { width: 20px; height: 20px; fill: currentColor; }
.wa-button--chip { margin-top: 0; font-weight: 600; font-size: var(--text-sm); }
.seller-box .wa-button { margin-left: var(--space-2); }
.tag { position: relative; }
.tag__sale { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--crimson); color: #fff;
  font-weight: 700; font-size: var(--text-sm); box-shadow: 0 4px 14px rgb(150 0 24 / 0.35); }
.picked-row__actions { display: flex; align-items: center; gap: var(--space-3); }
.picked-row__clear { font-size: var(--text-sm); }
.store-search { margin-bottom: var(--space-4); }

/* ---------- Sponsored strip, boosts, store credit ---------- */
.sponsored { margin-bottom: var(--space-5); padding: var(--space-3); border-radius: var(--r-card); border: 1px dashed var(--border); }
.sponsored__label { margin: 0 0 var(--space-2); color: var(--text-muted); font-size: var(--text-xs, 0.8125rem); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sponsored__grid { margin: 0; }
.boost-form { max-width: 32rem; }
.boost-decide { margin-top: var(--space-2); }
.boost-decide .input { flex: 1 1 16rem; }
.rewards-form .form-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.credit-balance { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: var(--display-m, 2.5rem); font-weight: 700; }

/* ---------- Calm uniform layer (Stage 6, owner: "liquid glass + 3D + neon", calm) ----------
   One family for every page: soft filled fields with a neon ring on focus; one card family with
   a hairline edge and a gentle lift on hover for clickable cards only; neon only on hover, focus and
   key moments; no motion with Reduce motion. Text colours are unchanged (all pairs stay 4.5:1). */
:root { --ring: 0 0 0 4px rgb(255 42 79 / 0.22); --lift: translateY(-3px); }

/* Fields */
.input, .select { border-width: 1px; border-color: var(--border); background: var(--surface-raised);
  transition: border-color 160ms var(--ease-smooth), box-shadow 160ms var(--ease-smooth), background-color 160ms var(--ease-smooth); }
.input:focus-visible, .select:focus-visible, .input:focus, .select:focus { outline: 0; border-color: var(--crimson); box-shadow: var(--ring); }
:root[data-theme="dark"] :is(.input, .select):is(:focus, :focus-visible) { border-color: var(--crimson-tint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.input, .select):is(:focus, :focus-visible) { border-color: var(--crimson-tint); } }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(220 38 38 / 0.2); }

/* Buttons: a soft neon glow on hover, the same radius everywhere */
.btn--primary:hover:not([disabled]) { box-shadow: 0 0 0 1px var(--neon), 0 8px 24px var(--neon-soft); }
.btn--secondary { background: var(--surface-raised); }
.btn--secondary:hover:not([disabled]) { border-color: var(--crimson); box-shadow: 0 0 0 1px rgb(255 42 79 / 0.25), var(--shadow-card); }
:root[data-theme="dark"] .btn--secondary:hover:not([disabled]) { border-color: var(--crimson-tint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--secondary:hover:not([disabled]) { border-color: var(--crimson-tint); } }

/* Keyboard focus: the visible outline stays (WCAG 2.4.7), plus a faint neon halo */
:where(a, button, summary, [tabindex]):focus-visible { box-shadow: 0 0 0 6px rgb(255 42 79 / 0.16); }

/* One card family: hairline edge + soft shadow, same radius */
.booking, .enquiry, .apply-form .fieldset {
  border: 1px solid var(--border-subtle); border-radius: var(--r-card); background: var(--surface-raised); box-shadow: var(--shadow-card); }
/* Clickable cards lift gently, with a faint neon edge */
.trade-card, .pro-card, .tag, .value-card, .social-list__link, .ai-card {
  transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth); }
.trade-card:hover, .pro-card:hover, .tag:hover, .ai-card:hover {
  translate: none; transform: var(--lift); box-shadow: 0 0 0 1px rgb(255 42 79 / 0.22), var(--shadow-lift); }
@media (prefers-reduced-motion: reduce) {
  .trade-card, .pro-card, .tag, .value-card, .social-list__link, .ai-card, .input, .select { transition: none; }
  .trade-card:hover, .pro-card:hover, .tag:hover, .value-card:hover, .ai-card:hover { transform: none; }
}

/* Assistant panel: calmer glass, softer bubbles */
.ai-panel { border: 1px solid var(--border-subtle); box-shadow: 0 0 0 1px rgb(255 42 79 / 0.12), var(--shadow-dialog); }
.ai-chip { border: 1px solid var(--border); background: var(--surface-raised); box-shadow: none;
  transition: border-color 160ms var(--ease-smooth), box-shadow 160ms var(--ease-smooth); }
.ai-chip:hover { border-color: var(--crimson); box-shadow: 0 0 0 1px rgb(255 42 79 / 0.2); }
.ai-msg--user .ai-msg__bubble { box-shadow: 0 6px 18px rgb(150 0 24 / 0.18); }

/* Admin as its own full-screen app (Stage 7): the shop header, rail, footer and assistant step aside;
   the admin sidebar runs the full height. "View site" in the admin top bar goes back to the shop. */
html.is-admin .site-top, html.is-admin .site-footer, html.is-admin .ai-fab, html.is-admin .install-toast { display: none; }
html.is-admin body { background: var(--bg); }
html.is-admin .admin { padding-top: var(--space-4); }
@media (min-width: 64rem) { html.is-admin .admin__nav { top: var(--space-4); max-height: calc(100vh - 2 * var(--space-4)); } }

/* ---------- Paid ad placements (Stage 7): always labelled, calm, same card family ---------- */
.ad-slot { margin-block: var(--space-5); padding: var(--space-4); border-radius: var(--r-frame); background: var(--surface-raised);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); }
.ad-slot__label { margin: 0 0 var(--space-3); color: var(--text-muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ad-slot__list { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.ad-slot__item { min-width: 0; }
.store-ad { display: flex; gap: var(--space-4); align-items: center; height: 100%; padding: var(--space-4); border-radius: var(--r-card);
  background: linear-gradient(160deg, #2b2b2e, #18181a); color: #f5f5f7; text-decoration: none;
  transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth); }
.store-ad:hover { transform: var(--lift); box-shadow: 0 0 0 1px var(--neon), 0 12px 32px var(--neon-soft); }
.store-ad__mark { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--crimson); color: #fff;
  font: 700 1.3rem/1 var(--font-display); }
.store-ad__body { display: grid; gap: 4px; min-width: 0; }
.store-ad__name { font-size: var(--text-lg); }
.store-ad__line { color: #d6d6da; font-size: var(--text-sm); }
.store-ad__cta { color: var(--crimson-tint); font-weight: 700; font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .store-ad { transition: none; } .store-ad:hover { transform: none; } }
.mega .ad-slot { margin: var(--space-3) 0 0; padding: var(--space-3); box-shadow: none; }
.mega .ad-slot__list { grid-template-columns: 1fr; }

/* Admin › Growth › Ads (Stage 7) */
.slot-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); margin: var(--space-4) 0; padding: 0; list-style: none; }
.slot-card { display: grid; gap: 4px; padding: var(--space-3) var(--space-4); border-radius: var(--r-card); background: var(--surface-raised);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
.data-table th, .data-table td { padding: var(--space-2) var(--space-3); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-subtle); }
.data-table thead th { color: var(--text-muted); font-weight: 700; }
.data-table .input { min-width: 6rem; }
.ad-form__total { margin: 0; font-size: var(--text-lg); }

/* ---------- Product card, photo-led (design audit, Nov 2026) ----------
   Square photo that is never cropped, title capped at two lines, price and Add button pinned to the
   bottom so every card in a row is the same height. The wrapper holds the green strip a swipe reveals. */
.product-grid > li { display: flex; min-width: 0; }
.tag-swipe { position: relative; flex: 1; display: flex; min-width: 0; border-radius: var(--r-card); }
.tag-swipe > .tag { flex: 1; min-width: 0; touch-action: pan-y; }
.theme-row .tag-swipe > .tag, [data-scroll-row] .tag-swipe > .tag { touch-action: auto; -webkit-touch-callout: none; user-select: none; }
.tag-swipe__strip { position: absolute; inset: 0; display: flex; align-items: center; padding-left: var(--space-4); border-radius: var(--r-card);
  background: #15803d; color: #fff; font-weight: 700; font-size: var(--text-sm); opacity: calc(0.4 + var(--swipe, 0) * 0.6); pointer-events: none; }
.tag-swipe__done { display: none; }
.tag-swipe.is-added .tag-swipe__strip > span:first-child { display: none; }
.tag-swipe.is-added .tag-swipe__done { display: inline; }
.tag-swipe.is-added .tag { box-shadow: 0 0 0 2px #15803d, var(--shadow-card); }
.tag-swipe.is-refused .tag-swipe__strip { background: var(--graphite); }
.tag { display: flex; flex-direction: column; height: auto; }
.tag .product-media { aspect-ratio: 1; padding: var(--space-3); background: #fff; }
.tag .product-media img { object-fit: contain; }
.product-media__soon { position: absolute; bottom: var(--space-2); left: 0; right: 0; text-align: center; font-size: var(--text-xs); color: var(--text-muted); }
.tag .product-art { height: 46%; opacity: 0.55; }
.tag__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tag__title { font-size: 0.9375rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(2 * 1.3em); }
.tag__seller { margin: 0; font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag__foot { margin-top: auto; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px var(--space-2); padding-top: var(--space-2); }
.tag__price { grid-column: 1; font-size: 1.375rem; }
.tag__notes { grid-column: 1; margin: 0; }
.tag__add { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border: 0; border-radius: 999px; background: var(--crimson); color: #fff;
  font: inherit; font-weight: 700; font-size: var(--text-sm); cursor: pointer; transition: background-color 160ms var(--ease-out); }
.tag__add:hover { background: var(--crimson-deep, #7a0014); }
.tag__add:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tag__add:disabled { background: var(--border-subtle); color: var(--text-muted); cursor: not-allowed; }
.tag__add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 30rem) {
  .tag__price { font-size: 1.125rem; }
  .tag__add span { display: none; }
  .tag__add { padding: 0; width: 40px; min-width: 40px; min-height: 40px; }
  .tag .product-media { padding: var(--space-2); }
}

/* ---------- Home, phone first (design audit, Nov 2026) ----------
   Products and departments show on the first phone screen: a shorter hero without the neon border,
   heading rows that never wrap their link under the title, and long sections as sideways rows. */
.neon-hero__frame { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), var(--shadow-lift); }
@media (max-width: 40rem) {
  .home.v3 { margin-top: calc(-1 * var(--space-3)); }
  .neon-hero { padding-top: var(--space-2); }
  .neon-hero__frame { min-height: 0; }
  .neon-hero__content { padding: var(--space-5) var(--space-4) 4.5rem; }
  .neon-hero__pill, .neon-hero__lede, .neon-hero__quick { display: none; }
  .neon-hero__title { font-size: clamp(2.4rem, 11vw, 3rem); margin-bottom: var(--space-3); }
  .glass-search__input { min-height: 44px; }
  .glass-search__go, .glass-search__mic { min-height: 44px; height: 44px; }
  .neon-hero__caption { bottom: var(--space-3); }
  .neon-hero__caption-link { padding: 6px 12px; }
  .neon-hero__caption-title { font-size: var(--text-base); }
  .section__head { flex-wrap: nowrap; }
  .section__head > :first-child { min-width: 0; }
  .section__head .pill-link, .picked-row__actions { flex: none; }
  .dept-slider__track { grid-auto-columns: 76px; gap: var(--space-3); }
  .dept-tile__photo { width: 76px; }
  .dept-tile__name { font-size: var(--text-xs); }
  .home.v3 { --section-gap: var(--space-6); }
  .ai-fab { width: 48px; height: 48px; }
  .ai-fab svg { width: 22px; height: 22px; }
  /* Ideas: a sideways row instead of four tall rows */
  .idea-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: var(--space-2); }
  .idea-cards::-webkit-scrollbar { display: none; }
  .idea-cards > li { scroll-snap-align: start; }
  .theme-row .product-grid { grid-auto-columns: 46%; gap: var(--space-2); scrollbar-width: none; }
  .theme-row .product-grid::-webkit-scrollbar { display: none; }
}
body:has(.buy-bar) .ai-fab { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 72px); }

/* ---------- Product page (design audit, Nov 2026) ---------- */
/* Swipeable photos */
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; place-items: initial; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gallery__slide { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: center; padding: var(--space-3); }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery { position: relative; }
/* Desktop: the photo stays beside the details while you scroll (the 152 px offset only applies when sticky). */
@media (min-width: 56rem) { .gallery { position: sticky; top: 9.5rem; } }
.gallery__count { position: absolute; top: var(--space-3); right: var(--space-3); margin: 0; padding: 2px 10px; border-radius: 999px;
  background: rgb(22 22 24 / 0.7); color: #fff; font-size: var(--text-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.gallery__thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.gallery__thumb { flex: none; border-radius: var(--r-ctl); outline-offset: 0; }
.gallery__thumb[aria-current="true"] { outline: 2px solid var(--crimson); outline-offset: 0; }
/* Seller: one tidy row, store name as a link, WhatsApp as a smaller chip */
.seller-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px var(--space-3); padding: var(--space-3) var(--space-4); }
.seller-box__label { grid-column: 1; }
.seller-box__store-link { grid-column: 1; min-height: 0; margin: 0; padding: 0; border-radius: 0; background: none; color: var(--text);
  font-family: var(--font-display); font-size: var(--text-lg); text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 3px; }
.seller-box__store-link:hover { color: var(--crimson); filter: none; transform: none; }
.seller-box .wa-button { grid-column: 2; grid-row: 1 / span 2; margin: 0; min-height: 40px; padding: 0 12px; font-size: var(--text-sm); }
.seller-box > .muted { grid-column: 1 / -1; font-size: var(--text-sm); }
/* One consistent stepper */
:root .qty__control > .qty__btn { background: var(--surface-raised); color: var(--text); border: 1.5px solid var(--border); }
:root .qty__control > .qty__btn:not(:disabled):hover { background: var(--crimson); border-color: var(--crimson); color: #fff; }
:root .qty__control > .qty__btn:first-child { border-right: 0; }
:root .qty__control > .qty__btn:last-child { border-left: 0; }
/* Breadcrumb: on phones, one line back to the parent only */
@media (max-width: 40rem) {
  .breadcrumbs li { display: none; }
  .breadcrumbs li:nth-last-child(2) { display: block; }
  .breadcrumbs li:nth-last-child(2)::after { content: none; }
  .breadcrumbs li:nth-last-child(2) a::before { content: "‹ "; }
  .breadcrumbs ol { margin-bottom: var(--space-3); }
}
/* Pinned buy bar (below desktop width) */
.buy-bar { display: none; }
@media (max-width: 63.99rem) {
  .buy-bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-2) max(var(--space-4), env(safe-area-inset-right)) max(var(--space-2), env(safe-area-inset-bottom)) max(var(--space-4), env(safe-area-inset-left));
    background: var(--glass-light, rgb(255 255 255 / 0.82)); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx);
    box-shadow: 0 -1px 0 var(--border-subtle), 0 -8px 24px rgb(0 0 0 / 0.08); }
  .buy-bar__price { flex: 1; display: grid; line-height: 1.15; min-width: 0; }
  .buy-bar__price strong { font-family: var(--font-display); font-size: 1.375rem; font-variant-numeric: tabular-nums; }
  .buy-bar__price span { font-size: var(--text-xs); color: var(--text-muted); }
  .buy-bar .btn { min-width: 9.5rem; }
  .buy-bar__out { font-weight: 700; color: var(--text-muted); }
  body:has(.buy-bar) .site-footer { padding-bottom: 5rem; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .buy-bar { background: rgb(38 38 38 / 0.86); } }
:root[data-theme="dark"] .buy-bar { background: rgb(38 38 38 / 0.86); }
@media (prefers-reduced-motion: no-preference) { .buy-bar { animation: sheet-in 220ms var(--ease-out); } }
:root .qty__control > .qty__input { border-radius: 0; }
@media (max-width: 40rem) { .h-section, .product-section h2 { font-size: clamp(1.5rem, 7vw, 1.875rem); } }

/* ---------- Category pages (design audit, Nov 2026): products first, ranges below, long lists folded ---------- */
.section__title { margin: 0 0 var(--space-4); }
.group-card__more summary { min-height: 32px; padding: 3px 0; color: var(--link); font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.group-card__more[open] summary { margin-bottom: 2px; }
@media (max-width: 40rem) {
  .page-header--dept { flex-direction: row; align-items: flex-start; gap: var(--space-3); }
  .page-header--dept .page-header__lede + .page-header__lede { display: none; }
  .page-header--dept .page-header__photo { width: 56px; height: 56px; flex: none; }
  .page-header--dept h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .page-header__lede { font-size: var(--text-sm); }
}

/* Department bar: arrows at the ends; the row fades only on the side that has more. */
.category-rail__scroller { display: contents; }
.category-rail__arrow { display: none; }
@media (min-width: 48rem) {
  .category-rail__scroller { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
  .category-rail__scroller .category-rail__list { padding-inline: var(--space-2); }
  .category-rail__scroller.at-end .category-rail__list { mask-image: none; }
  .category-rail__scroller:not(.at-start):not(.at-end) .category-rail__list { mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); }
  .category-rail__scroller.at-end:not(.at-start) .category-rail__list { mask-image: linear-gradient(to right, transparent, #000 2.5rem); }
  .category-rail__arrow { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: rgb(255 255 255 / 0.12); color: var(--chrome-text); font-size: 1.25rem; line-height: 1; cursor: pointer; }
  .category-rail__arrow:hover { background: var(--crimson); color: #fff; }
  .category-rail__arrow[hidden] { display: none; }
}

/* ---------- Admin overview, money first (design audit, Nov 2026) ---------- */
.cc { display: grid; gap: var(--space-4); }
.cc-grid--kpi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.cc-grid--small .cc-card { padding: var(--space-3) var(--space-4); }
.cc-grid--small .cc-card__value { font-size: 1.375rem; }
.cc-clear { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--r-card); background: var(--surface-raised);
  border: 1px solid var(--border-subtle); color: var(--text-muted); }
.cc-split { display: grid; gap: var(--space-4); }
@media (min-width: 64rem) { .cc-split { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.cc-panel { padding: var(--space-4); border-radius: var(--r-card); background: var(--surface-raised); border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 18px 32px -24px rgba(0,0,0,.35); min-width: 0; }
.cc-panel .viz { margin: 0; }
.cc-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.cc-panel__head .viz__title { margin: 0; }
.cc-orders { margin: 0; padding: 0; list-style: none; display: grid; }
.cc-orders li + li { border-top: 1px solid var(--border-subtle); }
.cc-orders__row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--space-3); min-height: 48px;
  padding: var(--space-2) 0; color: var(--text); text-decoration: none; }
.cc-orders__row:hover .cc-orders__no { color: var(--link); text-decoration: underline; }
.cc-orders__no { font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-orders__meta { color: var(--text-muted); font-size: var(--text-sm); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-orders__status { padding: 3px 10px; border-radius: 999px; background: var(--surface); font-size: var(--text-xs); font-weight: 700; }
.cc-orders__status--paid, .cc-orders__status--processing { background: #fff3c4; color: #5c4400; }
.cc-orders__status--shipped, .cc-orders__status--delivered, .cc-orders__status--completed { background: #d9f2e1; color: #0f5229; }
.cc-orders__status--cancelled, .cc-orders__status--refunded, .cc-orders__status--partially_refunded { background: var(--surface); color: var(--text-muted); }
.cc-orders__total { font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) {
  .cc-orders__row { grid-template-columns: 1fr auto; }
  .cc-orders__meta { grid-column: 1; grid-row: 2; }
  .cc-orders__status { grid-column: 2; grid-row: 2; justify-self: end; }
}
.cc-pages--light li { background: var(--surface); }

/* Admin: section finder (desktop sidebar only; on phones the sections are a sideways strip) */
.admin__find, .admin__find-none { display: none; }
@media (min-width: 64rem) {
  .admin__find { display: block; margin: 0 0 var(--space-2); }
  .admin__find-input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
    background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: var(--text-sm); }
  .admin__find-input::placeholder { color: #a9a9ae; opacity: 1; }
  .admin__find-input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .admin__find-none { display: block; margin: var(--space-2) var(--space-3); color: #c8c8cc; font-size: var(--text-sm); }
}
@media (min-width: 64rem) { .cc-grid--small { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Header at 320 px: the tools row may shrink (the "Deliver to" chip truncates) instead of widening the page. */
@media (max-width: 47.99rem) {
  .site-header__inner { grid-template-columns: auto minmax(0, 1fr); }
  .site-tools { min-width: 0; }
  .site-tools > li { min-width: 0; }
  .site-search { min-width: 0; }
}
@media (max-width: 22.5rem) { .site-tools__link { padding: 0 4px; } .site-tools { gap: 0; } }
/* Seller box on very narrow phones: WhatsApp under the name */
@media (max-width: 22.5rem) {
  .seller-box { grid-template-columns: 1fr; }
  .seller-box .wa-button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--space-2); }
}
.cart__groups, .cart-seller { min-width: 0; }
.summary-panel__sound .sound-toggle { color: var(--text-muted); }
.summary-panel__sound .sound-toggle:hover { color: var(--text); }
@media (max-width: 22.5rem) { .site-header__inner { column-gap: var(--space-2); } .site-logo img { height: 38px; } }
/* Press and hold in a sideways row: a green bar fills along the card bottom for 0.7 s before it adds. */
.tag-swipe::after { content: ""; position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 6px; height: 4px; border-radius: 999px;
  background: #15803d; transform: scaleX(0); transform-origin: left; pointer-events: none; opacity: 0; }
.tag-swipe.is-holding::after { opacity: 1; transform: scaleX(1); transition: transform 700ms linear, opacity 120ms; }

/* ===================== 7.5b · admin flag switch ===================== */
.flag-panel { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4, 1rem); margin-bottom: var(--space-4, 1rem); }
.flag-panel__title { font-weight: 600; margin: 0 0 0.25rem; }
.flag-panel .panel__text { margin: 0; }

/* ===================== 7.5b · product page ===================== */
/* Photo and details start on the same line; the photo never runs taller than the screen. */
@media (min-width: 56rem) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
  .gallery__track { max-height: calc(100vh - 12rem); aspect-ratio: 1; }
  .gallery__slide { padding: var(--space-2); }
}
/* Save button: readable in light and dark. */
:root .heart--large { color: var(--text); }
:root .heart--large.is-on { color: var(--crimson); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .heart--large.is-on { color: #ff8a9b; } }
:root[data-theme="dark"] .heart--large.is-on { color: #ff8a9b; }

/* ===================== 7.5b · home: hire + sell side by side, install box ===================== */
.duo-cards { display: grid; gap: var(--space-4); }
@media (min-width: 48rem) { .duo-cards { grid-template-columns: 1fr 1fr; } }
.sell-card--half { min-height: 100%; }
.sell-card--half .sell-card__body { padding: clamp(1.25rem, 3vw, 2.25rem); align-content: center; }
.sell-card--half .h-section { font-size: clamp(1.625rem, 3vw, 2.25rem); margin: 0; }
.sell-card--half p { font-size: var(--text-base); }
.install__how { display: grid; gap: var(--space-2); }
.install__how summary { list-style: none; cursor: pointer; width: max-content; }
.install__how summary::-webkit-details-marker { display: none; }
.install__how ul { margin: var(--space-2) 0 0; padding-left: 1.1rem; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.install__how li { color: inherit; }
.home-app .install__how { grid-column: 2; grid-row: 1 / span 2; justify-items: end; }
.home-app .install__how[open] { grid-column: 1 / -1; grid-row: auto; justify-items: start; }
.home-app .install__how summary { background: var(--crimson); color: #fff; }
@media (max-width: 47.99rem) { .home-app .install__how { grid-column: 1; grid-row: auto; justify-items: start; } }
.site-footer__app { flex: 1 1 16rem; color: var(--chrome-text-muted, #c7c7cc); }
.site-footer__app .install__how ul { color: var(--chrome-text-muted, #c7c7cc); }

/* ===================== 7.5b · sign-in pages ===================== */
/* The photo matches the card's height instead of a fixed 36rem, so there is no empty band under the form. */
@media (min-width: 56rem) { .auth__photo { min-height: 0; max-height: 34rem; } .auth { align-items: stretch; } }
.auth__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Short pages (accept updated terms, finish setting up): one centred card, no photo. */
.auth--solo { grid-template-columns: minmax(0, 32rem) !important; justify-content: center; padding-block: var(--space-6) var(--space-7); }

/* ===================== 7.5b · Hire a handyman ===================== */
.services-hero { margin-top: var(--space-4); min-height: clamp(18rem, 34vw, 24rem); align-content: center; }
.services-hero h1 { color: #fff; margin: 0; max-width: 16ch; }
.services-hero__kicker { margin: 0; color: #fff !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--text-sm) !important; opacity: 0.9; }
.services-page .section__title { margin: 0 0 var(--space-5); }
.services-page .section-gap { margin-top: var(--space-7); }
.services-page .trade-grid { gap: var(--space-3); }
.services-page .trade-card { min-height: 64px; }
.services-page .trade-card__icon { background: var(--crimson); color: #fff; }

/* ===================== 7.5b · tape-measure scroll bar ===================== */
.tape { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 10px; pointer-events: none; opacity: 0; transition: opacity 200ms ease; }
.tape.is-out { opacity: 1; }
.tape__blade { height: 8px; width: calc(var(--tape, 0) * 100%); border-radius: 0 2px 2px 0;
  background:
    repeating-linear-gradient(90deg, #262626 0 1.5px, transparent 1.5px 50px) top left / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, #262626 0 1px, transparent 1px 10px) top left / 100% 4px no-repeat,
    #ffc72c;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.35); }
.tape__case { position: absolute; top: -3px; left: min(calc(var(--tape, 0) * 100% - 4px), calc(100% - 22px)); width: 22px; height: 16px; border-radius: 4px 7px 7px 4px;
  background: linear-gradient(180deg, #b3001d, #960018); box-shadow: 0 2px 6px rgb(0 0 0 / 0.35), inset 0 0 0 1.5px rgb(255 255 255 / 0.25); }
.tape__case::after { content: ""; position: absolute; inset: 4px 6px; border-radius: 50%; background: rgb(255 255 255 / 0.85); }
html.is-admin .tape { display: none; }
@media print { .tape { display: none; } }

/* ===================== 7.5b · hammer cursor (mouse only, switchable) ===================== */
html.fun-cursor:not(.is-admin), html.fun-cursor:not(.is-admin) * { cursor: url("/assets/img/cursor/hammer.svg") 3 17, auto; }
html.fun-cursor.is-striking:not(.is-admin), html.fun-cursor.is-striking:not(.is-admin) * { cursor: url("/assets/img/cursor/hammer-hit.svg") 7 25, auto; }
html.fun-cursor :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="button"], [type="submit"]), textarea, [contenteditable="true"]) { cursor: text !important; }
.site-footer__toggles { display: flex; flex-wrap: wrap; gap: var(--space-3); }
html.fun-cursor :is(:disabled, [aria-disabled="true"]) { cursor: not-allowed !important; }
@media (hover: none), (pointer: coarse) { .hammer-toggle { display: none; } }
.ai-fab__label small { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: rgb(255 255 255 / 0.22); font-size: 0.7em; font-weight: 700; letter-spacing: 0.04em; vertical-align: 1px; }

/* ===================== 7.5c · filter panel ===================== */
.fp__toggle { display: none; }
.fp__scrim, .fp__close, .fp__done { display: none; }
.fp__panel { display: grid; gap: 0; padding: var(--space-2) var(--space-4) var(--space-4); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
@media (min-width: 56rem) { .fp__panel { position: sticky; top: 9.5rem; max-height: calc(100vh - 11rem); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.fp__top { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0 var(--space-3); border-bottom: 1px solid var(--border-subtle); }
.fp__title { margin: 0; flex: 1; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.fp__clearall, .fp__clear, .fp__more { font-size: var(--text-sm); font-weight: 600; color: var(--link); background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; }
.fp__group { border-bottom: 1px solid var(--border-subtle); }
.fp__group:last-of-type { border-bottom: 0; }
.fp__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 700; cursor: pointer; list-style: none; }
.fp__head::-webkit-details-marker { display: none; }
.fp__head::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 160ms ease; opacity: 0.6; }
.fp__group:not([open]) .fp__head::after { transform: rotate(-45deg); }
.fp__body { display: grid; gap: var(--space-2); padding-bottom: var(--space-3); }
.fp__list { display: grid; gap: 2px; }
.fp__check { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-2); min-height: 36px; padding: 2px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; }
.fp__check:hover { background: var(--surface-raised); }
.fp__check input { width: 18px; height: 18px; accent-color: var(--crimson); margin: 0; }
.fp__check.is-off { opacity: 0.45; cursor: default; }
.fp__label { min-width: 0; overflow-wrap: anywhere; }
.fp__count { min-width: 2.25rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-raised); color: var(--text-muted); font-size: var(--text-xs); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.fp__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fp__link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%; min-height: 36px; padding: 4px 6px; margin: 0 -6px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.fp__link:hover { background: var(--surface-raised); color: var(--link); }
.fp__back .fp__link { color: var(--link); font-weight: 600; }
.fp__current { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 4px 8px; margin: 2px -6px; border-radius: 8px; background: rgb(150 0 24 / 0.1); font-weight: 700; color: var(--text); box-shadow: inset 3px 0 0 var(--crimson); }
.fp__child { padding-left: var(--space-3); }
.fp__bars { display: flex; align-items: flex-end; gap: 2px; height: 56px; padding: 0 2px; }
.fp__bar { flex: 1; min-width: 0; height: 4%; padding: 0; border: 0; border-radius: 3px 3px 0 0; background: var(--border); cursor: pointer; transition: background 150ms ease; }
.fp__bar.is-on { background: var(--crimson); }
.fp__bar:hover { background: var(--crimson-deep, #6e0012); }
.fp__bar[data-h="1"] { height: 12%; } .fp__bar[data-h="2"] { height: 20%; } .fp__bar[data-h="3"] { height: 30%; } .fp__bar[data-h="4"] { height: 40%; }
.fp__bar[data-h="5"] { height: 50%; } .fp__bar[data-h="6"] { height: 60%; } .fp__bar[data-h="7"] { height: 70%; } .fp__bar[data-h="8"] { height: 80%; }
.fp__bar[data-h="9"] { height: 90%; } .fp__bar[data-h="10"] { height: 100%; }
.fp__range { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.fp__price { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.fp__price .input { min-height: 40px; padding-inline: 10px; }
.fp__find { min-height: 40px; }
.fp__none { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.fp__stars { display: inline-flex; align-items: center; gap: 2px; }
.fp__stars svg { width: 16px; height: 16px; fill: var(--border); }
.fp__stars svg.is-on { fill: #f5a623; }
.fp__stars span { margin-left: 4px; font-size: var(--text-sm); color: var(--text-muted); }
/* Phones and tablets: a "Filter" button opens the panel as a sheet from the left */
@media (max-width: 55.99rem) {
  .fp__toggle { display: inline-flex; }
  .fp__panel { position: fixed; z-index: 70; inset: 0 auto 0 0; width: min(88vw, 22rem); border-radius: 0 var(--r-card) var(--r-card) 0; overflow: auto;
    padding-bottom: 0; transform: translateX(-102%); transition: transform 240ms var(--ease-out); visibility: hidden; }
  .fp.is-open .fp__panel { transform: none; visibility: visible; }
  .fp.is-open .fp__scrim { display: block; position: fixed; inset: 0; z-index: 69; background: rgb(0 0 0 / 0.45); }
  .fp__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-raised); color: var(--text); cursor: pointer; }
  .fp__done { display: block; position: sticky; bottom: 0; padding: var(--space-3) 0; background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) { .fp__panel { transition: none; } }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
.results-bar__count { margin: 0; font-weight: 600; color: var(--text-muted); }
.results-bar__sort { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; }
.results-bar__sort .select { min-height: 40px; width: auto; }
@media (max-width: 55.99rem) { .sidebar-layout > aside { position: static; } .sidebar-layout { gap: var(--space-3); } }

/* ===================== 7.5c · card rating ===================== */
.tag__rating { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.2; }
.tag__rating svg { width: 15px; height: 15px; fill: #f5a623; flex: none; }
.tag__rating strong { color: var(--text); font-weight: 700; }
.tag__rating--none svg { fill: none; stroke: var(--text-muted); stroke-width: 1.6; }
.tag__rating--none { font-size: var(--text-xs); }

/* ===================== 7.5c · product page: photo | details | buy box ===================== */
.pdp { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); align-items: start; }
/* Phones: photo, title, price box, then the details. Computers: photo | title and details | price box. */
@media (min-width: 56rem) {
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "gallery head" "gallery buy" "gallery info"; }
}
@media (min-width: 72rem) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(17rem, 0.72fr); grid-template-areas: "gallery head buy" "gallery info buy"; grid-template-rows: auto 1fr; }
  .pdp__buy { position: sticky; top: 9.5rem; }
}
@media (min-width: 56rem) {
  .pdp > .gallery { grid-area: gallery; } .pdp__head { grid-area: head; } .pdp__buy { grid-area: buy; } .pdp__info { grid-area: info; }
}
.pdp__head { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.pdp__head .product-buy__title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; }
.pdp__head .product-buy__brand { margin: 0; }
.pdp__info { display: grid; gap: var(--space-3); align-content: start; min-width: 0; }
.pdp__info .product-buy__title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; }
.pdp__info .product-buy__brand { margin: 0; }
.pdp__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-subtle); }
.pdp__rating { margin: 0; color: inherit; text-decoration: none; }
.pdp__rating .stars { margin: 0; }
.pdp__rating--none { font-size: var(--text-sm); color: var(--text-muted); }
.pdp__share { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.pdp__share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pdp__share:hover { border-color: var(--crimson); color: var(--link); }
.pdp__points { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; color: var(--text); }
.pdp__points li::marker { color: var(--crimson); }
.pdp__perks { list-style: none; margin: 0; padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-2); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); font-size: var(--text-sm); }
.pdp__perks li { display: flex; align-items: center; gap: var(--space-2); }
.pdp__perks svg { width: 20px; height: 20px; flex: none; color: var(--crimson); }
.pdp__buy { display: grid; gap: var(--space-3); padding: var(--space-5); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--border-subtle); min-width: 0; }
.pdp__buy .product-buy__price { margin: 0; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.pdp__buy .stock { margin: 0; }
.pdp__buy .heart--large { justify-self: stretch; justify-content: center; }
.pdp__was { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pdp__buy { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 0 0 1px rgb(150 0 24 / 0.25), 0 18px 40px -24px rgb(150 0 24 / 0.6); } }
:root[data-theme="dark"] .pdp__buy { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 0 0 1px rgb(150 0 24 / 0.25), 0 18px 40px -24px rgb(150 0 24 / 0.6); }
/* Thumbnails down the side on computers */
@media (min-width: 56rem) {
  .gallery:has(.gallery__thumbs) { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
  .gallery:has(.gallery__thumbs) .gallery__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; overflow-y: auto; max-height: calc(100vh - 12rem); margin: 0; }
  .gallery:has(.gallery__thumbs) .gallery__track { grid-column: 2; grid-row: 1; }
  .gallery:has(.gallery__thumbs) .gallery__count { right: var(--space-3); }
}
/* Seller: name as a red button beside WhatsApp */
.seller-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.seller-box__label { flex: 1 0 100%; margin: 0; }
:root .seller-box__store-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--crimson); color: #fff;
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; text-decoration: none; }
:root .seller-box__store-link:hover { color: #fff; background: var(--crimson-deep, #6e0012); transform: translateY(-1px); }
.seller-box .wa-button { margin: 0; min-height: 40px; }
.seller-box > .muted { flex: 1 0 100%; margin: 0; }
/* You might also like: arrows */
.pdp-related__nav { display: flex; align-items: center; gap: var(--space-2); }
.row-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.row-arrow:hover { border-color: var(--crimson); color: var(--link); }
@media (max-width: 40rem) { .row-arrow { display: none; } }

/* ===================== 7.5c · spacing, red light accents ===================== */
/* Sections sat up to 144 px apart on computers, which read as empty page. */
:root { --section-gap: clamp(2.5rem, 4.5vw, 4.25rem); }
.home-app { margin-block: 0 var(--space-6); }
/* The hero keeps its red neon edge on computers and tablets (owner's choice). */
@media (min-width: 40.01rem) {
  .neon-hero__frame { box-shadow: 0 0 0 1px var(--neon), 0 0 18px var(--neon-soft), 0 0 60px rgb(255 42 79 / 0.18), var(--shadow-lift); }
}
/* Red cards share the same soft red glow, and lift on hover. */
.sell-card { box-shadow: 0 0 0 1px rgb(255 42 79 / 0.35), 0 0 22px rgb(255 42 79 / 0.18), var(--shadow-card); transition: transform 220ms var(--ease-smooth), box-shadow 220ms var(--ease-smooth); }
.sell-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--neon), 0 0 28px var(--neon-soft), var(--shadow-lift); }
@media (prefers-reduced-motion: reduce) { .sell-card, .sell-card:hover { transition: none; transform: none; } }

/* ===================== 7.5c · Hire a handyman blocks ===================== */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: none; }
@media (min-width: 48rem) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-step { position: relative; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border-radius: var(--r-card); background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--border-subtle); transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth); outline-offset: 3px; }
.how-step:hover, .how-step:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--neon), 0 0 24px var(--neon-soft), var(--shadow-lift); }
.how-step p { margin: 0; color: var(--text-muted); }
.how-step__title { margin: 0; font-family: var(--font-display); font-size: var(--text-xl, 1.5rem); }
.how-step__num { position: absolute; top: var(--space-4); right: var(--space-4); font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: rgb(150 0 24 / 0.18); }
.how-step__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--crimson); color: #fff; box-shadow: 0 0 18px var(--neon-soft); }
.how-step__icon svg { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .how-step__num { color: rgb(255 138 155 / 0.22); } }
:root[data-theme="dark"] .how-step__num { color: rgb(255 138 155 / 0.22); }
.trust-note { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--r-card); background: var(--surface-raised); box-shadow: inset 3px 0 0 var(--crimson); }
.trust-note p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); max-width: 75ch; }
.trust-note__icon svg { width: 22px; height: 22px; color: var(--crimson); }
.join-card { grid-template-columns: 1fr; align-items: center; }
@media (min-width: 56rem) { .join-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.join-card__perks { list-style: none; margin: 0; padding: 0 clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem); display: grid; gap: var(--space-2); }
@media (min-width: 56rem) { .join-card__perks { padding: clamp(1.5rem, 4vw, 3rem); } }
.join-card__perks li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-ctl); background: rgb(255 255 255 / 0.12); color: #fff; font-weight: 600;
  -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft); box-shadow: var(--glass-rim-dark), var(--glass-hi); transition: transform 180ms var(--ease-smooth), background 180ms ease; }
.join-card__perks li:hover { transform: translateX(4px); background: rgb(255 255 255 / 0.2); }
.join-card__perks svg { width: 20px; height: 20px; flex: none; }
.services-page .section-gap { margin-top: var(--section-gap); }
@media (prefers-reduced-motion: reduce) { .how-step, .join-card__perks li { transition: none; } .how-step:hover, .how-step:focus-visible, .join-card__perks li:hover { transform: none; } }
.services-page .trade-card { transition: transform 180ms var(--ease-smooth), box-shadow 180ms var(--ease-smooth); }
.services-page .trade-card:hover, .services-page .trade-card:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--neon), 0 0 20px var(--neon-soft), var(--shadow-card); }

/* ===================== PCH-1 · newsletter, pop-up, bell ===================== */
.news-form { display: grid; gap: var(--space-3); }
.news-form .checkbox { margin: 0; }
.news-form__row { display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .news-form__row { grid-template-columns: 1fr 1fr; } }
.news-form__row .field { margin: 0; }
.news-form__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl, 1.5rem); }
.news-form__small { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.news-form__more summary { cursor: pointer; font-weight: 600; color: var(--link); min-height: 32px; }
.news-form__more[open] { display: grid; gap: var(--space-3); }
.news-form .btn { justify-self: start; }
.news-form--done p { margin: 0 0 var(--space-2); }
.news-pop { display: grid; gap: var(--space-3); }
.news-pop__lede { margin: 0; }
/* Footer band */
.news-band { display: grid; gap: var(--space-4); align-items: center; margin: 0 0 var(--space-6); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-card);
  background: linear-gradient(120deg, #960018, #6e0012); color: #fff; box-shadow: 0 0 0 1px rgb(255 42 79 / 0.35), 0 0 22px rgb(255 42 79 / 0.18); }
@media (min-width: 56rem) { .news-band { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.news-band__title { margin: 0 0 var(--space-2); color: #fff; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); }
.news-band p { margin: 0; color: rgb(255 255 255 / 0.88); }
.news-band .field__label, .news-band .checkbox__label, .news-band .news-form__small { color: #fff; }
.news-band .news-form__small a, .news-band a { color: #fff; }
.news-band .btn--primary { background: #fff; color: #960018; }
.news-band .btn--primary:hover { background: #ffe1e6; }
.news-band .field__error { color: #fff; background: rgb(0 0 0 / 0.25); padding: 4px 8px; border-radius: 6px; }
/* /newsletter page */
.news-page__grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 56rem) { .news-page__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.news-page__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.news-page__perks li { padding: var(--space-4); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card), inset 3px 0 0 var(--crimson); }
/* Bell */
.bell { position: relative; }
.bell__btn { position: relative; }
.bell__count { position: absolute; top: 2px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--crimson); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--chrome, #262626); }
.bell__panel { position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; width: min(92vw, 22rem); max-height: 70vh; overflow: auto; padding: var(--space-3);
  border-radius: var(--r-card); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift), 0 0 0 1px var(--border-subtle); }
.bell__head { margin: 0 0 var(--space-2); font-weight: 700; }
.bell__empty { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.bell__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bell__item { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: 10px; color: var(--text); text-decoration: none; }
a.bell__item:hover { background: var(--surface-raised); }
.bell__item span { font-size: var(--text-sm); color: var(--text-muted); }
.bell__item small { font-size: var(--text-xs); color: var(--text-muted); }
.bell__list li.is-new .bell__item { box-shadow: inset 3px 0 0 var(--crimson); }
.bell__foot { display: block; margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border-subtle); font-size: var(--text-sm); }
@media (max-width: 40rem) { .bell__panel { position: fixed; top: 4.5rem; right: 8px; left: 8px; width: auto; } }
.gender-pref { width: auto; min-width: 11rem; }

/* ===================== PCH-1 · Communication Centre ===================== */
.comms { display: grid; gap: var(--space-4); }
.comms-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.comms-kpis .cc-kpi small { display: block; color: var(--text-muted); font-size: var(--text-xs); }
.comms-tabs { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.comms-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.comms-card { display: grid; gap: var(--space-3); }
.comms-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.comms-card__name { margin: 0; font-weight: 700; font-size: var(--text-lg); }
.comms-card .panel__text { margin: 2px 0 0; }
.comms-card__stats { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.comms-stat { padding: var(--space-3); border-radius: var(--r-ctl); background: var(--surface-raised); }
.comms-stat p { margin: 0; font-size: var(--text-sm); }
.comms-stat__ch { font-weight: 700; }
.comms-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.status-chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; background: var(--surface-raised); color: var(--text); }
.status-chip--sending { background: #e4f3df; color: #1f5e2e; }
.status-chip--scheduled, .status-chip--paused { background: #fff1c2; color: #6b4e00; }
.status-chip--sent { background: #e6eefb; color: #1b3f7a; }
.status-chip--cancelled { background: var(--surface-raised); color: var(--text-muted); }
.comms-compose { display: grid; gap: var(--space-4); }
.comms-compose__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.comms-compose__head .panel__sub { margin: 0; }
.steps-bar { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.steps-bar__btn { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.steps-bar__btn.is-on { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.comms-compose__grid { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 64rem) { .comms-compose__grid { grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr); } }
.comms-compose__form, .comms-aud, .comms-msg, .comms-when { display: grid; gap: var(--space-3); }
.comms-compose__nav { display: flex; justify-content: space-between; gap: var(--space-2); }
.comms-compose__side { display: grid; gap: var(--space-3); }
@media (min-width: 64rem) { .comms-compose__side { position: sticky; top: var(--space-4); } }
.comms-reach { padding: var(--space-3) var(--space-4); border-radius: var(--r-card); background: var(--surface-raised); }
.comms-reach__title { margin: 0 0 var(--space-1); font-weight: 700; }
.comms-reach ul { margin: 0; padding-left: 1.1rem; }
.comms-problems { margin: 0; padding: var(--space-3) var(--space-3) var(--space-3) 2rem; border-radius: var(--r-ctl); background: rgb(150 0 24 / 0.08); color: var(--text); }
.comms-preview__label { margin: 0 0 var(--space-1); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.comms-preview__mail { padding: var(--space-4); border-radius: var(--r-card); background: #fff; color: #393939; box-shadow: inset 0 4px 0 #960018, 0 0 0 1px #e3e3e6; font-size: var(--text-sm); }
.comms-preview__mail p { margin: 0 0 var(--space-2); }
.comms-preview__kicker { color: #960018; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.comms-preview__subject { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #262626; }
.comms-preview__btn { display: inline-block; margin: var(--space-2) 0; padding: 8px 16px; border-radius: 8px; background: #960018; color: #fff; font-weight: 700; }
.comms-preview__foot { color: #6b6b70; font-size: 11px; }
.comms-preview__wa { margin: 0; padding: var(--space-3); border-radius: 12px 12px 12px 2px; background: #dcf8c6; color: #111; white-space: pre-wrap; font-size: var(--text-sm); }
.comms-wa__list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 4px; }
.comms-wa__list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--r-ctl); background: var(--surface-raised); }
.comms-wa__list li span { flex: 1 1 12rem; }
.comms-wa__list li.is-done { opacity: 0.6; }
.comms-wa__state { flex: 0 0 auto !important; font-weight: 600; }
.comms-wa__progress { display: grid; gap: 6px; margin: var(--space-3) 0; font-weight: 600; }
.comms-wa__progress progress { width: 100%; height: 10px; accent-color: var(--crimson); }
.comms-people__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-2); }
.comms-people__bar .input { max-width: 18rem; }
.comms-settings { display: grid; gap: var(--space-3); max-width: 40rem; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.checkbox-inline input { width: 18px; height: 18px; accent-color: var(--crimson); }

/* ---------------------------------------------------------------- PCH-2: messages, inbox, device alerts */
.messages { display: grid; gap: var(--space-3); }
.msg-thread { list-style: none; margin: 0; padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2);
  max-height: min(60vh, 34rem); overflow-y: auto; border-radius: var(--r-card); background: var(--surface-raised); overscroll-behavior: contain; }
.msg-thread__empty { margin: auto; padding: var(--space-4); color: var(--text-muted); text-align: center; }
.msg-thread__end { height: 1px; }
.msg { max-width: min(36rem, 88%); padding: var(--space-2) var(--space-3); border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: 0 0 0 1px var(--border-subtle); }
.msg--them { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--crimson); color: #fff; box-shadow: none; }
.msg__who { margin: 0 0 2px; font-size: var(--text-xs); font-weight: 700; opacity: 0.85; }
.msg__who time { font-weight: 400; margin-left: 6px; }
.msg__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-form { display: grid; gap: var(--space-2); }
.msg-form__text { min-height: 6rem; resize: vertical; }
.msg-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }

.inbox { display: grid; gap: var(--space-4); align-items: start; }
.inbox__side, .inbox__main { display: grid; gap: var(--space-3); min-width: 0; }
.inbox__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.inbox__filters .chip[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.inbox__search { display: flex; gap: var(--space-2); }
.inbox__search .input { flex: 1; min-width: 0; }
.inbox__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 70vh; overflow-y: auto; }
.inbox__item { width: 100%; display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle);
  border-radius: var(--r-ctl); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.inbox__item:hover { background: var(--surface-raised); }
.inbox__item.is-current { border-color: var(--crimson); box-shadow: inset 4px 0 0 var(--crimson); }
.inbox__who { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); overflow-wrap: anywhere; }
.inbox__preview { color: var(--text-muted); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.inbox__head > div { flex: 1 1 10rem; min-width: 0; }
.inbox__head p { margin: 0; overflow-wrap: anywhere; }
.inbox__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.inbox__empty { padding: var(--space-5) 0; }
/* Phones: the list, or the open conversation with a Back button. Wider: both side by side. */
.inbox--open .inbox__side { display: none; }
@media (min-width: 60rem) {
  .inbox { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); }
  .inbox--open .inbox__side { display: grid; }
  .inbox__back { display: none; }
}

.device-alerts { display: grid; gap: 0; }
.device-alerts__list { padding: var(--space-3) 0; border-top: 1px solid var(--border-subtle); }
.device-alerts__list ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 6px; }
.device-alerts__list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.order-alerts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-4);
  padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.order-alerts p { margin: 0; }
.comms-preview__alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); border-radius: 16px;
  background: #f2f2f4; color: #262626; box-shadow: 0 1px 3px rgb(0 0 0 / 0.15); font-size: var(--text-sm); }
.comms-preview__alert img { flex: none; border-radius: 8px; }
.comms-preview__alert p { margin: 0; overflow-wrap: anywhere; }
.comms-preview__alert-title { font-weight: 700; }
.contact-actions .contact-btn[type="button"] { font: inherit; cursor: pointer; }
/* 320 px with the staff "Admin" link and the Alerts bell: the "Deliver to" chip gives up a little width. */
@media (max-width: 22.5rem) { .site-tools__deliver .deliver-to__text { max-width: 3.9rem; } }

/* ---------------------------------------------------------------- PCH-3: promotions */
.tag__sale--deal { max-width: calc(100% - 64px); font-size: 11px; line-height: 1.25; }
/* --link is crimson on light surfaces and a lighter tint that passes 4.5:1 on dark ones */
.tag__offer { margin: 2px 0 0; font-size: var(--text-xs); font-weight: 600; color: var(--link); }
.pdp__offer { margin: 4px 0 0; font-size: var(--text-sm); }
.pdp__offer strong { color: var(--link); }
.notice--warn { border-left-color: #b8860b; }
.free-nudge { list-style: none; margin: 0; padding: var(--space-2) var(--space-3); display: grid; gap: 4px; border-radius: var(--r-ctl);
  background: var(--surface-raised); font-size: var(--text-sm); }
.deals-section { margin-bottom: var(--space-6); }
.deals-section__note { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--text-muted); }
.deals-section__next { margin-top: var(--space-4); }
.promo-panel { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.promo-form { display: grid; gap: var(--space-3); max-width: 46rem; }
.promo-form__code { text-transform: uppercase; }
.promo-form__scope { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: 0; padding: 0; border: 0; }
.promo-form__scope legend { width: 100%; margin-bottom: 4px; }
.promo-form__pick { display: grid; gap: var(--space-2); }
.promo-form__pick ul { list-style: none; margin: 0; padding: var(--space-2) var(--space-3); max-height: 16rem; overflow-y: auto;
  border: 1px solid var(--border-subtle); border-radius: var(--r-ctl); }
.promo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.promo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4); border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--border-subtle); }
.promo-row__main { flex: 1 1 18rem; min-width: 0; }
.promo-row__main p { margin: 0 0 2px; overflow-wrap: anywhere; }
.promo-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.promo-row__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.admin-promos { display: grid; gap: var(--space-4); }

/* ---------------------------------------------------------------- PCH-4: wallet */
.credit-toggle { margin: var(--space-2) 0; }
.refund-choice { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; }
.admin-wallets { display: grid; gap: var(--space-4); }
.wallet-panel { display: grid; gap: var(--space-3); }
.wallet-panel__balance { margin: 0; font-size: var(--text-lg); }
.wallet-panel .table-wrap { overflow-x: auto; }

/* ================================================================ PCH-5: admin glass look (follows light/dark)
   Light: frosted white cards on a soft grey with a faint crimson glow. Dark: glass on near-black with a
   crimson glow. Text contrast (WCAG 2.2 AA): light #262626/#4c4c4c on >= #f3f3f5; dark #f5f5f7/#d9d9d9
   on <= #2b2b2f; crimson text in dark uses --crimson-tint (>= 6:1 on these). Without backdrop-filter, or
   with reduced transparency, cards fall back to solid colours. */
.admin {
  --adm-bg: #f1f1f4; --adm-glow: rgb(150 0 24 / 0.10); --adm-glow-2: rgb(76 76 76 / 0.08);
  --adm-card: rgb(255 255 255 / 0.82); --adm-card-solid: #ffffff; --adm-border: rgb(38 38 38 / 0.09);
  --adm-tile: rgb(38 38 38 / 0.06); --adm-nav: rgb(255 255 255 / 0.78); --adm-nav-text: #393939; --adm-nav-muted: #5c5c61;
  --adm-hover: rgb(38 38 38 / 0.06); --adm-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 48px -32px rgb(38 38 38 / 0.35);
  --adm-count-bg: rgb(150 0 24 / 0.10); --adm-count-text: var(--crimson);
  --surface-raised: #ffffff; --surface: #f3f3f6; --border-subtle: #e2e2e7;
  --viz-1: #c0283c; --viz-2: #2a78d6; --viz-grid: #e2e2e7;
  --r-frame: 22px; --r-card: 18px;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--adm-glow), transparent 60%),
    radial-gradient(50rem 36rem at -10% 110%, var(--adm-glow-2), transparent 60%),
    var(--adm-bg);
  min-height: 100vh;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .admin {
    --adm-bg: #151517; --adm-glow: rgb(150 0 24 / 0.38); --adm-glow-2: rgb(150 0 24 / 0.14);
    --adm-card: rgb(255 255 255 / 0.045); --adm-card-solid: #1f1f22; --adm-border: rgb(255 255 255 / 0.09);
    --adm-tile: rgb(255 255 255 / 0.07); --adm-nav: rgb(28 28 31 / 0.72); --adm-nav-text: #ededf0; --adm-nav-muted: #a9a9ae;
    --adm-hover: rgb(255 255 255 / 0.07); --adm-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 30px 60px -36px rgb(0 0 0 / 0.9);
    --adm-count-bg: rgb(255 255 255 / 0.12); --adm-count-text: #ffffff;
    --surface-raised: #1f1f22; --surface: #2b2b2f; --border-subtle: rgb(255 255 255 / 0.10);
    --viz-1: #e0566a; --viz-2: #3987e5; --viz-grid: rgb(255 255 255 / 0.10);
  }
}
:root[data-theme="dark"] .admin {
  --adm-bg: #151517; --adm-glow: rgb(150 0 24 / 0.38); --adm-glow-2: rgb(150 0 24 / 0.14);
  --adm-card: rgb(255 255 255 / 0.045); --adm-card-solid: #1f1f22; --adm-border: rgb(255 255 255 / 0.09);
  --adm-tile: rgb(255 255 255 / 0.07); --adm-nav: rgb(28 28 31 / 0.72); --adm-nav-text: #ededf0; --adm-nav-muted: #a9a9ae;
  --adm-hover: rgb(255 255 255 / 0.07); --adm-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 30px 60px -36px rgb(0 0 0 / 0.9);
  --adm-count-bg: rgb(255 255 255 / 0.12); --adm-count-text: #ffffff;
  --surface-raised: #1f1f22; --surface: #2b2b2f; --border-subtle: rgb(255 255 255 / 0.10);
  --viz-1: #e0566a; --viz-2: #3987e5; --viz-grid: rgb(255 255 255 / 0.10);
}

/* Glass surfaces */
.admin__nav, .admin__panel, .admin .cc-card, .admin .cc-panel, .admin .cc-flow__item, .admin .live-pill {
  background: var(--adm-card); border: 1px solid var(--adm-border); box-shadow: var(--adm-shadow);
  -webkit-backdrop-filter: var(--glass-fx-soft); backdrop-filter: var(--glass-fx-soft);
}
.admin__nav { background: var(--adm-nav); color: var(--adm-nav-text); }
.admin__panel { border-radius: var(--r-frame); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .admin__nav, .admin__panel, .admin .cc-card, .admin .cc-panel, .admin .cc-flow__item, .admin .live-pill { background: var(--adm-card-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .admin__nav, .admin__panel, .admin .cc-card, .admin .cc-panel, .admin .cc-flow__item, .admin .live-pill {
    background: var(--adm-card-solid); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* Sidebar: every icon on its own little tile; the current section is a glowing crimson pill */
.admin__brand { color: var(--adm-nav-text); }
.admin__brand span { color: var(--crimson); }
.admin__group-title { color: var(--adm-nav-muted); }
.admin__link { color: var(--adm-nav-text); border-radius: 14px; }
.admin__link > svg { box-sizing: border-box; width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--adm-tile); opacity: 1;
  transition: background .2s ease, transform .2s ease; }
.admin__link:hover { background: var(--adm-hover); color: var(--adm-nav-text); }
.admin__link:hover > svg { transform: translateY(-1px) rotate(-4deg); }
.admin__link[aria-current="page"] { color: #fff; background: linear-gradient(135deg, #b0001d, var(--crimson) 55%, #5e0010);
  box-shadow: 0 10px 24px -10px rgb(150 0 24 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.08) inset; }
.admin__link[aria-current="page"] > svg { background: rgb(255 255 255 / 0.18); }
.admin__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.admin__badge { background: var(--adm-count-bg); color: var(--adm-count-text); font-weight: 700; }
.admin__link[aria-current="page"] .admin__badge { background: rgb(255 255 255 / 0.22); color: #fff; }
.admin__signout { color: var(--adm-nav-muted); }
.admin__find-input { background: var(--adm-tile); color: var(--adm-nav-text); border: 1px solid var(--adm-border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .admin__brand span { color: var(--crimson-tint); } }
:root[data-theme="dark"] .admin__brand span { color: var(--crimson-tint); }

/* Cards and the bento overview */
.admin .cc-card { border-radius: var(--r-card); }
.admin .cc-card__icon { background: var(--adm-tile); color: var(--link); border-radius: 12px; }
.admin .cc-card__value { font-size: 2rem; letter-spacing: -.01em; }
.cc-bento { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); perspective: 900px; }
@media (min-width: 56rem) {
  .cc-bento { grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: minmax(132px, auto); }
  .cc-hero2 { grid-row: span 2; }
}
.cc-hero2 {
  position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px; padding: var(--space-5);
  border-radius: var(--r-frame); color: #fff; text-decoration: none; isolation: isolate;
  background: radial-gradient(120% 120% at 100% 0%, #d4143a 0%, var(--crimson) 35%, #4a000d 100%);
  box-shadow: 0 30px 60px -30px rgb(150 0 24 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.08) inset;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cc-hero2::before { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.18), transparent); }
.cc-hero2:hover { transform: translateY(-2px); box-shadow: 0 36px 70px -30px rgb(150 0 24 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.12) inset; }
.cc-hero2:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cc-hero2__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffe1e6; }
.cc-hero2__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.2); }
.cc-hero2__big { font: 700 clamp(2.75rem, 7vw, 4.5rem)/.95 var(--font-display); letter-spacing: -.02em; text-shadow: 0 8px 28px rgb(0 0 0 / 0.25); }
.cc-hero2__sub { color: #ffe9ec; font-size: var(--text-sm); }
.cc-hero2__spark { display: block; width: 100%; height: 56px; margin-top: auto; padding-top: var(--space-3); }
.cc-hero2__area { fill: rgb(255 255 255 / 0.16); }
.cc-hero2__line { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend-chip { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cc-hero2 .trend-chip { background: rgb(255 255 255 / 0.18); color: #fff; }
.trend-chip--up { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.trend-chip--down { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

/* Charts: a gradient under every line */
.viz__area-top { stop-color: var(--viz-1); stop-opacity: .32; }
.viz__area-bottom { stop-color: var(--viz-1); stop-opacity: 0; }
.viz__line { stroke-width: 2.5; }
.admin .cc-panel { border-radius: var(--r-card); }
.admin .cc-flow__item { border-radius: 18px; }
.admin .cc-flow__icon { background: var(--adm-tile); }
.admin .live-pill { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .cc-hero2, .admin__link > svg { transition: none; } .cc-hero2:hover { transform: none; } }

/* ---------- PCH-5: seller badges (text always visible; colour only repeats it) */
.store-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.store-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 700; background: var(--surface); color: var(--text); border: 1px solid var(--border-subtle); }
.store-badge svg { width: 16px; height: 16px; flex: none; }
.store-badge--verified svg { color: var(--success); }
.store-badge--gold { background: #fdf3d7; color: #5c4300; border-color: #e9cf7f; }
.store-badge--silver { background: #eef0f3; color: #33373d; border-color: #c9ced6; }
.store-badge--bronze { background: #f8e9dd; color: #5e3414; border-color: #dcb18f; }
.store-badge__why { flex-basis: 100%; padding: 0 0 2px 21px; font-weight: 400; color: var(--text-muted); }
.store-badges__more { align-self: center; font-size: var(--text-xs); }
.store-badges--compact { margin: 2px 0 0; }
.store-badges--compact .store-badge { padding: 1px 8px 1px 4px; font-size: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .store-badge--gold { background: #3d3214; color: #ffe08a; border-color: #6b5a26; }
  :root:not([data-theme="light"]) .store-badge--silver { background: #33363b; color: #e4e7ec; border-color: #555a62; }
  :root:not([data-theme="light"]) .store-badge--bronze { background: #3d2a1c; color: #f3c49d; border-color: #6e4b31; }
}
:root[data-theme="dark"] .store-badge--gold { background: #3d3214; color: #ffe08a; border-color: #6b5a26; }
:root[data-theme="dark"] .store-badge--silver { background: #33363b; color: #e4e7ec; border-color: #555a62; }
:root[data-theme="dark"] .store-badge--bronze { background: #3d2a1c; color: #f3c49d; border-color: #6e4b31; }
.badge-admin { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; min-width: 16rem; }
.badge-admin__item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-muted); }
.badge-admin__item svg { width: 16px; height: 16px; }
.badge-admin__item.is-on { color: var(--text); font-weight: 600; }
.badge-admin__item.is-on svg { color: var(--success); }
.badge-admin__item small { flex-basis: 100%; }
.ai-label, .neon-hero__ai { margin: var(--space-2) 0 0; font-size: 12px; opacity: .9; }
.neon-hero__ai { display: block; color: #fff; }

/* ---------- PCH-5: admin home page editor */
.home-edit { display: grid; gap: var(--space-4); }
.home-edit__grid { display: grid; gap: var(--space-5); }
@media (min-width: 60rem) { .home-edit__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.home-edit__form { display: grid; gap: var(--space-3); }
.home-edit__picture { display: grid; gap: var(--space-3); margin: 0; padding: var(--space-3); border: 1px solid var(--border-subtle); border-radius: 14px; }
.home-edit__picture legend { padding: 0 6px; font-weight: 700; }
.home-edit__thumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.home-edit__thumb img { width: 240px; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.home-edit__preview { position: relative; overflow: hidden; display: grid; min-height: 220px; border-radius: 18px; background: #262626; color: #fff; }
@media (min-width: 60rem) { .home-edit__preview.is-banner { position: sticky; top: var(--space-4); } }
.home-edit__preview img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.home-edit__preview-text { grid-area: 1 / 1; align-self: end; display: grid; gap: 4px; padding: var(--space-4);
  background: linear-gradient(transparent, rgb(0 0 0 / 0.78)); }
.home-edit__preview-text strong { font: 700 1.5rem/1.1 var(--font-display); }
.home-edit__preview-cta { justify-self: start; margin-top: 4px; padding: 6px 14px; border-radius: 999px; background: var(--crimson); font-weight: 700; font-size: var(--text-sm); }
.home-edit__nopic { grid-area: 1 / 1; display: grid; place-items: center; gap: 6px; color: #c4c4c4; }
.home-edit__nopic svg { width: 28px; height: 28px; }
.home-edit__list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.home-edit__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: var(--space-2);
  border-radius: 14px; border: 1px solid var(--border-subtle); }
.home-edit__row.is-off { opacity: .7; }
.home-edit__row img, .home-edit__row .home-edit__nopic { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--surface); color: var(--text-muted); }
.home-edit__row-text { display: grid; gap: 2px; min-width: 0; }
.home-edit__row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 48rem) { .home-edit__row { grid-template-columns: 96px minmax(0, 1fr) auto; } .home-edit__row-actions { grid-column: auto; } }
.home-edit__cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.home-edit__card { display: grid; gap: var(--space-2); }

/* ---------- PCH-5: admin guide (a book) */
.guide { display: grid; gap: var(--space-5); }
@media (min-width: 60rem) { .guide { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .guide__toc { position: sticky; top: var(--space-4); max-height: calc(100vh - 2rem); overflow-y: auto; } }
.guide__toc { display: grid; gap: var(--space-3); }
.guide__part-title { margin: var(--space-2) 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.guide__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.guide__link { display: grid; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--text);
  font: 500 var(--text-sm)/1.3 var(--font-body); text-align: left; cursor: pointer; }
.guide__link small { color: var(--text-muted); font-size: 12px; }
.guide__link:hover { background: var(--adm-hover, var(--surface)); }
.guide__link[aria-current="page"] { background: var(--crimson); color: #fff; font-weight: 700; }
.guide__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.guide__page { max-width: 46rem; line-height: var(--leading-body); }
.guide__crumb { margin: 0; font-size: var(--text-sm); color: var(--text-muted); font-weight: 600; }
.guide__title { margin: 4px 0 var(--space-3); font: 700 clamp(1.75rem, 3vw, 2.25rem)/1.1 var(--font-display); }
.guide__title:focus { outline: none; }
.guide__page ol, .guide__page ul { padding-left: 1.4rem; display: grid; gap: 6px; }
.guide__page code { padding: 1px 6px; border-radius: 6px; background: var(--surface); font-size: .9em; }
.guide__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.guide__actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.guide__actions svg { width: 16px; height: 16px; }
.guide__pager { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
.guide__nav { display: inline-flex; align-items: center; gap: 8px; max-width: 48%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-subtle);
  border-radius: 14px; background: var(--surface-raised); color: var(--text); font: 600 var(--text-sm)/1.25 var(--font-body); text-align: left; cursor: pointer; }
.guide__nav span { display: grid; }
.guide__nav small { color: var(--text-muted); font-weight: 500; }
.guide__nav svg { width: 18px; height: 18px; flex: none; }
.guide__nav--next { margin-left: auto; text-align: right; }
.guide__nav:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media print {
  .site-header, .site-footer, .admin__nav, .admin__top, .guide__toc, .guide__actions, .guide__pager, .category-rail { display: none !important; }
  .admin, .admin__panel { background: #fff !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .admin__shell { display: block; }
  .guide { display: block; }
  .guide__page { max-width: none; color: #000; }
}

/* =====================================================================================
   Category hero (Nov 2026): a dark band with the department's
   picture popping in on the right, the same picture faint and slowly zooming behind, breadcrumbs, a big
   display title and the intro. Brand: #262626 with a crimson glow; text white (crimson text never on dark).
   ===================================================================================== */
.cat-hero { position: relative; overflow: hidden; isolation: isolate; background: #262626; color: #fff; margin-bottom: var(--space-6); }
.cat-hero__bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; opacity: .14; filter: blur(18px) saturate(.6);
  animation: cat-kenburns 9s ease-out both; z-index: -2; }
.cat-hero__shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 85% 60%, rgb(150 0 24 / .35), transparent 70%),
              linear-gradient(90deg, #262626 0%, rgb(38 38 38 / .85) 45%, rgb(38 38 38 / .2) 100%); }
.cat-hero__pop { position: absolute; right: 4%; bottom: 6%; height: 86%; width: auto; max-width: 38%; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / .5)); animation: cat-pop .45s cubic-bezier(.2, .8, .2, 1.2) both; display: none; }
.cat-hero__inner { position: relative; padding-block: 40px 44px; }
.cat-hero .breadcrumbs ol { margin-bottom: var(--space-3); color: rgb(255 255 255 / .72); }
.cat-hero .breadcrumbs a { color: rgb(255 255 255 / .78); text-decoration: none; }
.cat-hero .breadcrumbs a:hover, .cat-hero .breadcrumbs a[aria-current="page"] { color: #fff; }
.cat-hero .breadcrumbs li:not(:last-child)::after { color: rgb(255 255 255 / .5); }
.cat-hero .breadcrumbs a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cat-hero__title { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  line-height: .92; font-size: clamp(2.6rem, 11vw, 6rem); color: #fff; overflow-wrap: anywhere; }
.cat-hero__lede { margin: var(--space-3) 0 0; max-width: 36rem; color: rgb(255 255 255 / .8); font-size: 1.05rem; line-height: 1.55; }
.cat-hero__count { margin: var(--space-2) 0 0; color: rgb(255 255 255 / .7); font-weight: 600; font-size: var(--text-sm); }
@media (min-width: 48rem) {
  .cat-hero__pop { display: block; }
  .cat-hero__inner { padding-block: 72px 80px; }
  .cat-hero__inner > * { max-width: 58%; }
}
@keyframes cat-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes cat-pop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cat-hero__bg, .cat-hero__pop { animation: none; } }
/* The hero sits flush under the header (the page's top padding is taken back). */
.app__main > .cat-hero:first-child { margin-top: calc(-1 * var(--space-6)); }

/* =====================================================================================
   Cart drawer (Nov 2026): slides in from the right; a charcoal head, lines with a thumbnail, a footer
   with the total, checkout and "Get a quote on WhatsApp". Native <dialog>: focus trap, Escape, inert page.
   ===================================================================================== */
.cart-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(100vw, 440px); max-width: none;
  height: 100dvh; max-height: none; background: transparent; color: var(--text); overscroll-behavior: contain; }
.cart-drawer::backdrop { background: rgb(20 20 20 / .45); backdrop-filter: blur(2px); }
.cart-drawer[open] { animation: cart-drawer-in .42s cubic-bezier(.2, .8, .2, 1) both; }
.cart-drawer__panel { display: flex; flex-direction: column; height: 100%; background: var(--bg); border-radius: 24px 0 0 24px; overflow: hidden;
  box-shadow: -24px 0 60px -30px rgb(0 0 0 / .5); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; background: #262626; color: #fff; }
.cart-drawer__title { margin: 0; font-family: var(--font-display); font-size: 2rem; font-weight: 800; text-transform: uppercase; line-height: 1; color: #fff; }
.cart-drawer__sub { margin: 4px 0 0; font-size: var(--text-sm); color: rgb(255 255 255 / .72); }
.cart-drawer__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; }
.cart-drawer__close:hover { background: rgb(255 255 255 / .2); }
.cart-drawer__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cart-drawer__close svg { width: 20px; height: 20px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.cart-drawer__empty { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 48px 8px; }
.cart-drawer__empty-title { margin: 0; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.cart-drawer__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-drawer__line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 10px; border: 1px solid var(--border-subtle); border-radius: 16px; }
.cart-drawer__thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface); }
.cart-drawer__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-drawer__thumb svg { width: 28px; height: 28px; color: var(--text-muted); }
.cart-drawer__info { min-width: 0; display: grid; gap: 2px; align-content: start; }
.cart-drawer__seller { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.cart-drawer__name { font-weight: 600; color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-drawer__name:hover { text-decoration: underline; }
.cart-drawer__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cart-drawer__remove { align-self: start; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; }
.cart-drawer__remove:hover { color: var(--danger, var(--crimson)); background: var(--surface); }
.cart-drawer__remove svg { width: 18px; height: 18px; }
.cart-drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-subtle); display: grid; gap: 8px; }
.cart-drawer__vat, .cart-drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.cart-drawer__vat { font-size: var(--text-sm); color: var(--text-muted); }
.cart-drawer__total strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.cart-drawer__note { margin: 0 0 4px; font-size: var(--text-sm); }
.cart-drawer__foot .btn--primary svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
@keyframes cart-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cart-drawer[open] { animation: none; } }
@media (max-width: 30rem) { .cart-drawer__panel { border-radius: 0; } }
.cart-drawer__full { justify-self: center; padding: 8px 12px; font-weight: 600; color: var(--link); }

/* =====================================================================================
   Cart page (Nov 2026): a wide list of product cards beside a slim summary that stays in view.
   Each card: photo, name, price each, then quantity and the line total; a bin button. The card lays
   itself out by the room it has (container query), so names never squeeze into a narrow column.
   ===================================================================================== */
@media (min-width: 56rem) {
  .two-col.cart { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 40px; }
  .two-col.cart .summary-panel { position: sticky; top: calc(var(--site-top-h, 136px) + 16px); }
}
.cart__groups { container-type: inline-size; gap: 32px; }
.cart-seller { padding: 0; background: transparent; }
.cart-seller__name { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.15rem; }
.cart-seller__name svg { width: 20px; height: 20px; flex: none; color: var(--text-muted); }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; grid-template-areas: "thumb info remove" "buy buy buy";
  gap: 14px 16px; align-items: start; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease; }
.cart-item:hover { border-color: var(--border); box-shadow: 0 12px 30px -22px rgb(0 0 0 / .35); }
.cart-item.has-problem { border-color: var(--danger, var(--crimson)); }
.cart-item__thumb { grid-area: thumb; display: grid; place-items: center; width: 96px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .3s ease; }
.cart-item:hover .cart-item__thumb img { transform: scale(1.05); }
.cart-item__thumb svg { width: 32px; height: 32px; color: #8a8a8e; }
.cart-item__info { grid-area: info; display: grid; gap: 6px; min-width: 0; padding-top: 2px; }
.cart-item__title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--text); text-decoration: none; }
.cart-item__title:hover { text-decoration: underline; }
.cart-item__each { color: var(--text-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.cart-item__buy { grid-area: buy; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.cart-item__total { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item__remove { grid-area: remove; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-muted); cursor: pointer; }
.cart-item__remove:hover { color: var(--danger, var(--crimson)); background: var(--bg); }
.cart-item__remove:focus-visible { outline: 2px solid var(--focus, var(--crimson)); outline-offset: 2px; }
.cart-item__remove svg { width: 20px; height: 20px; }
@container (min-width: 600px) {
  .cart-item { grid-template-columns: 120px minmax(0, 1fr) auto 40px; grid-template-areas: "thumb info buy remove"; align-items: center; gap: 20px; padding: 18px 20px; }
  .cart-item__thumb { width: 120px; }
  .cart-item__buy { flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 0; border-top: 0; }
}
.summary-panel .cart-drawer__vat { margin: 16px 0 6px; }
.summary-panel .cart-drawer__total { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border-subtle); }
.summary-panel .cart-drawer__total strong { font-size: 2.2rem; }
.summary-panel .btn--block { margin-top: 18px; min-height: 52px; }
.summary-panel > .muted { font-size: var(--text-sm); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .cart-item__thumb img, .cart-item { transition: none; } }

/* Quick checkout (email code, no separate sign-up) */
.checkout-quick .quick-co { max-width: 560px; padding: 28px; border-radius: 20px; }
.quick-co__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.quick-co .auth__form { margin-top: 18px; }
.quick-co .envelope { margin-bottom: 12px; }
.checkout-address { max-width: 720px; padding: 28px; border-radius: 20px; }
