/* ─────────────────────────────────────────────────────────────
   Hero Water — unified design system  (site + admin + checkout)
   Single token namespace · mobile-first · breakpoint lg = 1024px
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Ensure [hidden] always wins even when a display rule is present */
[hidden] { display: none !important; }

:root {
  /* Color tokens (single source of truth) */
  --ink: #171A20;
  --ink-soft: #2A2D32;
  --mute: #5C5E62;
  --mute-2: #8A8D92;
  --hairline: #E5E5E5;
  --hairline-strong: #D5D5D5;
  --surface: #F4F4F4;
  --surface-2: #FAFAFA;
  --bg: #FFFFFF;
  --cta: #3457DC;
  --cta-hover: #2A4BC0;
  --cta-soft: #EEF1FB;
  --success: #16A34A;
  --success-soft: #ECFDF3;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --warning: #B45309;
  --warning-soft: #FEF6E7;

  /* Aliases (legacy admin variable names → new tokens) */
  --text: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--mute);
  --border: var(--hairline);
  --border-light: var(--hairline);
  --accent: var(--cta);
  --accent-light: var(--cta-soft);
  --success-light: var(--success-soft);
  --danger-light: var(--danger-soft);
  --warning-light: var(--warning-soft);
  --shadow-sm: 0 1px 2px rgba(23,26,32,0.06);
  --shadow-lg: 0 24px 60px rgba(23,26,32,0.18);

  /* Geometry */
  --r: 4px;
  --radius: 4px;
  --radius-xs: 4px;
  --radius-sm: 4px;

  /* Motion */
  --t: 200ms ease-out;

  /* Layout */
  --nav-h: 56px;
  --admin-sb: 240px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }

:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  border-radius: var(--r);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── Header ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.06); }

.nav-logo {
  font-size: 18px; font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--ink);
  text-transform: uppercase;
}

.nav-links { display: none; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 400;
  color: var(--ink); transition: color var(--t);
}
.nav-links a:hover { color: var(--mute); }

.nav-right { display: flex; align-items: center; gap: 4px; }

.nav-cart {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  border-radius: var(--r);
  transition: background var(--t);
}
.nav-cart:hover { background: var(--surface); }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--cta); color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-badge:empty { display: none; }

.nav-burger {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  border-radius: var(--r);
  transition: background var(--t);
}
.nav-burger:hover { background: var(--surface); }

@media (min-width: 1024px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 48px; }
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-logo { font-size: 17px; letter-spacing: 0.45em; }
  .nav-links a { font-size: 13px; letter-spacing: 0.02em; }
}

/* ─── Mobile drawer ──────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(23,26,32,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(320px, 86vw);
  background: var(--bg);
  transform: translateX(100%);
  transition: transform var(--t);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: var(--nav-h);
  border-bottom: 1px solid var(--hairline);
}
.drawer-head .nav-logo { font-size: 16px; }

.drawer-list { padding: 12px 8px; flex: 1; overflow-y: auto; }
.drawer-list a {
  display: block; padding: 14px 16px;
  font-size: 16px; font-weight: 400; color: var(--ink);
  border-radius: var(--r);
  transition: background var(--t);
}
.drawer-list a:hover { background: var(--surface); }
.drawer-list .group-label {
  display: block; padding: 16px 16px 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
}
.drawer-list .sub a { font-size: 14px; padding: 10px 16px 10px 24px; color: var(--ink-soft); }
.drawer-foot {
  padding: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--mute);
}

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-width: 44px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-outline:hover { background: var(--surface); }

.btn-ghost { background: transparent; color: var(--ink); font-weight: 400; }
.btn-ghost:hover { color: var(--mute); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ─── Section primitives ─────────────────────────── */
.section { max-width: 1280px; margin: 0 auto; padding: 64px 20px; }
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute);
  margin: 0 0 12px;
}
.section-title {
  font-size: 28px; font-weight: 300;
  letter-spacing: -0.01em; line-height: 1.2;
  margin: 0 0 12px;
}
.section-desc { font-size: 15px; color: var(--mute); margin: 0; max-width: 64ch; }

@media (min-width: 1024px) {
  .section { padding: 96px 48px; }
  .section-title { font-size: 32px; font-weight: 300; letter-spacing: -0.02em; }
}

/* ─── Hero (homepage) ─────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  background: radial-gradient(120% 80% at 50% 30%, #1a2942 0%, #0b1422 60%, #07101c 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 70%, rgba(0,0,0,0.4) 100%),
    radial-gradient(60% 40% at 80% 30%, rgba(52, 87, 220, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 64px 20px;
}
.hero h1 {
  font-size: 40px; font-weight: 300;
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 16px 0 16px; max-width: 18ch;
}
.hero p.lead {
  font-size: 16px; font-weight: 400;
  color: rgba(255,255,255,0.78);
  margin: 0 0 28px; max-width: 48ch;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 6px 14px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (min-width: 1024px) {
  .hero-inner { padding: 96px 32px; }
  .hero h1 { font-size: 72px; }
  .hero p.lead { font-size: 18px; }
}

/* ─── Category blocks ─────────────────────────────── */
.cat-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.cat-cell {
  border-bottom: 1px solid var(--hairline);
  padding: 32px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: background var(--t);
}
.cat-cell:hover { background: var(--surface-2); }
.cat-cell .cat-info h3 {
  margin: 0 0 4px;
  font-size: 18px; font-weight: 400;
}
.cat-cell .cat-info p {
  margin: 0;
  font-size: 13px; color: var(--mute);
}
.cat-cell .cat-arrow {
  flex: 0 0 auto; color: var(--mute);
  transition: transform var(--t), color var(--t);
}
.cat-cell:hover .cat-arrow { transform: translateX(2px); color: var(--ink); }
.cat-cell .cat-count {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute);
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--hairline); }
  .cat-cell { padding: 48px 32px; border-right: 1px solid var(--hairline); border-left: 0; }
}

/* ─── Product grid (Adidas-style) ────────────────── */
/* 2-col on mobile · 3-col tablet · 4-col desktop · 5-col wide. Cards are
   borderless — image-as-card. Hover lifts only the image, never moves the
   card frame (no jitter when scanning a grid). */
/* ─── Bottom bar ─────────────────────────────────── */
.hw-bottombar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 70; height: 56px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.hw-bottombar-inner {
  max-width: 560px; margin: 0 auto;
  height: 100%; display: flex; align-items: stretch;
}
.hw-bar-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--mute);
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  position: relative; transition: color var(--t);
}
.hw-bar-item::before {
  content: ''; position: absolute; top: 0; left: 32%; right: 32%; height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--cta); opacity: 0; transform: scaleX(0.5);
  transition: opacity var(--t), transform var(--t);
}
.hw-bar-item.bar-active { color: var(--cta); }
.hw-bar-item.bar-active::before { opacity: 1; transform: scaleX(1); }
.hw-bar-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.hw-bar-item .bar-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--cta); color: #fff; border-radius: 999px;
  font-size: 9px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.hw-bar-item .bar-badge:empty { display: none; }
body.has-bottombar { padding-bottom: 56px; }
body.admin-body.has-bottombar { padding-bottom: 0; }
body.admin-body .hw-bottombar { display: none; }
@media (min-width: 1024px) {
  .hw-bottombar { display: none !important; }
  body.has-bottombar { padding-bottom: 0; }
}

/* ─── Catalog page layout ────────────────────────── */
.catalog-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
@media (min-width: 1024px) {
  .catalog-section { padding: 56px 48px 120px; }
}
.catalog-header {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.catalog-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300; color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}
.catalog-count {
  font-size: 13px; color: var(--mute);
}
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--mute);
  font-size: 14px;
}

/* ─── Products grid ──────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
@media (min-width: 640px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1280px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 48px 28px; } }

/* ─── Product card ───────────────────────────────── */
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 350ms ease;
  padding: 8px;
}
.product-card-placeholder {
  width: 48px; height: 48px; color: var(--mute-2);
}

/* Sale badge on image */
.card-badge-sale {
  position: absolute; top: 10px; left: 10px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Card text body */
.card-body { display: flex; flex-direction: column; gap: 4px; }

.card-brand {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mute); margin: 0;
}

.product-card .product-name {
  font-size: 14px; font-weight: 500; color: var(--ink);
  margin: 0; line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .product-card .product-name { font-size: 14px; }
}
@media (min-width: 1024px) {
  .product-card .product-name { font-size: 14px; font-weight: 400; }
  .price-now { font-size: 15px; font-weight: 600; }
}

/* Price row */
.price-row {
  display: flex; align-items: baseline;
  flex-wrap: wrap; gap: 6px;
  margin-top: 2px;
}
.price-now {
  font-size: 16px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em;
}
.price-strike {
  font-size: 12px; color: var(--mute-2);
  text-decoration: line-through; font-weight: 400;
}
.price-pct {
  font-size: 11px; font-weight: 600; color: var(--danger);
}
@media (min-width: 768px) { .price-now { font-size: 17px; } }

/* Legacy */
.sale-badge { display: none; }
.card-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute); margin: 0 0 4px;
}
.product-card .price {
  font-size: 17px; font-weight: 700; color: var(--danger); margin-top: auto;
}
.product-meta { font-size: 12px; color: var(--mute); line-height: 1.4; margin-top: 2px; }

/* ─── Configurator (product detail) — simplified ─── */
.cfg {
  display: block;
}
@media (min-width: 1024px) {
  .cfg {
    display: grid;
    grid-template-columns: 58% 42%;
    min-height: calc(100vh - var(--nav-h));
  }
}

.cfg-stage {
  position: relative;
  background: linear-gradient(180deg, #F4F6F8 0%, #DEE2E6 100%);
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
}
.cfg-stage img { width: 100%; height: 100%; object-fit: cover; }
.cfg-stage-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(23,26,32,0.16);
}
.cfg-stage-fallback svg { width: 200px; height: 200px; }
@media (min-width: 1024px) {
  .cfg-stage { height: 100%; min-height: 0; position: sticky; top: var(--nav-h); }
}

.cfg-body {
  display: flex; flex-direction: column;
  padding: 32px 20px 96px; /* mobile sticky-footer space */
}
@media (min-width: 1024px) {
  .cfg-body {
    padding: 64px 56px 64px;
    max-width: 600px;
  }
}

.cfg-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute);
  margin: 0 0 12px;
}
.cfg-title {
  font-size: 28px; font-weight: 300;
  letter-spacing: -0.01em; line-height: 1.15;
  margin: 0 0 12px;
}
.cfg-hook {
  font-size: 15px; color: var(--mute);
  margin: 0 0 24px; line-height: 1.55;
}
@media (min-width: 1024px) {
  .cfg-title { font-size: 36px; }
}

/* Price block (inline in body, not sticky on desktop) */
.cfg-price {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 20px;
}
.cfg-price .v { font-size: 28px; font-weight: 400; color: var(--ink); }
.cfg-price .strike { color: var(--mute-2); text-decoration: line-through; font-size: 16px; }
.cfg-price .pct {
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  background: var(--danger); color: #fff;
  padding: 4px 8px; border-radius: var(--r);
}

/* Stock row */
.stock-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--mute);
  margin-bottom: 24px;
}
.stock-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--success);
}
.stock-dot.out { background: var(--danger); }

/* Specs strip — 4 cells, real data from product */
.spec-strip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  margin: 0 0 32px;
  overflow: hidden;
}
.spec-cell {
  background: var(--bg);
  padding: 16px;
  text-align: left;
}
.spec-cell .l {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute);
  margin-bottom: 6px;
}
.spec-cell .v {
  font-size: 16px; font-weight: 400; color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}
@media (min-width: 1024px) {
  .spec-strip { grid-template-columns: repeat(4, 1fr); }
}

/* Long description / specs body */
.cfg-body-long {
  font-size: 14px; line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-wrap;
  margin: 0 0 32px;
}

.cfg-block {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}
.cfg-block h4 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute);
  margin: 0 0 12px;
}
.cfg-block .body {
  font-size: 14px; line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

/* Sticky footer (mobile) / inline CTA (desktop) */
.cfg-cta-row {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.cfg-cta-row .price-mini { flex: 1; }
.cfg-cta-row .price-mini .v { font-size: 18px; font-weight: 400; color: var(--ink); }
.cfg-cta-row .price-mini .l { font-size: 11px; color: var(--mute); }
.cfg-cta-row .btn { flex: 0 0 auto; }

@media (min-width: 1024px) {
  .cfg-cta-row { display: none; }
  .cfg-body .btn-primary.cta-desktop {
    display: inline-flex; width: 100%;
    height: 52px;
    font-size: 16px;
  }
}
.cfg-body .btn-primary.cta-desktop { display: none; }


/* Fade-in observer */
.fade-in { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── Forms (used by contact, checkout, admin) ────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea, input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--t), background var(--t);
}
textarea, .form-textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-help { font-size: 12px; color: var(--mute); margin-top: 6px; }

input[type=checkbox] { width: auto; height: auto; accent-color: var(--cta); }

/* Cart line item */
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-line .img {
  width: 64px; height: 64px;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
}
.cart-line .img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Checkout identity banner (logged-in lead) ───── */
.checkout-identity {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 13px; color: var(--ink-soft);
}
.checkout-identity strong { font-weight: 600; color: var(--ink); }
.checkout-identity button {
  font-size: 12px; font-weight: 500; color: var(--mute);
  padding: 4px 8px; border-radius: 6px;
  transition: color var(--t), background var(--t);
}
.checkout-identity button:hover { color: var(--danger); background: var(--danger-soft); }

/* ─── ADMIN DASHBOARD ─────────────────────────────── */
body.admin-body { background: var(--surface-2); }

.admin-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: 0 20px;
}
.admin-nav-left { display: flex; align-items: center; gap: 16px; }
.admin-nav-logo {
  font-size: 18px; font-weight: 500;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ink);
}
.admin-nav-pill {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--surface);
  border-radius: 999px;
}
.admin-nav-right { display: flex; align-items: center; gap: 8px; }
.admin-nav-user { font-size: 13px; color: var(--mute); }
.admin-nav-btn {
  height: 36px; padding: 0 14px;
  font-size: 13px; color: var(--ink);
  border-radius: var(--r);
  display: inline-flex; align-items: center;
  transition: background var(--t), color var(--t);
}
.admin-nav-btn:hover { background: var(--surface); }
.admin-nav-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }

.admin-burger { display: inline-flex; }
@media (min-width: 1024px) { .admin-burger { display: none; } }

.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.admin-sidebar {
  position: fixed; top: var(--nav-h); bottom: 0; left: 0;
  width: var(--admin-sb);
  background: var(--bg);
  border-right: 1px solid var(--hairline);
  padding: 16px 12px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--t);
  z-index: 80;
}
.admin-sidebar.open { transform: translateX(0); }
@media (min-width: 1024px) {
  .admin-sidebar { transform: translateX(0); }
}

.admin-sb-group { margin-bottom: 16px; }
.admin-sb-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute);
  padding: 8px 12px;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  font-size: 14px; font-weight: 400;
  color: var(--ink-soft);
  border-radius: var(--r);
  transition: all var(--t);
}
.admin-sidebar a:hover { color: var(--ink); background: var(--surface); }
.admin-sidebar a.active {
  color: var(--ink); background: var(--surface);
  font-weight: 500;
}
.admin-sidebar a svg { width: 18px; height: 18px; flex-shrink: 0; }

.admin-main {
  flex: 1;
  padding: 24px 20px;
}
@media (min-width: 1024px) {
  .admin-main { margin-left: var(--admin-sb); padding: 32px; }
}

.admin-page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 32px;
}
.admin-page-title { font-size: 24px; font-weight: 400; color: var(--ink); margin: 0; }
.admin-page-subtitle { font-size: 13px; color: var(--mute); margin: 4px 0 0; }

.admin-stats {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin-bottom: 28px;
}
@media (min-width: 640px)  { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .admin-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.stat-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color var(--t);
}
.stat-card:hover { border-color: var(--ink); }
.stat-card-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
}
.stat-card-num {
  font-size: 28px; font-weight: 300; color: var(--ink);
  margin-top: 6px; line-height: 1.2;
}
.stat-card-trend { font-size: 12px; color: var(--mute); margin-top: 4px; }

.content-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  margin-bottom: 20px;
  overflow: hidden;
}
.content-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.content-card-title { font-size: 14px; font-weight: 500; color: var(--ink); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; padding: 12px 20px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute);
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}
.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-2); }

.table-action {
  font-size: 13px; color: var(--ink);
  padding: 6px 10px; border-radius: var(--r);
  transition: background var(--t), color var(--t);
}
.table-action:hover { background: var(--surface); }
.table-action.delete:hover { background: var(--danger-soft); color: var(--danger); }

.admin-section { display: none; }
.admin-section.active { display: block; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23,26,32,0.5);
  display: none;
  align-items: flex-end; justify-content: center;
}
@media (min-width: 640px) { .modal-overlay { align-items: center; } }
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg);
  border-radius: var(--r) var(--r) 0 0;
  width: 100%;
  max-width: 640px; max-height: 90vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) {
  .modal { border-radius: var(--r); margin: 24px; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
.modal-header h2 { font-size: 16px; font-weight: 500; margin: 0; }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--mute);
  transition: background var(--t), color var(--t);
}
.modal-close:hover { background: var(--surface); color: var(--ink); }
.modal-body { padding: 20px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--hairline);
  position: sticky; bottom: 0; background: var(--bg);
}

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.status-pill.ok { background: var(--success-soft); color: var(--success); }
.status-pill.warn { background: var(--warning-soft); color: var(--warning); }
.status-pill.bad { background: var(--danger-soft); color: var(--danger); }
.status-pill.mute { background: var(--surface); color: var(--mute); }

.empty-state {
  text-align: center; padding: 48px 20px;
  color: var(--mute);
}
.empty-state svg { width: 40px; height: 40px; opacity: 0.4; margin: 0 auto 12px; }

/* ─── Motion (scroll reveal · stagger · toast) ───── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(.2,.6,.2,1), transform 600ms cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Toast (slide up from bottom) */
.toast-deck {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 14px; font-weight: 400;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  opacity: 0; transform: translateY(12px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  min-width: 240px; max-width: calc(100vw - 40px);
}
.toast.in { opacity: 1; transform: none; }
.toast .ok-dot {
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

/* Cart badge bump on add */
@keyframes badge-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.cart-badge.bump { animation: badge-bump 320ms ease-out; }


/* ─── Hero refinements ───────────────────────────── */
.hero-anchor {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}
.hero-anchor strong { color: #fff; font-weight: 500; }

/* ─── Trust badges (product detail under price) ──── */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 24px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px; color: var(--ink);
}
.trust-badge svg { width: 14px; height: 14px; color: var(--success); }

/* Product card image: slight zoom on hover (desktop only) */
@media (hover: hover) and (min-width: 1024px) {
  .product-card .product-card-img img {
    transition: transform 600ms cubic-bezier(.2,.6,.2,1);
  }
  .product-card:hover .product-card-img img {
    transform: scale(1.04);
  }
}


/* Image preview chips inside admin form */
.img-chip {
  position: relative;
  display: inline-block;
  width: 64px; height: 64px;
  margin-right: 8px; margin-bottom: 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: hidden;
}
.img-chip img { width: 100%; height: 100%; object-fit: cover; }
.img-chip .x {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.6); color: #fff;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════
   Tesla-PDP overlay  (opt-in via body.pdp-tesla on product.html)

   Honors the maintainer's "simplified" intent — keeps every
   existing element, just re-layers the layout to the Tesla shell:
     · sticky pure-white image stage, drop-shadow
     · centered eyebrow / title / hook
     · 3-cell stat strip, large numeral + tiny unit + label
     · real in-category sibling variant cards (NOT synthetic packages)
     · persistent bottom CTA bar on BOTH desktop and mobile
   ═══════════════════════════════════════════════════════════════ */

body.pdp-tesla .cfg-stage {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
body.pdp-tesla .cfg-stage #stageImage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
body.pdp-tesla .cfg-stage img {
  width: auto; height: auto;
  max-width: 88%; max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(23,26,32,0.14));
}
@media (min-width: 1024px) {
  body.pdp-tesla .cfg { grid-template-columns: 60% 40%; }
  body.pdp-tesla .cfg-body { max-width: 560px; padding: 72px 56px 96px; }
}

/* Center the masthead block (eyebrow + title + hook) like Tesla */
body.pdp-tesla .cfg-eyebrow,
body.pdp-tesla .cfg-title,
body.pdp-tesla .cfg-hook {
  text-align: center;
}
body.pdp-tesla .cfg-title { font-weight: 500; margin-bottom: 8px; }
@media (min-width: 1024px) {
  body.pdp-tesla .cfg-title { font-size: 44px; }
}

/* Reorder: stats up under hook → variants → price/trust/stock/etc. */
body.pdp-tesla .cfg-body { display: flex; flex-direction: column; }
body.pdp-tesla .cfg-body > .cfg-eyebrow    { order: 1; }
body.pdp-tesla .cfg-body > .cfg-title      { order: 2; }
body.pdp-tesla .cfg-body > .cfg-hook       { order: 3; }
body.pdp-tesla .cfg-body > .spec-strip     { order: 4; }
body.pdp-tesla .cfg-body > .cfg-variants   { order: 5; }
body.pdp-tesla .cfg-body > .cfg-price      { order: 6; justify-content: center; }
body.pdp-tesla .cfg-body > .trust-row      { order: 7; justify-content: center; }
body.pdp-tesla .cfg-body > .stock-row      { order: 8; justify-content: center; }
body.pdp-tesla .cfg-body > .cta-desktop    { order: 9; }
body.pdp-tesla .cfg-body > .cfg-body-long  { order: 10; }
body.pdp-tesla .cfg-body > #blockLong      { order: 11; }
body.pdp-tesla .cfg-body > #blockSpecs     { order: 12; }
body.pdp-tesla .cfg-body > #blockAccessories { order: 13; }
body.pdp-tesla .cfg-body > .cfg-block      { order: 14; }

/* Stat strip — Tesla treatment (transparent, 3-up, centered) */
body.pdp-tesla .spec-strip {
  background: transparent;
  border: 0;
  border-radius: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 8px 0 32px;
}
body.pdp-tesla .spec-cell {
  background: transparent;
  padding: 8px 4px;
  text-align: center;
  border-right: 1px solid var(--hairline);
}
body.pdp-tesla .spec-cell:last-child { border-right: 0; }
body.pdp-tesla .spec-cell .v {
  font-size: 22px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
body.pdp-tesla .spec-cell .v .u {
  font-size: 12px; font-weight: 500; color: var(--mute);
  margin-left: 3px;
}
body.pdp-tesla .spec-cell .l {
  font-size: 11px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mute);
  margin-top: 4px;
}
@media (min-width: 1024px) {
  body.pdp-tesla .spec-strip { grid-template-columns: repeat(3, 1fr); }
}

/* Variant card list (Tesla "Rear-Wheel Drive / Premium / Performance") */
body.pdp-tesla .cfg-variants {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 24px;
}
body.pdp-tesla .cfg-variant {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
body.pdp-tesla .cfg-variant:hover { border-color: var(--ink); }
body.pdp-tesla .cfg-variant.active {
  background: var(--surface);
  border-color: var(--ink);
  border-width: 2px;
  padding: 15px 17px;
}
body.pdp-tesla .cfg-variant-l { display: flex; flex-direction: column; min-width: 0; }
body.pdp-tesla .cfg-variant-name {
  font-size: 14px; font-weight: 400; color: var(--ink);
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
}
body.pdp-tesla .cfg-variant.active .cfg-variant-name { font-weight: 500; }
body.pdp-tesla .cfg-variant-sub {
  font-size: 11px; color: var(--mute); margin-top: 2px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
body.pdp-tesla .cfg-variant-price {
  font-size: 14px; font-weight: 500; color: var(--ink);
  white-space: nowrap;
  margin-left: 12px;
}

/* Hide the inline desktop CTA (bottom bar takes over) */
body.pdp-tesla .cfg-body .btn-primary.cta-desktop { display: none !important; }

/* Persistent bottom bar — visible on BOTH mobile (default) AND desktop */
@media (min-width: 1024px) {
  body.pdp-tesla .cfg-cta-row {
    display: flex;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    padding: 14px 32px;
  }
  body.pdp-tesla .cfg-cta-row .price-mini .v { font-size: 22px; }
  body.pdp-tesla .cfg-cta-row .btn { padding: 0 36px; }
}

/* Bottom bar shouldn't crash into Хүргэлт block on desktop */
@media (min-width: 1024px) {
  body.pdp-tesla .cfg-body { padding-bottom: 120px; }
}

/* Tiny qty stepper inline next to the desktop CTA (mobile keeps full-width) */
body.pdp-tesla .cfg-qty {
  display: none;
}
@media (min-width: 1024px) {
  body.pdp-tesla .cfg-qty {
    display: inline-flex; align-items: center;
    border: 1px solid var(--hairline-strong);
    border-radius: 999px;
    height: 44px;
    overflow: hidden;
    margin-right: 4px;
  }
  body.pdp-tesla .cfg-qty button {
    width: 40px; height: 44px;
    font-size: 18px; color: var(--ink);
    transition: background var(--t);
  }
  body.pdp-tesla .cfg-qty button:hover { background: var(--surface); }
  body.pdp-tesla .cfg-qty span {
    min-width: 28px; text-align: center;
    font-size: 14px; font-weight: 500; color: var(--ink);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HW-2026 — modern UX overlay inspired by joybilliard's pattern
   library (carousel hero + overlay link-buttons + status pills +
   bottom-nav + floating call FAB), translated to Hero Water's
   white / ink / cta-blue aesthetic. Additive — no existing rule
   modified.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Hero carousel (replaces .hero on index) ─── */
.hw-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h) - 56px); /* nav + mobile bottom-bar */
  min-height: 520px; max-height: 820px;
  background: var(--surface);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hw-hero { height: calc(100vh - var(--nav-h)); max-height: none; }
}
.hw-slider-track {
  display: flex; height: 100%;
  transition: transform 550ms cubic-bezier(.25,.1,.25,1);
  will-change: transform;
}
.hw-slider-track.dragging { transition: none; }
.hw-slide { position: relative; height: 100%; width: 100%; flex-shrink: 0; }
.hw-slide img, .hw-slide video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hw-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0%, rgba(255,255,255,0) 38%,
    rgba(255,255,255,0.55) 70%, rgba(255,255,255,0.95) 100%);
}
@media (min-width: 1024px) {
  .hw-slide-overlay {
    background: linear-gradient(90deg,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.88) 30%,
      rgba(255,255,255,0.3) 58%,
      rgba(255,255,255,0) 75%);
  }
}
.hw-hero-tagline {
  position: absolute; top: 16px; left: 0; right: 0; z-index: 8;
  display: flex; justify-content: center; pointer-events: none;
}
.hw-hero-tagline .tag {
  padding: 6px 18px; border-radius: 999px;
  background: rgba(23,26,32,0.78); backdrop-filter: blur(10px);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: #fff;
}
.hw-hero-headline {
  position: absolute; top: 56px; left: 0; right: 0; z-index: 6;
  padding: 0 20px; text-align: center; pointer-events: none;
}
.hw-hero-headline h1 {
  font-size: clamp(28px, 6.4vw, 56px); font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255,255,255,0.4);
  margin: 0 0 6px;
}
.hw-hero-headline h1 strong { font-weight: 500; color: var(--cta); }
.hw-hero-headline .sub {
  font-size: 14px; color: var(--mute);
  font-weight: 400; max-width: 480px; margin: 0 auto;
}

/* Slider dots & counter */
.hw-slider-dots {
  position: absolute; bottom: 320px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 8;
}
.hw-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(23,26,32,0.2); border: 0; padding: 0;
  cursor: pointer; transition: all 0.3s;
}
.hw-dot.active { width: 18px; border-radius: 3px; background: var(--cta); }
.hw-slider-counter {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(23,26,32,0.7); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 500; color: #fff; letter-spacing: 0.04em;
}

/* ─── Hero slide CTA ─── */
.hw-slide-cta {
  position: absolute; bottom: 44px; left: 0; right: 0; z-index: 4;
  padding: 0 48px;
  pointer-events: auto;
}
.slide-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cta); margin: 0 0 10px;
}
.slide-headline {
  font-size: clamp(22px, 4.6vw, 44px);
  font-weight: 300; letter-spacing: -0.03em;
  color: var(--ink); margin: 0 0 8px;
  line-height: 1.06; max-width: 560px;
}
.slide-sub {
  font-size: 14px; color: var(--mute);
  margin: 0 0 22px; max-width: 420px; line-height: 1.55;
}
.slide-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.slide-btn-primary {
  display: inline-flex; align-items: center;
  padding: 12px 24px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: opacity 0.2s; white-space: nowrap;
}
.slide-btn-primary:hover { opacity: 0.82; }
.slide-btn-ghost {
  display: inline-flex; align-items: center;
  padding: 12px 24px; border-radius: 8px;
  border: 1.5px solid rgba(23,26,32,0.28);
  background: rgba(255,255,255,0.55); backdrop-filter: blur(4px);
  color: var(--ink); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: border-color 0.2s; white-space: nowrap;
}
.slide-btn-ghost:hover { border-color: var(--ink); }
@media (max-width: 600px) {
  .hw-slide-cta { padding: 0 20px; bottom: 28px; }
  .slide-sub { display: none; }
  .slide-btn-primary, .slide-btn-ghost { padding: 11px 18px; font-size: 12px; }
}
@media (min-width: 1024px) {
  .hw-slide-cta {
    /* align with content max-width (1280px) */
    left: max(64px, calc((100vw - 1280px) / 2 + 64px));
    right: auto;
    bottom: 10vh;
    padding: 0;
    max-width: 560px;
  }
  .slide-eyebrow { margin-bottom: 14px; }
  .slide-headline { font-size: clamp(32px, 3.2vw, 52px); margin-bottom: 14px; max-width: 520px; }
  .slide-sub { display: block; margin-bottom: 28px; font-size: 15px; max-width: 400px; }
  .slide-btn-primary, .slide-btn-ghost { padding: 14px 30px; font-size: 14px; }
  .hw-slider-dots { right: max(48px, calc((100vw - 1280px) / 2 + 48px)); left: auto; transform: none; bottom: 10vh; }
  .hw-slider-counter { display: none !important; }
}

/* ─── Featured grid (Adidas-style, mobile-first) ─── */
/* Was a horizontal scroll strip on mobile; promoted to a real grid to mirror
   the catalog page. 2-col mobile · 3-col tablet · 4-col desktop. */
.hw-featured-scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  column-gap: 12px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.hw-featured-scroll > * { flex: none; max-width: none; }
@media (min-width: 640px)  { .hw-featured-scroll { grid-template-columns: repeat(2, 1fr); gap: 24px; column-gap: 20px; } }
@media (min-width: 768px)  { .hw-featured-scroll { grid-template-columns: repeat(3, 1fr); gap: 28px; column-gap: 24px; } }
@media (min-width: 1280px) { .hw-featured-scroll { grid-template-columns: repeat(4, 1fr); gap: 32px; column-gap: 28px; } }





/* ─── Admin Command Center (entrepreneur dashboard) ─── */
.cmd-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.cmd-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(52,87,220,0.28), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(22,163,74,0.18), transparent 45%);
  pointer-events: none;
}
.cmd-hero > * { position: relative; }
.cmd-hero-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px;
}
.cmd-hero-eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 6px;
}
.cmd-hero-title { font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.cmd-hero-time {
  font-size: 11px; color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
}

.cmd-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 640px) { .cmd-stats { grid-template-columns: repeat(4, 1fr); } }
.cmd-stat {
  background: rgba(255,255,255,0.03);
  padding: 16px;
}
.cmd-stat-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.cmd-stat-num {
  font-size: 24px; font-weight: 500; color: #fff;
  letter-spacing: -0.02em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.cmd-stat-delta {
  font-size: 11px; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.cmd-stat-delta.up   { color: #4ade80; }
.cmd-stat-delta.down { color: #f87171; }
.cmd-stat-delta.flat { color: rgba(255,255,255,0.5); }
.cmd-stat-delta svg { width: 11px; height: 11px; display: inline; vertical-align: -1px; }

/* 7-day sparkline */
.cmd-spark {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r);
}
.cmd-spark-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 10px;
}
.cmd-spark-svg { width: 100%; height: 64px; display: block; }
.cmd-spark-svg path.fill { fill: rgba(52,87,220,0.2); }
.cmd-spark-svg path.line { fill: none; stroke: #5b7df0; stroke-width: 2; }
.cmd-spark-svg circle { fill: #fff; stroke: #5b7df0; stroke-width: 2; }

/* Quick-action chip row */
.cmd-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.cmd-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: border-color var(--t), background var(--t);
}
.cmd-chip:hover { border-color: var(--ink); background: var(--surface); }
.cmd-chip.warn { border-color: var(--warning); background: var(--warning-soft); color: var(--warning); }
.cmd-chip.danger { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.cmd-chip .count {
  background: currentColor; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  min-width: 18px; text-align: center;
}
.cmd-chip.warn .count { color: var(--warning); background: #fff; }
.cmd-chip.danger .count { color: var(--danger); background: #fff; }

/* Two-up panel grid below hero */
.cmd-panels {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 1024px) { .cmd-panels { grid-template-columns: 1fr 1fr; gap: 16px; } }
.cmd-panel {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 18px;
}
.cmd-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cmd-panel-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0; font-weight: 500; }
.cmd-panel-action { font-size: 12px; color: var(--cta); text-decoration: none; }
.cmd-panel-action:hover { text-decoration: underline; }

.cmd-list { display: flex; flex-direction: column; gap: 10px; }
.cmd-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.cmd-row:last-child { border-bottom: 0; }
.cmd-row-rank {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--cta-soft); color: var(--cta);
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cmd-row-name {
  flex: 1; min-width: 0;
  font-size: 13px; color: var(--ink); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cmd-row-sub {
  font-size: 11px; color: var(--mute);
  margin-top: 2px;
}
.cmd-row-num {
  font-size: 13px; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cmd-stock-pill {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: var(--danger-soft); color: var(--danger);
}
.cmd-stock-pill.warn { background: var(--warning-soft); color: var(--warning); }
.cmd-stock-pill.ok { background: var(--success-soft); color: var(--success); }
.cmd-empty {
  padding: 24px; text-align: center;
  color: var(--mute); font-size: 13px;
}

/* ─── Analytics section ─── */
.anlt-period { display: flex; gap: 4px; }
.anlt-period-btn {
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent; font-size: 12px; font-weight: 500;
  cursor: pointer; color: var(--mute); transition: all 0.15s;
}
.anlt-period-btn.active, .anlt-period-btn:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.anlt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 16px;
}
@media (min-width: 640px) { .anlt-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.anlt-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
}
.anlt-kpi-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 8px; font-weight: 500;
}
.anlt-kpi-val {
  font-size: 22px; font-weight: 400; color: var(--ink);
  letter-spacing: -0.02em;
}
.anlt-chart-wrap { padding: 8px 0 4px; }
.anlt-bar-svg { width: 100%; height: 160px; display: block; overflow: visible; }
.anlt-x-axis {
  display: flex; justify-content: space-between;
  padding: 4px 8px 0;
  font-size: 10px; color: var(--mute);
}
.anlt-panels {
  display: grid; gap: 16px;
}
@media (min-width: 960px) { .anlt-panels { grid-template-columns: 1fr 1fr; } }
.anlt-status-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 4px 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.anlt-status-row:last-child { border-bottom: 0; }
.anlt-bar-track {
  height: 5px; border-radius: 999px;
  background: var(--border); overflow: hidden;
}
.anlt-bar-fill {
  height: 100%; border-radius: 999px;
  background: var(--cta); transition: width 0.7s ease;
}


/* ─── Auth pages (login / register / profile) ───────────────
   Antaqor-style structure: centered card, brand wordmark, tight form,
   prominent CTA. Light theme + herowater blue accent.
   Pages opt-in via <body class="auth-body">; profile.html keeps the nav. */
.auth-body {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-shell {
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; align-items: center;
}
.auth-card {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 32px 24px;
  box-shadow: 0 1px 2px rgba(23,26,32,0.04);
}
@media (min-width: 480px) { .auth-card { padding: 36px 32px; } }

.auth-brand {
  display: block;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.auth-title {
  margin: 18px 0 4px;
  font-size: 26px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.15;
  text-align: center;
}
.auth-sub {
  margin: 0 0 24px;
  font-size: 13px; color: var(--mute);
  text-align: center;
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }

.auth-field { display: block; }
.auth-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.auth-hint {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--mute-2);
}
.auth-hint[data-tone="warn"] { color: var(--warning); }
.auth-hint[data-tone="ok"]   { color: var(--success); }

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.auth-field input::placeholder { color: var(--mute-2); }
.auth-field input:hover { border-color: var(--ink-soft); }
.auth-field input:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(52,87,220,0.15);
}

.auth-error {
  margin: 4px 0 0;
  padding: 10px 12px;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.4;
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
  height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cta);
  color: #fff;
  border: 0;
  border-radius: var(--r);
  font: inherit;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, transform 80ms ease, box-shadow 120ms ease;
}
.auth-submit:hover  { background: var(--cta-hover); box-shadow: 0 8px 24px rgba(52,87,220,0.22); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.auth-submit-arrow { transition: transform 160ms ease; }
.auth-submit:hover .auth-submit-arrow { transform: translateX(2px); }

.auth-submit-inline { height: 44px; padding: 0 18px; flex: 1; min-width: 0; }
.auth-submit-ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  box-shadow: none;
}
.auth-submit-ghost:hover { background: var(--surface); color: var(--ink); box-shadow: none; }

.auth-fineprint {
  margin: 12px 0 0;
  font-size: 11px; color: var(--mute);
  text-align: center; line-height: 1.5;
}
.auth-fineprint a { color: var(--mute); text-decoration: underline; }
.auth-fineprint a:hover { color: var(--ink); }

.auth-divider {
  position: relative;
  margin: 24px 0 16px;
  text-align: center;
}
.auth-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--hairline);
}
.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: var(--bg);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--mute);
}

.auth-switch {
  margin: 0; text-align: center;
  font-size: 13px; color: var(--mute);
}
.auth-switch a {
  color: var(--cta); font-weight: 700; text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-back {
  margin-top: 18px;
  font-size: 12px; color: var(--mute);
  text-decoration: none;
}
.auth-back:hover { color: var(--ink); }

/* ─── Profile page ─── */
.profile-pane { max-width: 480px; margin: 0 auto; }
.profile-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 32px 24px;
  text-align: center;
}
@media (min-width: 480px) { .profile-card { padding: 40px 32px; } }
.profile-avatar {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cta-soft);
  color: var(--cta);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  letter-spacing: 0;
}
.profile-avatar-empty { background: var(--surface); color: var(--mute); }
.profile-avatar-empty svg { width: 36px; height: 36px; }
.profile-h1 {
  margin: 0 0 4px;
  font-size: 22px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em;
}
.profile-sub {
  margin: 0 0 20px;
  font-size: 13px; color: var(--mute);
  line-height: 1.5;
}
.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 0 0 24px;
  text-align: left;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
}
.profile-grid dt {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 2px;
}
.profile-grid dd {
  font-size: 14px; color: var(--ink); margin: 0;
  word-break: break-all;
}
.profile-cta-row {
  display: flex; gap: 10px;
  margin-top: 4px;
}

/* ─── Skeleton loader (shimmer) ────────────────────────────────────
   Shared shape language: pale grey block, animated shimmer overlay.
   Used by .product-card-skeleton (grid) and .pdp-skeleton (detail). */
@keyframes hw-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton-block,
.skeleton-line {
  background: linear-gradient(90deg, #ECECEC 0%, #F6F6F6 50%, #ECECEC 100%);
  background-size: 200% 100%;
  animation: hw-shimmer 1.4s linear infinite;
  border-radius: var(--r);
}
.skeleton-line { height: 14px; }
.skeleton-line-sm { height: 10px; }
.skeleton-line-md { height: 14px; }
.skeleton-line-lg { height: 22px; }
.product-card-skeleton { pointer-events: none; }
.product-card-skeleton .product-card-img { background: none; }
.product-card-skeleton .skeleton-line { margin-top: 0; }

/* ─── Product detail page (PDP) — rewritten layout ─────────────────
   Two-column on tablet+, single column on mobile. No border on the
   stage frame — image as the visual; light surface behind.
   All radii via var(--r) = 4px. */
/* ─── Product Detail Page (PDP) ─────────────────────────────────── */
.pdp-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 20px 0;
  max-width: 1200px; margin: 0 auto;
  font-size: 12px; color: var(--mute);
}
.pdp-breadcrumb a {
  color: var(--mute); text-decoration: none;
  transition: color var(--t);
}
.pdp-breadcrumb a:hover { color: var(--ink); }
.pdp-breadcrumb svg { opacity: 0.4; flex-shrink: 0; }
.pdp-breadcrumb span { color: var(--ink-soft); }

.pdp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px 20px 80px;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 768px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 32px 20px 80px; }
}
@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 56%) minmax(0, 44%); gap: 80px; padding: 40px 48px 100px; }
  .pdp-breadcrumb { padding: 24px 48px 0; }
}

/* Media */
.pdp-media { min-width: 0; }
.pdp-stage {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pdp-stage img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pdp-stage-empty { color: var(--mute-2); }
.pdp-stage-empty svg { width: 64px; height: 64px; }

.pdp-thumbs {
  display: flex; gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  flex-shrink: 0;
  width: 72px; height: 72px;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.pdp-thumb:hover  { border-color: var(--ink-soft); }
.pdp-thumb.active { border-color: var(--ink); }
.pdp-thumb img    { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pdp-thumb.skeleton-block { border: 0; }

/* Info */
.pdp-info { min-width: 0; display: flex; flex-direction: column; }

.pdp-title {
  font-size: 24px; font-weight: 400; color: var(--ink);
  margin: 0 0 8px; line-height: 1.25; letter-spacing: -0.02em;
}
@media (min-width: 768px) { .pdp-title { font-size: 28px; } }
@media (min-width: 1024px) { .pdp-title { font-size: 34px; font-weight: 300; } }

.pdp-hook {
  font-size: 14px; color: var(--mute); line-height: 1.5; margin: 0 0 20px;
}

.pdp-price-row {
  display: flex; align-items: baseline; flex-wrap: wrap;
  column-gap: 10px; row-gap: 4px;
  margin-bottom: 16px;
}
.pdp-price {
  font-size: 28px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.02em;
}
@media (min-width: 1024px) { .pdp-price { font-size: 32px; } }
.pdp-strike { color: var(--mute-2); text-decoration: line-through; font-size: 15px; }
.pdp-pct {
  background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}

.pdp-stock {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-soft);
  margin-bottom: 24px;
}
.pdp-stock .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex-shrink: 0;
}
.pdp-stock.out .dot { background: var(--danger); }
.pdp-stock.out span:last-child { color: var(--danger); }

/* CTA block — qty + add-to-cart (secondary) then buy-now (primary) */
.pdp-cta { margin-bottom: 28px; }
.pdp-cta-row {
  display: flex; gap: 10px; align-items: stretch;
  margin-bottom: 10px;
}
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 12px; overflow: hidden;
  height: 52px; flex-shrink: 0;
}
.qty-stepper button {
  width: 44px; height: 100%; border: 0;
  background: transparent; color: var(--ink);
  font-size: 20px; cursor: pointer;
  transition: background 120ms;
}
.qty-stepper button:hover { background: var(--surface); }
.qty-stepper span {
  min-width: 36px; text-align: center;
  font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Add to cart — secondary (outline) */
.pdp-add-btn {
  flex: 1; height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 12px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms;
}
.pdp-add-btn:hover { background: var(--ink); color: #fff; }
.pdp-add-btn:disabled { opacity: 0.35; cursor: not-allowed; background: var(--bg); color: var(--ink); }

/* Buy now — primary (filled accent), full width */
.pdp-buy-btn {
  width: 100%; height: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cta); color: #fff;
  border: 0; border-radius: 12px;
  font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; transition: background 150ms, transform 120ms;
  box-shadow: 0 6px 18px rgba(52,87,220,0.22);
}
.pdp-buy-btn:hover  { background: var(--cta-hover); }
.pdp-buy-btn:active { transform: scale(0.99); }
.pdp-buy-btn:disabled { background: var(--mute-2); box-shadow: none; cursor: not-allowed; }
.pdp-buy-btn svg { flex-shrink: 0; }

/* Description */
.pdp-description {
  font-size: 14px; line-height: 1.7; color: var(--ink-soft);
  white-space: pre-line; margin: 0 0 24px;
}

/* Collapsible blocks */
.pdp-blocks { border-top: 1px solid var(--hairline); }
.pdp-block {
  border-bottom: 1px solid var(--hairline);
  padding: 0;
}
.pdp-block > summary {
  list-style: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.pdp-block > summary::-webkit-details-marker { display: none; }
.pdp-block > summary::after {
  content: "+"; color: var(--mute); font-size: 18px; line-height: 1;
}
.pdp-block[open] > summary::after { content: "−"; }
.pdp-block-body {
  padding-bottom: 16px;
  font-size: 13px; line-height: 1.7; color: var(--ink-soft);
  white-space: pre-line;
}


/* ─── Admin: Users filter chips ────────────────────────────────── */
.users-filter {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.users-filter-btn {
  height: 32px; padding: 0 14px;
  background: var(--bg);
  color: var(--ink-soft);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}
.users-filter-btn:hover { background: var(--surface); }
.users-filter-btn.active {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}

/* ─── Admin: Settings — hero slide rows + helpers ──────────────── */
.settings-block-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.settings-block-header h3 {
  margin: 0; font-size: 16px; font-weight: 700; color: var(--ink);
}
.settings-help {
  margin: 0 0 16px;
  font-size: 12px; color: var(--mute);
}
.settings-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .settings-grid { grid-template-columns: 1fr 1fr; } }

.slide-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.slide-row:last-child { border-bottom: 0; }
.slide-media {
  width: 120px; aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.slide-media img,
.slide-media video { width: 100%; height: 100%; object-fit: cover; }
.slide-empty { color: var(--mute-2); font-size: 11px; padding: 8px; text-align: center; }

.slide-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.slide-row-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.slide-active {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-soft);
  cursor: pointer;
}
.slide-active input { width: 16px; height: 16px; cursor: pointer; }

.slide-upload-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.slide-upload-row .btn { position: relative; cursor: pointer; }
.slide-upload-status {
  font-size: 12px; color: var(--mute); margin-left: 4px;
}

/* Reusable status pill for the users table */
.status-pill {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px; font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.status-pill.ok   { background: var(--success-soft); color: var(--success); }
.status-pill.warn { background: var(--warning-soft); color: var(--warning); }
.status-pill.bad  { background: var(--danger-soft);  color: var(--danger);  }
.status-pill.mute { background: var(--surface);      color: var(--ink-soft);}
