/* ============================================================
   Skotest — Design System
   Dark navy theme, rounded iOS-inspired cards, Inter font
   ============================================================ */

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

/* ------------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Background layers */
  --bg:        #0f172a;
  --surface:   #1e293b;
  --surface2:  #334155;
  --surface3:  #475569;

  /* Borders */
  --border:    #334155;
  --border2:   #475569;

  /* Accent (sky blue) */
  --accent:    #38bdf8;
  --accent-d:  #0ea5e9;
  --accent-bg: rgba(56, 189, 248, 0.12);

  /* Text */
  --text:      #f1f5f9;
  --muted:     #94a3b8;
  --muted2:    #64748b;

  /* Semantic */
  --success:   #4ade80;
  --success-bg: rgba(74, 222, 128, 0.12);
  --warning:   #facc15;
  --warning-bg: rgba(250, 204, 21, 0.12);
  --error:     #f87171;
  --error-bg:  rgba(248, 113, 113, 0.12);

  /* Editorial gold */
  --editorial: #f59e0b;
  --editorial-bg: rgba(245, 158, 11, 0.12);

  /* Border radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
  --shadow:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Layout */
  --max-width: 1200px;
  --header-h: 64px;
  --footer-h: 240px;
  --bottom-nav-h: 60px;   /* mobile bottom tab bar */
}

/* ------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-d); text-decoration: underline; }

img { display: block; max-width: 100%; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.page {
  padding: var(--sp-8) var(--sp-5);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--sp-4);
}
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .page { padding: var(--sp-4); }
}

/* Flex utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2       { gap: var(--sp-2); }
.gap-3       { gap: var(--sp-3); }
.gap-4       { gap: var(--sp-4); }

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem;   font-weight: 600; }

.text-sm   { font-size: 0.85rem; }
.text-xs   { font-size: 0.75rem; }
.text-lg   { font-size: 1.1rem; }
.text-xl   { font-size: 1.25rem; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.font-bold  { font-weight: 700; }
.font-semi  { font-weight: 600; }

/* Section title with optional "see all" link */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.section-header h2 { font-size: 1.25rem; }

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card-flat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}

/* Shoe card — image on top, info below */
.shoe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.shoe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  text-decoration: none;
  color: inherit;
}
.shoe-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface2);
}
.shoe-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
  font-size: 2.5rem;
}
.shoe-card__body {
  padding: var(--sp-3) var(--sp-4);
}
.shoe-card__brand { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.shoe-card__model { font-size: 1rem; font-weight: 600; margin: 2px 0 var(--sp-2); }
.shoe-card__meta  { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }

/* Review card */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.review-card__hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface2);
}
.review-card__body { padding: var(--sp-4); flex: 1; }
.review-card__type { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-2); }
.review-card__type--editorial { color: var(--editorial); }
.review-card__type--user      { color: var(--accent); }
.review-card__title { font-size: 1rem; font-weight: 600; margin-bottom: var(--sp-1); }
.review-card__excerpt { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.review-card__footer {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-5);
  height: 40px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #0f172a;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #0f172a; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--accent); color: var(--accent); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-bg); text-decoration: none; }

.btn-danger {
  background: transparent;
  color: var(--error);
  border-color: var(--error);
}
.btn-danger:hover { background: var(--error-bg); text-decoration: none; }

.btn-sm {
  height: 32px;
  padding: 0 var(--sp-3);
  font-size: 0.8rem;
}
.btn-lg {
  height: 52px;
  padding: 0 var(--sp-8);
  font-size: 1rem;
}

/* ------------------------------------------------------------
   Badges & Tags
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.badge-editorial { background: var(--editorial-bg); color: var(--editorial); }
.badge-user      { background: var(--accent-bg);    color: var(--accent); }
.badge-road      { background: #1e3a5f; color: #7dd3fc; }
.badge-track     { background: #2d1b4e; color: #c4b5fd; }
.badge-gravel    { background: #2e1b0e; color: #fdba74; }
.badge-trail     { background: #14291b; color: #86efac; }
.badge-carbon    { background: #1f1f2e; color: #a5b4fc; }
.badge-plate     { background: var(--surface2); color: var(--accent); }
.badge-pending   { background: var(--warning-bg); color: var(--warning); }
.badge-approved  { background: var(--success-bg); color: var(--success); }
.badge-rejected  { background: var(--error-bg); color: var(--error); }
.badge-admin     { background: #3b0764; color: #e879f9; }
.badge-editor    { background: var(--editorial-bg); color: var(--editorial); }
.badge-reviewer  { background: var(--accent-bg); color: var(--accent); }

/* Pill tag (for surfaces, use cases) */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.78rem;
  border: 1px solid var(--border);
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-group { margin-bottom: var(--sp-5); }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 10px var(--sp-3);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
input::placeholder, textarea::placeholder { color: var(--muted2); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
select option { background: var(--surface); }

textarea { resize: vertical; min-height: 100px; }

input[type="range"] {
  width: 100%;
  height: 4px;
  background: var(--surface2);
  border-radius: var(--r-full);
  appearance: none;
  outline: none;
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--r-full);
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--pct, 0%), var(--surface2) var(--pct, 0%), var(--surface2) 100%);
}

.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: var(--sp-1); }
.form-error { font-size: 0.78rem; color: var(--error); margin-top: var(--sp-1); }

/* Checkboxes & Radio */
.check-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.check-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  padding: 6px var(--sp-3);
  border-radius: var(--r-full);
  border: 1.5px solid var(--border2);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.check-label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}
.check-label input { display: none; }

/* Slider with value display */
.slider-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.slider-row input[type="range"] { flex: 1; }
.slider-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted2);
  margin-top: 2px;
}

/* ------------------------------------------------------------
   Rating bars
   ------------------------------------------------------------ */
.rating-bars { display: flex; flex-direction: column; gap: var(--sp-2); }

.rating-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.rating-label {
  font-size: 0.8rem;
  color: var(--muted);
  width: 110px;
  flex-shrink: 0;
}
.rating-track {
  flex: 1;
  height: 6px;
  background: var(--surface2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.rating-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-full);
  transition: width 0.4s ease;
}
.rating-score {
  width: 28px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

/* Big round score display */
.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Match progress bar (shoe selector)
   ------------------------------------------------------------ */
.match-bar {
  height: 8px;
  background: var(--surface2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.match-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  border-radius: var(--r-full);
  transition: width 0.5s ease;
}

/* ------------------------------------------------------------
   Image gallery (swipeable horizontal scroll)
   ------------------------------------------------------------ */
.gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface2);
}
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.gallery__slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface3);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.gallery__dot--active { background: var(--accent); transform: scale(1.3); }
.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,23,42,0.7);
  color: var(--text);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
  z-index: 2;
}
.gallery__btn:hover { background: rgba(56,189,248,0.3); }
.gallery__btn--prev { left: var(--sp-2); }
.gallery__btn--next { right: var(--sp-2); }
.gallery__credit {
  font-size: 0.72rem;
  color: var(--muted2);
  text-align: center;
  padding: var(--sp-1) var(--sp-3);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.header-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.header-brand span { color: var(--accent); }
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
}
.header-nav a {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--text);
  background: var(--surface2);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border-radius: var(--r-full);
  padding: 2px;
  gap: 2px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-btn.active { background: var(--accent); color: #0f172a; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: var(--sp-1);
}

/* Dropdown menu */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s, background 0.15s;
}
.dropdown-toggle:hover, .dropdown:has(.dropdown-menu.open) .dropdown-toggle {
  color: var(--text);
  background: var(--surface2);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  display: none;
  z-index: 200;
}
.dropdown-menu.open { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: block;
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.dropdown-menu a:hover, .dropdown-menu button:hover {
  background: var(--surface2);
  text-decoration: none;
  color: var(--text);
}
.dropdown-divider { height: 1px; background: var(--border); margin: var(--sp-1) 0; }

/* Avatar button */
.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile header */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 var(--bottom-nav-h) 0;
    background: var(--bg);
    padding: var(--sp-6) var(--sp-5);
    z-index: 90;
    overflow-y: auto;
    gap: var(--sp-2);
  }
  .header-nav.open a {
    padding: var(--sp-3) var(--sp-4);
    font-size: 1.1rem;
    border-radius: var(--r-md);
  }
  .menu-toggle { display: flex; }
}

/* ------------------------------------------------------------
   Bottom tab bar (mobile only)
   ------------------------------------------------------------ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: rgba(30, 41, 59, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 100;
}
.bottom-nav__inner {
  display: flex;
  height: 100%;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  transition: color 0.15s;
}
.bottom-nav__item.active, .bottom-nav__item:hover { color: var(--accent); }
.bottom-nav__icon { font-size: 1.2rem; line-height: 1; }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: var(--bottom-nav-h); }
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
#site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-10) var(--sp-5) var(--sp-6);
  margin-top: var(--sp-12);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-1);
}
.footer-brand span { color: var(--accent); }
.footer-tagline { color: var(--muted); font-size: 0.875rem; margin-bottom: var(--sp-6); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.footer-links a {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: var(--sp-2);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
@media (max-width: 600px) {
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------
   Modal
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: var(--sp-6); }
.modal-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
}

/* ------------------------------------------------------------
   Toast notifications
   ------------------------------------------------------------ */
#toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--sp-4));
  right: var(--sp-4);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-5);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.2s ease, toastOut 0.3s 3s ease forwards;
  max-width: 320px;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--error); }
.toast-info    { border-left: 3px solid var(--accent); }

@keyframes toastIn  { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(16px); } }

/* ------------------------------------------------------------
   Tabs
   ------------------------------------------------------------ */
.tab-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-row::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: var(--sp-3) var(--sp-5);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ------------------------------------------------------------
   Step wizard (shoe selector)
   ------------------------------------------------------------ */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}
.step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--surface2);
  color: var(--muted);
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.step.active .step-num   { background: var(--accent); color: #0f172a; border-color: var(--accent); }
.step.done .step-num     { background: var(--success); color: #0f172a; border-color: var(--success); }
.step-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.step.active .step-label { color: var(--text); }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 var(--sp-2); }

.step-panel { display: none; }
.step-panel.active { display: block; }

/* ------------------------------------------------------------
   Comparison table (compare page)
   ------------------------------------------------------------ */
.compare-grid {
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.compare-cell {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.compare-cell:not(:last-child) { border-right: 1px solid var(--border); }
.compare-label { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-header { background: var(--surface); font-weight: 700; text-align: center; }

/* Mobile compare: scroll-snap carousel */
@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
    border: none;
  }
  .compare-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--sp-4);
  }
  .compare-col {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
  }
}

/* ------------------------------------------------------------
   Spec table (shoe detail page)
   ------------------------------------------------------------ */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td {
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.9rem;
}
.spec-table td:first-child {
  color: var(--muted);
  font-weight: 600;
  width: 45%;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   Comment thread
   ------------------------------------------------------------ */
.comment {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }
.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment__content { flex: 1; }
.comment__meta { font-size: 0.8rem; color: var(--muted); margin-bottom: var(--sp-1); }
.comment__meta strong { color: var(--text); font-weight: 600; margin-right: var(--sp-2); }
.comment__body { font-size: 0.9rem; line-height: 1.6; }

/* ------------------------------------------------------------
   Admin table
   ------------------------------------------------------------ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--surface2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .actions { display: flex; gap: var(--sp-2); }

/* ------------------------------------------------------------
   Search bar
   ------------------------------------------------------------ */
.search-bar {
  position: relative;
}
.search-bar input {
  padding-left: 40px;
}
.search-bar::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Hero section
   ------------------------------------------------------------ */
.hero {
  text-align: center;
  padding: var(--sp-12) var(--sp-5);
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.1rem; color: var(--muted); margin-bottom: var(--sp-8); max-width: 560px; margin-inline: auto; }
.hero-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto var(--sp-8);
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.hero-search input {
  flex: 1;
  background: none;
  border: none;
  padding: var(--sp-3) var(--sp-5);
  font-size: 1rem;
  color: var(--text);
  outline: none;
}
.hero-search button {
  background: var(--accent);
  color: #0f172a;
  border: none;
  padding: 0 var(--sp-5);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.hero-search button:hover { background: var(--accent-d); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
}

/* ------------------------------------------------------------
   View toggle (list / grid)
   ------------------------------------------------------------ */
.view-toggle {
  display: flex;
  background: var(--surface2);
  border-radius: var(--r-full);
  padding: 2px;
  gap: 2px;
}
.view-btn {
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.view-btn.active { background: var(--accent); color: #0f172a; }

/* ------------------------------------------------------------
   Filter bar
   ------------------------------------------------------------ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.filter-bar select,
.filter-bar input[type="text"] {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

/* ------------------------------------------------------------
   Utility classes
   ------------------------------------------------------------ */
.hidden       { display: none !important; }
.sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-2         { margin-top: var(--sp-2); }
.mt-4         { margin-top: var(--sp-4); }
.mt-6         { margin-top: var(--sp-6); }
.mb-4         { margin-bottom: var(--sp-4); }
.mb-6         { margin-bottom: var(--sp-6); }
.text-center  { text-align: center; }
.w-full       { width: 100%; }
.rounded      { border-radius: var(--r-md); }
.overflow-hidden { overflow: hidden; }
.divider      { height: 1px; background: var(--border); margin: var(--sp-6) 0; }
.empty-state  { text-align: center; padding: var(--sp-12) var(--sp-5); color: var(--muted); }
.empty-state p { margin-top: var(--sp-3); }
.loading      { text-align: center; padding: var(--sp-8); color: var(--muted); }
.error-box    { background: var(--error-bg); border: 1px solid var(--error); border-radius: var(--r-md); padding: var(--sp-4); color: var(--error); }
.success-box  { background: var(--success-bg); border: 1px solid var(--success); border-radius: var(--r-md); padding: var(--sp-4); color: var(--success); }
.info-box     { background: var(--accent-bg); border: 1px solid var(--accent); border-radius: var(--r-md); padding: var(--sp-4); color: var(--accent); }

/* Stats bar */
.stats-bar {
  display: flex;
  gap: var(--sp-8);
  justify-content: center;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--sp-6) 0;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Pros / cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.pros, .cons {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.pros { border-left: 3px solid var(--success); }
.cons { border-left: 3px solid var(--error); }
.pros h4 { color: var(--success); margin-bottom: var(--sp-3); }
.cons h4 { color: var(--error);   margin-bottom: var(--sp-3); }
.pros ul, .cons ul { padding-left: var(--sp-4); }
.pros li, .cons li { margin-bottom: var(--sp-1); font-size: 0.875rem; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }

/* Scroll strip (horizontal card row) */
.scroll-strip {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scrollbar-width: none;
}
.scroll-strip::-webkit-scrollbar { display: none; }
.scroll-strip .shoe-card {
  flex: 0 0 220px;
}
