.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:hover {
  color: #00a6ff;
}

.content {
  padding: 0 50px;
}

/* ↓↓ уведомление ↓↓ */
.top__announcement {
  font-size: 13px;
  display: flex;
  margin: 0 auto;
  top: 0;
  padding: 5px 0;
}

.top__announcement-inner {
  display: flex;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  gap: 40px;
}

.top__announcement-text {
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: calc(100% - 40px);
}

.top__announcement-message {
  margin-right: 12px;
  white-space: nowrap;
}

.top__announcement-actions {
  font-weight: bold;
  display: inline-flex;
  gap: 4px;
  white-space: nowrap;
}

.top__announcement-separator {
  margin: 0;
}

.top__announcement-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 16px;
  line-height: 1;
  display: flex;
  justify-content: end;
}

.top__announcement-spacer {
  display: flex;
  justify-content: end;
}

.top__announcement-close:hover {
  color: #000;
}

.top__announcement-inner a {
  text-decoration: none;
}

/*.top__announcement-inner a:hover,
.office__selection-btn:hover,
.office__selection-item:hover,
.mail__icon:hover,
.menu-main:hover,
.header__menu:hover {
  color: #00a6ff;
}*/

/* ↓↓ header ↓↓ */
.header {
  margin: 0 auto;
}

/*.header--scrolled {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}*/

.header__info {
  text-wrap: nowrap;
  font-size: 13px;
}

.contact__block {
  display: flex;
  gap: 20px;
}

.header__info-inner {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 5px;
}

.social__networks {
  display: flex;
  gap: 16px;
  justify-self: end;
}

.social__img {
  width: 24px;
}

.social__img:hover {
  filter: grayscale(50%);
  transition: 0.2s;
}

.office__selection {
  display: flex;
  list-style: none;
  position: relative;
  background-color: transparent;
  height: 25px;
  width: 150px;
  appearance: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.office__selection::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("../images/icons/nav-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.office__selection-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  margin: 0;
  padding: 0;
  list-style: none;
}

.office__selection--open .office__selection-list {
  display: block;
  background-color: rgba(0, 0, 0, 0.3);
  width: 100%;
  border-radius: 5px;
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.office__selection-list ul {
  list-style: none;
  margin: 0;
  min-width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
}

.office__selection-list li {
  margin: 0;
}

.office__selection-item {
  display: block;
  padding: 6px 12px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.office__selection-btn {
  background-color: transparent;
  text-align: center;
  font-family: inherit;
  outline: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.office__phone {
  list-style: none;
  grid-area: 1 / 2;
}

.office__phone-link {
  text-decoration: none;
  color: inherit;
  text-wrap: nowrap;
}

.office__phone-link::before {
  background-image: url("../images/icons/phone.png");
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-right: 5px;
  vertical-align: middle;
}

.mail__icon {
  grid-area: 1 / 2;
  text-decoration: none;
}

.mail__icon::before {
  background-image: url("../images/icons/email-icon.png");
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-right: 5px;
  vertical-align: middle;
}

/*.header__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
}*/

.header__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: start;
  padding: 40px 50px;
}

.bar__item-fav {
  background-image: url("../images/icons/fav-icon.png");
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  width: 22px;
  height: 22px;
  background-size: 22px;
  cursor: pointer;
  padding: 0;
  border: none;
  display: block;
  position: relative;
  transition: background-image 0.2s ease-in, transform 0.2s ease;
}

.bar__item-fav:hover {
  background-image: url("../images/icons/fav-icon-active.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
}

.bar__item-cart {
  background-image: url("../images/icons/cart-icon.png");
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
  background-size: 25px;
  cursor: pointer;
  padding: 0;
  border: none;
  display: block;
  position: relative;
  transition: background-image 0.2s ease-in, transform 0.2s ease;
}

.bar__item-cart:hover {
  background-image: url("../images/icons/cart-icon-active.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 25px;
}

/* Счётчики на иконках корзины / избранного */
.bar__item-cart,
.bar__item-fav {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.bar-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3c00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
  transform: scale(0);
  opacity: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  z-index: 2;
}

.bar-badge.is-visible {
  transform: scale(1);
  opacity: 1;
}

.bar-badge.is-bump {
  animation: barBadgeBump 0.38s ease;
}

@keyframes barBadgeBump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

.bar-icon-bounce {
  animation: barIconBounce 0.45s ease;
}

@keyframes barIconBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.28);
  }
  55% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* «Полёт» картинки товара к иконке */
.cart-flyer {
  position: fixed;
  z-index: 10000;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #fff;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  will-change: transform, opacity, width, height;
  transition:
    transform 0.7s cubic-bezier(0.22, 0.82, 0.18, 1),
    opacity 0.7s ease,
    width 0.7s ease,
    height 0.7s ease,
    border-radius 0.7s ease;
}

.cart-flyer--fav {
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(255, 60, 0, 0.35);
}

.cart-flyer--dot {
  background-image: none !important;
  background-color: #ff3c00;
  border-radius: 50%;
}

.card__fav-btn.is-active {
  background-image: url("../images/icons/fav-icon-active.png");
}

.bar__item-profile {
  background-image: url("../images/icons/profile-icon.png");
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
  background-size: 25px;
  cursor: pointer;
  padding: 0;
  border: none;
  display: block;
  transition: background-image 0.2s ease-in;
}

.bar__item-profile:hover {
  background-image: url("../images/icons/profile-icon-active.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 25px;
}

/* Позиционирование выпадающих панелей корзины / избранного */
.header__bar-item--dropdown {
  position: relative;
}

.menu-main {
  z-index: 50;
}

.menu-main .header__bar-list {
  position: relative;
  z-index: 51;
}

.header__logo {
  justify-self: center;
}

.header__logo-img {
  display: block;
  width: 130px;
  margin: 0;
  padding: 0;
}

.header__logo-img:hover {
  filter: brightness(50%);
}

.header__bar-list {
  display: flex;
  gap: 15px;
  list-style: none;
  justify-self: center;
}

/* ↓↓ menu (над баннерами) ↓↓ */
.header__menu {
  height: 100%;
  z-index: 20;
  position: relative;
}

.header__menu-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.header__menu-list {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0 16px;
  background-color: #111;
  height: 65px;
  width: 100%;
  border-radius: 10px 10px 0 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  overflow: visible;
}

.header__menu-button::before {
  content: "";
  background-image: url("../images/icons/menu-icon.svg");
  width: 25px;
  height: 25px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  flex-shrink: 0;
}

.header__menu-button:hover::before {
  background-image: url("../images/icons/menu-icon-active.svg");
}

.header__menu-item {
  list-style: none;
  box-sizing: border-box;
}

.header__menu-item > a,
.header__menu-item-text {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header__menu-item > a:hover,
.header__menu-item-text:hover {
  color: #00a6ff;
}

.header__menu-item--catalog,
.header__menu-item--has-menu {
  position: relative;
}

.header__menu-list > .header__menu-item--has-menu,
.header__menu-list > .header__menu-item--catalog {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  z-index: 40;
  margin: 0;
  list-style: none;
  min-width: 200px;
  max-width: min(420px, calc(100vw - 24px));
  padding: 8px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.header__submenu::before {
  content: none;
}

.header__submenu li {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  list-style: none;
}

.header__submenu a,
.header__submenu .header__menu-item-text {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
}

.header__submenu a:hover,
.header__submenu .header__menu-item-text:hover {
  color: #00a6ff;
  background: rgba(255, 255, 255, 0.05);
}

.header__menu-item--catalog:hover > .header__submenu,
.header__menu-item--catalog.open > .header__submenu,
.header__menu-item--catalog.active > .header__submenu,
.header__menu-item--has-menu:hover > .header__submenu,
.header__menu-item--has-menu.open > .header__submenu,
.header__menu-item--has-menu.active > .header__submenu {
  display: flex;
}

.header__submenu--flyout {
  left: 0;
  right: auto;
  transform: none;
  padding: 10px 0 12px;
}

.header__submenu--cascade {
  min-width: 248px;
  max-width: 280px;
  padding: 8px;
}

.header__cascade-all {
  margin: 0 0 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__cascade-all .header__cascade-link {
  color: #00a6ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__cascade-sale {
  margin: 0 0 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__cascade-link--sale {
  color: #ff3b30;
  font-weight: 700;
}

.header__cascade-sale:hover > .header__cascade-link--sale,
.header__cascade-sale.open > .header__cascade-link--sale {
  color: #ff5c54;
  background: rgba(255, 59, 48, 0.14);
}

.header__cascade-item {
  position: relative;
}

.header__cascade-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
}

.header__cascade-label {
  min-width: 0;
}

.header__cascade-arrow {
  display: inline-block;
  flex: 0 0 auto;
  align-self: center;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  color: inherit;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  border: none;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.header__mega-group > a.header__cascade-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.header__mega-group > a.header__cascade-link .header__cascade-label {
  flex: 1 1 auto;
}

.header__cascade-item:hover > .header__cascade-link,
.header__cascade-item.open > .header__cascade-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header__cascade-link.header__cascade-link--sale {
  color: #ff3b30;
  font-weight: 700;
}

.header__cascade-sale:hover > .header__cascade-link.header__cascade-link--sale {
  color: #ff5c54;
  background: rgba(255, 59, 48, 0.14);
}

.header__cascade-item:hover .header__cascade-arrow,
.header__cascade-item.open .header__cascade-arrow {
  opacity: 1;
  color: #00a6ff;
}

.header__cascade-panel {
  top: 0;
  left: calc(100% - 2px);
  min-width: 228px;
  max-width: min(280px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  border-radius: 12px;
}

.header__cascade-panel:has(.header__mega-group) {
  overflow: visible;
  max-height: none;
}

.header__mega-group {
  position: relative;
}

.header__submenu--split .header__mega-col:last-child .header__mega-group > .header__cascade-panel {
  left: auto;
  right: calc(100% - 2px);
}

.header__cascade-panel > .header__mega-item > .header__cascade-sublink,
.header__submenu--cascade > .header__mega-item > .header__cascade-sublink {
  display: block;
}

.header__cascade-panel::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 12px;
  height: auto;
  right: auto;
}

.header__cascade-sublink {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  white-space: normal;
}

.header__cascade-sublink:hover {
  color: #00a6ff;
  background: rgba(255, 255, 255, 0.05);
}

.header__menu-item:last-child .header__submenu--flyout,
.header__menu-item:nth-last-child(2) .header__submenu--flyout {
  left: auto;
  right: 0;
}

.header__menu-list > .header__menu-item:has(> .header__submenu--split) {
  position: static;
}

.header__menu-list > .header__menu-item > .header__submenu--split {
  left: 0;
  right: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  transform: none;
  padding: 8px 12px 14px;
  gap: 0;
  box-sizing: border-box;
}

.header__submenu--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.header__menu-item--has-menu:hover > .header__submenu--split,
.header__menu-item--has-menu.open > .header__submenu--split,
.header__menu-item--has-menu.active > .header__submenu--split {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.header__submenu--split > .header__mega-col {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 0 14px;
  box-sizing: border-box;
}

.header__submenu--split > .header__mega-col--wide {
  flex: 2 1 0;
}

.header__submenu--split .header__mega-col + .header__mega-col {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 12px;
}

.header__menu-item--mega {
  position: static;
}

.header__submenu--mega {
  left: 0;
  right: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  transform: none;
  flex-direction: unset;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px 28px;
  padding: 26px 28px 30px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.45);
}

.header__menu-item--mega:hover > .header__submenu--mega,
.header__menu-item--mega.open > .header__submenu--mega,
.header__menu-item--mega.active > .header__submenu--mega,
.header__menu-item--catalog:hover > .header__submenu--mega,
.header__menu-item--catalog.open > .header__submenu--mega {
  display: grid;
}

.header__submenu--mega li {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.header__mega-link {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
}

.header__mega-name {
  min-width: 0;
}

.header__mega-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 4px;
  padding: 0 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.header__mega-head-link {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.header__mega-head-link:hover {
  color: #00a6ff;
}

.header__mega-head-note {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header__mega-all {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__mega-all .header__mega-link {
  color: #00a6ff;
  font-weight: 600;
}

.header__submenu--mega a:hover,
.header__submenu--mega .header__mega-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #00a6ff;
}

.header__submenu--cols {
  align-items: start;
}

.header__submenu--catalog {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.header__mega-col {
  min-width: 0;
  padding: 0 2px;
}

.header__mega-col-title {
  display: block;
  margin: 0 4px 8px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
}

.header__mega-col-title:hover {
  color: #00a6ff;
}

.header__mega-col-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__mega-col > .header__mega-col-list + .header__mega-col-list--two {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header__mega-col-list--two {
  display: block;
  column-count: 2;
  column-gap: 20px;
  column-fill: balance;
}

.header__mega-col-list--two > li {
  break-inside: avoid;
}

.header__mega-col .header__mega-link,
.header__mega-col .header__cascade-sublink,
.header__submenu--two .header__mega-link,
.header__submenu--two .header__cascade-sublink,
.header__cascade-panel--two .header__cascade-sublink {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

.header__submenu--two,
.header__cascade-panel--two {
  column-count: 2;
  column-gap: 18px;
  column-fill: balance;
  min-width: min(420px, calc(100vw - 24px));
}

.header__menu-item--has-menu:hover > .header__submenu--two,
.header__menu-item--has-menu.open > .header__submenu--two,
.header__menu-item--has-menu.active > .header__submenu--two,
.header__menu-item--has-menu:hover > .header__cascade-panel--two,
.header__menu-item--has-menu.open > .header__cascade-panel--two,
.header__menu-item--has-menu.active > .header__cascade-panel--two {
  display: block;
}

.header__submenu--two > li,
.header__cascade-panel--two > li {
  break-inside: avoid;
}

.header__cascade-panel--two:has(.header__mega-group) {
  overflow: visible;
  max-height: none;
}

.header__submenu--two > .header__mega-group,
.header__cascade-panel--two > .header__mega-group {
  column-span: all;
}

.header__submenu--cols .header__mega-link {
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 500;
}

.header__submenu--split .header__mega-col-title {
  margin: 0 8px 8px;
}

.header__submenu--split .header__mega-link {
  padding: 5px 10px;
  font-size: 13px;
}

.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #111;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
}

.header__burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.header__burger-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: min(400px, 100vw);
  height: 100dvh;
  max-height: 100vh;
  background: #111;
  color: #fff;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

body.nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .header__overlay {
  display: block;
}

.mobile-nav-drawer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-drawer__head strong {
  font-size: 18px;
  font-weight: 700;
}

.mobile-nav-drawer__close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav-drawer__list {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  height: auto !important;
  width: 100% !important;
  padding: 8px 10px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  text-transform: none;
  font-size: 16px;
  font-weight: 600;
  overflow: visible !important;
}

.mobile-nav-drawer .header__menu-list > .header__menu-item,
.mobile-nav-drawer .header__menu-list > .header__menu-item--has-menu,
.mobile-nav-drawer .header__menu-list > .header__menu-item--catalog {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  align-self: stretch !important;
  width: 100%;
}

.mobile-nav-drawer .mobile-nav-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
}

.mobile-nav-drawer .mobile-nav-row > a,
.mobile-nav-drawer .mobile-nav-row > .header__menu-item-text {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.mobile-nav-drawer .header__menu-item > a,
.mobile-nav-drawer .header__menu-item-text,
.mobile-nav-drawer .header__cascade-link,
.mobile-nav-drawer .header__cascade-sublink,
.mobile-nav-drawer .header__mega-link {
  width: 100%;
  min-height: 48px;
  padding: 12px 12px;
  box-sizing: border-box;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  line-height: 1.3;
}

.mobile-nav-drawer .header__menu-button::before {
  display: none;
}

.mobile-nav-toggle {
  flex: 0 0 48px;
  width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle .header__cascade-arrow {
  margin: 0;
  transform: rotate(135deg);
}

.mobile-nav-drawer .header__menu-item.open > .mobile-nav-row > .mobile-nav-toggle,
.mobile-nav-drawer .header__cascade-item.open > .mobile-nav-row > .mobile-nav-toggle {
  color: #00a6ff;
  background: rgba(0, 166, 255, 0.12);
}

.mobile-nav-drawer .header__menu-item.open > .mobile-nav-row > .mobile-nav-toggle .header__cascade-arrow,
.mobile-nav-drawer .header__cascade-item.open > .mobile-nav-row > .mobile-nav-toggle .header__cascade-arrow {
  transform: rotate(-45deg);
}

.mobile-nav-drawer .header__cascade-panel,
.mobile-nav-drawer .header__mega-col-list--two,
.mobile-nav-drawer .header__submenu--two,
.mobile-nav-drawer .header__cascade-panel--two,
.mobile-nav-drawer .header__mega-col,
.mobile-nav-drawer .header__mega-col--wide {
  max-height: none !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  column-count: 1 !important;
}

.mobile-nav-drawer .header__submenu,
.mobile-nav-drawer .header__cascade-panel {
  display: none !important;
  position: static !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  box-shadow: none !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px;
  padding: 4px 0 6px 8px !important;
  margin: 0 0 6px !important;
}

.mobile-nav-drawer .header__submenu::before,
.mobile-nav-drawer .header__cascade-panel::before {
  display: none !important;
}

.mobile-nav-drawer .header__submenu a,
.mobile-nav-drawer .header__submenu .header__menu-item-text,
.mobile-nav-drawer .header__mega-link,
.mobile-nav-drawer .header__cascade-link,
.mobile-nav-drawer .header__cascade-sublink {
  color: rgba(255, 255, 255, 0.9);
  white-space: normal;
}

.mobile-nav-drawer .header__menu-item--catalog:hover > .header__submenu,
.mobile-nav-drawer .header__menu-item--has-menu:hover > .header__submenu,
.mobile-nav-drawer .header__cascade-item:hover > .header__submenu,
.mobile-nav-drawer .header__menu-item--has-menu:hover > .header__cascade-panel,
.mobile-nav-drawer .header__menu-item--has-menu:hover > .header__cascade-panel--two,
.mobile-nav-drawer .header__menu-item--has-menu:hover > .header__submenu--two,
.mobile-nav-drawer .header__menu-item--has-menu:hover > .header__submenu--split {
  display: none !important;
}

.mobile-nav-drawer .header__menu-item.open > .header__submenu,
.mobile-nav-drawer .header__menu-item--catalog.open > .header__submenu,
.mobile-nav-drawer .header__menu-item--has-menu.open > .header__submenu,
.mobile-nav-drawer .header__cascade-item.open > .header__submenu,
.mobile-nav-drawer .header__menu-item.open > .header__submenu--mega,
.mobile-nav-drawer .header__menu-item--catalog.open > .header__submenu--mega,
.mobile-nav-drawer .header__menu-item--has-menu.open > .header__submenu--mega,
.mobile-nav-drawer .header__menu-item.open > .header__submenu--split,
.mobile-nav-drawer .header__menu-item--has-menu.open > .header__submenu--split,
.mobile-nav-drawer .header__menu-item--has-menu.open > .header__submenu--two,
.mobile-nav-drawer .header__menu-item--has-menu.open > .header__cascade-panel--two {
  display: flex !important;
  flex-direction: column !important;
}

.mobile-nav-drawer .header__submenu li {
  background: transparent;
  box-shadow: none;
}

.mobile-nav-drawer .header__submenu--mega,
.mobile-nav-drawer .header__submenu--flyout,
.mobile-nav-drawer .header__submenu--split,
.mobile-nav-drawer .header__submenu--cols-3,
.mobile-nav-drawer .header__submenu--cascade {
  position: static !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  transform: none;
  grid-template-columns: 1fr !important;
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 10px;
}

.mobile-nav-drawer .header__submenu a:hover,
.mobile-nav-drawer .header__submenu .header__menu-item-text:hover,
.mobile-nav-drawer .header__mega-link:hover,
.mobile-nav-drawer .header__cascade-link:hover,
.mobile-nav-drawer .header__cascade-sublink:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-drawer .header__cascade-all,
.mobile-nav-drawer .header__cascade-sale {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-drawer .header__cascade-all .header__cascade-link {
  color: #00a6ff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.mobile-nav-drawer .header__cascade-link--sale {
  color: #ff3b30;
}

.mobile-nav-drawer .header__mega-all {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.mobile-nav-drawer .header__submenu--cols {
  gap: 4px;
}

.mobile-nav-drawer .header__mega-col {
  padding: 0;
}

.mobile-nav-drawer .header__mega-col-title {
  margin: 4px 8px 0;
  padding: 8px 8px 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-nav-drawer .header__mega-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 8px 12px;
}

.mobile-nav-drawer .header__mega-head-link {
  color: #fff;
  font-size: 13px;
}

.mobile-nav-drawer .header__cascade-item {
  position: static;
}

.mobile-nav-drawer .header__cascade-item.open > .mobile-nav-row > .header__cascade-link,
.mobile-nav-drawer .header__menu-item.open > .mobile-nav-row > a,
.mobile-nav-drawer .header__menu-item.open > .mobile-nav-row > .header__menu-item-text {
  color: #fff;
}

.mobile-nav-drawer .header__submenu--split .header__mega-col + .header__mega-col {
  border-left: none;
  padding-left: 0;
  margin-top: 4px;
}

.mobile-nav-drawer .header__mega-col-list {
  padding-left: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer .header__mega-col,
.mobile-nav-drawer .header__mega-item {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

@media (max-width: 480px) {
  .mobile-nav-drawer {
    width: 100vw;
  }
}

/* Sticky-меню на внутренних страницах */
.menu {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
}

.menu-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%);
  transition: 0.3s ease;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}

.menu-main.active {
  transform: translateY(0);
  padding: 0;
  border-radius: 0;
  overflow: visible;
  pointer-events: auto;
}

.menu .header__menu-button::before,
.menu-main .header__menu-button::before {
  background-image: url("../images/icons/menu-black.svg");
}

.menu-main .header__menu-item-text,
.menu-main .header__menu-item > a {
  color: #111;
}

.menu-main .header__menu-item-text:hover,
.menu-main .header__menu-item > a:hover {
  color: #00a6ff;
}

.header__menu--hero .header__menu-list,
.header__menu--pages .header__menu-list {
  background-color: #111;
  border-radius: 10px 10px 0 0;
}

.header__menu--pages .header__menu-list {
  border-radius: 10px;
}

.cover-menu-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

.menu-main--sticky .header__menu-list {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.menu-main--sticky .header__menu-list {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: nowrap;
}

.menu-main--sticky .header__menu-item-text,
.menu-main--sticky .header__menu-item > a {
  color: #111;
}

.menu-main--sticky .header__submenu,
.menu-main--sticky .header__submenu--mega {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.menu-main--sticky .header__submenu li {
  background: transparent;
  box-shadow: none;
}

.menu-main--sticky .header__submenu a,
.menu-main--sticky .header__submenu .header__menu-item-text,
.menu-main--sticky .header__mega-link {
  color: #222;
}

.menu-main--sticky .header__submenu a:hover,
.menu-main--sticky .header__submenu .header__menu-item-text:hover,
.menu-main--sticky .header__mega-link:hover {
  color: #0077cc;
  background: rgba(0, 166, 255, 0.08);
}

.menu-main--sticky .header__mega-col-title {
  color: #8a8a8a;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.menu-main--sticky .header__mega-col > .header__mega-col-list + .header__mega-col-list--two,
.menu-main--sticky .header__submenu--split .header__mega-col + .header__mega-col {
  border-color: rgba(0, 0, 0, 0.08);
}

.menu-main--sticky .header__mega-col-title:hover {
  color: #00a6ff;
}

.menu-main--sticky .header__mega-head {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.menu-main--sticky .header__mega-head-link {
  color: #111;
}

.menu-main--sticky .header__mega-head-note {
  color: rgba(0, 0, 0, 0.4);
}

.menu-main--sticky .header__submenu--split .header__mega-col + .header__mega-col {
  border-left-color: rgba(0, 0, 0, 0.07);
}

.menu-main--sticky .header__cascade-all {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.menu-main--sticky .header__cascade-all .header__cascade-link {
  color: #0077cc;
}

.menu-main--sticky .header__cascade-sale {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.menu-main--sticky .header__cascade-link,
.menu-main--sticky .header__cascade-sublink {
  color: #222;
}

.menu-main--sticky .header__cascade-link--sale,
.menu-main--sticky .header__cascade-sale .header__cascade-link {
  color: #e10600;
}

.menu-main--sticky .header__cascade-sale:hover > .header__cascade-link--sale {
  color: #e10600;
  background: rgba(225, 6, 0, 0.08);
}

.menu-main--sticky .header__cascade-arrow {
  color: inherit;
}

.menu-main--sticky .header__cascade-item:hover > .header__cascade-link,
.menu-main--sticky .header__cascade-item.open > .header__cascade-link,
.menu-main--sticky .header__cascade-sublink:hover {
  color: #0077cc;
  background: rgba(0, 166, 255, 0.08);
}

.menu-main--sticky .header__cascade-item:hover .header__cascade-arrow,
.menu-main--sticky .header__cascade-item.open .header__cascade-arrow {
  color: #0077cc;
  opacity: 1;
}

.header__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

.header__search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__search-wrap {
  display: flex;
  align-items: stretch;
  min-width: 300px;
  width: 500px;
  height: 50px;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.header__search-wrap:focus-within {
  outline: 3px solid rgba(0, 166, 255, 0.5);
}

.header__search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  outline: none;
  border: none;
  background: transparent;
  font: inherit;
}

.header__search-input::placeholder {
  color: #999;
}

.header__search-btn {
  width: 44px;
  flex-shrink: 0;
  border: none;
  background: url("../images/icons/search-icon.png") center no-repeat;
  background-size: 22px;
  cursor: pointer;
  padding: 0;
  transition: background-image 0.2s ease-in;
  outline: none;
}

.header__search-btn:hover {
  background-image: url("../images/icons/search-icon-active.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
}

/* ↓↓ ковер (hero-баннеры) ↓↓
   Как это работает для ученика:
   1) .hero__carousel-wrap — «окошко» с overflow: hidden (лишнее прячется).
   2) .hero__carousel — лента слайдов (display: flex), её двигаем через transform.
   3) Каждый .hero__slide занимает всю ширину окошка.
   Раньше стояло display: none у слайдов — поэтому баннеры не было видно!
*/
.hero {
  position: relative;
  z-index: 2;
}

.hero--pending .hero__carousel-wrap {
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
}

.hero--pending .hero__carousel,
.hero--pending .hero__prev,
.hero--pending .hero__next,
.hero--pending .hero__dots {
  opacity: 0;
  pointer-events: none;
}

.hero--ready .hero__carousel,
.hero--ready .hero__prev,
.hero--ready .hero__next,
.hero--ready .hero__dots {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.hero__carousel-wrap {
  width: 100%;
  overflow: hidden; /* важно: без этого соседние слайды «торчат» сбоку */
  position: relative;
  /* Пока кадр не посчитан по картинке — обычный широкий баннер, без обрезки. */
  aspect-ratio: 16 / 9;
  background: #111;
  transition: height 0.5s ease;
}

.hero__carousel {
  display: flex; /* слайды в ряд — так работает сдвиг translateX */
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

.hero__slide {
  /* НЕ display: none — иначе баннер не появится никогда */
  position: relative;
  box-sizing: border-box;
  flex: 0 0 100%; /* каждый слайд = 100% ширины окошка */
  min-width: 0;
  height: 100%;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  /* contain: вся картинка в кадре, пропорции свои, без растяжения и без обрезки */
  object-fit: contain;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  max-width: 600px;
  z-index: 2;
}

.hero__title {
  font-size: 36px;
  margin-bottom: 12px;
}

.hero__description {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero__button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff3c00;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}

.hero__button:hover {
  filter: grayscale(20%);
  cursor: pointer;
}

.hero__prev,
.hero__next {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
}

.hero__prev {
  position: absolute;
  top: 50%;
  left: 8%;
}

.hero__next {
  position: absolute;
  top: 50%;
  right: 8%;
}

.hero__dots {
  --hero-autoplay: 15s;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__dot {
  position: relative;
  width: 14px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.35s ease, background 0.35s ease;
}

.hero__dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: -10px;
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.62);
}

.hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero__dot.active {
  width: 36px;
  background: rgba(255, 255, 255, 0.28);
}

.hero__dot.is-running::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #fff;
  animation: hero-dot-progress var(--hero-autoplay) linear forwards;
}

@keyframes hero-dot-progress {
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__dot {
    transition: none;
  }

  .hero__dot.is-running::after {
    animation: none;
    width: 100%;
  }
}

/* ↓↓ бренды ↓↓ */
.brands {
  padding: 0 50px;
  background-color: #333;
  height: 70px;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
}

.brands__list {
  list-style: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.brands__item img {
  height: 30px;
  opacity: 0.4;
}

.brands__item img:hover {
  transition: 0.2s;
  transform: scale(1.15);
  opacity: 1;
}

/* ↓↓ поступления ↓↓ */
.arrivals {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0;
}

.arrivals-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

.arrivals-all {
  margin: 10px 0 0;
  text-align: center;
}

.arrivals-all a {
  color: #e10600;
  font-weight: 700;
  text-decoration: none;
}

.arrivals-all a:hover {
  text-decoration: underline;
}

.cards {
  padding-top: 55px;
}

.cards__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
}

.cards__list-item {
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  position: relative;
  box-sizing: border-box;
}

.card__fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background-image: url("../images/icons/fav-icon.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  width: 20px;
  height: 20px;
  z-index: 2;
  cursor: pointer;
}

.card__fav-btn:hover {
  background-image: url("../images/icons/fav-icon-active.png");
}

.cards__item-name {
  display: block;
  padding-top: 12px;
  margin: 0;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.3;
  text-decoration: none;
  color: inherit;
}

.cards__item-price {
  font-weight: bold;
  font-size: 22px;
  line-height: 1.2;
}

.cards__item-price-discount {
  display: block;
  font-weight: bold;
  font-size: 18px;
  text-decoration: line-through;
  color: #e10600;
  line-height: 1.2;
}

/* Отрыв цены от названия + цена внизу карточки */
.cards__item-name + .cards__item-price,
.cards__item-name + .cards__item-price-discount {
  margin-top: auto;
  padding-top: 16px;
}

.cards__item-price-discount + .cards__item-price {
  margin-top: 2px;
  padding-top: 0;
}

.cards__cart-btn {
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
  display: block;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
}

a.cards__cart-btn,
a.product-card-button {
  color: #fff;
  background: #000;
  border: none;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

a.cards__cart-btn:hover,
a.product-card-button:hover {
  background: #e10600;
  color: #fff;
}

.quantity-input {
  display: block;
  background-color: transparent;
  border: 1px colid #111;
  border-radius: 5px;
  width: 60px;
  height: 45px;
  text-align: center;
  font-size: 20px;
}

.add-to-cart {
  margin-top: 10px;
  padding: 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.add-to-cart:hover {
  background: #e10600;
  transform: translateY(-2px);
}

.add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.price-discount {
  font-size: 18px;
  text-decoration: line-through;
  color: #999;
}

#price-container {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.product-option p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
}

.product-option button {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.product-option button:hover {
  border-color: #000;
}

.product-option button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.stock {
  padding: 15px 20px;
  border-radius: 16px;
  background: #f8f8f8;
  font-size: 14px;
  line-height: 1.6;
}

.stock::before {
  content: "Наличие: ";
  font-size: 18px;
  font-weight: 700;
}

.stock strong {
  font-weight: 600;
}

.stock-yes {
  color: #0a8f3c;
}

.stock-no {
  color: #d60000;
}

.attributes {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.attributes h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.attributes p {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  font-size: 14px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.quantity button:hover {
  background: #000;
  color: #fff;
}

#quantity {
  font-size: 20px;
  font-weight: 700;
  width: 30px;
  text-align: center;
}

.cards__cart {
  margin-top: 15px;
  border: none;
}

.cards__list-item .product-card__media,
.cards__list-item > a:first-of-type {
  display: block;
}

.cards__list-item img {
  width: 100%;
  max-width: none;
  height: 220px;
  object-fit: contain;
  padding: 5px;
  background: #f7f7f7;
  border-radius: 10px;
}

.cards__list-item img:hover {
  transform: scale(1.11);
  transition: 0.3s ease;
  object-fit: contain;
}

.arrivals__btn-pos {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}

.arrivals__btn {
  width: 218px;
  height: 52px;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  font: inherit;
  cursor: pointer;
}

.arrivals__btn:hover {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
  color: inherit;
}

.arrivals__btn[hidden] {
  display: none;
}

.cards__list-item--loading {
  min-height: 80px;
  border: none;
  justify-content: center;
  align-items: center;
  max-width: none;
  width: 100%;
}

.cards__list-item .badge {
  top: 12px;
  left: 12px;
}

hr {
  border: none;
  background-color: rgba(0, 0, 0, 0.08);
  height: 1px;
  margin: 25px 50px;
}

.address {
  padding: 72px 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  position: relative;
  overflow: hidden;
}

.home-map {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: #e7eaee;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.home-map__fallback {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.45;
}

.home-map__marker {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  line-height: 1;
  font: inherit;
  user-select: none;
}

.home-map__marker:focus-visible {
  outline: 2px solid #00a6ff;
  outline-offset: 3px;
  border-radius: 12px;
}

.home-map__marker-name {
  background: #fff;
  color: #1a2330;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.home-map__marker.is-open .home-map__marker-name {
  background: #ff3c00;
  color: #fff;
}

.home-map__marker-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff3c00;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.home-map .maplibregl-popup-content {
  padding: 12px 28px 12px 14px;
  border-radius: 12px;
  font-family: "Onest", sans-serif;
  color: #1a2330;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.home-map .maplibregl-popup-close-button {
  font-size: 18px;
  color: #1a2330;
  padding: 2px 6px;
}

.home-map__popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 168px;
}

.home-map__popup h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.home-map__popup p {
  margin: 0 0 4px;
  font-size: 14px;
  color: #4a5568;
}

.home-map__popup a {
  color: #00a6ff;
  font-size: 14px;
  text-decoration: none;
}

.home-map__popup a:hover {
  text-decoration: underline;
}

.home-map__route {
  font-weight: 700;
}

.home-map .maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.address__list-item.is-map-target {
  cursor: pointer;
}

.address__list-item.is-map-target:hover h3,
.address__list-item.is-active h3 {
  color: #00a6ff;
}

html[data-theme="dark"] .home-map {
  background: #16181e;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-map__fallback {
  color: #b7c0cc;
}

html[data-theme="dark"] .home-map .maplibregl-popup-content {
  background: #1c212b;
  color: #e8ebf2;
}

html[data-theme="dark"] .home-map .maplibregl-popup-close-button {
  color: #e8ebf2;
}

html[data-theme="dark"] .home-map .maplibregl-popup-anchor-top .maplibregl-popup-tip,
html[data-theme="dark"] .home-map .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
html[data-theme="dark"] .home-map .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: #1c212b;
}

html[data-theme="dark"] .home-map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
html[data-theme="dark"] .home-map .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
html[data-theme="dark"] .home-map .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: #1c212b;
}

html[data-theme="dark"] .home-map .maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: #1c212b;
}

html[data-theme="dark"] .home-map .maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: #1c212b;
}

html[data-theme="dark"] .home-map__popup p {
  color: #b7c0cc;
}

html[data-theme="dark"] .home-map .maplibregl-ctrl-group {
  background: #1c212b;
}

html[data-theme="dark"] .home-map .maplibregl-ctrl-group button + button {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-map .maplibregl-ctrl-icon {
  filter: invert(1);
}

html[data-theme="dark"] .home-map .maplibregl-ctrl-attrib {
  background: rgba(18, 20, 26, 0.82);
  color: #c5cad3;
}

html[data-theme="dark"] .home-map .maplibregl-ctrl-attrib a {
  color: #8fd6ff;
}

.address__list:hover .cat-right {
  right: 20px;
}

.address__list {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  gap: 15px;
}

.address__list-item {
  font-style: normal;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.address__list-item h3 {
  font-size: 24px;
}

.cat-right {
  position: absolute;
  right: -200px;
  transform: translateX(50%);
  transition: right 0.8s ease;
  width: 70%;
}

/* ↓↓ footer ↓↓ */

.footer {
  background-color: #333;
  width: 100%;
  padding: 40px 50px 24px;
  color: #fff;
  box-sizing: border-box;
}

.footer__items {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 40px;
}

.footer__left-column {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  justify-content: start;
  width: auto;
}

.footer__logo img {
  width: 100px;
  height: auto;
  display: block;
}

.footer__logo img:hover {
  filter: brightness(150%);
  transition: 0.5s ease;
}

.social__networks-block,
.social__networks--footer {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: end;
}

.social__networks--footer img,
.social__networks-block img,
.footer .social__img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.footer__content {
  display: flex;
  gap: 80px;
  font-size: 18px;
  justify-content: center;
}

.footer__content-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  text-wrap: nowrap;
  font-weight: 700;
  font-size: 16px;
}

.footer__content-list-item a {
  text-decoration: none;
  color: #fff;
}

.footer__content-list-item a:hover {
  color: #00a6ff;
}

.footer__hr {
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  height: 1px;
  margin: 28px 0 16px;
}

.footer p {
  text-align: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer__bottom {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: baseline;
  min-height: 31px;
}

.footer__metrika {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  line-height: 0;
}

.footer__metrika a {
  display: inline-block;
  line-height: 0;
}

.footer__metrika img {
  display: block;
  width: 80px;
  height: 31px;
  border: 0;
}

.footer p.footer__copy,
.footer p.footer__credit {
  margin: 0;
  white-space: nowrap;
}

.footer p.footer__credit {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
}

.footer__credit-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.footer__credit-btn:hover,
.footer__credit-btn:focus-visible {
  color: rgba(255, 255, 255, 0.72);
}

body.wm-modal-open {
  overflow: hidden;
}

.wm-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wm-modal[hidden] {
  display: none;
}

.wm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

.wm-modal__dialog {
  position: relative;
  width: min(340px, 100%);
  background: #fff;
  color: #111;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 22px 22px 18px;
  animation: cartModalIn 0.22s ease;
}

.wm-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.wm-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.wm-modal__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.wm-modal__name {
  margin: 0 36px 16px 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.wm-modal__phone {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wm-modal__call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 10px;
  background: #ff3c00;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.wm-modal__call:hover {
  color: #fff;
  filter: brightness(1.06);
}

.wm-modal__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #444;
}

.wm-modal__nick {
  font-weight: 800;
  color: #111;
}

/* =====================
   CATALOG PAGE
===================== */

.catalog-page {
  --catalog-ink: #121212;
  --catalog-muted: #667085;
  --catalog-line: rgba(18, 18, 18, 0.1);
  --catalog-accent: #ff3c00;
  --catalog-surface: #f4f5f7;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.catalog-hero {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--catalog-line);
  margin-bottom: 28px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 60, 0, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--catalog-surface) 100%);
  border-radius: 0 0 18px 18px;
  padding: 20px 22px 28px;
}

.catalog-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--catalog-muted);
}

.catalog-hero__crumbs a {
  color: inherit;
  text-decoration: none;
}

.catalog-hero__crumbs a:hover {
  color: #00a6ff;
}

.catalog-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.catalog-hero__copy {
  min-width: min(100%, 320px);
  flex: 1 1 320px;
}

.catalog-hero__title {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--catalog-ink);
  line-height: 1.1;
}

.catalog-hero__subtitle {
  margin: 0;
  max-width: 46ch;
  color: var(--catalog-muted);
  font-size: 15px;
  line-height: 1.45;
}

.catalog-hero__search {
  flex: 0 1 320px;
  width: min(100%, 320px);
}

.catalog-hero__search input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--catalog-line);
  border-radius: 12px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--catalog-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-hero__search input:focus {
  border-color: rgba(255, 60, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 60, 0, 0.12);
}

.catalog-hero__meta {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--catalog-muted);
}

.catalog {
  display: flex;
  gap: 40px;
  padding: 32px 100px 72px;
}

.catalog__filters {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group h4 {
  margin-bottom: 8px;
}

.filter-button {
  height: 44px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: transparent;
  cursor: pointer;
}

.catalog__products {
  flex: 1;
}

/* =====================
   CATALOG CATEGORIES
===================== */

.catalog-categories {
  padding: 0;
}

.catalog-categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.catalog-categories__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  height: 100%;
  animation: catalogCardIn 0.45s ease both;
}

.catalog-categories__item[hidden] {
  display: none !important;
}

.catalog-categories__item:nth-child(1) { animation-delay: 0.02s; }
.catalog-categories__item:nth-child(2) { animation-delay: 0.06s; }
.catalog-categories__item:nth-child(3) { animation-delay: 0.1s; }
.catalog-categories__item:nth-child(4) { animation-delay: 0.14s; }
.catalog-categories__item:nth-child(5) { animation-delay: 0.18s; }
.catalog-categories__item:nth-child(6) { animation-delay: 0.22s; }
.catalog-categories__item:nth-child(7) { animation-delay: 0.26s; }
.catalog-categories__item:nth-child(8) { animation-delay: 0.3s; }

@keyframes catalogCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.catalog-categories__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--catalog-ink);
  background: #fff;
  border: 1px solid var(--catalog-line);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.catalog-categories__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 60, 0, 0.35);
  box-shadow: 0 14px 28px rgba(18, 18, 18, 0.08);
  color: var(--catalog-ink);
}

.catalog-categories__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 55%, #111 100%);
  overflow: hidden;
}

.catalog-categories__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

.catalog-categories__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.catalog-categories__card:hover .catalog-categories__media img {
  transform: scale(1.04);
}

.catalog-categories__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}

.catalog-categories__title {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.catalog-categories__item--sale .catalog-categories__title {
  color: #e10600;
}

.catalog-categories__card--sale:hover .catalog-categories__title {
  color: #e10600;
}

.catalog-categories__media--sale {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7a0000 0%, #c41e1e 55%, #3a0000 100%);
}

.catalog-categories__media--sale::after {
  background: none;
}

.catalog-categories__sale-mark {
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.06em;
  line-height: 1;
}

.catalog-categories__count {
  margin: 0;
  font-size: 13px;
  color: var(--catalog-muted);
}

.catalog-categories__children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px;
}

.catalog-categories__child {
  display: inline-flex !important; /* перебивает global a { display:block } */
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--catalog-surface);
  color: #222;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-categories__child:hover {
  background: #111;
  color: #fff;
}

.catalog-categories__child--more {
  background: transparent;
  border-color: var(--catalog-line);
  color: var(--catalog-muted);
}

.catalog-categories__child--more:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

.catalog-categories__item--skeleton {
  min-height: 260px;
  border-radius: 16px;
  border: 1px solid var(--catalog-line);
  background:
    linear-gradient(90deg, #eceff3 0%, #f7f8fa 45%, #eceff3 100%);
  background-size: 200% 100%;
  animation: catalogSkeleton 1.1s ease-in-out infinite;
}

@keyframes catalogSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.catalog-categories__item--loading {
  grid-column: 1 / -1;
  padding: 8px 4px 0;
  color: var(--catalog-muted);
  font-size: 14px;
}

.catalog-categories__item--empty {
  grid-column: 1 / -1;
  padding: 28px 8px;
  color: var(--catalog-muted);
  font-size: 15px;
}

.catalog-categories__empty {
  margin: 24px 0 0;
  color: var(--catalog-muted);
  font-size: 15px;
}

.catalog-categories__empty.hidden {
  display: none;
}

@media (max-width: 980px) {
  .catalog-categories__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .catalog-page {
    width: min(100% - 28px, 1200px);
    padding-top: 18px;
  }

  .catalog-hero {
    padding: 16px 14px 20px;
  }

  .catalog-hero__search {
    flex-basis: 100%;
    width: 100%;
  }

  .catalog-categories__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =====================
   CATEGORY PAGE V2
===================== */

.category-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 35px 100px;
}

/* ===== SIDEBAR ===== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-block {
  background: #f8f8f8;
  padding: 24px;
  border-radius: 18px;
}

.sidebar-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

.subcategory-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subcategory-menu a {
  text-decoration: none;
  color: #000;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.3s;
  font-size: 14px;
}

.subcategory-menu a:hover {
  background: #000;
  color: #fff;
}

/* ===== FILTERS ===== */

.filter-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
}

.filter-group input[type="number"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.filter-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn:hover {
  background: #e10600;
}

/* ===== PRODUCTS ===== */

.product__block {
  display: grid;
  align-items: start;
  justify-self: center;
  margin-top: 50px;
}

.product-gallery {
  max-width: 600px;
}

#products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 10px;
}

.product-main-image-wrapper {
  width: 520px;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  position: relative; /* важно для absolute */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-main-image-wrapper:hover .product-image {
  transform: scale(1.05);
}

.product-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.product-thumbnails img {
  flex: 0 0 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 14px;
  padding: 2px;
}

.product-thumbnails img:hover {
  border: 1px solid #00a6ff;
}

.product-thumbnails img.active {
  border: 1px solid #00a6ff;
}

/* затемнение фона */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* изображение */
.lightbox-inner {
  position: relative;
  width: 90vw; /* ширина 90% от экрана */
  height: 80vh; /* высота 80% от экрана */
  max-width: 1200px; /* лимит по ширине */
  max-height: 800px; /* лимит по высоте */
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* кнопки навигации */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: -80px;
}
.lightbox-next {
  right: -80px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
}

.product-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 320px;
  flex: 1;
}

/* Общий стиль бейджа */
.badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none; /* чтобы не мешали клику */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Скидка */
.badge-discount {
  background: linear-gradient(135deg, #e10600, #ff4d4d);
}

.product-card .badge {
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 10px;
}

/* Новинка */
.badge-new {
  background: linear-gradient(135deg, #f4b400, #ffdd00);
  left: auto;
  right: 20px;
}

.product-info {
  margin-top: 30px;
  grid-column: 1 / -1;
  font-size: 20px;
  line-height: 1.7;
  max-width: 800px;
  text-align: start;
  padding-top: 0px;
  padding-bottom: 70px;
}

.size-chart-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  color: #000;
  width: fit-content;
  transition: 0.3s;
}

.size-chart-btn:hover {
  color: #e10600;
}

.size-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 999;
}

.size-modal.active {
  opacity: 1;
  visibility: visible;
}

.size-modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.size-modal.active .size-modal-content {
  transform: translateY(0);
}

.size-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.size-table th,
.size-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.products-section {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 72px;
  align-items: stretch;
}

/* Улучшаем карточку */

.product-card {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 460px;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.product-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: #f7f7f7;
}

.product-card__attrs {
  font-size: 13px;
  color: #666;
  line-height: 1.3;
  min-height: 1.3em;
}

.product-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.product-card__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #111;
  background: #fff;
  line-height: 1.2;
}

button.product-card__size {
  font: inherit;
  cursor: pointer;
}

.product-card__size.is-selected {
  border-color: #e10600;
  background: #e10600;
  color: #fff;
}

.product-card__size.is-oos {
  color: #9ca3af;
  border-color: #e5e7eb;
  background: #f9fafb;
  text-decoration: line-through;
  cursor: default;
}

.product-card-button--link {
  display: block;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

/*.arrivals {
  display: flex;
  flex-direction: column;
  justify-content: center;

}*/

.main__page-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  margin-top: 25px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card img,
.product-card__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  min-height: 2.6em;
  max-height: 2.6em;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-card-button {
  margin-top: auto;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.product-card-button:hover {
  background: #e10600;
}

.product-card-button:disabled {
  background: #e4e7ec;
  color: #667085;
  cursor: default;
}

.product-card-button:disabled:hover {
  background: #e4e7ec;
}

/* ===== LOAD MORE ===== */

.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 16px;
}

.load-more-wrapper[hidden] {
  display: none !important;
}

.load-more-btn {
  padding: 12px 28px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 62px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.load-more-btn:hover {
  background-color: #111;
  color: #fff;
}

.catalog-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
}

.catalog-pages[hidden] {
  display: none !important;
}

.catalog-pages__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.catalog-pages__btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
  border-color: #111;
}

.catalog-pages__btn.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.catalog-pages__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.catalog-pages__gap {
  opacity: 0.5;
  padding: 0 2px;
}

/* Старые статические каталоги: фильтры скрыты, пока JS не откроет нужную группу */
.catalog-section .filter-group:not(.universal),
.catalog .filter-group:not(.universal) {
  display: none;
}

.filter-group.universal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Страница категории (category.html) — фильтры всегда видны */
.category-page__filters .filter-group,
#categoryFilters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.subcategory-menu a.active {
  background: #000;
  color: #fff;
}

.catalog-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 100px;
}

.catalog-filters {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.catalog-filters ul {
  list-style: none;
  padding: 0;
}

.catalog-filters a {
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #000;
}

.catalog-filters a.active {
  background-color: #000;
  color: #fff;
}

.filter-group h4 {
  margin-bottom: 8px;
}

.filter-group label {
  display: block;
  margin-bottom: 4px;
}

.filter-group h4 {
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
}

.filter-group label {
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
  padding: 4px 0;
}

.filter-group input[type="checkbox"] {
  margin-right: 8px;
}

.catalog-filters ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.catalog-filters a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #000;
  text-decoration: none;
}

.no-results p {
  font-size: 18px;
  color: #555;
  margin-top: 10px;
}

.no-results img {
  display: block;
  margin: 0 auto 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.not-found__anim-1 {
  display: block;
  animation: fadeIn 2s ease-in-out;
}

.not-found__anim-2 {
  display: block;
  animation: fadeIn 5s ease-in-out;
}

/* =========================
   Dropdown: корзина / избранное
   ========================= */
.bar-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 90vw);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  z-index: 200;
  overflow: hidden;
}

.bar-dropdown[hidden] {
  display: none;
}

.bar-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f7f7;
}

.bar-dropdown__title {
  font-size: 16px;
  font-weight: 700;
}

.bar-dropdown__link {
  font-size: 13px;
  color: #e10600;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.bar-dropdown__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  color: inherit;
}

.bar-dropdown__name:hover {
  color: #e10600;
}

.bar-dropdown__img-link {
  display: block;
  width: 56px;
  height: 56px;
}

.bar-dropdown__btn {
  display: inline-block;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.bar-dropdown__body {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
}

.bar-dropdown__empty {
  padding: 24px 12px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.bar-dropdown__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
}

.bar-dropdown__item:hover {
  background: #f5f5f5;
}

.bar-dropdown__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

.bar-dropdown__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.bar-dropdown__warehouse,
.cart-modal__warehouse {
  margin: 2px 0 0;
  font-size: 12px;
  color: #667085;
}

.checkout-item__warehouse {
  margin: 4px 0 0;
  font-size: 13px;
  color: #475467;
}

.checkout-item__warehouse--warn {
  color: #b54708;
}

.checkout-warehouse-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #667085;
  line-height: 1.4;
}

.bar-dropdown__meta {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.bar-dropdown__remove {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
}

.bar-dropdown__remove:hover {
  color: #e10600;
}

.bar-dropdown__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bar-dropdown__total {
  font-size: 14px;
  font-weight: 700;
}

.bar-dropdown__btn {
  display: inline-block;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.bar-dropdown__btn:hover {
  background: #e10600;
}

.product-card .card__fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* =========================
   Auth / Account
   ========================= */
.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0.45)),
    url("../images/cover-ls2-jackets.jpg") center / cover no-repeat;
}

.auth-page__header {
  padding: 28px 40px;
}

.auth-page__logo {
  display: inline-block;
  width: 120px;
}

.auth-page__logo img {
  display: block;
  width: 100%;
  filter: brightness(0) invert(1);
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.auth-card__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.auth-form[hidden],
.auth-field[hidden],
.auth-submit[hidden],
.auth-hint[hidden],
.auth-error[hidden],
.auth-captcha[hidden] {
  display: none !important;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.auth-field input:focus {
  border-color: #111;
}

.auth-code-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.auth-field--grow {
  flex: 1 1 0;
  min-width: 0;
}

.auth-code-btn {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.auth-code-btn:hover {
  background: #f5f5f5;
}

.auth-code-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-hint {
  margin: 0;
  font-size: 13px;
  color: #0a7a2f;
}

.auth-error {
  margin: 0;
  font-size: 14px;
  color: #e10600;
  font-weight: 600;
}

.account-stat--loyalty .account-stat__value,
.account-stat--balance .account-stat__value {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.2;
  text-transform: none;
}

.account-stat--loyalty .account-stat__label,
.account-stat--balance .account-stat__label {
  font-weight: 700;
}

.account-stat__value--neg {
  color: #e10600;
}

.account-stat__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #777;
  line-height: 1.35;
}

.auth-submit {
  margin-top: 8px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.auth-submit:hover {
  background: #e10600;
  transform: translateY(-1px);
}

.auth-card__footer {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.auth-card__footer a {
  display: inline;
  color: #e10600;
  font-weight: 600;
  text-decoration: none;
}

.auth-card__footer a:hover {
  color: #e10600;
}

.auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 0;
}

.auth-forgot a {
  color: #666;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot a:hover,
.auth-forgot a.is-alert {
  color: #e10600;
}

.auth-captcha:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-captcha__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.auth-captcha__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-captcha__img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f4f4f4;
}

.auth-captcha__refresh {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-captcha__refresh:hover {
  background: #f5f5f5;
}

.auth-captcha__refresh:disabled,
.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.account-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(225, 6, 0, 0.08), transparent 40%),
    linear-gradient(180deg, #f4f4f4 0%, #fff 40%);
}

.account-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.account-page__logo {
  width: 110px;
  display: block;
}

.account-page__nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.account-page__nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.account-page__nav a:hover {
  color: #e10600;
}

.account-layout {
  width: min(960px, calc(100% - 40px));
  max-width: 100%;
  margin: 40px auto 60px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
}

.account-layout[hidden],
.account-guest[hidden],
.account-stat[hidden],
#statBalanceBlock[hidden],
#statLoyaltyBlock[hidden],
.account-sidebar li[hidden],
#adminLink[hidden],
.account-profile-form[hidden],
#profileEnvHint[hidden] {
  display: none !important;
}

.account-sidebar {
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  align-self: start;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    url("../images/icons/profile-icon-active.png") center / 28px no-repeat,
    #2a2a2a;
  margin-bottom: 16px;
}

.account-sidebar__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.account-sidebar__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.account-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover,
.account-menu a.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.account-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.account-panel__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.account-panel__text {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.45;
}

.account-password-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.account-password-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.account-password-form input {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}

.account-password-form input:focus {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 1px;
}

.account-password-form__submit {
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.account-password-form__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.account-password-form__msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.account-password-form__msg.is-ok {
  color: #1a7a3c;
}

.account-password-form__msg.is-err {
  color: #b42318;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.account-stat {
  padding: 16px;
  border-radius: 12px;
  background: #f7f7f7;
}

.account-stat__value {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.account-stat__label {
  font-size: 12px;
  color: #666;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-list__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #fafafa;
  min-width: 0;
}

.account-list__item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.account-list__item a {
  text-decoration: none;
  color: inherit;
  overflow-wrap: anywhere;
  min-width: 0;
}

.account-list__item a:hover {
  color: #e10600;
}

.account-guest {
  width: min(520px, calc(100% - 40px));
  margin: 80px auto;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 40px 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.account-guest__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.account-guest__text {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.45;
}

.account-guest__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.account-guest__actions a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.account-guest__actions a.primary {
  background: #111;
  color: #fff;
}

.account-guest__actions a.primary:hover {
  background: #e10600;
}

.account-guest__actions a.secondary {
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #111;
}

@media (max-width: 768px) {
  .content {
    padding: 0 16px;
  }

  .brands {
    padding: 0 16px;
    height: 50px;
  }

  .brands__item img {
    height: 20px;
  }

  .arrivals {
    padding: 48px 0;
  }

  .arrivals-title {
    font-size: 26px;
  }

  .cards__list-item {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__description {
    font-size: 14px;
  }

  hr {
    margin: 16px 0;
  }

  .address {
    padding: 48px 0;
    grid-template-columns: 1fr;
  }

  .home-map {
    height: 300px;
  }

  .footer {
    padding: 32px 16px 20px;
  }

  .footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .footer p.footer__credit {
    position: static;
    align-self: flex-start;
  }

  .footer__metrika {
    position: static;
    transform: none;
    align-self: flex-end;
  }

  .footer__items {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__content {
    flex-direction: column;
    gap: 24px;
    justify-content: start;
  }

  .social__networks--footer {
    justify-self: start;
  }

  .account-layout {
    width: 100%;
    margin: 16px 0 32px;
    padding: 0 12px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-page__top {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 10px 16px;
  }

  .account-page__logo {
    width: 88px;
  }

  .account-page__nav {
    width: 100%;
    gap: 10px 14px;
  }

  .account-sidebar,
  .account-panel,
  .account-main {
    min-width: 0;
  }

  .account-sidebar {
    padding: 20px 16px;
  }

  .account-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .account-menu a,
  .account-menu button {
    width: auto;
  }

  .account-stats {
    grid-template-columns: 1fr 1fr;
  }

  .account-list__item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .account-list__item > :last-child {
    grid-column: 2;
  }

  .account-order__foot {
    flex-wrap: wrap;
  }

  .account-moto-form,
  .account-profile-form {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .cart-page-shell {
    width: calc(100% - 20px);
  }

  .cart-page-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .checkout-card,
  .cart-page-card,
  .account-guest {
    padding: 20px 14px;
  }

  .checkout-card {
    width: 100%;
    border-radius: 12px;
  }

  .auth-page__header {
    padding: 16px;
  }

  .auth-card {
    padding: 28px 20px;
    box-sizing: border-box;
  }

  .auth-code-row {
    flex-wrap: wrap;
  }

  .auth-field--grow {
    flex: 1 1 100%;
  }

  .auth-code-btn {
    width: 100%;
  }

  .product-page-layout {
    grid-template-columns: 1fr;
  }

  .cart-modal__dialog {
    width: min(100%, calc(100vw - 24px));
    max-height: 90vh;
  }
}

/* =========================
   Модалка корзины (поверх страницы)
   ========================= */
body.cart-modal-open {
  overflow: hidden;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cart-modal[hidden] {
  display: none;
}

.cart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

.cart-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 85vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cartModalIn 0.22s ease;
}

@keyframes cartModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cart-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-modal__head h2 {
  font-size: 22px;
  font-weight: 800;
}

.cart-modal__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #777;
}

.cart-modal__close:hover {
  color: #e10600;
}

.cart-modal__body {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
}

.cart-modal__empty {
  text-align: center;
  color: #666;
  padding: 40px 12px;
}

.cart-modal__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
}

.cart-modal__item:hover {
  background: #f7f7f7;
}

.cart-modal__item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}

.cart-modal__info a {
  text-decoration: none;
  color: inherit;
}

.cart-modal__info a:hover {
  color: #e10600;
}

.cart-modal__info p {
  color: #666;
  font-size: 13px;
  margin-top: 4px;
}

.cart-modal__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-modal__qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  cursor: pointer;
}

.cart-modal__sum {
  text-align: right;
}

.cart-modal__sum p {
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-modal__sum .bar-dropdown__remove {
  font-size: 12px;
  color: #999;
}

.cart-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
}

.cart-modal__total {
  font-size: 18px;
  font-weight: 800;
}

.cart-modal__checkout {
  border: none;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.cart-modal__checkout:hover {
  background: #e10600;
}

/* Политика конфиденциальности (регистрация / оформление) */
body.privacy-modal-open {
  overflow: hidden;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

.privacy-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 85vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cartModalIn 0.22s ease;
}

.privacy-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #eee;
}

.privacy-modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.privacy-modal__body {
  padding: 16px 20px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.privacy-modal__body h2,
.privacy-modal__body h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.privacy-modal__body p,
.privacy-modal__body ul {
  margin: 0 0 12px;
}

.privacy-modal__body a {
  color: #e10600;
}

.privacy-modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 14px 20px 18px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.privacy-modal__btn {
  border: none;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.privacy-modal__btn--ghost {
  background: #eee;
  color: #222;
}

.privacy-modal__btn--ghost:hover {
  background: #e0e0e0;
}

.privacy-modal__btn--ok {
  background: #111;
  color: #fff;
}

.privacy-modal__btn--ok:hover {
  background: #e10600;
}

.checkout-wh-dialog {
  max-width: 480px;
}

.checkout-wh-foot {
  flex-direction: column;
  align-items: stretch;
}

.checkout-wh-foot .privacy-modal__btn {
  width: 100%;
}

.checkout-wh-btn-keep {
  background: #fff;
  color: #111;
  box-shadow: inset 0 0 0 2px #111;
}

.checkout-wh-btn-keep:hover {
  background: #f3f3f3;
}

.checkout-wh-btn-transfer {
  background: #fff;
  color: #111;
  box-shadow: inset 0 0 0 2px #c45c00;
}

.checkout-wh-btn-transfer:hover {
  background: #fff6eb;
}

/* =========================
   Страница товара
   ========================= */
.product-page {
  padding-bottom: 60px;
}

.product-page__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #777;
  margin: 24px 0 8px;
}

.product-page__crumb a {
  color: inherit;
  text-decoration: none;
}

.product-page__crumb a:hover {
  color: #e10600;
}

.product-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-page__gallery {
  position: relative;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 480px;
  gap: 12px;
}

.product-page__gallery > .badge {
  top: 16px;
  left: 16px;
  z-index: 2;
}

.product-page__main-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 420px;
  padding: 16px;
  margin: 0;
  border: none;
  border-radius: 16px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.product-page__main-btn #productMainImage,
.product-page__gallery #productMainImage {
  width: auto;
  max-width: 100%;
  max-height: min(62vh, 560px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  image-rendering: auto;
  -webkit-user-drag: none;
}

.product-page__zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-page__main-btn:hover .product-page__zoom-hint,
.product-page__main-btn:focus-visible .product-page__zoom-hint {
  opacity: 1;
}

.product-page__gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.product-page__gallery-nav {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.product-page__nav-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.product-page__nav-btn:hover {
  background: #fff;
  color: #00a6ff;
}

.product-page__info h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.product-page__price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

.product-page__desc {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 28px;
  white-space: pre-wrap;
}

.product-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.product-page__buy,
.product-page__fav {
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.product-page__buy {
  background: #111;
  color: #fff;
}

.product-page__buy:hover {
  background: #e10600;
}

.product-page__fav {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #111;
}

.product-page__fav.is-active {
  border-color: #e10600;
  color: #e10600;
}

.product-page__meta {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #f7f7f7;
  border-radius: 14px;
  font-size: 14px;
}

.product-page__meta span {
  color: #777;
}

.product-page__error,
.product-page__loading {
  text-align: center;
  padding: 80px 20px;
  color: #666;
}

.product-page__missing-img {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 16px;
}

.product-page__missing h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

.product-page__variants {
  margin: 0 0 14px;
}

.product-page__variants-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b7280;
}

.product-page__variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-page__variant-summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  gap: 8px;
}

.product-page__variant-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.product-page__variant-summary-row span {
  color: #6b7280;
}

.product-page__variant-summary-row strong {
  font-weight: 700;
  color: #111;
  text-align: right;
  word-break: break-all;
}

.product-page__variant-summary-stock-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #6b7280;
}

.product-page__variant-warehouses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.product-page__variant-warehouses li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.product-page__variant-wh {
  color: #334155;
}

.product-page__variant-qty {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.product-page__variant-qty.is-zero {
  color: #94a3b8;
  font-weight: 600;
}

.product-page__variant-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 72px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: #111;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-page__variant-btn small {
  color: #6b7280;
  font-size: 12px;
}

.product-page__variant-btn:hover:not(:disabled) {
  border-color: #00a6ff;
}

.product-page__variant-btn.is-active {
  border-color: #00a6ff;
  background: #eaf7ff;
}

.product-page__variant-btn:disabled,
.product-page__variant-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-page__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.product-page__old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 18px;
}

.product-page__loyalty {
  font-size: 13px;
  font-weight: 700;
  color: #e10600;
}

.product-page__stock {
  margin-bottom: 16px;
  font-size: 14px;
}

.product-page__stock--stores {
  background: #f6f7f9;
  border-radius: 14px;
  padding: 14px 16px;
}

.product-page__stock-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 15px;
}

.store-stock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-stock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.store-stock__name {
  color: #333;
}

.store-stock__value {
  font-weight: 700;
  text-transform: lowercase;
}

.store-stock--low .store-stock__value {
  color: #c45a00;
}

.store-stock--mid .store-stock__value {
  color: #0b6e99;
}

.store-stock--high .store-stock__value {
  color: #0a8f3c;
}

.store-stock--none .store-stock__value {
  color: #d60000;
  font-weight: 600;
}

.product-page__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-page__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.product-page__thumb.is-active {
  border-color: #00a6ff;
}

.product-page__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f3f3f3;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  z-index: 2000;
}

.lightbox-inner {
  width: min(96vw, 1400px);
  height: min(88vh, 900px);
  max-width: none;
  max-height: none;
}

.lightbox-inner img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2001;
  left: auto;
  right: auto;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 2001;
  background: transparent;
  border: none;
  line-height: 1;
}

@media (max-width: 768px) {
  .product-page {
    overflow-x: clip;
    max-width: 100%;
  }

  .product-page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 12px;
  }

  .product-page__gallery,
  .product-page__info {
    min-width: 0;
    max-width: 100%;
  }

  .product-page__gallery {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .product-page__gallery-nav {
    left: 4px;
    right: 4px;
  }

  .product-page__nav-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .product-page__main-btn {
    min-height: 220px;
    padding: 10px;
    border-radius: 12px;
  }

  .product-page__main-btn #productMainImage {
    max-width: 100%;
    max-height: min(42vh, 320px);
  }

  .product-page__thumbs {
    flex-wrap: wrap;
    overflow-x: hidden;
  }

  .product-page__thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  .product-page__info h1 {
    font-size: clamp(22px, 6vw, 28px);
    word-break: break-word;
  }

  .product-page__price {
    font-size: 26px;
  }

  .product-page__actions {
    flex-direction: column;
  }

  .product-page__buy,
  .product-page__fav {
    width: 100%;
    text-align: center;
  }

  .product-page__variants-list {
    flex-wrap: wrap;
  }

  .product-page__zoom-hint {
    opacity: 1;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

.product-card__meta {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.product-card__stock {
  font-size: 12px;
  color: #0b6e99;
  margin: 6px 0 8px;
  line-height: 1.35;
  min-height: 1.35em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__stock-ok {
  color: #0b6e99;
}

.product-card__stock-miss {
  color: #98a2b3;
}

.cart-warehouse-banner {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #667085;
}

.product-card__old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85em;
  margin-right: 4px;
}

.header__search-field {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
  margin-right: 8px;
  max-width: 140px;
}

body.is-search-page .header__menu--pages,
body.is-search-page .catalog-page {
  display: none !important;
}

.catalog-search {
  padding: 24px 0 40px;
}

.catalog-search__title {
  font-size: 28px;
  margin: 0 0 8px;
}

.catalog-search__meta {
  color: #666;
  margin: 0 0 20px;
}

.catalog-search__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.catalog-search__bar .catalog-search__meta {
  margin: 0;
}

.catalog-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.catalog-sort select {
  padding: 6px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
}

.catalog-search__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.catalog-search__empty {
  color: #666;
  padding: 20px 0;
}

.category-page__child {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  text-decoration: none;
  font-size: 13px;
}

.category-page__child:hover {
  background: #111;
  color: #fff;
}

.category-page {
  padding: 24px 16px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-page__title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 12px 0 16px;
}

.category-page__title--sale {
  color: #e10600;
}

.category-page__children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}

.category-tile {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.category-tile:hover {
  border-color: #111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  color: #111;
}

.category-tile__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.category-page__layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 24px;
  align-items: start;
}

.category-page__layout--solo {
  grid-template-columns: 1fr;
}

.category-page__content {
  min-width: 0;
}

@media (max-width: 800px) {
  .category-page__layout {
    grid-template-columns: 1fr;
  }
}

.filters-tray {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.filters-tray__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filters-tray__chev {
  transition: transform 0.2s ease;
}

.filters-tray.is-open .filters-tray__chev {
  transform: rotate(180deg);
}

.filters-tray__panel {
  width: 100%;
}

.filters-tray__panel[hidden] {
  display: none !important;
}

.filter-group__opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group__opts .filter-check[hidden],
.filter-group__opts .filter-check.is-hidden,
.category-page__filters .filter-check[hidden],
.category-page__filters .filter-check.is-hidden {
  display: none !important;
}

.filter-more-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  color: #00a6ff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.category-page__filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.category-page__filters .filter-group h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.category-page__filters .filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
  cursor: pointer;
}

.category-page__filters .filter-range {
  display: flex;
  gap: 8px;
}

.category-page__filters .filter-range input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.category-page__filters .filter-btn {
  margin-top: 8px;
}

.header--simple .header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.header__simple-link {
  margin-left: auto;
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.product-page__buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   Checkout
   ========================= */
.checkout-page {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.5)),
    url("../images/cover-ls2-jackets.jpg") center / cover no-repeat;
}

.checkout-shell {
  flex: 1;
  padding: 12px 16px 48px;
  display: flex;
  justify-content: center;
}

.checkout-card {
  width: min(1100px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.checkout-card__title {
  margin: 0 0 8px;
  font-size: 28px;
}

.checkout-card__subtitle {
  margin: 0 0 24px;
  color: #555;
  line-height: 1.45;
  max-width: 720px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
}

@media (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-section-title {
  margin: 20px 0 12px;
  font-size: 16px;
}

.checkout-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
}

.checkout-radio.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.checkout-radio:has(input:checked) {
  border-color: #111;
  background: #f7f7f7;
}

.checkout-block {
  margin-bottom: 8px;
}

.checkout-cdek-result {
  margin: 8px 0 12px;
  padding: 12px;
  background: #f4f4f4;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

#checkoutPvz {
  width: 100%;
  max-width: 100%;
}

.checkout-cdek-note {
  color: #777;
  font-size: 12px;
}

.checkout-aside {
  background: #f7f7f7;
  border-radius: 14px;
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 16px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  margin-bottom: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.checkout-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  max-width: none;
}

.checkout-item p {
  margin: 2px 0 0;
  color: #666;
}

.checkout-item__sum {
  text-align: right;
  white-space: nowrap;
}

.checkout-price-pair {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  justify-content: flex-end;
}

.checkout-price-old {
  color: #999;
  font-weight: 400;
  text-decoration: line-through;
}

.checkout-price-new {
  color: #c0392b;
  font-weight: 600;
}

.checkout-item--promo .checkout-price-new {
  color: #c0392b;
}

.checkout-totals {
  border-top: 1px solid #ddd;
  padding-top: 12px;
  margin-bottom: 12px;
}

.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 14px;
}

.checkout-totals__row strong {
  text-align: right;
  font-weight: 600;
}

.checkout-totals__row--sum {
  font-size: 18px;
  margin-top: 8px;
}

.checkout-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.checkout-empty {
  text-align: center;
  padding: 40px 16px;
}

.checkout-form .auth-field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.account-orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-order {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.account-order__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.account-order__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.account-order__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
}

.account-order__badge--pay {
  background: #2a6;
}

.account-order__badge--wh {
  background: #1f3a5f;
}

.account-order__badge--open {
  background: #b86e00;
}

.account-order__badge--merged {
  background: #1f3a5f;
}

.account-order--merged {
  background: #f7f8fa;
}

.account-order__history {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
}

.account-order__history-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.account-order__history-list {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.account-order__history-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #222;
}

.account-order__history-list li span {
  color: #555;
  white-space: nowrap;
}

.account-order__line {
  margin: 0 0 4px;
  font-size: 13px;
  color: #555;
}

.account-order__note {
  white-space: pre-wrap;
  word-break: break-word;
  color: #222;
}

.account-order__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.account-order__pay {
  display: inline-block;
  padding: 8px 14px;
  background: #e10600;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.account-order__summary {
  cursor: pointer;
  list-style: none;
}

.account-order__summary::-webkit-details-marker {
  display: none;
}

.account-order__open-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #0077cc;
}

.account-order__lines {
  margin-top: 12px;
  overflow-x: auto;
}

.account-order__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.account-order__table th,
.account-order__table td {
  padding: 8px 10px;
  border-top: 1px solid #eee;
  text-align: right;
  white-space: nowrap;
}

.account-order__table th:first-child,
.account-order__table td:first-child {
  text-align: left;
  white-space: normal;
}

.account-order__table th {
  color: #666;
  font-size: 12px;
  font-weight: 600;
}

/* =========================
   RESPONSIVE STOREFRONT
========================= */
@media (max-width: 980px) {
  .header__bar {
    padding: 20px 24px;
    gap: 12px;
  }

  .header__search-wrap {
    width: 100%;
    min-width: 0;
    max-width: 420px;
  }

  .category-layout,
  .catalog-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cards__list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .cards__list-item {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .product-main-image-wrapper {
    width: min(100%, 420px);
    height: auto;
    min-height: 280px;
    aspect-ratio: 1;
  }

  .product-right {
    min-width: 0;
  }
}

@media (max-width: 800px) {
  .category-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }

  .catalog-section {
    padding: 20px 16px;
  }

  .catalog-filters {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .header__menu-list,
  .menu-main--sticky .header__menu-list {
    font-size: 13px;
    gap: 6px 10px;
    padding: 0 10px;
  }

  .header__menu-button::before {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  .header__submenu--catalog,
  .header__submenu--mega {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px 22px;
    padding: 22px 20px 24px;
  }

  .header__submenu--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: min(420px, calc(100vw - 24px));
  }
}

@media (max-width: 900px) {
  .header__submenu--catalog,
  .header__submenu--mega {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .header__submenu--split,
  .header__submenu--cols-3 {
    grid-template-columns: 1fr;
    min-width: min(260px, calc(100vw - 24px));
    max-width: min(360px, calc(100vw - 24px));
    transform: none;
    left: 0;
  }

  .header__submenu--split .header__mega-col + .header__mega-col {
    border-left: none;
    padding-left: 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
  }

  .menu-main--sticky .header__submenu--split .header__mega-col + .header__mega-col {
    border-top-color: rgba(0, 0, 0, 0.07);
  }
}

@media (max-width: 768px) {
  .top__announcement-inner,
  .top__announcement-text,
  .top__announcement-message {
    white-space: normal;
  }

  .top__announcement-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    padding: 8px 12px;
    text-align: center;
  }

  .header__info {
    text-wrap: wrap;
    font-size: 12px;
  }

  .header__info-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    padding: 8px 12px;
  }

  .contact__block {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .header__burger {
    display: inline-flex;
    grid-area: burger;
    justify-self: start;
  }

  /* Дубли меню, оказавшиеся внутри шапки (старые страницы) */
  .header__bar > .header__menu-list {
    display: none !important;
  }

  .header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "burger logo icons"
      "search search search";
    align-items: center;
    gap: 12px 10px;
    padding: 12px 14px 16px;
  }

  .header__logo {
    grid-area: logo;
    justify-self: center;
  }

  .header__logo-img {
    width: 100px;
  }

  .header__search {
    grid-area: search;
    width: 100%;
  }

  .header__search-wrap {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 44px;
  }

  .header__search-field {
    max-width: none;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .header__bar-list {
    grid-area: icons;
    justify-self: end;
    gap: 12px;
  }

  /* Горизонтальное меню на телефоне скрыто — есть drawer */
  .header__menu .header__menu-list,
  .header__menu--pages .header__menu-list,
  .header__menu--hero .header__menu-list {
    display: none;
  }

  .header__menu-wrapper {
    min-height: 0;
  }

  .menu-main--sticky {
    display: none !important;
  }

  .header--simple .header__bar {
    display: flex;
    flex-wrap: wrap;
  }

  .cards__list {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .cards__list-item {
    width: auto;
    min-height: 0;
    padding: 10px;
  }

  .product-page__gallery {
    min-height: 0;
  }

  .product-main-image-wrapper {
    width: 100%;
    height: auto;
    min-height: 220px;
  }

  .product-page {
    padding: 0 4px;
  }

  .cart-modal {
    padding: 12px;
    align-items: stretch;
  }

  .cart-modal__dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 12px;
  }

  .checkout-card {
    padding: 20px 14px 28px;
    border-radius: 12px;
  }

  .checkout-card__title {
    font-size: 22px;
  }

  .header__overlay {
    z-index: 110;
  }
}

@media (max-width: 480px) {
  .cards__list {
    grid-template-columns: 1fr;
  }

  .cards__list-item {
    width: auto;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__content {
    padding: 16px;
  }

  .hero__button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .mobile-nav-drawer {
    width: min(100vw - 48px, 320px);
  }
}

/* ——— Информационные страницы ——— */
.site-page-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.55), rgba(12, 12, 12, 0.72)),
    url("../images/cover-ls2-jackets.jpg") center / cover no-repeat fixed;
}

.site-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}

.site-page-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.site-page-header__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.site-page-header__nav a:hover,
.site-page-header__nav a[aria-current="page"] {
  opacity: 1;
  color: #ff4d4d;
}

.site-page-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.site-page-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px 40px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.site-page__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.15;
}

.site-page__body {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
}

.site-page__body h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.site-page__body h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.site-page__body p,
.site-page__body ul {
  margin: 0 0 12px;
}

.site-page__body ul {
  padding-left: 1.2em;
}

.site-page__body a {
  color: #c8102e;
}

.site-page__body section[id] {
  scroll-margin-top: 24px;
}

.site-page__loading,
.site-page__error {
  margin: 0;
  color: #666;
}

.product-page__variant-oos {
  color: #888;
  font-weight: 500;
}

.product-page__desc-empty {
  color: #888;
}

/* ——— Страница корзины ——— */
.cart-page {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.55), rgba(12, 12, 12, 0.72)),
    url("../images/cover-ls2-jackets.jpg") center / cover no-repeat fixed;
}

.cart-page-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.cart-page-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 32px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.cart-page-card__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}

.cart-page-card__subtitle {
  margin: 0 0 22px;
  color: #666;
}

.cart-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}

.cart-page-empty[hidden],
#cartFilled[hidden] {
  display: none !important;
}

.cart-page-empty .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;
  margin: 16px auto 0;
  padding: 0 22px;
  line-height: 1;
  text-decoration: none;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.not-found-actions .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;
  margin: 0;
  padding: 0 22px;
  line-height: 1;
  text-decoration: none;
}

.not-found-actions .not-found-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 8px;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.cart-page-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.cart-page-item__img {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
}

.cart-page-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-page-item__info a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.cart-page-item__info a:hover {
  color: #c8102e;
}

.cart-page-item__price,
.cart-page-item__wh {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
}

.cart-page-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 4px 8px;
}

.cart-page-item__qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.cart-page-item__remove {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.cart-page-item__remove:hover {
  color: #c8102e;
}

.cart-page-summary {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-page-summary .auth-submit {
  min-width: 200px;
}

.cart-page-summary h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .cart-page-item {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty remove";
  }

  .cart-page-item__img {
    grid-area: img;
    width: 64px;
    height: 64px;
  }

  .cart-page-item__info {
    grid-area: info;
  }

  .cart-page-item__qty {
    grid-area: qty;
    justify-self: start;
  }

  .cart-page-item__remove {
    grid-area: remove;
  }

  .site-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Подбор по мотоциклу — в стиле catalog-hero */
.catalog-hero__cta {
  margin: 14px 0 0;
}
.catalog-moto-link {
  display: inline-block;
  color: #ff3c00;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 60, 0, 0.35);
  padding-bottom: 1px;
}
.catalog-moto-link:hover {
  color: #d43200;
  border-bottom-color: rgba(212, 50, 0, 0.55);
}

.moto-finder__hero {
  margin-bottom: 28px;
}
.moto-finder__hero .moto-finder__selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  width: 100%;
  flex-basis: 100%;
}
.moto-finder__hero .moto-finder__selected strong {
  color: var(--catalog-ink, #111);
  font-weight: 700;
}
.moto-finder__change {
  border: 1px solid var(--catalog-line, #e6e6e6);
  background: #fff;
  color: var(--catalog-ink, #111);
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.moto-finder__change:hover {
  border-color: rgba(255, 60, 0, 0.55);
  color: #ff3c00;
  box-shadow: 0 0 0 3px rgba(255, 60, 0, 0.12);
}

.moto-finder__form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--catalog-line, #e6e6e6);
}
.moto-finder__form[hidden],
.moto-finder__form[aria-hidden="true"] {
  display: none !important;
}
.moto-finder__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--catalog-muted, #666);
  min-width: 0;
}
.moto-finder__field select {
  width: 100%;
  height: 48px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--catalog-line, #e6e6e6);
  border-radius: 12px;
  background-color: #fff;
  color: var(--catalog-ink, #111);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.2 1.3 6 6.1l4.8-4.8 1.2 1.2L6 8.5 0 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.moto-finder__field select:focus {
  border-color: rgba(255, 60, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 60, 0, 0.12);
}
.moto-finder__field select:disabled {
  opacity: 0.55;
  background-color: #f7f7f7;
  cursor: not-allowed;
}
.moto-finder__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.moto-finder__submit,
.moto-finder__save {
  border: none;
  border-radius: 12px;
  height: 48px;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.moto-finder__submit {
  background: #111;
  color: #fff;
}
.moto-finder__submit:hover {
  background: #ff3c00;
}
.moto-finder__save {
  background: #fff;
  border: 1px solid var(--catalog-line, #e6e6e6);
  color: var(--catalog-ink, #111);
}
.moto-finder__save:hover {
  border-color: rgba(255, 60, 0, 0.55);
  color: #ff3c00;
}

.moto-finder__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.moto-chip {
  border: 1px solid var(--catalog-line, #e6e6e6);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--catalog-ink, #111);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.moto-chip:hover {
  border-color: rgba(255, 60, 0, 0.4);
}
.moto-chip.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}
.moto-finder__meta {
  margin: 0 0 12px;
  color: var(--catalog-muted, #666);
  font-size: 14px;
}
.moto-finder__empty {
  margin: 24px 0;
  color: var(--catalog-muted, #666);
}

@media (max-width: 900px) {
  .moto-finder__form {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .moto-finder__form {
    grid-template-columns: 1fr;
  }
}

.product-fitment {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}
.product-fitment__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.product-fitment__list {
  margin: 0;
  padding-left: 1.1rem;
  color: #444;
  font-size: 14px;
}
.product-fitment__ok {
  color: #1b7a3d;
  font-weight: 600;
}
.product-fitment__no {
  color: #b42318;
  font-weight: 600;
}
.product-fitment__unknown {
  color: #666;
}
.product-fitment__oem {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}
.account-motos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.account-moto-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
}
.account-moto-item.is-primary {
  border-color: rgba(225, 6, 0, 0.35);
  box-shadow: inset 3px 0 0 #e10600;
}
.account-moto-item__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.account-moto-item__info strong {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.account-moto-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e10600;
  background: rgba(225, 6, 0, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}
.account-moto-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.account-moto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: #111;
  color: #fff;
}
.account-moto-btn:hover {
  background: #e10600;
  color: #fff;
}
.account-moto-btn--ghost {
  background: #fff;
  color: #111;
  border-color: rgba(0, 0, 0, 0.18);
}
.account-moto-btn--ghost:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}
.account-moto-btn--danger {
  background: #fff;
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.28);
}
.account-moto-btn--danger:hover {
  background: #b42318;
  color: #fff;
}
.account-moto-btn--link {
  background: #111;
  color: #fff;
}
.account-moto-add {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.account-panel__subtitle {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}
.account-profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
  max-width: 640px;
  margin: 0 0 28px;
}
.account-profile-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.account-profile-form input {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  color: #111;
  min-height: 44px;
  box-sizing: border-box;
}
.account-profile-form input:focus {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 1px;
}
.account-profile-form .account-moto-form__submit {
  grid-column: 1 / -1;
}
.account-profile-msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.account-profile-msg.is-ok {
  color: #0b6e99;
}
.account-profile-msg.is-err {
  color: #e10600;
}
.account-moto-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  max-width: 760px;
  margin: 0 0 12px;
}
.account-moto-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.account-moto-form select {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  color: #111;
  min-height: 44px;
  box-sizing: border-box;
}
.account-moto-form select:focus {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 1px;
}
.account-moto-form select:disabled {
  opacity: 0.55;
  background: #f5f5f5;
}
.account-moto-form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  min-height: 44px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}
.account-moto-form__submit:hover {
  background: #e10600;
}
.account-moto-add__hint {
  margin-bottom: 0;
}
.account-moto-add__hint a {
  color: #e10600;
  font-weight: 600;
}

.account-task-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 0 0 20px;
}

.account-task-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.account-task-form select,
.account-task-form textarea {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: #111;
  background: #fff;
}

.account-task-form textarea {
  resize: vertical;
  min-height: 88px;
}

.account-task-form__submit {
  justify-self: start;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.account-task-form__submit:hover {
  background: #e10600;
}

.account-tasks {
  display: grid;
  gap: 10px;
}

.account-task {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px 12px;
  background: #fafafa;
}

.account-task.is-done {
  opacity: 0.62;
}

.account-task.is-handed {
  background: #fff;
}

.account-task.is-done .account-task__body {
  text-decoration: line-through;
}

.account-task__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.account-task__check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: #111;
}

.account-task__body {
  font-size: 15px;
  line-height: 1.4;
  color: #111;
  white-space: pre-wrap;
}

.account-task__meta {
  margin: 8px 0 0 28px;
  font-size: 12px;
  color: #777;
}

.account-task__transfer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0 28px;
}

.account-task__transfer select {
  flex: 1 1 180px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
}

.account-task__btn,
.account-task__del {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.account-task__btn {
  background: #111;
  color: #fff;
}

.account-task__del {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #999;
}

.account-task__del:hover {
  color: #e10600;
}
