/* ============================================
   HIKEFORCE CLUB — Minimalist v3.0
   Inspired by: Linear, Stripe, Apple, Mono
   Palette: monochrome + single yellow accent
   ============================================ */

/* @import винесено в HTML head як preconnect+link для швидшого завантаження */

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* щоб anchor-стрибки не ховалися під sticky nav */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0a0a0a;
  background: #ffffff;
  line-height: 1.5;
  font-size: 15px;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-tap-highlight-color: transparent; /* прибирає сірий блік на тапі (iOS) */
  overflow-x: hidden; /* захист від горизонтального overflow */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }
/* ⚡ Краща доступність — видимий focus тільки з клавіатури */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ TOKENS ============ */
:root {
  /* PALETTE — minimal */
  --c-ink: #0a0a0a;
  --c-ink-soft: #18181b;
  --c-text: #18181b;       /* трохи темніше для кращої читабельності */
  --c-text-muted: #52525b; /* WCAG AA contrast 7.5:1 — пройде PageSpeed */
  --c-text-soft: #5f5f6c;  /* WCAG AA контраст 5.5:1 на білому — placeholder, captions */
  --c-line: #e4e4e7;
  --c-line-soft: #f4f4f5;
  --c-surface: #fafafa;
  --c-bg: #ffffff;

  /* ONE accent — yellow for veteran */
  --c-accent: #facc15;
  --c-accent-dark: #ca8a04;
  --c-accent-soft: #fefce8;

  --c-success: #16a34a;
  --c-success-soft: #f0fdf4;

  /* RADIUS */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* TRANSITIONS */
  --t: 200ms cubic-bezier(.4,0,.2,1);
  --t-slow: 400ms cubic-bezier(.4,0,.2,1);
}

a:hover { color: var(--c-ink); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  line-height: 1.1;
}
.italic { font-style: italic; font-weight: 400; }
.serif { font-family: 'Inter Tight', sans-serif; font-style: italic; }

/* ============ CONTAINER ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ============ ANIMATED PROMO BAR ============ */
.promo-bar {
  background: var(--c-ink);
  color: #fff;
  font-size: 12.5px;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  letter-spacing: -0.01em;
}
.promo-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
  padding-left: 60px;
}
.promo-track span { display: inline-flex; align-items: center; gap: 8px; }
.promo-track strong { color: var(--c-accent); font-weight: 500; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ HEADER ============ */
.header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  will-change: background-color;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}
.logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  background: var(--c-ink);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.logo-text strong { color: var(--c-ink); font-weight: 600; }

.search-form {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-form input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: all var(--t);
  font-size: 14px;
}
.search-form input::placeholder { color: var(--c-text-soft); }
.search-form input:focus {
  outline: none;
  background: #fff;
  border-color: var(--c-ink);
}
/* ============ INLINE SVG TABLER ICONS ============ */
/* .ti-svg — наш inline-sprite що замінює <i class="ti ti-X"> через icons-loader.js */
.ti-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  /* Гарантуємо що навіть якщо color = transparent чи bg-color — буде хоча б темний */
  color: inherit;
}
.ti-svg.ti-heart-filled,
.ti-svg.ti-star-filled { fill: currentColor; }
.ti-svg.ti-star { color: #facc15; }

/* Якщо color не задано — fallback на темно-сірий */
.wishlist-btn .ti-svg,
.compare-toggle .ti-svg { color: #525252; }
.wishlist-btn.active .ti-svg { color: #facc15; }
.compare-toggle.active .ti-svg { color: var(--c-ink); }
.cart-item-remove .ti-svg { color: #dc2626; }
.cart-item-remove:hover .ti-svg { color: #fff; }

/* 🚨 EMOJI FALLBACK ДЛЯ SVG — якщо sprite не завантажився (icons-failed клас на html),
   показуємо emoji як ::before pseudo. Працює тому що inline-block svg може мати content. */
.icons-failed .ti-svg { stroke: none; fill: none; position: relative; }
.icons-failed .ti-svg::before {
  content: ''; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .9em; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}
.icons-failed .ti-svg.ti-heart::before        { content: '♡'; }
.icons-failed .ti-svg.ti-heart-filled::before { content: '❤'; color: #dc2626; }
.icons-failed .ti-svg.ti-trash::before        { content: '🗑'; }
.icons-failed .ti-svg.ti-x::before            { content: '✕'; }
.icons-failed .ti-svg.ti-scale::before        { content: '⚖'; }
.icons-failed .ti-svg.ti-shopping-bag::before,
.icons-failed .ti-svg.ti-shopping-bag-plus::before,
.icons-failed .ti-svg.ti-shopping-bag-check::before { content: '🛍'; }
.icons-failed .ti-svg.ti-bolt::before         { content: '⚡'; }
.icons-failed .ti-svg.ti-truck::before        { content: '🚚'; }
.icons-failed .ti-svg.ti-shield-check::before { content: '🛡'; }
.icons-failed .ti-svg.ti-star::before,
.icons-failed .ti-svg.ti-star-filled::before  { content: '★'; color: #facc15; }
.icons-failed .ti-svg.ti-arrow-right::before  { content: '→'; }
.icons-failed .ti-svg.ti-chevron-down::before { content: '▾'; }
.icons-failed .ti-svg.ti-chevron-left::before { content: '◂'; }
.icons-failed .ti-svg.ti-chevron-right::before{ content: '▸'; }
.icons-failed .ti-svg.ti-check::before        { content: '✓'; }
.icons-failed .ti-svg.ti-package::before      { content: '📦'; }
.icons-failed .ti-svg.ti-mountain::before     { content: '⛰'; }
.icons-failed .ti-svg.ti-tent::before         { content: '⛺'; }
.icons-failed .ti-svg.ti-user::before         { content: '👤'; }
.icons-failed .ti-svg.ti-users::before        { content: '👥'; }
.icons-failed .ti-svg.ti-gift::before         { content: '🎁'; }
.icons-failed .ti-svg.ti-calendar::before     { content: '📅'; }
.icons-failed .ti-svg.ti-news::before         { content: '📰'; }
.icons-failed .ti-svg.ti-currency-hryvnia::before { content: '₴'; }
.icons-failed .ti-svg.ti-credit-card::before  { content: '💳'; }
.icons-failed .ti-svg.ti-photo::before        { content: '📷'; }
.icons-failed .ti-svg.ti-ruler-2::before      { content: '📏'; }
.icons-failed .ti-svg.ti-info-circle::before  { content: 'ⓘ'; }
.icons-failed .ti-svg.ti-share::before        { content: '↗'; }
.icons-failed .ti-svg.ti-settings::before     { content: '⚙'; }
.icons-failed .ti-svg.ti-logout::before       { content: '↩'; }
.icons-failed .ti-svg.ti-diamond::before      { content: '◆'; color: #fbbf24; }
.icons-failed .ti-svg.ti-rotate::before       { content: '↻'; }
.icons-failed .ti-svg.ti-brand-telegram::before{ content: '✈'; color: #0088cc; }
.icons-failed .ti-svg.ti-brand-instagram::before{ content: '📷'; }

.search-form .ti,
.search-form > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: var(--c-text-soft);
  z-index: 1;
}

.header-actions { display: flex; align-items: center; gap: 4px; }
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  transition: all var(--t);
  position: relative;
}
.header-btn:hover { background: var(--c-line-soft); color: var(--c-ink); }
.header-btn .ti { font-size: 20px; }
.header-btn.cart { background: var(--c-ink); color: #fff; padding: 10px 18px; }
.header-btn.cart:hover { background: var(--c-ink-soft); color: #fff; }
.cart-count {
  background: var(--c-accent);
  color: var(--c-ink);
  border-radius: var(--r-full);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
  margin-left: 2px;
}

/* ============ NAV ============ */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  overflow: visible;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.15s;
}
.nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav-inner {
  display: flex;
  gap: 2px;
  padding: 4px 0;
  align-items: center;
  overflow: visible; /* dropdown має виходити з контейнера */
}
/* Скрол тільки на мобільних — щоб не обрізало dropdown на desktop */
@media (max-width: 768px) {
  .nav-inner {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }
  .nav-inner::-webkit-scrollbar { display: none; }
}
.nav a {
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--t);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.nav a:hover { color: var(--c-ink); }
.nav a.veteran-link {
  color: var(--c-ink);
  font-weight: 500;
}
.nav a.veteran-link::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: var(--r-full);
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 100px;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  font-size: 12.5px;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}
.hero-eyebrow .ti { font-size: 14px; }
.hero-eyebrow strong { color: var(--c-ink); font-weight: 500; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.hero h1 .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--c-text-muted);
}
.hero p {
  font-size: 17px;
  color: var(--c-text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.55;
}
.hero-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface);
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-floater {
  position: absolute;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.hero-floater.tl { top: 24px; left: 24px; }
.hero-floater.br { bottom: 24px; right: 24px; }
.hero-floater strong { display: block; font-weight: 500; color: var(--c-ink); font-size: 14px; }
.hero-floater small { color: var(--c-text-muted); font-size: 12px; }
.hero-floater .ti { font-size: 20px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--c-line);
}
.hero-stat-num {
  font-size: 36px;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-lbl {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  letter-spacing: -0.01em;
  font-family: inherit;
}
.btn .ti { font-size: 16px; }
.btn-primary {
  background: var(--c-ink);
  color: #fff;
}
.btn-primary:hover { background: var(--c-ink-soft); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-secondary:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn-accent {
  background: var(--c-accent);
  color: var(--c-ink);
}
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn-ghost { color: var(--c-text); }
.btn-ghost:hover { background: var(--c-line-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-xl { padding: 16px 28px; font-size: 16px; }

/* ============ TRUST STRIP ============ */
.trust-strip {
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.trust-icon .ti { font-size: 18px; color: var(--c-ink); }
.trust-text strong {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.trust-text small { color: var(--c-text-muted); font-size: 12px; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section.alt { background: var(--c-surface); }
.section-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.section-title .italic { color: var(--c-text-muted); font-weight: 400; font-style: italic; }
.section-subtitle {
  color: var(--c-text-muted);
  font-size: 15px;
  margin-top: 8px;
  max-width: 480px;
}
.section-link {
  font-size: 13.5px;
  color: var(--c-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t);
}
.section-link:hover { gap: 8px; color: var(--c-ink); }

/* ============ VETERAN BANNER ============ */
.veteran-banner {
  background: var(--c-ink);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.veteran-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
}
.veteran-banner h2 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 600px;
  margin-bottom: 12px;
}
.veteran-banner h2 .accent { color: var(--c-accent); font-style: italic; font-weight: 400; }
.veteran-banner p { color: rgba(255,255,255,.6); font-size: 15px; max-width: 480px; }

/* ============ PRODUCT CARDS — Minimalist ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--c-ink);
}
.product-image {
  aspect-ratio: 1;
  background: var(--c-surface);
  display: grid;
  place-items: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image .ti { font-size: 60px; color: var(--c-text-soft); }
.product-image > span { font-size: 60px; }

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
  color: var(--c-ink);
}
.badge-hit { background: var(--c-ink); color: #fff; }
.badge-new { background: var(--c-ink); color: #fff; }
.badge-veteran { background: var(--c-accent); color: var(--c-ink); }
.badge-sale { background: var(--c-success); color: #fff; }

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  transition: all var(--t);
  z-index: 2;
  color: var(--c-text-muted);
}
.wishlist-btn .ti { font-size: 16px; }
.wishlist-btn:hover { background: #fff; color: var(--c-ink); transform: scale(1.05); }
.wishlist-btn.active { background: var(--c-ink); color: var(--c-accent); }

.quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--t);
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.quick-add button {
  width: 100%;
  padding: 10px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform .08s ease-out, background .15s, box-shadow .15s;
  user-select: none;
}
/* МИТТЄВИЙ feedback на натискання — спрацьовує без JS */
.quick-add button:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transform: translateY(-1px);
}
.quick-add button:active {
  background: #16a34a !important;
  transform: scale(.94) !important;
  box-shadow: 0 2px 6px rgba(22,163,74,.5), inset 0 2px 6px rgba(0,0,0,.18) !important;
  transition: all .05s ease-out !important;
}
.quick-add .ti { font-size: 14px; }

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-category {
  font-size: 11px;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}
.product-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
  letter-spacing: -0.01em;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-muted);
}
.product-rating .ti { font-size: 13px; color: var(--c-ink); }
.product-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 4px;
}
.price-current {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-old {
  font-size: 13px;
  color: var(--c-text-soft);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.product-stock {
  font-size: 11.5px;
  color: var(--c-success);
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-stock .ti { font-size: 13px; }

/* ============ CATEGORIES ============ */
.categories-hero {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.category-card-big {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--t);
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.category-card-big:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.category-card-big .ti {
  font-size: 32px;
  color: var(--c-ink);
}
.category-card-big h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.category-card-big small {
  display: block;
  color: var(--c-text-muted);
  margin-top: 4px;
  font-size: 12px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--c-ink);
  color: #a1a1aa;
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: #a1a1aa;
  font-size: 13.5px;
  transition: color var(--t);
}
.footer ul a:hover { color: #fff; }
.footer-contact {
  color: #a1a1aa;
  font-size: 13.5px;
  line-height: 1.8;
}
.footer-contact strong { color: #fff; font-weight: 500; }
.footer-newsletter {
  margin-top: 20px;
}
.footer-newsletter input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.footer-newsletter input::placeholder { color: #71717a; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #71717a;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-payments {
  display: flex;
  gap: 6px;
  align-items: center;
}
.payment-chip {
  background: rgba(255,255,255,.05);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  color: #d4d4d8;
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--c-text-muted);
}
.breadcrumbs a:hover { color: var(--c-ink); }
.breadcrumbs span { margin: 0 8px; color: var(--c-text-soft); }

/* ============ CATALOG ============ */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 0 0 80px;
}
.filters {
  align-self: start;
  position: sticky;
  top: 100px;
}
.filter-group {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
}
.filter-group:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-group h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--c-text-muted);
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--c-text);
  padding: 4px 0;
}
.filter-check input { cursor: pointer; accent-color: var(--c-ink); width: 15px; height: 15px; }
.filter-check:hover { color: var(--c-ink); }

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.chip:hover { border-color: var(--c-ink); color: var(--c-ink); }
.chip.active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.catalog-count { color: var(--c-text-muted); font-size: 13px; }
.catalog-count strong { color: var(--c-ink); font-weight: 500; }
.sort-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2371717a' d='M8 11L3 6h10z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ============ PRODUCT PAGE ============ */
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 48px;
  padding: 32px 0;
  align-items: start;
}
.gallery { position: sticky; top: 100px; }
.gallery-main {
  aspect-ratio: 1;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  font-size: 160px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-main > span { font-size: 160px; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-thumb {
  aspect-ratio: 1;
  background: var(--c-surface);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  overflow: hidden;
  transition: border-color var(--t);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--c-ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-card { padding: 8px 0; }
.product-info-card .product-page-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
  font-size: 12.5px;
  flex-wrap: wrap;
}
.product-info-card h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.product-meta-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--c-text-muted);
}
.product-meta-rating .ti { color: var(--c-ink); font-size: 16px; }
.product-page-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.product-page-price .price-current {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.price-saving {
  background: var(--c-success-soft);
  color: var(--c-success);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
}

.product-veteran-cta {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text-muted);
}
.product-veteran-cta .ti { font-size: 22px; color: var(--c-ink); }
.product-veteran-cta strong { color: var(--c-ink); display: block; margin-bottom: 2px; font-weight: 500; }
.product-veteran-cta a { color: var(--c-ink); border-bottom: 1px solid var(--c-line); }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.qty-selector-label { font-weight: 500; font-size: 13px; color: var(--c-text); }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.qty-btn {
  width: 42px;
  height: 42px;
  font-size: 18px;
  font-weight: 600;
  background: #fff;
  color: var(--c-ink);
  transition: background .12s, transform .08s;
  cursor: pointer;
  user-select: none;
}
.qty-btn:hover { background: var(--c-surface); }
.qty-btn:active { background: var(--c-line); transform: scale(.92); }
.qty-input {
  width: 48px;
  text-align: center;
  padding: 10px 4px;
  border: none;
  border-left: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
  font-weight: 500;
}
.qty-input:focus { outline: none; }

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.trust-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--c-text-muted);
}
.trust-mini .ti { font-size: 20px; color: var(--c-ink); }
.trust-mini strong { display: block; color: var(--c-ink); font-weight: 500; font-size: 13px; }

/* PRODUCT TABS */
.product-tabs {
  margin-top: 32px;
  border-top: 1px solid var(--c-line);
}
.tabs-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 16px 0;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-trigger {
  padding: 10px 18px;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--c-text-muted);
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: all var(--t);
}
.tab-trigger:hover { color: var(--c-ink); }
.tab-trigger.active { color: var(--c-ink); background: var(--c-surface); }
.tab-panel { padding: 24px 0; display: none; }
.tab-panel.active { display: block; }
.tab-panel p { margin-bottom: 16px; line-height: 1.7; color: var(--c-text); }

.includes-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.include-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--c-surface);
  border-radius: var(--r-md);
  font-size: 14px;
}
.include-item::before {
  content: "\ea5e";
  font-family: 'tabler-icons';
  color: var(--c-success);
  font-size: 18px;
  flex-shrink: 0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.specs-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table .spec-label {
  color: var(--c-text-muted);
  width: 40%;
}
.specs-table .spec-value {
  font-weight: 500;
  color: var(--c-ink);
}

/* ============ CART ============ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 24px 0 64px;
}
.cart-items {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--c-line);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--c-surface);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 32px;
  overflow: hidden;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 500; margin-bottom: 4px; display: block; font-size: 14px; }
.cart-item-name:hover { color: var(--c-ink); }
.cart-item-price {
  color: var(--c-ink);
  font-weight: 500;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.cart-item-actions { display: flex; align-items: center; gap: 12px; }
.cart-item-remove {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  background: #fef2f2;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .08s, box-shadow .15s;
  user-select: none;
}
.cart-item-remove:hover {
  color: #fff;
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .35);
}
.cart-item-remove:active { transform: scale(.9); }
.cart-item-remove .ti { font-size: 18px; }

/* ============ CART ITEMS HEADER + CLEAR BUTTON ============ */
.cart-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}
.cart-items-header strong { color: var(--c-ink); font-weight: 700; }
.cart-items-header small { color: var(--c-text-muted); margin-left: 4px; }
.cart-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.cart-clear-btn:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(220,38,38,.3);
}
.cart-clear-btn:active { transform: scale(.96); }
.cart-clear-btn .ti { font-size: 16px; }

.cart-summary {
  background: var(--c-surface);
  padding: 24px;
  border-radius: var(--r-lg);
  align-self: start;
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13.5px; }
.summary-row.total {
  border-top: 1px solid var(--c-line);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cart-empty { text-align: center; padding: 80px 20px; color: var(--c-text-muted); }
.cart-empty .ti { font-size: 64px; margin-bottom: 16px; opacity: .4; }
.cart-empty h3 { font-size: 22px; color: var(--c-ink); margin-bottom: 8px; }

/* ============ ФОРМА ============ */
.checkout-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--c-text);
}
.form-field label .req { color: var(--c-ink); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  transition: all var(--t);
  font-size: 14px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-ink);
}

.payment-method {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.payment-method:hover { border-color: var(--c-ink); }
.payment-method.selected { border-color: var(--c-ink); background: var(--c-surface); }
.payment-method input { margin-top: 4px; accent-color: var(--c-ink); }
.payment-method-icon { font-size: 22px; color: var(--c-ink); }
.payment-method-info { flex: 1; }
.payment-method-info strong { display: block; margin-bottom: 2px; font-weight: 500; font-size: 13.5px; }
.payment-method-info small { color: var(--c-text-muted); font-size: 12px; }
.payment-method.veteran { border-color: var(--c-accent); background: var(--c-accent-soft); }

/* ============ INFO PAGES ============ */
.info-page { max-width: 760px; margin: 32px auto 80px; padding: 0 32px; }
.info-page h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.info-page .lead {
  font-size: 18px;
  color: var(--c-text-muted);
  margin-bottom: 40px;
  line-height: 1.55;
}
.info-page h2 {
  font-size: 26px;
  font-weight: 500;
  margin-top: 48px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.info-page p { margin-bottom: 16px; line-height: 1.7; color: var(--c-text); }
.info-page ul, .info-page ol { margin-bottom: 16px; padding-left: 24px; }
.info-page li { margin-bottom: 8px; line-height: 1.6; }
.info-page .info-box {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-page .info-box.veteran { background: var(--c-accent-soft); }
.info-page strong { font-weight: 500; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.steps li strong { display: block; margin-bottom: 4px; }

/* ============ CART DRAWER ============ */
.cart-drawer-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1);
}
.cart-drawer-bg.open {
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1);
}
.cart-drawer-bg.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: absolute;
  top: 0; right: 0;
  height: 100vh;
  width: 420px;
  max-width: 92vw;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  /* ★ ТІЛЬКИ transform — анімація на GPU, ніяких CPU операцій */
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  /* Статична тінь — НЕ анімуємо box-shadow (це CPU!) */
  box-shadow: -16px 0 50px rgba(0,0,0,.22), -2px 0 6px rgba(0,0,0,.08);
  will-change: transform;
  /* contain прибрано — інколи може блокувати композитинг */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Підказка для браузера: створити окремий compositing layer */
  isolation: isolate;
}
.cart-drawer-bg.open .cart-drawer {
  transform: translate3d(0, 0, 0);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.cart-drawer-bg.open .cart-drawer { transform: translateX(0); }
.cart-drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-close {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--c-line-soft);
  display: grid; place-items: center;
  color: var(--c-text);
  transition: background .15s;
}
.cart-drawer-close:hover { background: var(--c-line); }
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}
.cart-drawer-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}
.cart-drawer-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--c-line-soft);
}
.cart-drawer-img {
  width: 60px; height: 60px;
  background: var(--c-surface);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.cart-drawer-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-drawer-title:hover { color: var(--c-ink); }
.cart-drawer-price { font-weight: 600; font-size: 14px; margin-top: 4px; }
.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cart-drawer-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.cart-drawer-qty button {
  width: 24px; height: 24px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}
.cart-drawer-qty button:hover { background: var(--c-line-soft); }
.cart-drawer-qty span {
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  text-align: center;
}
.cart-drawer-remove {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  background: #fef2f2;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .08s, box-shadow .15s;
}
.cart-drawer-remove:hover {
  color: #fff;
  background: #dc2626;
  box-shadow: 0 3px 10px rgba(220,38,38,.35);
}
.cart-drawer-remove:active { transform: scale(.9); }
.cart-drawer-remove .ti { font-size: 16px; }

/* ============ CHAT WIDGET ============ */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 250;
}
.chat-bubble {
  width: 56px; height: 56px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.chat-bubble:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.chat-bubble .ti { font-size: 24px; }
.chat-unread {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--c-danger, #ef4444);
  color: #fff;
  border-radius: var(--r-full);
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 0 4px;
}
.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: 92vw;
  background: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlide .25s cubic-bezier(.4,0,.2,1);
}
.chat-panel.open { display: flex; }
@keyframes chatSlide {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.chat-head {
  background: var(--c-ink);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: var(--r-full);
  display: grid; place-items: center;
  color: #fff;
}
.chat-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}
.chat-close {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid; place-items: center;
}
.chat-close:hover { background: rgba(255,255,255,.2); }
.chat-body {
  padding: 16px;
  background: var(--c-surface);
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 85%;
  position: relative;
}
.chat-msg-bot {
  background: var(--c-bg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.chat-msg-user {
  background: var(--c-ink);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg-user a { color: var(--c-accent); }
.chat-time {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
}
.chat-quick {
  padding: 6px 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  font-size: 12px;
  color: var(--c-text);
  cursor: pointer;
  transition: all .15s;
}
.chat-quick:hover { border-color: var(--c-ink); background: var(--c-line-soft); }
.chat-channels {
  padding: 10px 16px;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-channel {
  width: 30px; height: 30px;
  border-radius: var(--r-full);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  text-decoration: none;
  transition: transform .15s;
}
.chat-channel:hover { transform: scale(1.1); }
.chat-input {
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  font-size: 13.5px;
  background: var(--c-surface);
  font-family: inherit;
  outline: none;
}
.chat-input input:focus { border-color: var(--c-ink); background: var(--c-bg); }
.chat-input button {
  width: 38px; height: 38px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  font-size: 16px;
  transition: opacity .15s;
}
.chat-input button:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 24px); right: -8px; }
  .chat-widget { bottom: 12px; right: 12px; }
}

/* Hide chat when cart drawer open */
.cart-drawer-bg.open ~ .chat-widget { display: none; }

/* ============ ADD-TO-CART FEEDBACK ============ */
@keyframes cartPulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); color: var(--c-accent); }
  60% { transform: scale(0.95); }
}
.cart-pulse { animation: cartPulse 0.6s cubic-bezier(.4,0,.2,1); display: inline-block; }

/* Force .quick-add to stay visible during feedback */
.quick-add.locked-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}
/* Replace dark gradient with solid green when feedback active */
.quick-add.locked-visible::before {
  display: none;
}
.quick-add.locked-visible {
  background: transparent !important;
}

/* The green "added" state */
.btn.btn-added,
button.btn-added {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
  transition: background .2s, color .2s;
  animation: btnAddedPop .35s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes btnAddedPop {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.btn .ti-check { font-size: 16px; vertical-align: -2px; }

/* ============ CART SUCCESS — BIG FLASH ============ */
.cart-success-flash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.88);
  z-index: 50;
  border-radius: inherit;
  pointer-events: none;
  animation: cartFlashIn .35s cubic-bezier(.34,1.56,.64,1);
  gap: 12px;
}
.cart-success-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  animation: cartCirclePop .5s cubic-bezier(.34,1.8,.64,1);
}
.cart-success-circle .ti {
  font-size: 38px;
  color: #16a34a;
  font-weight: 900;
}
.cart-success-text {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
@keyframes cartFlashIn {
  0%   { opacity: 0; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes cartCirclePop {
  0%   { transform: scale(0) rotate(-45deg); }
  60%  { transform: scale(1.15) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ============ CART SUCCESS — CORNER PING ============ */
.cart-success-ping {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 36px rgba(22,163,74,.5), 0 2px 8px rgba(0,0,0,.15);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%) scale(.9);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s;
}
.cart-success-ping.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.cart-success-ping .ti {
  font-size: 20px;
}

/* ============ LIVE ACTIVITY BAR ============ */
.live-bar {
  background: var(--c-surface);
  padding: 6px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-line);
}
.live-bar span {
  transition: opacity .25s;
  display: inline-block;
}

/* ============ PREDICTIVE SEARCH DROPDOWN ============ */
.search-form { position: relative; z-index: 200; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  max-height: 480px;
  overflow-y: auto;
  z-index: 200; /* вище за nav (z-index:100) */
  display: none;
  padding: 6px;
}
.search-dropdown.open { display: block; }
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: background .12s;
  color: var(--c-text);
}
.search-result:hover { background: var(--c-line-soft); }
.search-result-img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  overflow: hidden;
  flex-shrink: 0;
}
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-title {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-meta { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }
.search-result-price { font-weight: 600; font-size: 14px; }
.search-empty { padding: 24px; text-align: center; color: var(--c-text-muted); font-size: 13px; }

/* ============ COMPARE BAR (sticky bottom) ============ */
.compare-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 10px 14px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  max-width: 720px;
  width: calc(100% - 32px);
  animation: slideUpBar .3s ease-out;
}
@keyframes slideUpBar {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.compare-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.compare-bar-label { font-size: 12px; color: rgba(255,255,255,.7); }
.compare-bar-items { display: flex; gap: 6px; flex: 1; }
.compare-bar-item {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.1);
  overflow: hidden;
  position: relative;
}
.compare-bar-item img { width: 100%; height: 100%; object-fit: cover; }
.compare-bar-item button {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-ink);
  display: grid;
  place-items: center;
  font-size: 9px;
}

/* Wishlist counter in header */
.wishlist-count {
  background: var(--c-accent);
  color: var(--c-ink);
  border-radius: var(--r-full);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

/* ============ COMPARE CHECKBOX in card ============ */
.compare-toggle {
  position: absolute;
  top: 12px;
  right: 52px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  z-index: 2;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all .15s;
  border: 1px solid rgba(0,0,0,.04);
}
.compare-toggle .ti { font-size: 16px; }
.compare-toggle:hover { background: #fff; color: var(--c-ink); transform: scale(1.05); }
.compare-toggle.active { background: var(--c-ink); color: var(--c-accent); }

/* ============ DYNAMIC FILTERS ============ */
.filter-group-collapse {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.filter-group-collapse .ti { font-size: 16px; color: var(--c-text-muted); transition: transform .2s; }
.filter-group.collapsed .filter-group-collapse .ti { transform: rotate(-90deg); }
.filter-group.collapsed .filter-options { display: none; }
.filter-options { display: block; margin-top: 8px; }
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--c-text);
}
.filter-option:hover { color: var(--c-ink); }
.filter-option input { cursor: pointer; accent-color: var(--c-ink); width: 14px; height: 14px; margin-right: 8px; }
.filter-option-count {
  color: var(--c-text-soft);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.filter-show-more {
  font-size: 12px;
  color: var(--c-ink);
  cursor: pointer;
  margin-top: 6px;
  text-decoration: underline;
  text-decoration-style: dotted;
  font-weight: 500;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 20px;
  padding: 12px 16px;
  background: var(--c-surface);
  border-radius: var(--r-md);
  align-items: center;
}
.active-filters-label {
  font-size: 12px;
  color: var(--c-text-muted);
  font-weight: 500;
  margin-right: 4px;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
}
.active-filter-chip:hover { opacity: 0.85; }
.active-filter-chip .ti { font-size: 12px; }
.active-filters-clear {
  font-size: 12px;
  color: var(--c-text-muted);
  cursor: pointer;
  margin-left: auto;
  font-weight: 500;
}
.active-filters-clear:hover { color: var(--c-ink); }

/* ============ STICKY CTA (mobile) ============ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding: 12px 16px;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  align-items: center;
  gap: 12px;
}
.sticky-cta-info { flex: 1; }
.sticky-cta-info .price { font-size: 18px; font-weight: 600; }
.sticky-cta-info small { font-size: 11px; color: var(--c-text-muted); display: block; }
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 80px; }
}

/* ============ MONO PARTS button ============ */
.mono-parts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #000;
  color: #fff;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  margin: 6px 0;
}
.mono-parts .price { color: var(--c-accent); font-weight: 600; }
.mono-parts small { color: rgba(255,255,255,.6); font-size: 11px; }

/* ============ REVIEWS ============ */
.reviews-list { display: grid; gap: 16px; margin-top: 16px; }
.review-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 16px;
  background: var(--c-bg);
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.review-author { font-weight: 500; font-size: 14px; }
.review-author small { display: block; color: var(--c-text-muted); font-size: 11px; }
.review-stars { color: var(--c-accent); font-size: 14px; letter-spacing: -1px; }
.review-text { font-size: 13.5px; line-height: 1.6; color: var(--c-text); }
.review-photos {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.review-photos img {
  width: 60px; height: 60px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

/* ============ Q&A ============ */
.qa-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.qa-item:last-child { border-bottom: none; }
.qa-q { font-weight: 500; margin-bottom: 6px; }
.qa-q::before { content: "❓ "; }
.qa-a { color: var(--c-text-muted); font-size: 13.5px; line-height: 1.5; padding-left: 18px; }
.qa-a::before { content: "→ "; color: var(--c-success); }

/* ============ UPSELL MODAL ============ */
.upsell-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.upsell-modal.show { display: flex; }
.upsell-content {
  background: var(--c-bg);
  border-radius: var(--r-xl);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  text-align: center;
}
.upsell-content h3 { font-size: 22px; margin-bottom: 8px; }
.upsell-content p { color: var(--c-text-muted); margin-bottom: 20px; }
.upsell-items { display: grid; gap: 8px; }
.upsell-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  text-align: left;
}
.upsell-item:hover { border-color: var(--c-ink); }
.upsell-item-img { width: 48px; height: 48px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface); flex-shrink: 0; }
.upsell-item-img img { width: 100%; height: 100%; object-fit: cover; }
.upsell-item-info { flex: 1; }
.upsell-item-info strong { display: block; font-size: 13px; font-weight: 500; }
.upsell-item-info small { color: var(--c-text-muted); font-size: 12px; }
.upsell-item .price { font-weight: 600; }

/* ============ RECENTLY VIEWED ============ */
.recent-section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.recent-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 12px;
}
.recent-scroll::-webkit-scrollbar { height: 6px; }
.recent-scroll::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 3px; }
.recent-scroll .product-card {
  min-width: 200px;
  max-width: 220px;
  flex-shrink: 0;
}

/* ============ LOYALTY BAR ============ */
.loyalty-bar {
  background: linear-gradient(90deg, #18181b, #27272a);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.loyalty-progress {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  overflow: hidden;
}
.loyalty-progress > div {
  height: 100%;
  background: var(--c-accent);
  transition: width .4s;
}
.loyalty-amount { font-weight: 500; }

/* ============ SITE-TOAST ============ */
.site-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--c-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.site-toast.show { opacity: 1; transform: translateY(0); }
.site-toast.error { background: var(--c-primary, #e63946); }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--c-ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--r-md);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in .3s cubic-bezier(.4,0,.2,1);
}
.toast .ti { font-size: 18px; color: var(--c-accent); }
@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============ CART DRAWER (slide from right) ============ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 400px;
  max-width: 90vw;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-line);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-footer { padding: 20px 24px; border-top: 1px solid var(--c-line); }

/* ============ SCROLL ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ============ MOBILE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-page { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .veteran-banner-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .search-form { order: 3; max-width: none; width: 100%; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 36px; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-info { padding: 12px; }
  .product-title { font-size: 13px; }
  .price-current { font-size: 16px; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-image { width: 80px; height: 80px; }
  .cart-item-actions { grid-column: 1/3; justify-content: flex-end; }
}

/* ============ SKELETON LOADERS ============ */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.skeleton-card .skeleton-img { width: 100%; aspect-ratio: 1; }
.skeleton-card .skeleton-info { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-card .skeleton-line { height: 14px; }
.skeleton-card .skeleton-line.short { width: 60%; }
.skeleton-card .skeleton-line.medium { width: 80%; }
.skeleton-card .skeleton-line.tall { height: 24px; width: 50%; }
.skeleton-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ============ VIEW TRANSITIONS ============ */
/* Плавний crossfade між сторінками (Chrome 111+, Safari 18+) */
@view-transition {
  navigation: auto;
}

/* Налаштовуємо crossfade */
::view-transition-old(root) {
  animation: vt-fade-out 0.25s cubic-bezier(.4, 0, .2, 1) both;
}
::view-transition-new(root) {
  animation: vt-fade-in 0.3s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* View Transition назви прибрано — викликали проблеми з відображенням header.
   Стандартний crossfade між сторінками працює нормально. */

/* Карточки товарів — швидкий fade-in (тільки перші 4, інше — без анімації) */
.products-grid > .product-card:nth-child(-n+4) {
  animation: card-fade-in 0.25s cubic-bezier(.4, 0, .2, 1) both;
}
.products-grid > .product-card:nth-child(1) { animation-delay: 0.02s; }
.products-grid > .product-card:nth-child(2) { animation-delay: 0.04s; }
.products-grid > .product-card:nth-child(3) { animation-delay: 0.06s; }
.products-grid > .product-card:nth-child(4) { animation-delay: 0.08s; }
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Респект "prefers-reduced-motion" */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  .products-grid > .product-card { animation: none !important; }
}

/* ============ SHARED ELEMENT TRANSITIONS — товар ============ */
/* Налаштовуємо плавний easing для shared transitions */
::view-transition-group(*) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(.34, 1.3, .64, 1);
}

/* Картки товарів — стримане поява */
::view-transition-old(.product-card),
::view-transition-new(.product-card) {
  animation-duration: 0.35s;
}

/* ============ ПОКРАЩЕНІ HOVER ЕФЕКТИ — ПРЕМІУМ ============ */
.product-card {
  transition: transform 0.35s cubic-bezier(.34, 1.3, .64, 1), 
              box-shadow 0.35s cubic-bezier(.34, 1.3, .64, 1),
              border-color 0.2s;
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.18), 0 4px 12px -2px rgba(0,0,0,.06);
  border-color: var(--c-ink);
  z-index: 2;
}
.product-card:active {
  transform: translateY(-2px) scale(0.995);
  transition: transform 0.1s ease-out;
}

/* Картинка трохи "видавлюється" коли карточка hover */
.product-card .product-image {
  transition: transform 0.4s cubic-bezier(.34, 1.3, .64, 1);
  overflow: hidden;
}
.product-card:hover .product-image img {
  transform: scale(1.08);
}
.product-card .product-image img {
  transition: transform 0.5s cubic-bezier(.34, 1.3, .64, 1);
}

/* Назва товару — підкреслення з'являється */
.product-card .product-title {
  position: relative;
  display: inline-block;
}
.product-card:hover .product-title {
  color: var(--c-ink);
}

/* Ціна — пульс при hover */
.product-card:hover .price-current {
  animation: price-pulse 0.4s ease-out;
}
@keyframes price-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Бейджі — легкий tilt при hover */
.product-card:hover .product-badges .badge {
  transform: rotate(-3deg) scale(1.05);
}
.product-card .product-badges .badge {
  transition: transform 0.3s cubic-bezier(.34, 1.5, .64, 1);
}

/* Heart та compare — pulse при hover карти */
.product-card:hover .wishlist-btn,
.product-card:hover .compare-toggle {
  transform: scale(1.08);
}
.wishlist-btn, .compare-toggle {
  transition: transform 0.2s cubic-bezier(.34, 1.5, .64, 1), background 0.15s;
}

/* Ripple ВИМКНЕНО — додатковий рендер шар сповільнював */

/* ============ MAGNETIC BUTTONS ============ */
/* Кнопки слідують за мишкою (легкий tilt) */
.btn-primary, .btn-secondary {
  transition: transform 0.2s cubic-bezier(.34, 1.5, .64, 1), 
              box-shadow 0.2s, 
              background 0.15s;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px -6px rgba(0,0,0,.25);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s;
}

/* respect motion preference */
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card *, .btn-primary, .btn-secondary {
    transition: none !important;
    animation: none !important;
  }
}

/* ============ STICKY QUICK CHIPS на каталозі ============ */
.filter-chips {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  margin: 0 -8px 20px;
  padding-left: 8px;
  padding-right: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
/* При скролі — лінія знизу для роздільності */
.filter-chips.scrolled {
  border-bottom-color: var(--c-line);
  background: rgba(255,255,255,0.96);
}

/* ============ FLOATING CART HOVER ============ */
#floatingCart:hover {
  transform: translateY(0) scale(1.04) !important;
  box-shadow: 0 22px 50px rgba(0,0,0,.32), 0 6px 16px rgba(0,0,0,.18);
}
#floatingCart:active {
  transform: translateY(0) scale(0.98) !important;
}
@media (max-width: 768px) {
  #floatingCart { bottom: 16px !important; right: 16px !important; padding: 10px 14px 10px 12px !important; }
}

/* ============ CART SHARED TRANSITION ============ */
/* Іконка кошика плавно "морфиться" в заголовок при переході на /cart.html */
::view-transition-old(cart-button),
::view-transition-new(cart-button) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}
::view-transition-old(floating-cart),
::view-transition-new(floating-cart) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(.34, 1.2, .64, 1);
}

/* ============ NAV DROPDOWN (Каталог → категорії) ============ */
.nav-item.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-link-main {
  font-weight: 600 !important;
  background: var(--c-ink);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.15s;
}
.nav-link-main:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.15), 0 4px 12px rgba(0,0,0,.06);
  padding: 8px;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-size: 14px;
  color: var(--c-ink) !important;
  transition: background 0.15s, transform 0.1s;
}
.nav-dropdown-menu a:hover {
  background: var(--c-surface);
  transform: translateX(2px);
}
.nav-dropdown-menu .nav-emoji {
  font-size: 18px;
  display: inline-flex;
  width: 24px;
  justify-content: center;
}

/* Кнопка nav з іконкою — менше padding щоб помістились всі */
.nav .container.nav-inner > a {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}

/* На вузьких — приховуємо іконки в підписах */
@media (max-width: 1080px) {
  .nav .container.nav-inner > a > i { display: none; }
}

/* Mobile — dropdown стає click-only */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    margin: 8px 0;
    min-width: 100%;
  }
}

/* ============ PERFORMANCE OPTIMIZATIONS ============ */

/* CSS Containment — браузер пропускає елементи поза viewport */
.product-card,
.article-card {
  contain: layout style;
}
.products-grid {
  contain: layout;
}

/* GPU acceleration тільки на hover (не постійно) */
.product-card {
  will-change: auto;
}
.product-card:hover {
  will-change: transform;
}

/* Прибираємо backdrop-filter на mobile (дуже важкий) */
@media (max-width: 768px) {
  .nav, .nav.scrolled,
  .filter-chips, .filter-chips.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #fff !important;
  }
}

/* Анімація поява карток — тільки перші 4 (не 8) */
.products-grid > .product-card:nth-child(n+5) {
  animation-delay: 0s !important;
  animation: none !important;
}

/* content-visibility ВИМКНЕНО — викликало фризи при скролі */
/* .product-card, .article-card { content-visibility: auto; } */

/* Прибираємо tilt бейджу — це додаткова анімація */
.product-card:hover .product-badges .badge {
  transform: none !important;
}

/* Spinner і скелетони — short anim */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Дешевий touch feedback замість важких hover на mobile */
@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .product-card:hover .product-image img {
    transform: none;
  }
}

/* ============ CART DRAWER PERF ============ */
.cart-drawer-item {
  contain: layout style paint;
}
.cart-drawer-img img {
  max-width: 100%;
  height: auto;
  /* Декодувати асинхронно — не блокує main thread */
}

/* ============ КАРУСЕЛЬ ХІТІВ ============ */
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 4px;
  margin: 0 -4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  max-width: 280px;
}
@media (max-width: 768px) {
  .carousel-track > .product-card {
    flex: 0 0 220px;
    max-width: 220px;
  }
}

/* Кнопки навігації каруселі */
.carousel-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--c-line);
  color: var(--c-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.carousel-nav:hover {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
.carousel-nav:active {
  transform: scale(0.92);
}
.carousel-nav .ti { font-size: 18px; }

/* ============ HIKEFORCE: НАЙБЛИЖЧІ ПОХОДИ ============ */
.hikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.hike-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.34,1.3,.64,1), box-shadow .25s;
  cursor: pointer;
}
.hike-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}
.hike-card-img {
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hike-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.35));
}
.hike-date {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,.95);
  color: var(--c-ink);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}
.hike-level {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 1;
}
.lvl-easy { background: #22c55e; color: #fff; }
.lvl-mid  { background: #eab308; color: #fff; }
.lvl-pro  { background: #ef4444; color: #fff; }
.hike-card-body { padding: 18px 18px 20px; }
.hike-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.hike-card-body p {
  color: var(--c-text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.hike-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  font-weight: 500;
}
.hike-meta i { font-size: 14px; vertical-align: -2px; opacity: .7; }

/* ============ SCROLL-TO-TOP ============ */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--c-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(20px) scale(.85);
  pointer-events: none;
  transition: opacity .25s, transform .25s cubic-bezier(.34,1.3,.64,1);
  z-index: 90;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: #facc15;
  color: var(--c-ink);
}

/* ============ MULTI-BADGES, ЗНИЖКА %, НАЯВНІСТЬ ============ */
.product-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 60px);
}
.product-badges-row .badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.product-discount-pct {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 9999px;
  z-index: 2;
}
.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-top: 2px;
}
.product-stock.in {
  color: #16a34a;
}
.product-stock.out {
  color: #ef4444;
}
.product-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============ NEWSLETTER (футер) ============ */
.footer-newsletter-big {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 20px;
  padding: 32px 28px;
  margin: 48px 0;
  text-align: center;
}
.footer-newsletter-big h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.footer-newsletter-big p {
  color: #92400e;
  font-size: 14px;
  margin-bottom: 18px;
}
.footer-newsletter-big form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.footer-newsletter-big input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  font-size: 14px;
}
.footer-newsletter-big button {
  padding: 12px 22px;
  border-radius: 9999px;
  background: var(--c-ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.footer-newsletter-big button:hover { background: #facc15; color: var(--c-ink); }
@media (max-width: 600px) {
  .footer-newsletter-big form { flex-direction: column; }
}

/* ============ FALLBACK ДЛЯ TABLER ICONS ============
   Якщо tabler-icons.woff не вантажиться (CDN заблокований розширенням / в офлайн),
   браузер замість порожнього квадратика покаже emoji як читабельну альтернативу.
   Якщо font вантажиться нормально — реальна іконка перекриває emoji. */
.ti {
  font-family: 'tabler-icons', sans-serif;
}
.ti.ti-trash::before        { content: '🗑'; }
.ti.ti-x::before            { content: '✕'; }
.ti.ti-heart::before        { content: '♡'; }
.ti.ti-heart-filled::before { content: '❤'; }
.ti.ti-shopping-bag::before { content: '🛍'; }
.ti.ti-shopping-bag-check::before { content: '✓'; }
.ti.ti-shopping-bag-plus::before  { content: '+'; }
.ti.ti-bolt::before         { content: '⚡'; }
.ti.ti-truck::before        { content: '🚚'; }
.ti.ti-shield-check::before { content: '🛡'; }
.ti.ti-star::before         { content: '★'; color: #facc15; }
.ti.ti-star-filled::before  { content: '★'; color: #facc15; }
.ti.ti-check::before        { content: '✓'; }
.ti.ti-arrow-right::before  { content: '→'; }
.ti.ti-arrow-up::before     { content: '↑'; }
.ti.ti-arrow-up-right::before { content: '↗'; }
.ti.ti-chevron-down::before { content: '▾'; }
.ti.ti-chevron-left::before { content: '‹'; }
.ti.ti-chevron-right::before{ content: '›'; }
.ti.ti-package::before      { content: '📦'; }
.ti.ti-mountain::before     { content: '⛰'; }
.ti.ti-tent::before         { content: '⛺'; }
.ti.ti-calendar::before     { content: '📅'; }
.ti.ti-users::before        { content: '👥'; }
.ti.ti-user::before         { content: '👤'; }
.ti.ti-user-circle::before  { content: '👤'; }
.ti.ti-search::before       { content: '🔍'; }
.ti.ti-gift::before         { content: '🎁'; }
.ti.ti-news::before         { content: '📰'; }
.ti.ti-info-circle::before  { content: 'ℹ'; }
.ti.ti-phone::before        { content: '📞'; }
.ti.ti-phone-call::before   { content: '📞'; }
.ti.ti-message-circle::before { content: '💬'; }
.ti.ti-send::before         { content: '➤'; }
.ti.ti-apps::before         { content: '⊞'; }
.ti.ti-rotate::before       { content: '↺'; }
.ti.ti-currency-hryvnia::before { content: '₴'; }
.ti.ti-scale::before        { content: '⚖'; }
.ti.ti-photo::before        { content: '🖼'; }
.ti.ti-ruler-2::before      { content: '📏'; }
.ti.ti-brand-telegram::before  { content: '✈'; }
.ti.ti-brand-instagram::before { content: '📷'; }
.ti.ti-brand-whatsapp::before  { content: '💬'; }
/* щоб emoji fallback не мали square placeholder */
.ti::before {
  font-style: normal;
  font-feature-settings: normal;
  font-variant: normal;
  display: inline-block;
  text-decoration: none;
}

/* ============ MEGA MENU (DESKTOP) ============ */
.nav-mega-wrapper { position: relative; }
.nav-mega-trigger {
  display: inline-flex !important; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--c-text) !important;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-mega-trigger:hover {
  background: var(--c-surface);
  color: var(--c-ink) !important;
}
.nav-mega-panel {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  width: min(960px, 90vw);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 60px rgba(0,0,0,.14);
  padding: 18px;
  z-index: 200;
  opacity: 0; transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  display: none;
}
.nav-mega-panel.open {
  display: block; opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
}
@media (min-width: 1200px) {
  .mega-grid { grid-template-columns: repeat(6, 1fr); }
  .nav-mega-panel { width: min(1100px, 92vw); }
}
.mega-col-title {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13.5px; color: var(--c-ink);
  padding: 4px 6px; margin: -4px -6px 6px;
  border-radius: 6px;
  transition: background .15s;
}
.mega-col-title:hover { background: var(--c-surface); color: var(--c-ink); }
.mega-col-icon { font-size: 16px; }
.mega-sub {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px; font-size: 12.5px;
  border-radius: 5px;
  color: var(--c-text-muted);
  transition: background .15s, color .15s;
  line-height: 1.3;
}
.mega-sub:hover { background: var(--c-surface); color: var(--c-ink); }
.mega-sub-icon { font-size: 13px; opacity: .8; flex-shrink: 0; }
.mega-sub-name { flex: 1; }
.mega-sub-count {
  font-size: 10px; color: var(--c-text-soft);
  background: var(--c-line-soft);
  padding: 1px 6px; border-radius: 9999px;
  font-weight: 600;
}
.mega-col-empty {
  font-size: 11px; color: var(--c-text-soft);
  padding: 6px; font-style: italic;
}
.mega-footer {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--c-line-soft);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mega-tag {
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  background: var(--c-surface);
  border-radius: 9999px;
  color: var(--c-ink);
  transition: background .15s;
}
.mega-tag:hover { background: var(--c-line); }
@media (max-width: 1024px) {
  .nav-mega-panel { display: none !important; }
}

/* ============ BOTTOM-SHEET CATEGORIES (MOBILE) ============ */
.cat-sheet {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.cat-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .25s;
  pointer-events: auto;
}
.cat-sheet.open .cat-sheet-backdrop { opacity: 1; }
.cat-sheet-panel {
  position: relative;
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 12px);
}
.cat-sheet.open .cat-sheet-panel { transform: translateY(0); }
.cat-sheet-handle {
  align-self: center;
  width: 48px; height: 5px;
  background: #d4d4d8;
  border-radius: 99px;
  margin: 10px 0 4px;
  cursor: pointer;
}
.cat-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 8px;
  border-bottom: 1px solid var(--c-line-soft);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.cat-sheet-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.cat-sheet-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-surface);
  display: grid; place-items: center;
  font-size: 16px; color: var(--c-text-muted);
  border: none; cursor: pointer;
}
.cat-sheet-body { padding: 4px 12px 12px; }
.cat-sheet-group { margin-bottom: 4px; }
.cat-sheet-group-head {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--c-ink); text-align: left;
  border-radius: 10px;
  transition: background .15s;
}
.cat-sheet-group-head:hover { background: var(--c-surface); }
.cat-sheet-group-head.open { background: var(--c-surface); }
.cat-sheet-group-icon { font-size: 22px; flex-shrink: 0; }
.cat-sheet-group-name { flex: 1; }
.cat-sheet-chev {
  font-size: 14px; color: var(--c-text-muted);
  transition: transform .2s;
}
.cat-sheet-group-head.open .cat-sheet-chev { transform: rotate(180deg); }
.cat-sheet-group-body {
  display: none;
  padding-left: 36px;
  padding-bottom: 8px;
}
.cat-sheet-group-body.open { display: block; }
.cat-sheet-sub {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--c-text-muted);
  transition: background .15s, color .15s;
}
.cat-sheet-sub:hover { background: var(--c-surface); color: var(--c-ink); }
.cat-sheet-sub-all { font-weight: 600; color: var(--c-ink); }
.cat-sheet-sub-icon { font-size: 16px; opacity: .85; }
.cat-sheet-sub-name { flex: 1; }
.cat-sheet-sub-count {
  font-size: 12px; color: var(--c-text-soft);
  background: var(--c-line-soft);
  padding: 2px 8px; border-radius: 9999px;
  font-weight: 600;
}
.cat-sheet-footer {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 16px 12px 8px;
  margin-top: 8px;
  border-top: 1px solid var(--c-line-soft);
}
.cat-sheet-tag {
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  background: var(--c-surface);
  border-radius: 9999px;
  color: var(--c-ink);
}
.cat-sheet-tag:hover { background: var(--c-line); }

/* ============ SUBCATEGORY CHIPS (CATALOG) ============ */
.subcat-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line-soft);
}
.subcat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 9999px;
  font-size: 13.5px; font-weight: 500;
  color: var(--c-text-muted);
  transition: all .15s;
  white-space: nowrap;
}
.subcat-chip:hover {
  background: #fff;
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.subcat-chip.active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}
