/* ============================================================
   css/store.css — Will's Tech Store design system (core)
   Tokens → base → layout → header/nav/drawer/search → buttons/forms
   → product card → toasts/modals/mini-cart → footer → floating UI.
   Page-specific styles live in pages.css and account.css.
   Palette & type come from the Figma concept board.
   ============================================================ */

:root {
  /* Brand */
  --ink: #101522;
  --sun: #FFC629;
  --sun-soft: #FFF3CC;
  --flame: #E8452C;
  --signal: #1FA855;
  --plate: #E9ECF1;           /* photo plates stay light in both themes */

  /* Semantic (light) */
  --bg-body: #F4F5F7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F9FB;
  --bg-surface: #ECEFF3;
  --bg-header: rgba(244, 245, 247, .86);
  --bg-footer: #101522;
  --text-primary: #101522;
  --text-secondary: #4A5368;
  --text-muted: #6B7488;
  --text-inverse: #FFFFFF;
  --border: #DDE1E8;
  --border-light: #E8EBF0;
  --border-strong: #C3CAD6;
  --btn-dark-bg: #101522;
  --btn-dark-fg: #FFFFFF;

  /* Legacy names still used by account/auth scripts */
  --primary: #2563EB;
  --accent: var(--sun);
  --accent-hover: #FFD252;
  --accent-dark: #B88700;
  --success: #1FA855;
  --danger: #E8452C;

  /* Shape & depth */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(16, 21, 34, .06), 0 4px 14px rgba(16, 21, 34, .05);
  --shadow-md: 0 10px 30px rgba(16, 21, 34, .10);
  --shadow-lg: 0 24px 60px rgba(16, 21, 34, .16);

  /* Space */
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-primary: var(--font-body);
  --transition: .15s ease; --transition-md: .25s ease;
  --secondary: var(--text-secondary); --header-height: var(--header-h);
  --shadow-sm: var(--shadow); --shadow-xl: var(--shadow-lg); --bg-dark: var(--ink);

  --container: 1240px;
  --header-h: 72px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-body: #0C111D; --bg-card: #151C2C; --bg-card-hover: #1B2438; --bg-surface: #111827;
  --bg-header: rgba(12, 17, 29, .82); --bg-footer: #080C16;
  --text-primary: #F2F4F8; --text-secondary: #A9B2C3; --text-muted: #8791A5;
  --border: #263049; --border-light: #1E2740; --border-strong: #36425F;
  --btn-dark-bg: #F2F4F8; --btn-dark-fg: #101522;
  --sun-soft: #2A2410;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  --shadow-md: 0 10px 30px rgba(0,0,0,.4); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-body: #0C111D; --bg-card: #151C2C; --bg-card-hover: #1B2438; --bg-surface: #111827;
    --bg-header: rgba(12, 17, 29, .82); --bg-footer: #080C16;
    --text-primary: #F2F4F8; --text-secondary: #A9B2C3; --text-muted: #8791A5;
    --border: #263049; --border-light: #1E2740; --border-strong: #36425F;
    --btn-dark-bg: #F2F4F8; --btn-dark-fg: #101522;
    --sun-soft: #2A2410;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
    --shadow-md: 0 10px 30px rgba(0,0,0,.4); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  }
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg-body); color: var(--text-primary);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.08; margin: 0; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .container { padding-inline: 16px; } }
.text-muted { color: var(--text-muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Announcement bar ─────────────────────────────────────── */
.announce { background: var(--ink); color: #fff; font-size: 13.5px; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; text-align: center; }
.announce i { color: var(--sun); }
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.announce-close { background: none; border: 0; color: #fff; opacity: .7; margin-left: 6px; padding: 4px 8px; }
.announce-close:hover { opacity: 1; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--bg-header);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(16,21,34,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand-mark i { color: var(--sun); font-size: 18px; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: -.04em; }
.brand-text span { background: linear-gradient(transparent 62%, var(--sun) 62%); }
.main-nav { display: flex; gap: 4px; margin-inline: auto; }
.main-nav a { padding: 9px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; color: var(--text-secondary); transition: background .18s, color .18s; }
.main-nav a:hover { background: var(--bg-surface); color: var(--text-primary); }
.main-nav a.active { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: transparent; color: var(--text-primary); font-size: 18px;
  transition: background .18s, transform .15s;
}
.icon-btn:hover { background: var(--bg-surface); }
.icon-btn:active { transform: scale(.94); }
.cart-badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--sun); color: var(--ink); font: 800 11px/20px var(--font-body); text-align: center; border: 2px solid var(--bg-body);
}
.cart-badge.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.account-menu { position: relative; }
.account-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.account-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; z-index: 120;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.account-menu-primary, .account-menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: none;
  border-radius: 12px; font-size: 15px; font-weight: 600; text-align: left; color: var(--text-primary);
}
.account-menu-primary { background: var(--sun-soft); }
.account-menu-primary:hover, .account-menu-item:hover { background: var(--bg-surface); }
.account-menu-primary svg, .account-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.account-menu-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .theme-toggle { display: none; }
}

/* ── Mobile drawer ────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(8, 12, 22, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 150; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.scrim.show { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); z-index: 160; padding: 20px;
  background: var(--bg-card); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; visibility: hidden;
}
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mobile-nav a.nav-link { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 14px; font-weight: 700; font-size: 17px; }
.mobile-nav a.nav-link i { width: 22px; text-align: center; color: var(--text-muted); }
.mobile-nav a.nav-link:hover, .mobile-nav a.nav-link.active { background: var(--bg-surface); }
.mobile-nav-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 10px; }

/* ── Search panel ─────────────────────────────────────────── */
.search-panel {
  position: fixed; left: 0; right: 0; top: 0; z-index: 155; padding: 14px 0 18px; background: var(--bg-card);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateY(-105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden;
}
body.search-open .search-panel { transform: none; visibility: visible; }
.search-input-wrap { position: relative; display: flex; align-items: center; background: var(--bg-surface); border: 2px solid transparent; border-radius: var(--radius-pill); }
.search-input-wrap:focus-within { border-color: var(--ink); background: var(--bg-card); }
[data-theme="dark"] .search-input-wrap:focus-within { border-color: var(--sun); }
.search-input-wrap > i { position: absolute; left: 20px; color: var(--text-muted); }
.search-input { width: 100%; border: 0; outline: 0; background: transparent; padding: 16px 52px 16px 52px; font-size: 17px; color: var(--text-primary); }
.search-clear-btn { position: absolute; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-surface); display: none; place-items: center; }
.search-close { margin-left: 8px; }
.search-row { display: flex; align-items: center; }
.search-row .search-input-wrap { flex: 1; }
.search-results { margin-top: 14px; max-height: 66vh; overflow: auto; }
.search-group-title, .search-section-title { font-weight: 700; font-size: 13px; color: var(--text-muted); }
.search-section { margin-bottom: 18px; }
.search-section-header, .search-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; color: var(--text-secondary); }
.search-clear-history, .search-view-all { background: none; border: 0; color: var(--text-secondary); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg-card); font-size: 14px; font-weight: 600; }
.search-tag:hover { border-color: var(--ink); }
.search-tag-count { color: var(--text-muted); font-weight: 500; }
.search-result-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; }
.search-result-item:hover, .search-result-item.selected { background: var(--bg-surface); }
.search-result-img { width: 60px; height: 60px; border-radius: 12px; object-fit: contain; background: var(--plate); flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-category, .search-result-reviews, .search-result-meta { font-size: 13px; color: var(--text-muted); }
.search-result-price { font-weight: 800; font-family: var(--font-display); }
.search-result-original { text-decoration: line-through; color: var(--text-muted); font-size: 13px; margin-left: 6px; }
.search-result-arrow { width: 14px; color: var(--text-muted); }
.search-products-compact { display: flex; flex-wrap: wrap; gap: 10px; }
.search-product-compact { display: block; width: 76px; padding: 4px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.search-product-compact:hover { background: var(--bg-surface); }
.search-product-compact-img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--plate); border-radius: 10px; }
/* Desktop: the search opens as a compact floating card, not a full-width bar */
@media (min-width: 768px) {
  .search-panel { left: 50%; right: auto; top: 14px; width: min(740px, calc(100vw - 48px)); padding: 12px 0 14px; border: 1px solid var(--border); border-radius: 28px; transform: translate(-50%, -140%); }
  body.search-open .search-panel { transform: translateX(-50%); }
  .search-panel > .container { width: auto; max-width: none; margin: 0; padding: 0 14px; }
  .search-results { max-height: 58vh; }
}
.search-empty { text-align: center; padding: 32px 12px; color: var(--text-secondary); }
.search-empty-title { font-weight: 800; font-size: 18px; color: var(--text-primary); margin: 10px 0 4px; }
.search-empty-sub { font-size: 14px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px;
  border-radius: var(--radius-pill); border: 2px solid transparent; font-weight: 700; font-size: 15px; line-height: 1;
  white-space: nowrap; transition: transform .15s, background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 198, 41, .35); }
.btn-primary:hover:not(:disabled) { background: #FFD252; }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { border-color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-primary); }
.btn-ghost:hover { background: var(--bg-surface); }
.btn-wa { background: var(--signal); color: #fff; }
.btn-wa:hover:not(:disabled) { background: #178f48; }
.btn-danger { background: var(--flame); color: #fff; }
.btn-outline-danger { background: transparent; color: var(--flame); border-color: var(--flame); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.auth-spinner, .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Badges & chips ───────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; line-height: 1; }
.badge-ink { background: var(--ink); color: #fff; }
.badge-sun { background: var(--sun); color: var(--ink); }
.badge-flame { background: var(--flame); color: #fff; }
.badge-signal { background: var(--signal); color: #fff; }
.badge-soft { background: var(--bg-surface); color: var(--text-secondary); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--bg-card); font-weight: 700; font-size: 14px; transition: all .15s; }
.chip:hover { border-color: var(--text-primary); }
.chip.active, .filter-btn.active { background: var(--btn-dark-bg); color: var(--btn-dark-fg); border-color: var(--btn-dark-bg); }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: grid; gap: 7px; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-label { font-weight: 700; font-size: 14px; color: var(--text-secondary); }
.form-label .optional { font-weight: 500; color: var(--text-muted); }
.form-input, select.form-input, textarea.form-input, .form-select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid var(--border-strong);
  background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea.form-input { min-height: 120px; resize: vertical; line-height: 1.5; }
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 198, 41, .45); }
[data-theme="dark"] .form-input:focus { border-color: var(--sun); }
.form-input.invalid { border-color: var(--flame); }
.form-input-readonly { display: flex; align-items: center; background: var(--bg-surface); color: var(--text-secondary); }
.form-hint, .form-error { font-size: 13px; color: var(--text-muted); }
.form-error { color: var(--flame); font-weight: 600; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-input-wrap { position: relative; }
.form-input-wrap .form-input { padding-right: 52px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; color: var(--text-muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-secondary); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex-shrink: 0; }

/* ── Ratings ──────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; color: #F2A900; font-size: 13px; }
.stars .off { color: var(--border-strong); }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }

/* ── Product card ─────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.pcard-media { position: relative; background: var(--plate); aspect-ratio: 1 / .92; }

.pcard:hover .pcard-slides:not(.multi) img { transform: scale(1.05); }
.pcard-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; pointer-events: none; }
.wishlist-btn { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 16px; box-shadow: var(--shadow); transition: transform .15s; z-index: 2; }
.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-btn.active { color: var(--flame); }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.pcard-cat { font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-transform: capitalize; }
.pcard-name { font-family: var(--font-display); font-weight: 700; font-size: 17.5px; line-height: 1.22; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price-now { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-was { color: var(--text-muted); text-decoration: line-through; font-size: 14px; }
.pcard-actions { display: grid; gap: 6px; margin-top: 8px; }
.pcard-wa { text-align: center; font-size: 13.5px; font-weight: 700; color: var(--signal); padding: 6px; border-radius: 10px; }
.pcard-wa:hover { background: rgba(31, 168, 85, .1); }
.pcard.is-out .pcard-media img { opacity: .5; filter: grayscale(1); }

/* skeleton */
.skeleton { background: linear-gradient(100deg, var(--bg-surface) 30%, var(--bg-card-hover) 50%, var(--bg-surface) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pcard-skel { border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-light); overflow: hidden; }
.pcard-skel .skeleton:first-child { aspect-ratio: 1/.92; border-radius: 0; }
.pcard-skel div.s { padding: 16px; display: grid; gap: 10px; }
.pcard-skel .skeleton { height: 14px; }

/* ── Toasts ───────────────────────────────────────────────── */
.toast-stack { position: fixed; z-index: 9999; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.wt-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14.5px; animation: toastIn .3s cubic-bezier(.2,.8,.2,1); }
.wt-toast i { font-size: 18px; }
.wt-toast.success i { color: #4ADE80; }
.wt-toast.error i { color: #FF8A75; }
.wt-toast.info i { color: var(--sun); }
.wt-toast .wt-toast-action { margin-left: auto; color: var(--sun); font-weight: 800; background: none; border: 0; white-space: nowrap; }
.wt-toast.leaving { opacity: 0; transform: translateY(10px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 640px) { .toast-stack { right: 16px; bottom: 84px; } }

/* ── Mini cart drawer ─────────────────────────────────────── */
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 170; background: var(--bg-card); transform: translateX(104%); transition: transform .32s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; visibility: hidden; box-shadow: var(--shadow-lg); }
.cart-drawer.open { transform: none; visibility: visible; }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-drawer-head h2 { font-size: 22px; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--border); display: grid; gap: 12px; background: var(--bg-card); }
.free-ship { display: grid; gap: 8px; padding: 14px 22px; background: var(--sun-soft); font-size: 13.5px; font-weight: 600; }
.free-ship-bar { height: 8px; border-radius: 4px; background: rgba(16,21,34,.12); overflow: hidden; }
.free-ship-bar span { display: block; height: 100%; background: var(--signal); border-radius: 4px; transition: width .4s; }
.mini-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-light); align-items: center; }
.mini-item img { width: 72px; height: 72px; object-fit: contain; background: var(--plate); border-radius: 14px; mix-blend-mode: normal; }
.mini-item-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-item-price { font-weight: 800; font-family: var(--font-display); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); margin-top: 8px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; font-size: 12px; }
.qty button:hover { background: var(--bg-surface); }
.qty span { min-width: 28px; text-align: center; font-weight: 800; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--text-muted); font-size: 13px; font-weight: 700; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--flame); }
.drawer-empty { text-align: center; padding: 64px 12px; color: var(--text-secondary); display: grid; gap: 12px; justify-items: center; }
.drawer-empty i { font-size: 44px; color: var(--border-strong); }

/* ── Generic empty state / breadcrumb / page head ─────────── */
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; text-align: center; color: var(--text-secondary); grid-column: 1 / -1; }
.empty-state i { font-size: 48px; color: var(--border-strong); margin-bottom: 6px; }
.empty-state h3 { font-size: 24px; color: var(--text-primary); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); padding: 22px 0 8px; }
.breadcrumb a:hover { color: var(--text-primary); text-decoration: underline; }
.breadcrumb i { font-size: 10px; }
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); }
.page-head p { margin-top: 10px; color: var(--text-secondary); font-size: 18px; max-width: 60ch; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--bg-footer); color: #C9D0DE; margin-top: 96px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding: 64px 0 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin: 16px 0 20px; max-width: 34ch; font-size: 15px; line-height: 1.6; }
.footer-contact { display: grid; gap: 10px; font-size: 15px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 12px; }
.footer-contact a:hover { color: #fff; }
.footer-contact i { width: 18px; color: var(--sun); text-align: center; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: -.01em; }
.footer-col li { margin-bottom: 11px; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; font-size: 18px; transition: transform .15s, background .2s, color .2s; }
.social a:hover { transform: translateY(-3px); color: var(--ink); }
.social a[data-net="whatsapp"]:hover { background: #25D366; }
.social a[data-net="x"]:hover { background: #fff; }
.social a[data-net="instagram"]:hover { background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF); color: #fff; }
.social a[data-net="tiktok"]:hover { background: #fff; }
.social a[data-net="youtube"]:hover { background: #FF0033; color: #fff; }
.social a[data-net="facebook"]:hover { background: #1877F2; color: #fff; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-row { gap: 8px; flex-wrap: nowrap; }
.pay-icon { width: 70px; height: 44px; border-radius: 12px; overflow: hidden; display: block; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 6px 14px rgba(0,0,0,.28); transition: transform .18s, box-shadow .18s; }
.pay-icon:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 10px 20px rgba(0,0,0,.35); }
.pay-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pay-note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #8F99AD; max-width: 26ch; }
.footer-brand .footer-tag { margin: 16px 0 0; font: 700 17px/1.35 var(--font-display); color: #fff; letter-spacing: -.01em; max-width: 30ch; }
.footer-brand .footer-tag + p { margin-top: 8px; }
.pay-chip { padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.pay-chip.mtn { background: #FFCC00; color: #101522; border-color: transparent; }
.pay-chip.airtel { background: #E40000; border-color: transparent; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: minmax(0, 1fr); padding-top: 48px; } }

/* ── Floating UI ──────────────────────────────────────────── */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 32px; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 28px; bottom: 92px; z-index: 89; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-card); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--sun); z-index: 200; }
.cookie-bar { position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 400px; padding: 18px 20px; border-radius: 20px; background: var(--ink); color: #E5E9F2; box-shadow: var(--shadow-lg); font-size: 14px; display: grid; gap: 12px; }
.cookie-bar a { text-decoration: underline; color: #fff; }
.cookie-bar .row { display: flex; gap: 10px; }
@media (max-width: 640px) { .wa-fab { width: 54px; height: 54px; font-size: 28px; right: 16px; bottom: 16px; } .to-top { right: 22px; bottom: 82px; } .cookie-bar { left: 12px; right: 12px; bottom: 82px; max-width: none; } }

/* ── Generic modal (video player, confirms) ───────────────── */
.wt-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(6, 9, 18, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.wt-modal-card { position: relative; background: var(--bg-card); border-radius: 24px; padding: 28px; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); }
.wt-modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(16,21,34,.65); color: #fff; font-size: 16px; }

/* ── Footer newsletter ────────────────────────────────────── */
.footer-news { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-news h3 { color: #fff; font-size: clamp(22px, 3vw, 30px); max-width: 22ch; }
.footer-news p { margin-top: 8px; font-size: 15px; }
.news-form { display: flex; gap: 10px; flex: 1 1 340px; max-width: 460px; }
.news-form .form-input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; border-radius: var(--radius-pill); padding-inline: 20px; }
.news-form .form-input::placeholder { color: #9AA3B6; }
.news-thanks { color: #fff; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.news-thanks i { color: #4ADE80; }
@media (max-width: 520px) { .news-form { flex-direction: column; } }

/* ── Small-screen header ──────────────────────────────────── */
@media (max-width: 560px) {
  .header-inner { gap: 4px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-text { font-size: 21px; }
  .icon-btn { width: 40px; height: 40px; }
  .header-actions { gap: 0; }
  .announce-inner { font-size: 12.5px; padding: 8px 10px; }
}

/* ── Validation states (used by auth forms) ───────────────── */
.form-input.error { border-color: var(--flame); }
.form-input.success { border-color: var(--signal); }

/* ============================================================
   v2 — header menus, tab bar, card v2, compare, image fade-in
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
.site-header { view-transition-name: site-header; }
.tabbar { view-transition-name: tabbar; }

/* announcement rotor */
.announce-inner { position: relative; padding: 0 16px; min-height: 38px; }
.announce-rotor { position: relative; flex: 1; height: 38px; overflow: hidden; }
.announce-rotor span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; white-space: nowrap; }
.announce-rotor span.on { opacity: 1; transform: none; }
@media (max-width: 560px) { .announce-rotor span { font-size: 12.5px; white-space: normal; text-align: center; line-height: 1.25; } }
.announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; }

/* header: categories button, search pill, help */
.header-inner { gap: 14px; }
.cat-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--btn-dark-bg); color: var(--btn-dark-fg); font-weight: 800; font-size: 15px; flex-shrink: 0; }
.cat-btn .chev { font-size: 11px; transition: transform .2s; } .cat-btn.open .chev { transform: rotate(180deg); }
.main-nav { margin-inline: 0; gap: 2px; }
.main-nav a { padding: 9px 13px; }
.search-pill { flex: 1 1 200px; min-width: 0; max-width: 380px; margin-left: auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted); text-align: left; transition: border-color .15s; }
.search-pill:hover { border-color: var(--text-primary); }
.search-pill span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.search-pill kbd { font: 700 11px var(--font-body); padding: 3px 7px; border-radius: 7px; background: var(--bg-surface); color: var(--text-muted); }
.search-icon { display: none; }
.header-actions { flex-shrink: 0; margin-left: 0; }
.help-wrap { position: relative; }
.help-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--bg-card); font-weight: 800; font-size: 14.5px; }
.help-btn:hover, .help-btn[aria-expanded="true"] { border-color: var(--text-primary); }
.help-btn i { color: var(--signal); }
.help-pop { position: absolute; right: 0; top: calc(100% + 12px); width: 340px; padding: 10px; z-index: 130; border-radius: 22px; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: popIn .18s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }
.help-title { display: block; padding: 10px 12px 8px; font: 800 17px var(--font-display); letter-spacing: -.02em; }
.help-row { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; }
.help-row:hover { background: var(--bg-surface); }
.help-row > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-surface); font-size: 17px; flex-shrink: 0; }
.help-row > i.wa { background: #25D366; color: #fff; font-size: 20px; }
.help-row b { display: block; font-size: 14.5px; } .help-row span { font-size: 13px; color: var(--text-muted); }
.help-hours { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin: 4px 2px; border-radius: 14px; background: var(--sun-soft); font-size: 13px; font-weight: 600; }
.help-hours i { margin-top: 2px; }
.help-links { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 4px 4px; }
.help-links a { padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--bg-surface); }
.help-links a:hover { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.wish-badge { background: var(--flame); color: #fff; border-color: var(--bg-body); }

/* categories mega menu */
.cat-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: popIn .18s ease; }
.cat-menu-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 28px 32px; }
.cm-col h4 { font: 800 12px var(--font-body); text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: 14px; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.cm-cat { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; }
.cm-cat:hover { background: var(--bg-surface); }
.cm-cat .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sun); color: var(--ink); font-size: 19px; flex-shrink: 0; }
.cm-cat.all .ic { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.cm-cat b { display: block; font-size: 15.5px; } .cm-cat small { color: var(--text-muted); font-size: 13px; }
.cm-list { display: grid; gap: 2px; }
.cm-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.cm-list a:hover { background: var(--bg-surface); } .cm-list small { color: var(--text-muted); font-weight: 700; } .cm-list i { font-size: 12px; color: var(--text-muted); }

/* mobile drawer extras */
.m-cats > summary { list-style: none; cursor: pointer; } .m-cats > summary::-webkit-details-marker { display: none; }
.m-cats .chev { margin-left: auto; font-size: 12px; transition: transform .2s; } .m-cats[open] .chev { transform: rotate(180deg); }
.m-cat-list { display: grid; padding: 0 0 8px 12px; margin-left: 24px; border-left: 2px solid var(--border); }
.m-cat-list a { display: flex; justify-content: space-between; padding: 11px 12px; border-radius: 12px; font-weight: 600; } .m-cat-list a:hover { background: var(--bg-surface); } .m-cat-list small { color: var(--text-muted); }
.m-help { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* mobile bottom tab bar */
.tabbar { display: none; }
@media (max-width: 820px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--bg-header); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--border); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 7px 4px; border: 0; background: none; border-radius: 14px; color: var(--text-muted); font-size: 11px; font-weight: 700; }
  .tabbar i { font-size: 19px; } .tabbar .active { color: var(--text-primary); background: var(--sun-soft); }
  .tabbar .cart-badge { position: absolute; top: 2px; left: calc(50% + 4px); font-size: 10px; min-width: 18px; height: 18px; line-height: 14px; }
  .tabbar .cart-badge + span { font-size: 11px; }
  .to-top { bottom: calc(82px + env(safe-area-inset-bottom)); right: 14px; }
  .toast-stack { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .cookie-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.has-buy-bar { padding-bottom: 0; } body.has-buy-bar .tabbar { display: none; } body.has-buy-bar .to-top { bottom: 90px; } body.has-buy-bar .toast-stack { bottom: 90px; }
}
@media (max-width: 1100px) { .search-pill { display: none; } .search-icon { display: inline-grid; } .main-nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 960px) { .cat-btn, .cat-menu { display: none !important; } .menu-toggle { display: inline-grid; } .theme-toggle { display: none; } }
@media (max-width: 820px) { .search-icon { display: none; } .wish-link { display: none; } }
@media (max-width: 640px) {
  .help-btn span { display: none; } .help-btn { width: 44px; padding: 0; justify-content: center; border: 0; background: transparent; } .help-btn i { color: var(--text-primary); font-size: 18px; }
  .help-pop { position: fixed; left: 12px; right: 12px; top: 74px; width: auto; }
}
.footer-hours { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #B9C1D2; }
.footer-hours i { width: 18px; text-align: center; color: var(--sun); margin-top: 3px; }

/* ── Image fade-in with shimmer behind (always shows after 3s even if the load event is missed) ── */
.pcard-media img, .gallery-main img, .thumb img, .cart-card img, .mini-item img, .co-item img, .order-line img, .search-result-img, .search-product-compact-img, .cat-img img, .need img { opacity: 0; animation: imgFallback .01s linear 3s forwards; }
.pcard-media img.is-loaded, .gallery-main img.is-loaded, .thumb img.is-loaded, .cart-card img.is-loaded, .mini-item img.is-loaded, .co-item img.is-loaded, .order-line img.is-loaded, .search-result-img.is-loaded, .search-product-compact-img.is-loaded, .cat-img img.is-loaded, .need img.is-loaded { opacity: 1; animation: none; transition: opacity .4s ease; }
@keyframes imgFallback { to { opacity: 1; } }
.pcard-media:not(:has(img.is-loaded)), .gallery-main:not(:has(img.is-loaded)), .cat-img:not(:has(img.is-loaded)) { background: linear-gradient(100deg, var(--plate) 30%, color-mix(in srgb, var(--plate) 55%, #fff) 50%, var(--plate) 70%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }

/* ── Product card v2 ── */
.cmp-btn { position: absolute; top: 58px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 15px; box-shadow: var(--shadow); z-index: 2; transition: transform .15s, opacity .2s, background .15s; }
.cmp-btn:hover { transform: scale(1.1); } .cmp-btn.active { background: var(--ink); color: var(--sun); }
@media (hover: hover) { .cmp-btn { opacity: 0; } .pcard:hover .cmp-btn, .cmp-btn.active, .cmp-btn:focus-visible { opacity: 1; } }
.pcard-price { display: grid; gap: 3px; margin-top: auto; padding-top: 6px; }
.price-meta { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; }
.price-meta s { color: var(--text-muted); } .price-meta b { color: var(--flame); font-weight: 800; } .price-meta i { color: var(--signal); }
.pcard-ask { display: block; text-align: center; font-size: 13px; font-weight: 700; padding: 6px; text-decoration: underline; text-underline-offset: 3px; color: var(--text-secondary); }
.pcard-media { position: relative; }
.pcard .rating { min-height: 20px; }

/* ── Compare bar + modal ── */
.cmp-bar { position: fixed; left: 50%; bottom: 20px; z-index: 88; display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 12px; border-radius: 99px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); transform: translate(-50%, 140%); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 24px); }
.cmp-bar.show { transform: translate(-50%, 0); }
.cmp-items { display: flex; gap: 8px; } .cmp-chip { position: relative; width: 46px; height: 46px; border-radius: 14px; background: var(--plate); display: grid; place-items: center; color: var(--text-muted); }
.cmp-chip img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; padding: 3px; mix-blend-mode: multiply; } .cmp-chip.empty { background: rgba(255,255,255,.1); color: #98A2B8; border: 1.5px dashed rgba(255,255,255,.25); }
.cmp-chip button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--flame); color: #fff; font-size: 10px; }
.cmp-text { display: grid; line-height: 1.25; } .cmp-text b { font-size: 14px; } .cmp-text span { font-size: 12px; color: #B9C1D2; }
.cmp-bar .link-btn { color: #B9C1D2; }
@media (max-width: 820px) { .cmp-bar { bottom: calc(80px + env(safe-area-inset-bottom)); gap: 10px; } .cmp-text span { display: none; } }
.cmp-card { max-width: 980px; max-height: 90vh; overflow: auto; padding: 28px; }
.cmp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; color: var(--text-secondary); }
.cmp-table th { width: 130px; color: var(--text-primary); font-weight: 700; background: var(--bg-surface); }
.cmp-table td b { color: var(--text-primary); font-size: 16px; } .cmp-table td s { color: var(--text-muted); }
.cmp-head td { text-align: center; } .cmp-img { width: 120px; height: 120px; object-fit: contain; background: var(--plate); border-radius: 16px; padding: 6px; margin: 0 auto 8px; mix-blend-mode: normal; }
.cmp-name { font-weight: 800; color: var(--text-primary); }
.cmp-bar:not(.show) { visibility: hidden; pointer-events: none; }
.cmp-bar { transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .3s; } .cmp-bar.show { transition-delay: 0s; }

.mobile-nav summary.nav-link { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 14px; font-weight: 700; font-size: 17px; }
.mobile-nav summary.nav-link i:first-child { width: 22px; text-align: center; color: var(--text-muted); }
.mobile-nav summary.nav-link:hover { background: var(--bg-surface); }
@media (max-width: 820px) {
  .toast-stack { top: calc(12px + env(safe-area-inset-top)); bottom: auto; right: 16px; left: 16px; width: auto; }
  .wt-toast { animation-name: toastInTop; }
}
@keyframes toastInTop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

/* ── Card photo slider + dots ── */
.pcard-slides { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.pcard-slides::-webkit-scrollbar { display: none; }
.pcard-slides:not(.multi) { overflow: hidden; }
.pcard-slides .slide { flex: 0 0 100%; width: 100%; height: 100%; display: block; scroll-snap-align: center; scroll-snap-stop: always; }
.pcard-slides .slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease; }
.pcard-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; z-index: 2; box-shadow: 0 1px 4px rgba(16,21,34,.12); }
.pcard-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(16,21,34,.28); transition: width .3s cubic-bezier(.2,.8,.2,1), background .3s; }
.pcard-dots i.on { width: 18px; background: var(--ink); }

.search-result-meta { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.search-result-stars { display: flex; align-items: center; }
.search-result-info { display: grid; gap: 2px; align-content: center; }
.search-result-img { width: 64px; height: 64px; padding: 4px; }
.search-view-all { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }

/* Inside horizontally scrolling rows, a swipe on a photo should scroll the ROW (the hover slider still works on desktop). */
.rail-track .pcard-slides, .pair-track .pcard-slides { overflow-x: hidden; touch-action: pan-y pinch-zoom; }
@media (hover: none) { .rail-track .pcard-dots { display: none; } }
