/* ============================================================
   MI ELECTRO — Стиль интернет-магазина
   Основной цвет: #e2000f (красный Mi Electro)
   Шрифт: Open Sans 400/600/700/800
   ============================================================ */

/* ── ИКОНОЧНЫЙ ШРИФТ (повторно используем из shop) ── */
@font-face {
  font-family: 'milar-icons';
  src: url('/fonts/milar-icons.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.icon {
  font-family: 'milar-icons' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-menu:before         { content: "\e900"; }
.icon-search:before       { content: "\e901"; }
.icon-location:before     { content: "\e902"; }
.icon-user:before         { content: "\e903"; }
.icon-cart:before         { content: "\e904"; }
.icon-notification:before { content: "\e905"; }
.icon-order:before        { content: "\e906"; }
.icon-star:before         { content: "\e907"; }
.icon-tag:before          { content: "\e908"; }
.icon-users:before        { content: "\e909"; }
.icon-close:before        { content: "\e90d"; }
.icon-chevron:before      { content: "\e90e"; }
.icon-help:before         { content: "\e910"; }
.icon-rating:before       { content: "\e911"; }
.icon-shop:before         { content: "\e912"; }
.icon-quote:before        { content: "\e913"; }
.icon-envelope:before     { content: "\e915"; }

/* ── СБРОС И БАЗОВЫЕ СТИЛИ ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Цвета Mi Electro */
  --red:          #e2000f;
  --red-dark:     #c00009;
  --red-light:    #fff0f0;

  /* Нейтральные */
  --white:        #ffffff;
  --bg:           #f5f5f5;
  --bg-card:      #ffffff;
  --text:         #333333;
  --text-muted:   #666666;
  --border:       #e0e0e0;

  /* Акценты */
  --green:        #00a651;
  --green-light:  #f0faf4;
  --blue:         #0057b8;
  --orange:       #ff6b00;

  /* Тени и скругления */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:    0 4px 24px rgba(0,0,0,.12);
  --radius:       8px;
  --radius-sm:    4px;
  --radius-lg:    12px;

  /* Типографика */
  --font:         'Open Sans', system-ui, -apple-system, sans-serif;
  --font-size:    14px;
  --line-height:  1.5;

  /* Header */
  --header-bg:    #ffffff;
  --header-h:     70px;
  --nav-bg:       #e2000f;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: var(--font-size);
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select {
  font-family: var(--font);
  font-size: var(--font-size);
}

/* ── КОНТЕЙНЕР ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ═══════════════════════════════════════════
   PRE-HEADER
═══════════════════════════════════════════ */
.pre-header {
  background: #1a1a1a;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 0;
}
.pre-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pre-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pre-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pre-header__item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pre-header__item a {
  color: rgba(255,255,255,.9);
  transition: color .2s;
}
.pre-header__item a:hover { color: #fff; }
.pre-header__item--sep { border-left: 1px solid rgba(255,255,255,.15); padding-left: 16px; }
.pre-header__badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .pre-header__left { display: none; }
  .pre-header__right { flex-wrap: wrap; gap: 10px; }
  .pre-header__badge { font-size: 11px; }
}

/* ═══════════════════════════════════════════
   MAIN HEADER
═══════════════════════════════════════════ */
.header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border-bottom: 3px solid var(--red);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

/* Логотип */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header__logo-img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.header__logo-fallback {
  display: none;
  align-items: baseline;
  gap: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #333;
}
.header__logo-text { color: #333; }
.header__logo-text--red { color: var(--red); }

/* Поиск */
.header__search {
  flex: 1;
  display: flex;
  max-width: 620px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.header__search:focus-within { border-color: var(--red); }
.header__search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
}
.header__search-input::placeholder { color: #aaa; }
.header__search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
}
.header__search-btn:hover { background: var(--red-dark); }
.header__search-btn svg { flex-shrink: 0; }

/* Корзина */
.header__actions { flex-shrink: 0; margin-left: auto; }
.header__cart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: background .2s;
}
.header__cart:hover { background: var(--red-dark); color: #fff; }
.header__cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header__cart-icon img { filter: brightness(0) invert(1); }
.header__cart-label { white-space: nowrap; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--red);
  line-height: 1;
}
.cart-count:empty { display: none; }

/* Бургер-кнопка */
.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.header__burger img { filter: brightness(0) invert(1); }

/* Мобильный поиск */
.header__mobile-search {
  display: none;
  padding: 8px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.header__mobile-search form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.header__mobile-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 14px;
}
.header__mobile-search button {
  background: var(--red);
  color: #fff;
  padding: 9px 14px;
  border: none;
  display: flex;
  align-items: center;
}

@media (max-width: 1023px) {
  .header__search-btn-text { display: none; }
  .header__search-btn { padding: 10px 12px; }
  .header__cart-label { display: none; }
  .header__cart { padding: 10px 12px; }
}

@media (max-width: 767px) {
  .header__search { display: none; }
  .header__burger { display: flex; }
  .header__mobile-search { display: block; }
  .header__logo-img { height: 36px; }
  .header__actions { margin-left: auto; }
}

/* ═══════════════════════════════════════════
   НАВИГАЦИЯ
═══════════════════════════════════════════ */
.main-nav {
  background: var(--red);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
}
.main-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}
.main-nav__item { display: flex; }
.main-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.9);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  height: 42px;
  white-space: nowrap;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.main-nav__link:hover {
  background: rgba(0,0,0,.15);
  color: #fff;
}
.main-nav__item--all .main-nav__link {
  background: rgba(0,0,0,.2);
  font-weight: 700;
}
.main-nav__item--all .main-nav__link:hover {
  background: rgba(0,0,0,.3);
}

@media (max-width: 767px) {
  .main-nav { display: none; }
}

/* ═══════════════════════════════════════════
   МОБИЛЬНОЕ МЕНЮ
═══════════════════════════════════════════ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.mobile-overlay.open { display: block; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  overflow-y: auto;
  transition: left .3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,.2);
}
.mobile-menu.open { left: 0; }

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--red);
  color: #fff;
}
.mobile-menu__title { font-size: 18px; font-weight: 800; }
.mobile-menu__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background .2s;
}
.mobile-menu__close:hover { background: rgba(255,255,255,.2); }
.mobile-menu__close svg { stroke: #fff; }

.mobile-menu__search {
  display: flex;
  margin: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mobile-menu__search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 13px;
}
.mobile-menu__search button {
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
}

.mobile-menu__list { padding: 0 0 20px; }
.mobile-menu__list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.mobile-menu__list li a:hover { background: var(--red-light); color: var(--red); }
.mobile-menu__list li a svg { color: var(--red); flex-shrink: 0; }
.mobile-menu__divider { height: 8px; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ═══════════════════════════════════════════
   TOAST КОРЗИНЫ
═══════════════════════════════════════════ */
.cart-toast {
  position: fixed;
  bottom: -80px;
  right: 20px;
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  transition: bottom .35s ease;
}
.cart-toast.show { bottom: 20px; }

/* ═══════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════ */
.main-content { min-height: 60vh; }

/* ═══════════════════════════════════════════
   ХЛЕБНЫЕ КРОШКИ
═══════════════════════════════════════════ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs-sep { color: #ccc; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0003 50%, #1a1a1a 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(226,0,15,.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero__title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}
.hero__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
}

@media (max-width: 767px) {
  .hero { padding: 36px 0; }
  .hero__title { font-size: 26px; }
  .hero__subtitle { font-size: 13px; }
}

/* ═══════════════════════════════════════════
   БЛОК ПРЕИМУЩЕСТВ
═══════════════════════════════════════════ */
.services-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.service-item:last-child { border-right: none; }
.service-item:hover { background: var(--red-light); }
.service-item__icon {
  width: 46px;
  height: 46px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.service-item__icon svg { color: #fff; }
.service-item__title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.service-item__sub { font-size: 12px; color: var(--text-muted); }

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(2) { border-right: none; }
}
@media (max-width: 767px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item { padding: 14px 16px; }
  .service-item__icon { width: 36px; height: 36px; }
  .service-item__title { font-size: 12px; }
}

/* ═══════════════════════════════════════════
   СЕКЦИИ СТРАНИЦЫ
═══════════════════════════════════════════ */
.home-section {
  padding: 48px 0;
  background: var(--bg);
}
.home-section--white { background: var(--white); }

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.section-title-row .section-title { margin-bottom: 0; }
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  transition: opacity .2s;
}
.see-all:hover { opacity: .7; }

/* ═══════════════════════════════════════════
   ТАБЫ НА ГЛАВНОЙ
═══════════════════════════════════════════ */
.tabs-nav {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  background: none;
  cursor: pointer;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }

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

/* ═══════════════════════════════════════════
   КАРТОЧКИ ТОВАРОВ
═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

.product-card__img-wrap {
  display: block;
  padding: 12px;
  background: var(--white);
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.product-card:hover .product-card__img { transform: scale(1.04); }

.product-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.product-card__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__name a { color: var(--text); }
.product-card__name a:hover { color: var(--red); }

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.product-card__rating .icon-rating { font-size: 12px; color: #f5a623; }
.product-card__votes { font-size: 11px; color: var(--text-muted); margin-left: 4px; }

.product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.product-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
}
.product-card__old-price {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
}

.product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: var(--font);
}
.product-card__btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.product-card__btn--added { background: var(--green) !important; border-color: var(--green) !important; }

@media (max-width: 1023px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card__price { font-size: 16px; }
}
@media (max-width: 359px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   КАТАЛОГ
═══════════════════════════════════════════ */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding-bottom: 40px;
}

.catalog-sidebar { padding-top: 4px; }
.sidebar-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cats a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.sidebar-cats a:hover { background: var(--red-light); color: var(--red); }
.sidebar-cats a.active { background: var(--red); color: #fff; font-weight: 600; }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}
.sort-bar__count { color: var(--text-muted); }
.sort-bar__count b { color: var(--text); }
.sort-bar select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
}
.sort-bar select:focus { border-color: var(--red); }

@media (max-width: 767px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }
}

/* ═══════════════════════════════════════════
   ПАГИНАЦИЯ
═══════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 32px 0 16px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.page-btn:hover:not(.disabled):not(.active) {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--red);
}
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn.disabled { opacity: .4; cursor: default; pointer-events: none; }

/* ═══════════════════════════════════════════
   СТРАНИЦА ТОВАРА
═══════════════════════════════════════════ */
.product-detail { padding-bottom: 48px; }

.product-info__name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.product-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

/* Галерея */
.product-gallery__main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__main img {
  max-height: 380px;
  width: 100%;
  object-fit: contain;
}
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.product-gallery__thumb {
  width: 68px;
  height: 68px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  transition: border-color .15s;
  background: var(--white);
  overflow: hidden;
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-gallery__thumb:hover { border-color: var(--red); }
.product-gallery__thumb.active { border-color: var(--red); }

/* Информация о товаре */
.product-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.product-info__meta a { color: var(--red); }

.product-info__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
}
.product-info__old-price {
  font-size: 18px;
  color: #aaa;
  text-decoration: line-through;
}
.product-info__discount {
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.product-rating-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
}
.product-rating-stars { display: flex; gap: 2px; }
.product-rating-stars .icon-rating { color: #f5a623; font-size: 16px; }
.product-rating-score { font-weight: 700; color: var(--text); }
.product-rating-count { color: var(--text-muted); }

.product-info__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stock-dot--in { background: var(--green); }
.stock-dot--out { background: #ccc; }
.in-stock { color: var(--green); }
.out-stock { color: #aaa; }

.variant-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  cursor: pointer;
}
.variant-select:focus { border-color: var(--red); }

.product-info__actions { margin-bottom: 20px; }

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--red);
  color: #fff;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--font);
}
.btn-add-cart:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); }
.btn-add-cart:disabled { background: #ccc; cursor: not-allowed; transform: none; }

.product-info__perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.perk__icon { font-size: 20px; color: var(--red); flex-shrink: 0; }
.perk svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.perk__title { font-size: 12px; font-weight: 700; color: var(--text); }
.perk__sub { font-size: 11px; color: var(--text-muted); }

/* Табы товара */
.product-tabs { margin-top: 32px; }
.product-tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.product-tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-tab-btn:hover { color: var(--text); }
.product-tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.review-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  margin-left: 4px;
  vertical-align: middle;
}

.product-tab-panel { display: none; }
.product-tab-panel.active { display: block; }

/* Таблица характеристик */
.specs-table-wrap { overflow-x: auto; }
.specs-section { margin-bottom: 24px; }
.specs-section__header {
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--border);
}
.specs-table tr:nth-child(even) { background: #fafafa; }
.specs-table__key {
  padding: 9px 14px;
  color: var(--text-muted);
  font-weight: 600;
  width: 42%;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.specs-table__val {
  padding: 9px 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.specs-content { font-size: 14px; line-height: 1.7; color: #444; }

/* Отзывы */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.reviews-summary__score {
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.review-stars { display: flex; gap: 3px; }
.review-stars .icon-rating { font-size: 16px; color: #f5a623; }
.reviews-summary__count { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.review-card__text { margin-bottom: 12px; font-size: 14px; line-height: 1.6; color: #444; }
.review-card__quote { font-size: 20px; color: var(--red); opacity: .4; margin-bottom: 6px; }
.review-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.review-card__author { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 4px; }
.review-card__date { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.reviews-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Форма отзыва */
.review-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.review-form__title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.review-star-select {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  cursor: pointer;
}
.review-star-select .icon-rating { font-size: 28px; color: #ddd; transition: color .15s; }

@media (max-width: 1023px) {
  .product-layout { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .product-info__perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .product-info__name { font-size: 18px; }
  .product-info__price { font-size: 26px; }
  .product-info__perks { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 20px; right: 20px; font-size: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ═══════════════════════════════════════════
   КОРЗИНА
═══════════════════════════════════════════ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding-bottom: 48px;
}
.cart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-of-type { border-bottom: none; }
.cart-item__img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--white);
  overflow: hidden;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  transition: color .15s;
}
.cart-item__name:hover { color: var(--red); }
.cart-item__variant { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.cart-item__qty { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.cart-item__remove {
  font-size: 12px;
  color: var(--red);
  cursor: pointer;
  transition: opacity .2s;
}
.cart-item__remove:hover { opacity: .7; }
.cart-item__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.summary-row--free { color: var(--green); font-weight: 700; }
.summary-row--total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  border-bottom: none;
  padding-top: 12px;
}

.coupon-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.coupon-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 13px;
}
.coupon-row button {
  background: var(--red);
  color: #fff;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
}
.coupon-row button:hover { background: var(--red-dark); }

.checkout-btn {
  display: block;
  width: 100%;
  background: var(--red);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--font);
  transition: background .2s;
}
.checkout-btn:hover { background: var(--red-dark); }
.checkout-btn:disabled { background: #ccc; cursor: not-allowed; }

@media (max-width: 1023px) {
  .cart-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   ФОРМА: ПОЛЯ
═══════════════════════════════════════════ */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
  font-family: var(--font);
}
.field-input:focus { border-color: var(--red); }
.field-input.field-error { border-color: var(--red) !important; background: var(--red-light); }
.form-field { margin-bottom: 14px; }
.field-error-msg {
  display: none;
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
}
.form-field.has-error .field-error-msg { display: block; }

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 767px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   СТРАНИЦА ПОДТВЕРЖДЕНИЯ ЗАКАЗА
═══════════════════════════════════════════ */
.order-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 20px;
}
.order-confirm__box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.order-confirm__icon {
  width: 72px;
  height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--green);
}
.order-confirm__icon svg { stroke: var(--green); }
.order-confirm__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.order-confirm__text { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }

.progress-bar-wrap {
  background: var(--border);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress-bar {
  width: 0;
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  transition: width 3s linear;
}

/* ═══════════════════════════════════════════
   ПОИСК
═══════════════════════════════════════════ */
.search-layout { padding: 24px 0 48px; }
.search-form-full {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  max-width: 640px;
}
.search-form-full:focus-within { border-color: var(--red); }
.search-form-full input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
}
.search-form-full button {
  background: var(--red);
  color: #fff;
  padding: 13px 24px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
}
.search-form-full button:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════
   СТАТИЧЕСКИЕ СТРАНИЦЫ
═══════════════════════════════════════════ */
.static-page {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 8px 0 48px;
  max-width: 860px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}
.static-page h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
}
.static-page h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.static-page h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 8px;
}
.static-page p { margin-bottom: 12px; }
.static-page ul, .static-page ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.static-page li { margin-bottom: 6px; }
.static-page a { color: var(--red); }
.static-page a:hover { text-decoration: underline; }
.static-page table { font-size: 13px; margin: 12px 0; }
.static-page thead { background: var(--bg); }
.static-page thead th { padding: 8px 12px; font-weight: 700; color: var(--text); border: 1px solid var(--border); }
.static-page tbody td { padding: 8px 12px; border: 1px solid var(--border); color: var(--text); }

@media (max-width: 767px) {
  .static-page { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════
   ПУСТОЕ СОСТОЯНИЕ
═══════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 52px; margin-bottom: 16px; }
.empty-state h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { background: #1a1a1a; color: rgba(255,255,255,.75); margin-top: auto; }

.footer__top { padding: 48px 0 36px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
}

.footer__col--brand .footer__logo {
  display: inline-block;
  margin-bottom: 14px;
}
.footer__desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
  max-width: 280px;
}
.footer__contacts { display: flex; flex-direction: column; gap: 8px; }
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer__contact-item svg { flex-shrink: 0; opacity: .7; }
.footer__contact-item:hover { color: #fff; }

.footer__heading {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color .2s, padding-left .15s;
}
.footer__links a:hover { color: var(--red); padding-left: 4px; }

.footer__services { display: flex; flex-direction: column; gap: 12px; }
.footer__service {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer__service-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer__service-icon--red { background: var(--red); }
.footer__service-icon svg { stroke: #fff; }
.footer__service-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.footer__service-sub { font-size: 11px; color: rgba(255,255,255,.5); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  background: rgba(0,0,0,.2);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.footer__bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom-links a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer__bottom-links a:hover { color: #fff; }

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__top { padding: 28px 0 24px; }
  .footer__desc { max-width: 100%; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ── CART QUANTITY CONTROLS ── */
.cart-item__qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.qty-btn:hover { background: #f5f5f5; border-color: #e2000f; color: #e2000f; }
.qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

/* ── CATALOG MOBILE FILTER TOGGLE ── */
.catalog-filter-toggle {
  display: none;
  width: 100%;
  background: #e2000f;
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 16px;
  text-align: left;
}
@media (max-width: 767px) {
  .catalog-filter-toggle { display: block; }
  .catalog-sidebar { display: none; }
  .catalog-sidebar.mobile-open { display: block; }
}

.related-products { padding: 40px 0; background: #f5f5f5; }
.related-products .section-title { font-size: 20px; font-weight: 800; color: #333; margin-bottom: 20px; }

.related-slider-wrap { position: relative; overflow: hidden; }
.related-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  will-change: transform;
  transition: transform .35s ease;
}
.related-scroll .product-card {
  flex: 0 0 var(--card-w, 23%);
  width: var(--card-w, 23%);
  min-width: 0;
}
.related-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.related-nav__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: #fff;
  color: var(--red);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  line-height: 1;
  padding: 0;
}
.related-nav__btn:hover { background: var(--red); color: #fff; }
.related-nav__btn:disabled { opacity: .3; cursor: default; }
