/* Perehvat Store v2 — brutal gray / liquid glass */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&family=JetBrains+Mono:wght@500&display=swap');

html.dark, html[data-theme="dark"] { color-scheme: dark; }

body.store-v2.has-bottom-nav main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.store-v2 .bottom-nav { display: none; }
@media (max-width: 920px) {
  body.store-v2 .bottom-nav {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px -8px rgba(0, 0, 0, 0.12);
  }
  body.store-v2 .bottom-nav a { color: var(--text-secondary); font-size: 11px; }
  body.store-v2 .bottom-nav a.active { color: var(--logo-blue-start); font-weight: 600; }
}

body.store-v2 .header.legacy-header { display: none !important; }
body.store-v2 > footer:not(.store-v2-footer) { display: none; }
body.has-bottom-nav .footer.store-v2-footer {
  padding-bottom: calc(32px + 72px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 921px) {
  body.has-bottom-nav .footer.store-v2-footer {
    padding-bottom: 32px;
  }
}
body.store-v2 { background: var(--bg-base) !important; color: var(--text-primary) !important; }
body.store-v2,
body.store-v2 .app.view,
body.store-v2 .container {
  overflow-x: hidden;
  max-width: 100%;
}
body.store-v2 .hidden { display: none !important; }
body.store-v2 main.has-bottom-nav { padding-top: 0; max-width: none; }
body.store-v2.page-catalog main.has-bottom-nav,
body.store-v2.page-lot main.has-bottom-nav {
  padding-left: 0;
  padding-right: 0;
}
body.store-v2 .store-v2-page,
body.store-v2 .store-v2-lot-wrap {
  max-width: 100%;
}
body.store-v2 #productsGrid > .product-item { min-width: 0; }

body.store-v2 .card-media .bg,
body.store-v2 .card-media video.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Похожие товары на странице лота */
body.store-v2 #simWrapper.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
body.store-v2 #simWrapper > .card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
body.store-v2 #simWrapper .card-media {
  aspect-ratio: 1 / 1;
  min-height: 120px;
  background: var(--bg-secondary);
}
body.store-v2 #simWrapper .card-media .gloss {
  z-index: 1;
  pointer-events: none;
}
body.store-v2 #simWrapper .card-media .badges {
  z-index: 2;
}
body.store-v2 #simWrapper .card-media img.bg,
body.store-v2 #simWrapper .card-media video.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.store-v2 .filter-row {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
}

/* Галерея лота: фото целиком (contain), как в прошлой версии */
body.store-v2 .gallery-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

body.store-v2 .gallery-main .swiper-slide img.bg,
body.store-v2 .gallery-main .swiper-slide video.bg {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

body.store-v2 .gallery-thumbs .thumb .bg {
  object-fit: cover;
}

body.store-v2 .gallery-arrow::after {
  font-size: 16px;
  font-weight: 700;
}

body.store-v2 .icon-btn.on {
  color: var(--semantic-error);
}

body.store-v2 a.btn.disabled,
body.store-v2 .btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}
body.store-v2 .btn-primary,
body.store-v2 .btn-buy {
  color: #fff;
}
body.store-v2 .btn-primary:focus-visible,
body.store-v2 .btn-buy:focus-visible,
body.store-v2 .icon-btn:focus-visible {
  outline: 2px solid var(--logo-blue-start);
  outline-offset: 2px;
}

body.store-v2.page-lot main.has-bottom-nav {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

@media (min-width: 921px) {
  body.store-v2.page-lot main.has-bottom-nav {
    padding-bottom: 40px;
  }
}

/* ───────────────── TABLET & DESKTOP ───────────────── */

@media (min-width: 721px) and (max-width: 920px) {
  body.store-v2.has-bottom-nav main.has-bottom-nav {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 921px) {
  html:not(.catalog-compact) body.store-v2.has-bottom-nav main.has-bottom-nav {
    padding-bottom: 40px;
  }
  html:not(.catalog-compact) body.store-v2 .bottom-nav {
    display: none !important;
  }
}

body.store-v2 .catalog-main { min-width: 0; }

body.store-v2.page-catalog .store-v2-page {
  padding-top: 24px;
  padding-bottom: 40px;
}

body.store-v2.page-lot .store-v2-lot-wrap {
  padding-top: 8px;
  padding-bottom: 40px;
}

/* Каталог: sidebar скрыт по умолчанию; десктоп — от 921px без compact */
body.store-v2.page-catalog .filter-sidebar,
body.store-v2.page-catalog .filter-sidebar-desktop-only {
  display: none !important;
}
body.store-v2.page-catalog .mobile-filters-trigger {
  display: none;
}
body.store-v2.page-catalog .catalog-mobile-only {
  display: none;
}
body.store-v2.page-catalog .catalog-desktop-only {
  display: none;
}
body.store-v2.page-catalog .catalog-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 921px) {
  html:not(.catalog-compact) body.store-v2.page-catalog .filter-sidebar,
  html:not(.catalog-compact) body.store-v2.page-catalog .filter-sidebar-desktop-only {
    display: flex !important;
    position: sticky !important;
    width: auto !important;
    height: auto !important;
    overflow-y: auto !important;
    clip: auto !important;
    white-space: normal !important;
    margin: 0 !important;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .mobile-filters-trigger {
    display: none !important;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .catalog-mobile-only {
    display: none !important;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .catalog-desktop-only {
    display: flex !important;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .catalog-grid {
    grid-template-columns: 256px 1fr !important;
    gap: 28px;
    margin-top: 20px;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .filter-sidebar {
    grid-column: 1;
    grid-row: 1;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .catalog-main {
    grid-column: 2;
    grid-row: 1;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .store-v2-page.container {
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 24px;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .product-grid,
  html:not(.catalog-compact) body.store-v2.page-catalog #productsGrid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
    width: 100%;
    max-width: 100%;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .header-inner .header-search {
    height: auto;
    padding: inherit;
    border-width: inherit;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .header-inner .header-search input {
    font-size: 15px;
  }
  html:not(.catalog-compact) body.store-v2.page-catalog .header-inner .header-search .search-icon-wrap {
    width: 36px;
    height: 36px;
  }
}
@media (min-width: 921px) {
  html:not(.catalog-compact) body.store-v2.page-catalog .catalog-main > .chip-row {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  body.store-v2 .store-v2-page,
  body.store-v2 .store-v2-lot-wrap {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  body.store-v2 .store-v2-lot-wrap {
    max-width: 1140px;
  }

  html:not(.catalog-compact) body.store-v2.page-catalog .product-grid,
  html:not(.catalog-compact) body.store-v2.page-catalog #productsGrid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (min-width: 1280px) {
  html:not(.catalog-compact) body.store-v2.page-catalog .catalog-grid {
    grid-template-columns: 280px 1fr !important;
    gap: 32px;
  }
}

/* Catalog cards — no display:contents (broken in Telegram WebView) */
body.store-v2 .product-grid > .product-item { min-width: 0; }
body.store-v2 .product-grid > .card.product-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
body.store-v2 .product-grid > .card.product-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
/* style-unified.css даёт .product-card свою рамку и скругление — убираем «двойную» обводку */
body.store-v2 .product-grid .product-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
body.store-v2 .product-grid .product-card:hover {
  border: none;
  box-shadow: none;
  transform: none;
}
body.store-v2 .product-grid .product-card .card-body { flex: 1; }
body.store-v2 .product-grid .card-media,
body.store-v2 .product-grid .card-media .bg,
body.store-v2 .product-grid .card-media img,
body.store-v2 .product-grid .card-media video {
  border: none;
  border-radius: 0;
  outline: none;
}

body.store-v2 .gallery-main .swiper-button-next,
body.store-v2 .gallery-main .swiper-button-prev {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  color: var(--text-primary);
}
body.store-v2 .gallery-main .swiper-button-next:after,
body.store-v2 .gallery-main .swiper-button-prev:after { font-size: 16px; font-weight: 700; }

body.store-v2 .alert-v2 {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-md);
  font-size: 14px; line-height: 1.45;
}
body.store-v2 .alert-v2.warn {
  background: var(--semantic-error-tint);
  color: var(--text-secondary);
  border-left: 3px solid var(--semantic-error);
}
body.store-v2 .alert-v2.warn strong { color: var(--semantic-error); }

body.store-v2 .lot-mobile-cta {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(72px + env(safe-area-inset-bottom) + 8px);
  z-index: 55;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
body.store-v2 .lot-mobile-cta .btn-buy {
  opacity: 1;
}
@media (min-width: 921px) { body.store-v2 .lot-mobile-cta { display: none; } }
body.store-v2 .lot-desktop-cta { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 920px) { body.store-v2 .lot-desktop-cta { display: none !important; } }
body.store-v2 .card-media img,
body.store-v2 .card-media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Lot page — compact layout */
body.store-v2.page-lot main.container { padding-top: 0; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
body.store-v2.page-lot .gallery-tags { top: 10px; left: 10px; gap: 6px; }
body.store-v2.page-lot .lot-swiper-wrap { max-width: 100%; }
body.store-v2.page-lot .lot-swiper-wrap .swiper,
body.store-v2.page-lot .lot-swiper-wrap .swiper-wrapper {
  width: 100%;
  height: 100%;
}
body.store-v2.page-lot .lot-swiper-wrap .swiper-slide {
  width: 100%;
  height: 100%;
}

/* ============================================================
   PEREHVAT STORE — colors_and_type.css
   Premium "liquid glass" marketplace for trusted Apple resellers
   ============================================================ */

/* --- Type: Inter for body (SF Pro fallback), JetBrains Mono for numeric ---
   Inter substitutes Apple's SF Pro on the web. Spec'd weight axis 400-800.
   Manrope used for the "premium" display moments (tight, geometric).
*/
/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */



:root {
  /* ──────────────── BRAND ACCENT (blue) ──────────────── */
  --logo-blue-start: #0057FF;
  --logo-blue-mid:   #0080FF;
  --logo-blue-end:   #00AAFF;

  --accent-gradient:      linear-gradient(135deg, #0057FF 0%, #0080FF 50%, #00AAFF 100%);
  --accent-gradient-flat: linear-gradient(135deg, #0057FF 0%, #00AAFF 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(0,87,255,0.12), rgba(0,170,255,0.12));
  --accent-solid:    #0073E6;
  --accent-hover:    #0066D6;

  --accent-glow:      0 4px 24px rgba(0, 87, 255, 0.35);
  --accent-glow-soft: 0 2px 12px rgba(0, 170, 255, 0.20);
  --focus-ring:       0 0 0 3px rgba(0, 87, 255, 0.30);

  --semantic-trust:        #00C2A8;
  --semantic-trust-ink:    #00A08A;
  --semantic-trust-tint:   rgba(0, 194, 168, 0.12);
  --semantic-used:         #6A7FA8;
  --semantic-used-ink:     #4A5878;
  --semantic-used-tint:    rgba(106, 127, 168, 0.14);
  --semantic-new:          #0073E6;
  --semantic-new-tint:     rgba(0, 87, 255, 0.10);
  --semantic-error:        #FF3B30;
  --semantic-error-tint:   rgba(255, 59, 48, 0.10);

  --neutral-50:  #FAFAFA;
  --neutral-100: #F4F4F5;
  --neutral-200: #E4E4E7;
  --neutral-300: #D4D4D8;
  --neutral-400: #A1A1AA;
  --neutral-500: #71717A;
  --neutral-600: #52525B;
  --neutral-700: #3F3F46;
  --neutral-800: #27272A;
  --neutral-900: #18181B;

  /* ──────────────── LIGHT THEME ──────────────── */
  --bg-base:        #FFFFFF;
  --bg-surface:     rgba(244, 245, 248, 0.78);
  --bg-surface-solid: #F4F5F8;
  --bg-secondary:   #F4F5F8;
  --bg-elevated:    #FFFFFF;
  --bg-hover:       rgba(0, 87, 255, 0.04);

  --border:         rgba(24, 24, 27, 0.10);
  --border-strong:  rgba(24, 24, 27, 0.16);
  --border-hairline:rgba(24, 24, 27, 0.06);

  --text-primary:   #18181B;
  --text-secondary: #52525B;
  --text-tertiary:  #A1A1AA;
  --text-on-accent: #FFFFFF;

  --shadow-xs: 0 1px 2px rgba(13, 18, 32, 0.04);
  --shadow-sm: 0 2px 8px rgba(13, 18, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 18, 32, 0.08);
  --shadow-lg: 0 18px 48px rgba(13, 18, 32, 0.12);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  --glass-bg:     rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-tint:   rgba(0, 87, 255, 0.03);
}

/* Dark: gray surfaces + blue accents (not blue-tinted backgrounds) */
html.dark, [data-theme="dark"], .theme-dark {
  --logo-blue-start: #5B9FFF;
  --logo-blue-mid:   #0080FF;
  --logo-blue-end:   #00AAFF;

  --accent-gradient:      linear-gradient(135deg, #0057FF 0%, #0080FF 50%, #00AAFF 100%);
  --accent-gradient-flat: linear-gradient(135deg, #0057FF 0%, #00AAFF 100%);
  --accent-solid:    #3B82F6;
  --accent-hover:    #60A5FA;
  --accent-glow:      0 4px 28px rgba(0, 120, 255, 0.35);
  --accent-glow-soft: 0 2px 14px rgba(0, 120, 255, 0.22);
  --focus-ring:       0 0 0 3px rgba(91, 159, 255, 0.35);

  --semantic-new:          #5B9FFF;
  --semantic-new-tint:     rgba(91, 159, 255, 0.12);
  --semantic-trust:        #00C2A8;
  --semantic-trust-tint:   rgba(0, 194, 168, 0.12);

  --text-on-accent:   #FFFFFF;

  --bg-base:        #0C0C0E;
  --bg-surface:     rgba(28, 28, 31, 0.88);
  --bg-surface-solid: #18181B;
  --bg-secondary:   #1C1C1F;
  --bg-elevated:    #232326;
  --bg-hover:       rgba(255, 255, 255, 0.06);

  --border:         rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.16);
  --border-hairline:rgba(255, 255, 255, 0.05);

  --text-primary:   #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-tertiary:  #71717A;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.60);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --glass-bg:     rgba(28, 28, 31, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-tint:   rgba(255, 255, 255, 0.03);
}

/* ──────────────── TYPE SYSTEM ──────────────── */
:root {
  --font-display: "Manrope", "SF Pro Display", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "SF Pro Text", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Scale — derived from a 1.250 (major third) ratio for body, custom for display */
  --fs-12: 12px;    --lh-12: 16px;
  --fs-13: 13px;    --lh-13: 18px;
  --fs-14: 14px;    --lh-14: 20px;
  --fs-15: 15px;    --lh-15: 22px;
  --fs-16: 16px;    --lh-16: 24px;
  --fs-18: 18px;    --lh-18: 26px;
  --fs-20: 20px;    --lh-20: 28px;
  --fs-24: 24px;    --lh-24: 32px;
  --fs-30: 30px;    --lh-30: 38px;
  --fs-36: 36px;    --lh-36: 44px;
  --fs-48: 48px;    --lh-48: 56px;
  --fs-64: 64px;    --lh-64: 70px;

  /* Tight tracking on display sizes — Apple-style */
  --ls-display:  -0.025em;
  --ls-headline: -0.015em;
  --ls-body:     -0.005em;
  --ls-mono:      0;
  --ls-caps:      0.06em;

  /* ──────────────── RADII ──────────────── */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* ──────────────── SPACE SCALE (4px base) ──────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;
  --space-11: 96px;

  /* ──────────────── MOTION ──────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);     /* Apple-ish ease-out */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-instant: 120ms;
  --dur-fast:    180ms;
  --dur-base:    240ms;
  --dur-slow:    360ms;

  /* ──────────────── GLASS ──────────────── */
  --glass-blur:  saturate(180%) blur(24px);
  --glass-blur-strong: saturate(200%) blur(36px);
}

/* ──────────────── SEMANTIC TYPE CLASSES ──────────────── */

.display-1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-64); line-height: var(--lh-64); letter-spacing: var(--ls-display); }
.display-2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-48); line-height: var(--lh-48); letter-spacing: var(--ls-display); }
.h1        { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-36); line-height: var(--lh-36); letter-spacing: var(--ls-headline); }
.h2        { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-30); line-height: var(--lh-30); letter-spacing: var(--ls-headline); }
.h3        { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); line-height: var(--lh-24); letter-spacing: var(--ls-headline); }
.h4        { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-20); line-height: var(--lh-20); letter-spacing: var(--ls-headline); }

.body-lg   { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-18); line-height: var(--lh-18); letter-spacing: var(--ls-body); }
.body      { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-15); line-height: var(--lh-15); letter-spacing: var(--ls-body); }
.body-sm   { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: var(--ls-body); }
.caption   { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: var(--ls-body); }

.label     { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: var(--ls-body); }
.overline  { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: var(--ls-caps); text-transform: uppercase; }

.price     { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); line-height: var(--lh-24); letter-spacing: var(--ls-headline); font-feature-settings: "tnum"; }
.price-lg  { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-36); line-height: var(--lh-36); letter-spacing: var(--ls-display); font-feature-settings: "tnum"; }
.mono      { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-13); line-height: var(--lh-13); }

/* Gradient text utility — used for the price highlight and hero headlines */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ──────────────── PAGE BASE ──────────────── */
body, html {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out);
}

/* ambient wash */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(85% 55% at 80% -10%, rgba(0, 170, 255, 0.12), transparent 60%),
    radial-gradient(60% 50% at 0% 0%, rgba(0, 87, 255, 0.08), transparent 60%);
}
html.dark body::before, [data-theme="dark"] body::before {
  background:
    radial-gradient(80% 50% at 85% -5%, rgba(82, 82, 91, 0.18), transparent 55%),
    radial-gradient(55% 45% at 0% 0%, rgba(39, 39, 42, 0.22), transparent 55%);
}

button, input, select { font-family: inherit; }
button { cursor: pointer; color: inherit; }
button:not(.chip):not(.filter-chip):not(.btn):not(.icon-btn):not(.filter-row):not(.catalog-filter-btn):not(.filter-reset):not(.filter-reset-inline):not(.card-fav):not(.mobile-filters-trigger):not(.chip-sort) {
  border: none; background: none; padding: 0;
}
a { color: inherit; text-decoration: none; }

/* ───────────────── LAYOUT ───────────────── */

.app { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* ───────────────── HEADER (glass) ───────────────── */

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border-hairline), 0 6px 24px -16px rgba(0, 87, 255, 0.14);
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 87, 255, 0) 8%,
    rgba(0, 87, 255, 0.35) 35%,
    rgba(0, 170, 255, 0.45) 50%,
    rgba(0, 87, 255, 0.35) 65%,
    rgba(0, 87, 255, 0) 92%,
    transparent 100%
  );
  pointer-events: none;
}
html.dark .header, [data-theme="dark"] .header {
  box-shadow: 0 1px 0 var(--border-hairline), 0 6px 24px -12px rgba(0, 0, 0, 0.45);
}
html.dark .header::after, [data-theme="dark"] .header::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(91, 159, 255, 0) 8%,
    rgba(91, 159, 255, 0.35) 35%,
    rgba(0, 170, 255, 0.50) 50%,
    rgba(91, 159, 255, 0.35) 65%,
    rgba(91, 159, 255, 0) 92%,
    transparent 100%
  );
}
.header-inner {
  height: 72px;
  display: flex; align-items: center;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.brand-mark { width: 36px; height: 36px; border-radius: 8px; display: block; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.brand-wordmark span { color: var(--text-tertiary); font-weight: 500; margin-left: 4px; }

.header-tools { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--logo-blue-start);
  border: 2px solid var(--bg-base);
}
.nav-text {
  padding: 0 14px;
  height: 40px;
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  border-radius: 999px;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}
.nav-text:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-text.active { color: var(--text-primary); }
.profile-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  margin-left: 4px;
  transition: border-color 180ms var(--ease-out);
}
.profile-pill:hover { border-color: var(--border-strong); }
.profile-pill .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff; font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.profile-pill .nm {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-primary);
}

/* ───────────────── BUTTONS ───────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
button.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #0057FF 0%, #0080FF 25%, #00AAFF 50%, #0080FF 75%, #0057FF 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: var(--text-on-accent);
  box-shadow: var(--accent-glow);
  transition: background-position 600ms var(--ease-out),
              transform 240ms var(--ease-out),
              box-shadow 240ms var(--ease-out);
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 87, 255, 0.45);
}

.btn-buy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0057FF 0%, #0080FF 30%, #00AAFF 50%, #0080FF 70%, #0057FF 100%);
  background-size: 300% 300%;
  animation: btn-buy-drift 7s linear infinite;
}
.btn-buy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.40) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
  pointer-events: none;
}
.btn-buy:hover {
  animation-duration: 2.4s;
  box-shadow: 0 14px 40px rgba(0, 87, 255, 0.50);
  transform: translateY(-2px);
}
.btn-buy:hover::after { transform: translateX(120%); }
@keyframes btn-buy-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-primary.cta-solid {
  background: var(--accent-solid);
  box-shadow: 0 4px 16px rgba(0, 115, 230, 0.30);
}
.btn-primary.cta-outline {
  background: transparent;
  color: var(--accent-solid);
  border: 1.5px solid var(--accent-solid);
  box-shadow: none;
}
.btn-primary.cta-outline:hover { background: var(--semantic-new-tint); transform: none; }
.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-secondary); }
.btn-ghost { color: var(--text-primary); height: 40px; padding: 0 14px; }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
body.store-v2 .btn.btn-primary.btn-buy:disabled,
body.store-v2 button.btn.btn-primary.btn-buy[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  animation: none;
  box-shadow: none;
}
body.store-v2 .btn.btn-primary.btn-buy:disabled::after,
body.store-v2 button.btn.btn-primary.btn-buy[disabled]::after {
  display: none;
}

/* ───────────────── HEADER SEARCH ───────────────── */

.header-search {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 720px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 0 18px;
  height: 50px;
  border-radius: var(--radius-md);
  /* bright gradient border via double background trick */
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(135deg, #0057FF, #0080FF 45%, #00AAFF 100%) border-box;
  transition: transform 240ms var(--ease-out),
              box-shadow 320ms var(--ease-out),
              background 320ms var(--ease-out);
  overflow: hidden;
  isolation: isolate;
  cursor: text;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 2px 12px -4px rgba(0, 87, 255, 0.18);
}
html.dark .header-search, [data-theme="dark"] .header-search {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 2px 12px -4px rgba(0, 120, 255, 0.22);
}

.header-search::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(180px 100px at var(--mx, -200px) var(--my, 50%),
      rgba(0, 170, 255, 0.24), transparent 65%),
    radial-gradient(120px 80px at calc(var(--mx, -200px) - 60px) calc(var(--my, 50%) + 20px),
      rgba(0, 87, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(2px);
}
html.dark .header-search::before, [data-theme="dark"] .header-search::before {
  background:
    radial-gradient(180px 100px at var(--mx, -200px) var(--my, 50%),
      rgba(0, 170, 255, 0.32), transparent 65%),
    radial-gradient(120px 80px at calc(var(--mx, -200px) - 60px) calc(var(--my, 50%) + 20px),
      rgba(91, 159, 255, 0.20), transparent 70%);
}
.header-search:hover::before { opacity: 1; }
.header-search:focus-within::before { opacity: 1; }

.header-search::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg,
    rgba(0, 87, 255, 0.04) 0%,
    transparent 40%,
    rgba(0, 170, 255, 0.06) 100%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 240ms var(--ease-out);
}
html.dark .header-search::after, [data-theme="dark"] .header-search::after {
  background: linear-gradient(120deg,
    rgba(91, 159, 255, 0.06) 0%,
    transparent 40%,
    rgba(0, 170, 255, 0.08) 100%);
}

.header-search:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 8px 28px -6px rgba(0, 87, 255, 0.28);
}
.header-search:focus-within {
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(135deg, #00AAFF, #0057FF 50%, #0080FF 100%) border-box;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 0 0 4px rgba(0, 87, 255, 0.16),
    0 12px 36px -8px rgba(0, 87, 255, 0.32);
}

/* The trailing search icon (now on the right) */
.header-search .search-icon-wrap {
  position: relative;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--accent-glow-soft);
  transition: background-position 600ms var(--ease-out), transform 240ms var(--ease-spring);
}
.header-search:hover .search-icon-wrap {
  background-position: 100% 50%;
  transform: scale(1.06) rotate(-3deg);
}
.header-search:focus-within .search-icon-wrap {
  background-position: 100% 50%;
  transform: scale(1.04);
  box-shadow: var(--accent-glow);
}

.header-search input {
  position: relative;
  z-index: 2;
  flex: 1;
  background: none; border: none; outline: none;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  min-width: 0;
  padding: 0;
}
.header-search input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}
.header-search .clear-btn {
  position: relative;
  z-index: 2;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.header-search .clear-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* Хедер: три колонки без наплыва поиска на кнопки */
body.store-v2 .header-inner {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content);
  gap: 10px;
  align-items: center;
}
body.store-v2 .header-inner .brand {
  justify-self: start;
  min-width: 0;
  max-width: min(100%, 200px);
}
body.store-v2 .header-inner .header-search {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: unset;
}
body.store-v2 .header-inner .header-tools {
  justify-self: end;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

@media (min-width: 921px) {
  body.store-v2 .header .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  body.store-v2 .header-inner {
    grid-template-columns: minmax(0, 200px) minmax(180px, min(720px, 48vw)) minmax(0, max-content);
    gap: 14px;
  }
  body.store-v2 .header-inner .header-search {
    grid-column: 2;
    justify-self: center;
    width: 100%;
    max-width: 720px;
  }
  body.store-v2 .header-inner .brand {
    grid-column: 1;
  }
  body.store-v2 .header-inner .header-tools {
    grid-column: 3;
  }
}

@media (max-width: 920px) {
  .brand-wordmark { display: none; }
  body.store-v2 .header-inner .brand { max-width: 44px; }
  .header-search { height: 44px; padding: 0 4px 0 12px; }
  .header-search .search-icon-wrap { width: 32px; height: 32px; flex-shrink: 0; }
  .header-search input { min-width: 0; }
}
@media (min-width: 921px) and (max-width: 1100px) {
  body.store-v2 .brand-wordmark { display: none; }
  body.store-v2 .header-inner .brand { max-width: 44px; }
}
@media (max-width: 560px) {
  .header-search input { font-size: 14px; }
  .header-search .search-icon-wrap { width: 30px; height: 30px; }
}

/* ───────────────── CATALOG TOOLBAR (mobile / TG) ───────────────── */

.catalog-sticky-bar,
.catalog-mobile-only.catalog-sticky-bar {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  padding-bottom: 2px;
  background: var(--bg-base);
  max-width: 100%;
  min-width: 0;
}

.catalog-categories {
  margin-bottom: 8px;
  gap: 6px;
  padding-bottom: 2px;
}

.chip-cat {
  padding: 7px 12px;
  font-size: 13px;
  flex-shrink: 0;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.catalog-filter-btn {
  order: 1;
}
.catalog-count-inline {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.catalog-count-inline strong {
  font-size: 14px;
  margin-right: 2px;
}
.catalog-sort {
  order: 3;
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-bottom: 0;
}

.catalog-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.catalog-filter-btn:hover,
.catalog-filter-btn.has-active {
  border-color: rgba(0, 87, 255, 0.35);
  background: var(--semantic-new-tint);
}
.catalog-filter-btn svg { flex-shrink: 0; }

.filter-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.catalog-count-inline {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-count-inline strong {
  font-size: 14px;
  margin-right: 2px;
}

.catalog-sort {
  flex: 1 1 100%;
  margin: 0;
  padding-bottom: 0;
  max-width: 100%;
}
.catalog-sort .chip-sort {
  padding: 6px 10px;
  font-size: 12px;
}

.catalog-head-desktop,
.catalog-desktop-only.catalog-head-desktop {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-top: 4px;
}
.catalog-head-desktop .chip-row,
.catalog-desktop-only .chip-row { margin: 0; padding-bottom: 0; }

body.filter-drawer-open {
  overflow: hidden;
  touch-action: none;
}

.filter-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 12px;
}

.filter-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 160ms var(--ease-out);
}
.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.filter-chip.active {
  background: var(--semantic-new-tint);
  border-color: rgba(0, 87, 255, 0.28);
  color: var(--logo-blue-start);
  font-weight: 600;
}

.filter-drawer-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.filter-reset-inline {
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.filter-reset-inline:hover { color: var(--semantic-error); }
.filter-drawer-footer .btn-block {
  width: 100%;
  height: 44px;
  font-size: 15px;
}

@media (min-width: 921px) {
  html:not(.catalog-compact) .catalog-mobile-only { display: none !important; }
  html:not(.catalog-compact) .catalog-desktop-only { display: flex !important; }
}

/* ───────────────── MOBILE FILTERS BUTTON (legacy hook) ───────────────── */

.popular-strip {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
  margin-top: 18px;
  font-size: 12px; color: var(--text-tertiary);
}
.popular-strip .lbl {
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 4px;
}
.popular-strip button {
  font-size: 12px;
  color: var(--logo-blue-start);
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.popular-strip button:hover { background: var(--bg-hover); border-color: var(--border-strong); }
@media (max-width: 480px) { .popular-strip { display: none; } }

.mobile-filters-trigger {
  display: none;
  align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
  transition: border-color 180ms var(--ease-out);
}
.mobile-filters-trigger:hover { border-color: var(--border-strong); }
.mobile-filters-trigger .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px; font-weight: 700;
}
@media (max-width: 920px) {
  .mobile-filters-trigger { display: inline-flex; }
  body.store-v2.page-catalog .mobile-filters-trigger { display: inline-flex !important; }
}

/* ───────────────── CATALOG LAYOUT (sidebar + grid) ───────────────── */

.catalog-grid {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 920px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 16px; }
}

.filter-sidebar {
  position: sticky;
  top: calc(72px + 24px);
  display: flex; flex-direction: column;
  gap: 22px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.filter-sidebar::-webkit-scrollbar { width: 6px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.filter-section {
  display: flex; flex-direction: column;
  gap: 8px;
}
.filter-section h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.filter-section .price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.filter-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.filter-section .price-row .filter-input {
  border-radius: 12px;
  background: var(--bg-secondary);
}
.filter-input::placeholder { color: var(--text-tertiary); }
.filter-input:focus {
  border-color: var(--logo-blue-start);
  box-shadow: var(--focus-ring);
  background: var(--bg-elevated);
}
.filter-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%),
    linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%);
  background-position: calc(100% - 14px) 17px, calc(100% - 9px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}

.filter-list {
  display: flex; flex-direction: column;
  gap: 2px;
}
.filter-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.filter-row:hover { background: var(--bg-hover); color: var(--text-primary); }
.filter-row.active {
  background: var(--semantic-new-tint);
  color: var(--logo-blue-start);
  font-weight: 600;
}
.filter-row .cnt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.filter-row.active .cnt { color: var(--logo-blue-start); opacity: 0.7; }

.filter-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 160ms var(--ease-out);
  font-size: 14px;
  color: var(--text-primary);
}
.filter-toggle:hover { background: var(--bg-hover); }
.filter-toggle .check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-base);
  transition: all 180ms var(--ease-out);
}
.filter-toggle.on .check {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}
.filter-toggle.on .check svg { display: block; }
.filter-toggle .check svg { display: none; }

.filter-reset {
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  transition: all 180ms var(--ease-out);
}
.filter-reset:hover { color: var(--semantic-error); border-color: var(--semantic-error); }

/* Mobile drawer */
.filter-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(13, 18, 32, 0.5);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
}
.filter-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.filter-drawer {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 24px));
  z-index: 61;
  background: var(--bg-base);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  transform: translate3d(0, 100%, 0);
  visibility: hidden;
  transition: transform 280ms var(--ease-out), visibility 280ms var(--ease-out);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
body.store-v2.page-catalog .filter-drawer .filter-section {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.store-v2.page-catalog .filter-drawer .price-row .filter-input {
  border-radius: 12px !important;
  background: var(--bg-secondary) !important;
}

body.store-v2 .badge-stock {
  display: none !important;
}

.filter-drawer.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}
.filter-drawer:not(.open) {
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(0, 100%, 0);
}
.filter-drawer-handle {
  width: 40px; height: 4px;
  background: var(--border-strong);
  border-radius: 999px;
  margin: 6px auto 12px;
  flex-shrink: 0;
}
.filter-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.filter-drawer-head h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.015em;
}
@media (min-width: 921px) {
  .filter-drawer, .filter-drawer-backdrop { display: none; }
}

.result-count {
  font-size: 14px; color: var(--text-secondary);
}
.result-count strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin-right: 4px;
  font-feature-settings: "tnum";
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-top: 4px;
}
.catalog-head .chip-row { margin: 0; padding-bottom: 0; }

/* ───────────────── CHIPS ───────────────── */

.chip-row {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 14px;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: all 180ms var(--ease-out);
}
.chip:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.chip.active {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--accent-glow-soft);
}

.chip-sort {
  background: transparent;
  border: 1px solid var(--border);
  font-size: 13px; padding: 7px 14px;
  color: var(--text-secondary);
}
.chip-sort:hover { color: var(--text-primary); }
.chip-sort.active {
  background: var(--semantic-new-tint);
  border-color: rgba(0, 87, 255, 0.28);
  color: var(--logo-blue-start);
  font-weight: 600;
}

/* ───────────────── PRODUCT CARD ───────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-grid.density-compact { gap: 12px; }
.product-grid.density-spacious { gap: 28px; }
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 920px)  { .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

@media (max-width: 920px) {
  body.store-v2 .catalog-grid > div:last-child { min-width: 0; max-width: 100%; }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--card-radius, var(--radius-md));
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-media .bg {
  position: absolute; inset: 0;
  transition: transform 480ms var(--ease-out);
}
.card:hover .card-media .bg { transform: scale(1.04); }
.card-media .gloss {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 30% 25%, rgba(255,255,255,0.18), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.card-media .glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 56px);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  mix-blend-mode: overlay;
  text-align: center;
  padding: 0 12px;
}
.card-media .glyph.dark { color: rgba(13, 18, 32, 0.55); mix-blend-mode: multiply; }

.badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 10px;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.badge-new { background: var(--accent-gradient); color: #fff; box-shadow: var(--accent-glow-soft); }
.badge-verified { background: var(--semantic-trust); color: #fff; }
.badge-used { background: var(--semantic-used-tint); color: var(--semantic-used-ink); }
.badge-stock { background: rgba(255,255,255,0.92); color: var(--text-primary); backdrop-filter: blur(8px); }
.badge-video {
  background: rgba(13,18,32,0.55); color: #fff;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);
}

.card-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
  z-index: 2;
}
.card-fav:hover { color: var(--semantic-error); transform: scale(1.08); }
.card-fav.on { color: var(--semantic-error); }
.card-fav.on svg { fill: currentColor; }

.card-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-primary);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.card-meta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-tertiary);
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}
.card-price {
  font-family: var(--font-display);
  font-weight: 800; font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--logo-blue-start);
  font-feature-settings: "tnum";
}
.card-go {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 240ms var(--ease-spring);
  box-shadow: var(--accent-glow-soft);
}
.card:hover .card-go { transform: scale(1.10); }

/* ───────────────── BACK LINK ───────────────── */

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--logo-blue-start);
  font-size: 14px; font-weight: 500;
  padding: 12px 0 6px;
  cursor: pointer;
}
.back-link:hover { color: var(--accent-hover); }

/* ───────────────── LOT DETAIL ───────────────── */

.lot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding: 0 0 28px;
  align-items: start;
}
@media (max-width: 920px) { .lot { grid-template-columns: 1fr; gap: 16px; } }

.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery-main {
  position: relative;
  width: 100%;
  min-height: 300px;
  height: min(72vw, 420px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
}
body.store-v2 .gallery-main .swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.store-v2 .gallery-main .gloss {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
body.store-v2 .gallery-main .gallery-tags {
  z-index: 3;
}
@media (min-width: 921px) {
  .gallery-main,
  body.store-v2.page-lot .gallery-main {
    height: 450px;
    min-height: 450px;
    max-height: 520px;
  }
}
.gallery-main .gloss {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 35% at 30% 25%, rgba(255,255,255,0.20), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.20) 100%);
}
.gallery-main .glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 96px;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.04em;
  text-shadow: 0 6px 32px rgba(0,0,0,0.4);
  mix-blend-mode: overlay;
}
.gallery-main .glyph.dark { color: rgba(13,18,32,0.6); mix-blend-mode: multiply; }
.gallery-tags {
  position: absolute; top: 16px; left: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.4);
}
.gallery-arrow:hover { transform: translateY(-50%) scale(1.06); }
.gallery-arrow.left { left: 14px; }
.gallery-arrow.right { right: 14px; }
.lot-swiper-pagination { display: none; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  max-width: 100%;
}
.thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 180ms var(--ease-out);
}
.thumb.active { border-color: var(--logo-blue-start); }
.thumb .bg { position: absolute; inset: 0; }
.thumb .thumb-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 13px;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.02em;
  mix-blend-mode: overlay;
}
.thumb .thumb-glyph.dark { color: rgba(13,18,32,0.6); mix-blend-mode: multiply; }

.zoom-content {
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}
.zoom-media {
  user-select: none;
  -webkit-user-select: none;
  transition: transform 120ms ease;
  will-change: transform;
}
.zoom-media-image {
  cursor: zoom-in;
}

.lot-side {
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.lot-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}
.lot-head-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.lot-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0;
  text-transform: uppercase;
}
.lot-title {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(20px, 4.5vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}
.lot-head-tools { display: flex; gap: 4px; }

.lot-price {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(26px, 5.5vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-feature-settings: "tnum";
  padding-top: 0;
}

.seller-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.seller-card:hover { border-color: var(--border-strong); background: var(--bg-elevated); }
.seller-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  flex-shrink: 0;
  padding: 2px;
}
.seller-av-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--neutral-700);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.seller-info { flex: 1; min-width: 0; }
.seller-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.seller-stats {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-secondary);
  margin-top: 2px;
}
.seller-stats .rating { display: inline-flex; align-items: center; gap: 3px; color: #FFB400; font-weight: 600; }
.seller-stats .rating svg { fill: currentColor; }

.section-label {
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.desc-list {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; line-height: 1.55;
  color: var(--text-secondary);
}
.desc-list li {
  display: flex; gap: 8px; align-items: flex-start;
  list-style: none;
}
.desc-list li::before {
  content: ""; flex-shrink: 0; margin-top: 9px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-tertiary);
}

.nuances-card {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--semantic-error-tint);
  border-left: 3px solid var(--semantic-error);
}
.nuances-card .icon-wrap {
  flex-shrink: 0;
  color: var(--semantic-error);
  margin-top: 1px;
}
.nuances-card .title {
  font-weight: 700; font-size: 13px;
  color: var(--semantic-error);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}
.nuances-card .body { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ───────────────── SELLER PROFILE ───────────────── */

.profile-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  padding: 36px 28px 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-top: 24px;
  text-align: center;
}
.profile-av {
  width: 96px; height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: var(--accent-gradient);
  box-shadow: var(--accent-glow-soft);
}
.profile-av-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--neutral-700);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800; font-size: 32px;
}
.profile-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 30px;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-top: 6px;
}
.profile-city {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-secondary);
}
.profile-bio {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 580px;
  margin-top: 6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: center;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 32px;
  letter-spacing: -0.025em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-feature-settings: "tnum";
  line-height: 1.1;
}
.stat-stars { display: inline-flex; gap: 1px; color: #FFB400; }
.stat-stars svg { fill: currentColor; }
.stat-lbl { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.section-h {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 36px 0 16px;
}
.section-h .icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--semantic-new-tint);
  color: var(--logo-blue-start);
  display: inline-flex; align-items: center; justify-content: center;
}

.field-label {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}
.field-input {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.field-input:focus-within { border-color: var(--logo-blue-start); box-shadow: var(--focus-ring); }
.field-input input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 15px; color: var(--text-primary);
}
.field-input input::placeholder { color: var(--text-tertiary); }

/* ───────────────── FOOTER ───────────────── */

.footer {
  margin-top: 80px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px; color: var(--text-secondary);
  transition: color 180ms var(--ease-out);
  cursor: pointer;
}
.footer-col a:hover { color: var(--logo-blue-start); }
.footer-about p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 12px;
  max-width: 320px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-bottom .links { display: flex; gap: 18px; }

/* ───────────────── VIEW TRANSITIONS ───────────────── */

.view { animation: fadeIn 240ms var(--ease-out); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───────────────── EMPTY ───────────────── */
.empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  color: var(--text-secondary);
}
.empty .ttl {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* ───────────────── MOBILE HEADER ───────────────── */

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-inner { height: 60px; }
  .nav-text-hide { display: none; }
  .profile-pill .nm { display: none; }
  .lot-title { font-size: 24px; }
  .lot-price { font-size: 32px; }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
  .profile-name { font-size: 24px; }
}

/* ───────────────── MOBILE STORE (телефон = Mini App через catalog-compact) ───────────────── */
html.catalog-compact {
  -webkit-text-size-adjust: 100%;
}
html.catalog-compact body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
html.catalog-compact body.store-v2 {
  touch-action: manipulation;
}
html.catalog-compact body.store-v2.page-catalog .filter-sidebar,
html.catalog-compact body.store-v2.page-catalog .filter-sidebar-desktop-only,
html.catalog-compact body.store-v2.page-catalog .catalog-desktop-only {
  display: none !important;
}
html.catalog-compact body.store-v2.page-catalog .catalog-mobile-only {
  display: block !important;
}
html.catalog-compact body.store-v2.page-catalog .mobile-filters-trigger {
  display: inline-flex !important;
}
html.catalog-compact body.store-v2.page-catalog .store-v2-page.container {
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 6px;
}
html.catalog-compact body.store-v2.page-catalog .catalog-sticky-bar {
  margin: 0 0 10px;
  padding-bottom: 0;
}
html.catalog-compact body.store-v2.page-catalog .product-grid,
html.catalog-compact body.store-v2.page-catalog #productsGrid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100%;
  max-width: 100%;
}
html.catalog-compact body.store-v2.page-catalog .product-item {
  border: none;
  border-radius: 10px;
  box-shadow: none;
  background: var(--bg-elevated);
  min-width: 0;
}
html.catalog-compact body.store-v2.page-catalog .product-item:hover {
  transform: none;
  box-shadow: none;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  border-radius: 10px 10px 0 0;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-media .gloss {
  display: none;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-body {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 10px;
  gap: 2px;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-foot {
  order: -1;
  margin-top: 0;
  padding-top: 0;
  justify-content: flex-start;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-go {
  display: none;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-price {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-title {
  order: 1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  min-height: 0;
  color: var(--text-secondary);
  line-clamp: 2;
  -webkit-line-clamp: 2;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-meta {
  order: 2;
  font-size: 11px;
  margin-top: 2px;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-meta svg {
  width: 10px;
  height: 10px;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-fav {
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
}
html.catalog-compact body.store-v2.page-catalog .product-item .card-fav svg {
  width: 14px;
  height: 14px;
}
html.catalog-compact body.store-v2.page-catalog .product-item .badges {
  top: 6px;
  left: 6px;
  gap: 4px;
}
html.catalog-compact body.store-v2.page-catalog .product-item .badge {
  padding: 3px 7px;
  font-size: 9px;
}
html.catalog-compact body.store-v2.page-catalog .chip-cat {
  padding: 6px 11px;
  font-size: 12px;
}
html.catalog-compact body.store-v2.page-catalog .header-inner .header-search {
  height: 40px;
  padding: 0 4px 0 10px;
  border-width: 1.5px;
}
html.catalog-compact body.store-v2.page-catalog .header-inner .header-search input {
  font-size: 14px;
}
html.catalog-compact body.store-v2.page-catalog .header-inner .header-search .search-icon-wrap {
  width: 28px;
  height: 28px;
}
html.catalog-compact body.store-v2 .filter-drawer .filter-input {
  font-size: 16px;
  height: 44px;
}
html.catalog-compact body.store-v2.page-catalog .store-v2-page {
  padding-top: 8px;
  padding-bottom: 0;
}
html.catalog-compact body.store-v2.page-catalog .catalog-grid {
  grid-template-columns: 1fr !important;
}
html.catalog-compact body.store-v2.page-catalog .catalog-main {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
html.catalog-compact body.store-v2.page-lot .store-v2-lot-wrap {
  padding-bottom: 0;
}
html.catalog-compact body.store-v2.page-lot .store-v2-lot-wrap.container {
  padding-left: 12px;
  padding-right: 12px;
}
html.catalog-compact body.store-v2.page-lot .lot-side,
html.catalog-compact body.store-v2.page-lot #similarSection {
  margin-left: 4px;
  margin-right: 4px;
}
html.catalog-compact body.store-v2.page-lot .back-link {
  display: none !important;
}
html.catalog-compact body.store-v2.page-lot .lot {
  gap: 14px;
  padding-bottom: 20px;
}
html.catalog-compact body.store-v2.page-lot .gallery {
  gap: 10px;
}
html.catalog-compact body.store-v2.page-lot .gallery-main {
  width: 100%;
  min-height: 280px;
  height: min(76vh, 112vw);
  max-height: 560px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
html.catalog-compact body.store-v2.page-lot .gallery-main .swiper-slide {
  background: var(--bg-secondary);
}
html.catalog-compact body.store-v2.page-lot .gallery-main .swiper-slide img.bg,
html.catalog-compact body.store-v2.page-lot .gallery-main .swiper-slide video.bg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
html.catalog-compact body.store-v2.page-lot .gallery-main .gloss {
  display: block !important;
}
html.catalog-compact body.store-v2.page-lot .gallery-tags {
  display: flex !important;
  top: 12px;
  left: 12px;
}
html.catalog-compact body.store-v2.page-lot .gallery-arrow,
html.catalog-compact body.store-v2.page-lot .gallery-thumbs {
  display: none !important;
}
html.catalog-compact body.store-v2.page-lot .lot-swiper-pagination {
  bottom: 10px !important;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 4;
}
html.catalog-compact body.store-v2.page-lot .lot-swiper-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.72);
  opacity: 1;
}
html.catalog-compact body.store-v2.page-lot .lot-swiper-pagination .swiper-pagination-bullet-active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}
html.catalog-compact body.store-v2 .header.store-v2-header {
  padding-top: env(safe-area-inset-top, 0px);
}
html.catalog-compact body.store-v2 .container {
  padding-left: 16px;
  padding-right: 16px;
}
html.catalog-compact body.store-v2 .bottom-nav {
  display: flex !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  min-height: 56px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-bg, var(--bg-elevated));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px -10px rgba(0, 0, 0, 0.18);
}
html.catalog-compact body.store-v2 .bottom-nav a {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  line-height: 1.2;
  padding: 4px 2px;
}
html.catalog-compact body.store-v2 .bottom-nav .bottom-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  line-height: 1;
}
html.catalog-compact body.store-v2 .bottom-nav .bottom-nav-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
html.catalog-compact body.store-v2 .bottom-nav .bottom-nav-icon svg path {
  vector-effect: non-scaling-stroke;
}
html.catalog-compact body.store-v2 .header-inner {
  height: 56px;
  grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  gap: 8px;
}
html.catalog-compact body.store-v2 .header-inner .header-search {
  grid-column: auto !important;
  justify-self: stretch !important;
  max-width: 100% !important;
  height: 42px;
  padding: 0 4px 0 10px;
}
html.catalog-compact body.store-v2 .header-inner .brand,
html.catalog-compact body.store-v2 .header-inner .header-tools {
  grid-column: auto !important;
}
html.catalog-compact body.store-v2 .header-inner .header-tools {
  display: flex !important;
  justify-content: flex-end;
  min-width: 0;
}
html.catalog-compact body.store-v2 .header-inner .header-tools > :not(#themeToggleV2) {
  display: none !important;
}
html.catalog-compact body.store-v2 .header-inner .brand {
  max-width: 40px !important;
  gap: 0;
}
html.catalog-compact body.store-v2 .brand-wordmark {
  display: none !important;
}
html.catalog-compact body.store-v2 .header-tools .btn-sm {
  height: 36px;
  padding: 0 12px;
  font-size: 12px;
}
html.catalog-compact body.store-v2 .header-tools .icon-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
html.catalog-compact body.store-v2 .header-tools .profile-pill {
  padding: 3px 10px 3px 3px;
}
html.catalog-compact body.store-v2 .header-tools .profile-pill .av {
  width: 28px;
  height: 28px;
}
html.catalog-compact body.store-v2 .mobile-filters-trigger {
  border-radius: var(--radius-pill);
  min-height: 36px;
}
html.catalog-compact .filter-drawer {
  display: flex;
  max-height: min(85vh, calc(100dvh - env(safe-area-inset-top, 0px) - 32px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
html.catalog-compact body.store-v2.page-favorites .store-v2-page {
  padding-top: 16px;
  padding-bottom: 0;
}
body.store-v2.page-profile [data-proto-screen] > main {
  padding-top: 16px !important;
}
body.store-v2.page-dashboard .dashboard-shell {
  padding-top: 8px;
}
body.store-v2.page-profile [data-proto-screen] {
  padding-bottom: 0 !important;
  min-height: auto !important;
}
body.store-v2.page-favorites .page-head {
  margin-bottom: 16px;
}
body.store-v2.page-favorites .page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
body.store-v2.page-favorites .page-head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}
body.store-v2.page-favorites .product-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 721px) {
  body.store-v2.page-favorites .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 360px) {
  body.store-v2.page-catalog .product-grid { gap: 6px; }
  body.store-v2.page-catalog .store-v2-page.container {
    padding-left: 6px;
    padding-right: 6px;
  }
  body.store-v2.page-catalog .catalog-sort .chip-sort {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* ───────────────── TELEGRAM MINI APP (только авто-вход и оболочка TG) ───────────────── */
html.tg-webapp .mobile-nav-overlay,
html.tg-webapp .mobile-menu-btn {
  display: none !important;
}
html.tg-webapp > body > footer:not(.store-v2-footer),
html.tg-webapp body.has-bottom-nav + footer:not(.store-v2-footer),
html.tg-webapp footer:not(.store-v2-footer) {
  display: none !important;
}
html.tg-webapp .footer.store-v2-footer {
  display: block !important;
  padding-bottom: calc(32px + 72px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 820px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bottom .links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
html.tg-webapp #consent-banner {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
html.tg-webapp .tg-hide-inner-header {
  display: none !important;
}
@media (max-width: 920px) {
  body.store-v2.page-profile .tg-hide-inner-header,
  body.store-v2.page-dashboard .tg-hide-inner-header {
    display: none !important;
  }
}
html.tg-webapp {
  background-color: #FFFFFF;
}
html.tg-webapp.dark {
  background-color: #0C0C0E;
}
html.tg-webapp body.has-bottom-nav main.has-bottom-nav,
html.tg-webapp body.store-v2.has-bottom-nav main.has-bottom-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 8px) !important;
}
html.tg-webapp [data-proto-screen] > main,
html.tg-webapp .dashboard-shell > main,
html.tg-webapp .dashboard-shell {
  padding-top: 12px !important;
}
html.tg-webapp [data-proto-screen] {
  padding-bottom: 0 !important;
  min-height: auto !important;
}

/* ───────────────── SELLER DASHBOARD (mobile) ───────────────── */
body.store-v2.page-dashboard .dashboard-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
body.store-v2.page-dashboard main.has-bottom-nav {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 920px) {
  body.store-v2.page-dashboard .dashboard-shell > header.tg-hide-inner-header {
    display: none !important;
  }
}

/* Кабинет: кнопки-разделы — одна ровная полоса без переноса */
body.store-v2.page-dashboard .cabinet-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
body.store-v2.page-dashboard .cabinet-tabs::-webkit-scrollbar {
  display: none;
}
body.store-v2.page-dashboard .cabinet-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
body.store-v2.page-dashboard .cabinet-tab-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--text-tertiary);
  transition: color 160ms ease;
  flex-shrink: 0;
}
body.store-v2.page-dashboard .cabinet-tab-label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.store-v2.page-dashboard .cabinet-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
body.store-v2.page-dashboard .cabinet-tab.active {
  border-color: rgba(0, 87, 255, 0.28);
  background: var(--semantic-new-tint);
  color: var(--logo-blue-start);
  box-shadow: 0 2px 10px -4px rgba(0, 87, 255, 0.35);
}
body.store-v2.page-dashboard .cabinet-tab.active .cabinet-tab-icon {
  color: var(--logo-blue-start);
}
@media (min-width: 921px) {
  body.store-v2.page-dashboard .cabinet-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 6px;
  }
  body.store-v2.page-dashboard .cabinet-tab {
    min-height: 52px;
    font-size: 13px;
    flex-direction: row;
    gap: 8px;
    padding: 10px 12px;
  }
  body.store-v2.page-dashboard .cabinet-tab-icon {
    font-size: 18px;
  }
  body.store-v2.page-dashboard .cabinet-tab-label {
    width: auto;
    text-align: left;
  }
  body.store-v2.page-dashboard .dashboard-shell {
    padding-top: 0;
  }
  body.store-v2.page-dashboard main.has-bottom-nav {
    padding-bottom: 32px;
  }
}

/* Кабинет: сохранение профиля */
body.store-v2.page-dashboard .cabinet-profile-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
body.store-v2.page-dashboard .cabinet-profile-form {
  padding-bottom: 8px;
}
body.store-v2.page-dashboard .cabinet-profile-save-bar {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 8px);
  z-index: 70;
  margin: 0;
  padding: 10px 0 0;
  background: linear-gradient(to top, var(--bg-base) 72%, transparent);
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
}
body.store-v2.page-dashboard .cabinet-save-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 14px 24px !important;
  border: none !important;
  border-radius: 14px !important;
  background: var(--accent-gradient) !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  box-shadow: 0 8px 28px -6px rgba(0, 87, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease !important;
}
body.store-v2.page-dashboard .cabinet-save-btn:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 32px -8px rgba(0, 87, 255, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}
body.store-v2.page-dashboard .cabinet-save-btn:active:not(:disabled) {
  transform: translateY(0) !important;
}
body.store-v2.page-dashboard .cabinet-save-btn:disabled {
  opacity: 0.75 !important;
  cursor: wait !important;
  transform: none !important;
}
body.store-v2.page-dashboard .cabinet-save-btn-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  color: #fff !important;
}
@media (min-width: 921px) {
  body.store-v2.page-dashboard .cabinet-profile-panel {
    padding-bottom: 8px;
  }
  body.store-v2.page-dashboard .cabinet-profile-save-bar {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 16px 0 0;
    padding: 0;
    background: none;
  }
  body.store-v2.page-dashboard .cabinet-save-btn {
    max-width: 360px;
  }
}
