/* Clean rebuild styles for Avto-Tehnologiya */
:root {
  --theme-primary-color: #f9a825;
  --theme-secondary-color: #1f2937;
  --body-bg: #f5f6fa;
  --body-color: #111827;
}

body {
  background: var(--body-bg);
  color: var(--body-color);
}

/* Header baseline */
.header,
.header__desktop,
.header__row--01,
.header__row--02,
.header__row--03 {
  background: #1f2937;
  color: #f9fafb;
}

.header a,
.header .header__logo-text,
.header .header__info-link {
  color: #f9fafb;
}

.header__search-btn,
.header__acc-btn,
.header__cart-btn {
  background: #111827;
  color: #f9a825;
  border: 1px solid #374151;
}

.header__cart-counter.js-cart-total,
.header__sticky-counter.js-cart-total {
  background: #f9a825;
  color: #111827;
  border-radius: 11px;
  font-weight: 700;
  padding: 2px 6px;
}

/* Header visual cleanup */
.header--v1 .header__row--01 {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 34px;
}

.header--v1 .header__row--02 {
  background: #0f172a;
  min-height: 64px;
}

.header--v1 .header__row--03 {
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__logo-text {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fafc !important;
}

.header__info-link {
  color: #cbd5e1 !important;
  font-weight: 500;
}

.header__search-control {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 10px;
}

.header__search-input {
  color: #f8fafc !important;
}

.header__search-input::placeholder {
  color: #94a3b8 !important;
}

.header__search-btn {
  border-radius: 8px !important;
  border-color: #475569 !important;
}

.header__search-btn span {
  color: #f9a825;
  font-weight: 700;
}

.header__action-btn,
.header__acc-btn,
.header__cart-btn {
  border-radius: 8px !important;
  border-color: #334155 !important;
  background: #0b1220 !important;
}

.header__action-btn:hover,
.header__acc-btn:hover,
.header__cart-btn:hover,
.header__search-btn:hover {
  border-color: #f9a825 !important;
}

.header__cart-total {
  color: #f8fafc !important;
  font-weight: 700;
}

.header__tags-link,
.header__nav-main a {
  color: #e2e8f0 !important;
  font-weight: 600;
}

.header__tags-link:hover,
.header__nav-main a:hover {
  color: #f9a825 !important;
}

/* City left */
@media (min-width: 1200px) {
  .header__desktop .header__group--info_call {
    margin: 0 auto 0 0 !important;
    justify-content: flex-start !important;
  }
  .header__desktop .header__info-link {
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }
}

/* Remove slash in breadcrumbs */
.breadcrumbs__menu li::after {
  content: none !important;
}

.breadcrumbs__menu {
  display: none !important;
}

/* Hide useless display controls */
.settings .col-xl-auto,
.settings .ui-display {
  display: none !important;
}

/* Home categories */
.home-categories {
  margin: 18px 0 26px;
}

.home-categories__title {
  margin: 0 0 12px;
  font: 700 34px/1.15 'Montserrat', Arial, sans-serif;
  color: #111827;
}

.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-category {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.home-category__icon {
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.home-category__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-category__name {
  display: block;
  padding: 10px;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

/* Home hero/news/map */
.home-hero {
  margin: 14px 0 14px;
}

.home-hero__inner {
  background: linear-gradient(120deg, #0f172a 0%, #1f2937 55%, #334155 100%);
  border-radius: 12px;
  padding: 22px;
  color: #f9fafb;
}

.home-hero__label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.home-hero__title {
  margin: 0 0 10px;
  color: #fff;
}

.home-hero__text {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Hero slider visibility control */
.home-hero-slider {
  position: relative;
  overflow: hidden;
}

.home-hero-slide {
  display: none;
}

.home-hero-slide.is-active {
  display: block;
}

.home-hero-slider__dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.home-hero-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
}

.home-hero-slider__dot.is-active {
  background: #f9a825;
}

.home-news-block {
  margin: 24px 0;
}

.home-news-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.home-news-block__head h2 {
  margin: 0;
  font: 700 28px/1.2 'Montserrat', Arial, sans-serif;
}

.home-news-block__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
}

.home-map-block {
  margin: 24px 0 30px;
}

.home-map-block__banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.home-map-block__frame-wrap {
  min-height: 220px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  position: relative;
  overflow: hidden;
}

.home-map-block__map-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.home-map-block__static {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.home-map-block__marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f9a825;
  box-shadow: 0 0 0 8px rgba(249, 168, 37, 0.25);
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
}

.home-map-block__map-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.82);
  color: #f9fafb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
}

/* Product catalog page */
.catalog-page__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.catalog-page__filters {
  position: sticky;
  top: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

.catalog-page__filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #eef0f2;
  border-radius: 10px;
}

.catalog-page__filter-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.catalog-page__filter-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  position: static;
}

.catalog-page__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-page__card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  overflow: hidden;
}

.catalog-page__image {
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.catalog-page__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-page__info {
  padding: 10px;
}

.catalog-page__name {
  color: #111827;
  font-weight: 600;
  line-height: 1.35;
}

.catalog-page__count {
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

/* Category page filters + products */
.catalog__content.category-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#simple-catalog-filters.simple-catalog-filters--sidebar {
  position: sticky;
  top: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

#simple-catalog-filters .simple-catalog-filters__row {
  grid-template-columns: 1fr !important;
  gap: 8px;
}

#simple-catalog-filters .simple-catalog-filters__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.catalog .products .products__list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.catalog .products .products__list > li,
.catalog .products .products__item {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.catalog .products .products__item-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.catalog .products .products__item-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Footer */
.footer--fallback {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #1f2937;
  color: #f9fafb;
  border-top: 2px solid #f9a825;
}

.footer--fallback .footer__company-text,
.footer--fallback .footer__company-links a {
  color: #e5e7eb;
}

/* Mobile */
@media (max-width: 1199px) {
  .catalog-page__layout,
  .catalog__content.category-layout {
    grid-template-columns: 1fr;
  }

  .catalog-page__filters,
  #simple-catalog-filters.simple-catalog-filters--sidebar {
    position: static;
  }

  .catalog-page__grid,
  .catalog .products .products__list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

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

  .home-news-block__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-map-block__banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html,
  body,
  .app,
  .main {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .header,
  .header__mobile,
  .header__sticky {
    background: #1f2937 !important;
  }

  .header__mobile {
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
    justify-content: space-between;
    gap: 10px;
  }

  .header__logo--wordmark .brand-wordmark {
    color: #f8fafc !important;
    font-size: 20px;
    font-weight: 800;
  }

  .header__mobile .header__search-btn,
  .header__mobile .header__acc-btn,
  .header__mobile .header__cart-btn {
    width: 34px;
    height: 34px;
  }

  .header__mobile .header__cart-btn {
    position: relative !important;
    overflow: visible !important;
  }

  .header__mobile .header__cart-counter.js-cart-total {
    position: absolute !important;
    top: -6px !important;
    right: -10px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #f9a825 !important;
    color: #111827 !important;
    font-size: 10px !important;
    line-height: 18px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }

  .header__mobile .icon-search,
  .header__mobile .icon-acc,
  .header__mobile .icon-cart,
  .header__mobile .icon-nav-catalog,
  .header__mobile .icon-search use,
  .header__mobile .icon-acc use,
  .header__mobile .icon-cart use,
  .header__mobile .icon-nav-catalog use {
    fill: #f9a825 !important;
    color: #f9a825 !important;
  }

  .home-categories__title {
    font-size: 22px;
  }

  .home-categories__grid,
  .catalog-page__grid,
  .catalog .products .products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .home-category__icon {
    min-height: 130px;
  }

  .home-category__name {
    padding: 8px;
    font-size: 13px;
  }

  .home-hero__inner {
    padding: 14px;
  }

  .home-hero {
    margin-top: 10px !important;
  }

  .home-hero__actions .ui-btn {
    width: 100%;
    justify-content: center;
  }

  .home-news-block__head h2 {
    font-size: 22px;
  }

  .home-news-block__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-map-block__banner {
    padding: 12px;
    gap: 10px;
  }

  .home-map-block__frame-wrap {
    min-height: 180px;
  }

  .footer--fallback .container-fluid {
    padding: 14px 12px calc(86px + env(safe-area-inset-bottom));
  }

  .header__mobile-catalog-btn,
  .header__mobile .header__nav,
  .header__mobile .header__nav-btn,
  .header__mobile .icon-nav-catalog,
  .header__mobile .icon-toggle {
    display: none !important;
  }
}

/* Emergency mobile stabilization for homepage/header/footer */
@media (max-width: 767px) {
  .home-categories__grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .home-categories__grid > * {
    flex: 0 0 calc(50% - 5px) !important;
    float: none !important;
    width: calc(50% - 5px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .home-category {
    display: block !important;
    overflow: hidden !important;
  }

  .home-category__icon {
    aspect-ratio: 1 / 1 !important;
    min-height: 120px !important;
  }

  .home-category__icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .header--v1,
  .header__mobile,
  .header__sticky {
    background: #1f2937 !important;
  }

  .footer,
  .footer--fallback {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #1f2937 !important;
  }
}

/* ===== Hotfix: category sidebar filters ===== */
.catalog__wrapper {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.catalog__sidebar {
  position: sticky !important;
  top: 12px !important;
  align-self: start !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 12px !important;
}

.catalog__sidebar .filters-title {
  margin: 0 0 10px !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  color: #111827 !important;
}

.catalog__sidebar .filter-group {
  margin: 0 0 10px !important;
  padding: 10px !important;
  border: 1px solid #eef0f2 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}

.catalog__sidebar .filter-group__title {
  margin: 0 0 8px !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

.catalog__sidebar .price-inputs {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  gap: 8px !important;
  align-items: center !important;
}

.catalog__sidebar .price-input {
  width: 100% !important;
  height: 36px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
}

.catalog__sidebar .filter-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
}

.catalog__sidebar .filter-option {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  align-items: start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
}

.catalog__sidebar .filter-option input[type='checkbox'] {
  position: static !important;
  margin: 2px 0 0 !important;
  width: 16px !important;
  height: 16px !important;
}

.catalog__sidebar .filter-option input[type='radio'] {
  position: static !important;
  margin: 2px 0 0 !important;
  width: 16px !important;
  height: 16px !important;
}

.catalog__sidebar .filter-option span {
  display: block !important;
  line-height: 1.25 !important;
  color: #111827 !important;
}

.catalog__sidebar .filters-reset,
.catalog__sidebar .filters-apply {
  width: 100% !important;
  height: 38px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  border: 1px solid transparent !important;
}

.catalog__sidebar .filters-reset {
  margin: 0 0 8px !important;
  background: #f3f4f6 !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}

.catalog__sidebar .filters-apply {
  background: #f9a825 !important;
  color: #111827 !important;
}

/* ===== Hotfix: map visibility + marker ===== */
.home-map-block__frame-wrap {
  min-height: 320px !important;
}

.home-map-block__frame-wrap iframe {
  display: block !important;
  width: 100% !important;
  min-height: 320px !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 10px !important;
}

.home-map-block__map-link {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.3), transparent 45%) !important;
}

.home-map-block__map-caption {
  pointer-events: auto !important;
}

@media (max-width: 1199px) {
  .catalog__wrapper {
    grid-template-columns: 1fr !important;
  }
  .catalog__sidebar {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 767px) {
  .home-map-block__frame-wrap,
  .home-map-block__frame-wrap iframe {
    min-height: 220px !important;
  }
}

/* ===== Hotfix 2026-02-19: mobile cart badge + 2GIS marker ===== */
@media (max-width: 767px) {
  .header__mobile .header__cart {
    position: relative !important;
  }

  .header__mobile .header__cart-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header__mobile .header__cart-counter.js-cart-total {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    z-index: 8 !important;
    min-width: 16px !important;
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 2px solid #1f2937 !important;
    background: #f9a825 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-indent: -9999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
}

.home-map-block__frame-wrap {
  position: relative !important;
  overflow: hidden !important;
}

.home-map-block__map-link {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: auto !important;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.2), transparent 45%) !important;
}

.home-map-block__marker {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: 2px solid #111827 !important;
  background: #f9a825 !important;
  box-shadow: 0 0 0 10px rgba(249, 168, 37, 0.25) !important;
  transform: translate(-50%, -50%) !important;
}

.home-map-block__map-caption {
  z-index: 4 !important;
}


/* ===== Final tune 2026-02-19: home/header/catalog polish ===== */
.header--v1 .header__row--02 .header__search-control {
  background: #0b1220 !important;
  border: 1px solid #f9a825 !important;
  box-shadow: 0 0 0 1px rgba(249, 168, 37, 0.25) inset !important;
}

.header--v1 .header__row--02 .header__search-input {
  color: #f8fafc !important;
}

.header--v1 .header__row--02 .header__search-input::placeholder {
  color: #94a3b8 !important;
}

.header--v1 .header__row--02 .header__search-btn {
  background: #f9a825 !important;
  color: #111827 !important;
  border: 1px solid #f9a825 !important;
}

.header--v1 .header__row--02 .header__search-btn span {
  color: #111827 !important;
  font-weight: 700 !important;
}

.header--v1 .header__row--01 .header__info-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding-top: 4px !important;
}

.home-hero {
  margin-top: 22px !important;
}

.home-hero .container-fluid {
  padding-top: 6px !important;
}

.home-categories {
  margin-top: 26px !important;
  padding-top: 16px !important;
  border-top: 1px solid #e2e8f0 !important;
}

.products-featured {
  margin-top: 20px !important;
}

.products-featured .products-featured__title {
  display: inline-block !important;
  background: #f9a825 !important;
  color: #111827 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-weight: 800 !important;
}

.home-news-block .section__title {
  display: inline-block !important;
  background: #f9a825 !important;
  color: #111827 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
}

.catalog-page__head {
  margin-bottom: 18px !important;
}

.catalog-page__grid {
  align-items: stretch !important;
}

.catalog-page__card {
  min-height: 100% !important;
}

.catalog-page__image {
  min-height: 210px !important;
}

@media (max-width: 767px) {
  .home-hero {
    margin-top: 16px !important;
  }

  .header--v1 .header__row--01 .header__info-link {
    padding-top: 2px !important;
  }

  .products-featured .products-featured__title,
  .home-news-block .section__title {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
}

/* ===== Final hotfix 2026-02-19b: featured controls, stable map, footer spacing ===== */
.home-featured-controls {
  display: none !important;
  gap: 8px;
  margin-left: 12px;
  vertical-align: middle;
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

.home-featured-controls__btn {
  width: 34px;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 9;
}

.home-featured-controls__btn:hover {
  border-color: #f9a825;
  background: #fef3c7;
}

/* Featured slider desktop fallback (when Swiper is not initialized) */
.products-featured .home-featured-fallback-container {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.products-featured .home-featured-fallback-wrapper {
  display: flex !important;
  transform: none !important;
  width: max-content !important;
  scroll-behavior: smooth;
}

.products-featured .home-featured-fallback-slide {
  flex: 0 0 calc((100% - 50px) / 6) !important;
  width: calc((100% - 50px) / 6) !important;
  max-width: calc((100% - 50px) / 6) !important;
  margin-right: 10px !important;
}

/* Compact cards for "Новые поступления" on desktop */
.products-featured .products__item {
  border-radius: 10px !important;
}

.products-featured .products__item-in {
  padding: 10px !important;
}

.products-featured .products__item-image {
  min-height: 170px !important;
  max-height: 170px !important;
}

.products-featured .products__item-image img {
  max-height: 150px !important;
  object-fit: contain !important;
}

.products-featured .products__item-title {
  min-height: 44px !important;
  max-height: 44px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.products-featured .products__item-price {
  margin: 8px 0 !important;
  font-size: 30px !important;
}

/* Prevent arrow overlap with the next section on desktop */
.products-featured {
  position: relative !important;
  z-index: 12 !important;
}

.products-featured .products-featured__swiper,
.products-featured .swiper-container {
  position: relative !important;
  z-index: 12 !important;
  padding-bottom: 56px !important;
}

.products-featured .swiper-button-prev,
.products-featured .swiper-button-next {
  position: absolute !important;
  top: auto !important;
  bottom: 10px !important;
  z-index: 30 !important;
  pointer-events: auto !important;
}

.products-featured .swiper-button-prev {
  left: 8px !important;
  right: auto !important;
}

.products-featured .swiper-button-next {
  left: 44px !important;
  right: auto !important;
}

.home-news-block {
  position: relative !important;
  z-index: 1 !important;
}

.home-map-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.home-map-block__frame-wrap iframe {
  filter: saturate(1.05) contrast(1.02);
}

.footer--fallback .footer__company {
  padding-top: 10px !important;
}

.footer--fallback .footer__company-links {
  margin-top: 8px !important;
}

.footer--fallback .footer__company-note {
  margin: 12px 0 4px;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .home-featured-controls {
    display: flex;
    margin: 8px 0 0;
  }

  .products-featured .swiper-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .products-featured .swiper-wrapper {
    display: flex !important;
    transform: none !important;
    width: auto !important;
    scroll-behavior: smooth;
  }

  .products-featured .swiper-slide {
    flex: 0 0 78% !important;
    width: 78% !important;
    max-width: 78% !important;
    margin-right: 10px !important;
    scroll-snap-align: start;
  }

  .home-featured-controls__btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 6;
  }

  .footer--fallback .footer__company {
    padding-top: 16px !important;
  }
}

@media (max-width: 1199px) {
  .products-featured .home-featured-fallback-slide {
    flex: 0 0 calc((100% - 32px) / 5) !important;
    width: calc((100% - 32px) / 5) !important;
    max-width: calc((100% - 32px) / 5) !important;
    margin-right: 10px !important;
  }

  /* Prevent mobile/zoom overlap of cart counter in header */
  .header__mobile .header__cart-counter.js-cart-total,
  .header .header__cart-counter.js-cart-total {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .products-featured .home-featured-fallback-slide {
    flex: 0 0 calc((100% - 20px) / 3) !important;
    width: calc((100% - 20px) / 3) !important;
    max-width: calc((100% - 20px) / 3) !important;
    margin-right: 10px !important;
  }
}

/* Catalog page final stabilization */
.catalog-page .catalog-page__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.catalog-page .catalog-page__card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100% !important;
}

.catalog-page .catalog-page__image {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.catalog-page .catalog-page__image img {
  max-width: 100% !important;
  max-height: 200px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.catalog-page .catalog-page__info {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.catalog-page .catalog-page__name {
  min-height: 42px !important;
  line-height: 1.25 !important;
}

.catalog-page .catalog-page__count {
  margin-top: auto !important;
}

.catalog-page {
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}

.catalog-page .catalog-page__grid {
  margin-bottom: 8px !important;
}

@media (max-width: 1199px) {
  .catalog-page .catalog-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .catalog-page .catalog-page__image {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
  }
  .catalog-page .catalog-page__image img {
    max-height: 170px !important;
  }
}

@media (max-width: 767px) {
  .catalog-page .catalog-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-page .catalog-page__image {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }
  .catalog-page .catalog-page__image img {
    max-height: 132px !important;
  }
  .catalog-page .catalog-page__name {
    min-height: 36px !important;
    font-size: 13px !important;
  }
}

/* Category page hard stabilization */
.catalog .catalog__wrapper {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

.catalog .catalog__sidebar {
  grid-column: 1 !important;
  position: sticky !important;
  top: 12px !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  z-index: 5 !important;
}

.catalog .catalog__content {
  grid-column: 2 !important;
  min-width: 0 !important;
}

.catalog #mainContainer {
  min-width: 0 !important;
}

.catalog .products .products__list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.catalog .products .products__list > li {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.catalog .products .products__item {
  height: 100% !important;
}

.catalog .products .products__item-in {
  height: 100% !important;
  min-height: 370px !important;
  display: flex !important;
  flex-direction: column !important;
}

.catalog .products .products__item-image {
  height: 170px !important;
  min-height: 170px !important;
  max-height: 170px !important;
}

.catalog .products .products__item-image img {
  max-height: 150px !important;
  object-fit: contain !important;
}

.catalog .products .products__item-title {
  min-height: 40px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.catalog .products .products__item-price {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.catalog .products .products__item-action {
  margin-top: auto !important;
}

@media (max-width: 1199px) {
  .catalog .catalog__wrapper {
    grid-template-columns: 1fr !important;
  }
  .catalog .catalog__sidebar {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .catalog .catalog__content {
    grid-column: 1 !important;
  }
  .catalog .products .products__list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .catalog .products .products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog .products .products__item-in {
    min-height: 320px !important;
  }
  .catalog .products .products__item-image {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
  }
}

/* Cart/checkout final stabilization */
.cart .cart__wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

.cart .cart__content,
.cart .cart__sidebar {
  min-width: 0 !important;
}

.cart .cart__item {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) 128px 120px 34px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.cart .cart__item-image {
  width: 88px !important;
  height: 88px !important;
}

.cart .cart__item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.cart .cart__item-title {
  line-height: 1.25 !important;
}

.cart .cart__item-price {
  text-align: right !important;
  font-weight: 700 !important;
}

.cart .cart__item-price-piece {
  display: block !important;
  margin-top: 4px !important;
  font-size: 12px !important;
}

.cart .cart__sidebar .ui-btn--fullwidth {
  min-height: 42px !important;
}

.cart .cart__action.cart__request {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #e5e7eb !important;
}

@media (max-width: 1199px) {
  .cart .cart__wrapper {
    grid-template-columns: 1fr !important;
  }

  .cart .cart__item {
    grid-template-columns: 76px minmax(0, 1fr) 100px 34px !important;
    row-gap: 8px !important;
  }

  .cart .cart__item-number {
    grid-column: 2 / 3 !important;
  }

  .cart .cart__item-price {
    grid-column: 3 / 4 !important;
    text-align: right !important;
  }

  .cart .cart__item-action {
    grid-column: 4 / 5 !important;
  }
}

@media (max-width: 767px) {
  .cart .cart__item {
    grid-template-columns: 64px minmax(0, 1fr) 30px !important;
    padding: 10px !important;
  }

  .cart .cart__item-image {
    width: 64px !important;
    height: 64px !important;
  }

  .cart .cart__item-number {
    grid-column: 2 / 3 !important;
  }

  .cart .cart__item-price {
    grid-column: 2 / 3 !important;
    text-align: left !important;
  }

  .cart .cart__item-action {
    grid-column: 3 / 4 !important;
    grid-row: 1 / 4 !important;
    align-self: start !important;
  }
}

/* ===== Final stability pack 2026-02-19c ===== */

/* Keep header dark and compact everywhere */
.header--v1 .header__row--01,
.header--v1 .header__row--02,
.header--v1 .header__row--03,
.header--v1 .header__mobile,
.header--v1 .header__mobile-fixed,
.header--v1 .header__sticky {
  background: #111827 !important;
}

/* City label aligned to left */
.header--v1 .header__row--01 .header__info-link {
  margin-left: 0 !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

/* Hide useless top-left icon on mobile, keep bottom sticky nav only */
@media (max-width: 767px) {
  .header__mobile-catalog-btn,
  .header__nav-btn,
  .header__nav .icon-toggle,
  .header__mobile .icon-nav-catalog,
  .header__mobile .icon-toggle {
    display: none !important;
    visibility: hidden !important;
  }

  .header__mobile {
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
  }

  /* Cart counter stays on icon, no overlap */
  .header__mobile .header__cart,
  .header__mobile .header__cart-btn {
    position: relative !important;
    overflow: visible !important;
  }

  .header__mobile .header__cart-counter.js-cart-total {
    top: -6px !important;
    right: -8px !important;
    min-width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    text-indent: 0 !important;
    font-size: 10px !important;
    padding: 0 4px !important;
  }
}

/* Home hero spacing from header */
.home-hero {
  margin-top: 18px !important;
}

.home-hero .container-fluid {
  padding-top: 0 !important;
}

/* Cart popup: dense, no empty huge blocks */
#cart .header__cart-item,
.header__cart-item {
  min-height: 0 !important;
}

#cart .header__cart-item-in,
.header__cart-item-in {
  display: grid !important;
  grid-template-columns: 90px 1fr auto !important;
  gap: 10px !important;
  align-items: center !important;
}

#cart .header__cart-item-image,
.header__cart-item-image {
  width: 90px !important;
  height: 90px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px !important;
}

#cart .header__cart-item-image img,
.header__cart-item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#cart .ui-btn--fullwidth {
  min-height: 44px !important;
  font-weight: 700 !important;
}

/* Product cards mobile: prevent detached buy row/icons */
@media (max-width: 767px) {
  .products .products__item-action,
  .products .ui-add-to-cart {
    display: block !important;
    width: 100% !important;
  }

  .products .ui-add-to-cart .ui-btn {
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
  }

  .products .products__item-buttons {
    margin-top: 8px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
}

/* Category filters: clean alignment of checkboxes and labels */
.catalog__sidebar .filter-options,
.catalog__sidebar .filter-group {
  overflow: visible !important;
}

.catalog__sidebar .filter-option {
  grid-template-columns: 18px minmax(0, 1fr) !important;
}

.catalog__sidebar .filter-option input[type='checkbox'] {
  display: inline-block !important;
  position: static !important;
  margin: 2px 0 0 !important;
}

/* Checkout page: avoid "skeleton-only" state lock */
.checkout .simplecheckout-loading,
.simplecheckout .simplecheckout-loading {
  display: none !important;
}

/* Footer spacing normalization */
.footer--fallback .footer__company {
  margin-top: 8px !important;
  padding-top: 12px !important;
}

/* Mobile sticky nav normalization: prevent detached left icon */
@media (max-width: 767px) {
  .header__mobile .header__cart-counter.js-cart-total {
    display: none !important;
  }

  .header__sticky {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    z-index: 1200 !important;
    background: #111827 !important;
    border-top: 1px solid #f9a825 !important;
  }

  .header__sticky .header__sticky-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 56px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .header__sticky .header__sticky-text {
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .header__sticky .header__sticky-counter {
    position: absolute !important;
    top: 6px !important;
    right: 18% !important;
    transform: none !important;
  }

  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
  }
}

/* Category overlap fix: sidebar/content isolation */
.catalog .catalog__wrapper {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
  position: relative !important;
}

.catalog .catalog__wrapper > * {
  min-width: 0 !important;
}

.catalog .catalog__sidebar {
  grid-column: 1 !important;
  width: 280px !important;
  max-width: 280px !important;
  min-width: 280px !important;
  float: none !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: 20 !important;
}

.catalog .catalog__content {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  float: none !important;
}

.catalog #mainContainer,
.catalog .products,
.catalog .products .products__list {
  min-width: 0 !important;
  width: 100% !important;
}

.catalog .products .products__list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.catalog .products .products__item,
.catalog .products .products__item-in,
.catalog .products .products__item-action,
.catalog .products .ui-add-to-cart {
  min-width: 0 !important;
  max-width: 100% !important;
}

.catalog .products .ui-btn,
.catalog .products .ui-number {
  max-width: 100% !important;
}

@media (max-width: 1199px) {
  .catalog .catalog__wrapper {
    grid-template-columns: 1fr !important;
  }

  .catalog .catalog__sidebar {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    top: auto !important;
  }

  .catalog .catalog__content {
    grid-column: 1 !important;
  }

  .catalog .products .products__list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .catalog .products .products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final fix: proportional cards in featured blocks */
.products-featured .swiper-wrapper {
  align-items: stretch !important;
}

.products-featured .swiper-slide {
  height: auto !important;
}

.products-featured .products__item {
  height: 100% !important;
}

.products-featured .products__item-in {
  height: 100% !important;
  min-height: 430px !important;
  display: flex !important;
  flex-direction: column !important;
}

.products-featured .products__item-image {
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.products-featured .products__item-image img {
  max-height: 170px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.products-featured .products__item-title {
  min-height: 52px !important;
  max-height: 52px !important;
  margin-top: 8px !important;
  overflow: hidden !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.products-featured .products__item-price {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  min-height: 32px !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
}

.products-featured .products__item-action {
  margin-top: auto !important;
}

.products-featured .products__item-action .ui-btn {
  width: 100% !important;
  min-height: 40px !important;
}

@media (max-width: 1199px) {
  .products-featured .products__item-in {
    min-height: 390px !important;
  }
  .products-featured .products__item-image {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }
  .products-featured .products__item-price {
    font-size: 21px !important;
  }
}

@media (max-width: 767px) {
  .products-featured .products__item-in {
    min-height: 350px !important;
  }
  .products-featured .products__item-image {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }
  .products-featured .products__item-image img {
    max-height: 132px !important;
  }
  .products-featured .products__item-title {
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .products-featured .products__item-price {
    min-height: 28px !important;
    font-size: 19px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
}

/* ===== Final UI stabilization (catalog + checkout + mobile header) ===== */
@media (max-width: 1366px) {
  .header__cart-counter.js-cart-total,
  .header__sticky-counter.js-cart-total {
    display: none !important;
  }
}

.catalog-page {
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}

.catalog-page .catalog-page__grid {
  margin-bottom: 8px !important;
}

.catalog-page .catalog-page__card {
  overflow: hidden !important;
}

.catalog-page .catalog-page__image {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
}

.catalog-page .catalog-page__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.catalog .catalog__wrapper {
  align-items: start !important;
}

.catalog .catalog__sidebar {
  z-index: 2 !important;
}

.catalog .catalog__content {
  z-index: 1 !important;
}

.checkout .simplecheckout,
.checkout .checkout,
.simplecheckout,
#simplecheckout_form {
  opacity: 1 !important;
  visibility: visible !important;
}

.ui-btn.ui-btn--60.ui-btn--primary.ui-btn--fullwidth {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.ui-btn.js-btn-autolabel {
  color: #111827 !important;
  font-weight: 700 !important;
}

.sku .ui-btn--primary,
.sku .ui-add-to-cart .ui-btn,
.sku__action .ui-btn--primary,
#popupprod .ui-btn--primary.ui-btn--fullwidth {
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

/* Product page compact layout (reference-like, less empty space) */
.sku__view-body .row {
  align-items: flex-start !important;
}

.sku__sticky,
.sku__view-body .col-xl-6:first-child {
  min-height: 0 !important;
}

.sku__slide {
  min-height: 280px !important;
  padding: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border-radius: 12px !important;
}

.sku__slide img {
  max-width: 100% !important;
  max-height: 280px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.sku img[data-fallback-logo='1'],
.sku__slide img[data-fallback-logo='1'],
.sku__thumb img[data-fallback-logo='1'] {
  max-height: 190px !important;
  max-width: 80% !important;
  object-fit: contain !important;
}

.sku__action {
  background: #f1f5f4 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
}

.sku__prices,
.sku__price,
.sku__price-new,
.sku__price-old {
  margin-bottom: 8px !important;
}

.sku .ui-add-to-cart {
  display: grid !important;
  gap: 10px !important;
}

.sku .ui-number {
  width: 100% !important;
  max-width: 100% !important;
}

.sku .ui-add-to-cart .ui-btn {
  width: 100% !important;
  min-height: 42px !important;
}

.sku__panel .sku__attr,
.sku__panel .sku__table,
.sku__panel .sku__spec,
.sku__panel .sku__list {
  margin-top: 10px !important;
}

.sku__desc .sku__group {
  margin-bottom: 10px !important;
}

@media (max-width: 767px) {
  .sku__slide {
    min-height: 190px !important;
    padding: 8px !important;
  }

  .sku__slide img {
    max-height: 170px !important;
  }

  .sku img[data-fallback-logo='1'],
  .sku__slide img[data-fallback-logo='1'] {
    max-height: 140px !important;
    max-width: 78% !important;
  }

  .sku__action {
    padding: 10px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }

  .sku .ui-add-to-cart .ui-btn {
    min-height: 40px !important;
  }
}

/* Product page: quick description/specs under buy block */
.sku__quick {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #e5e7eb !important;
}

.sku__quick-desc {
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #374151 !important;
  margin-bottom: 10px !important;
}

.sku__quick-specs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sku__quick-specs li {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: baseline !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.sku__quick-spec-name {
  color: #6b7280 !important;
  font-size: 14px !important;
}

.sku__quick-spec-value {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: right !important;
}

/* Remove empty left area in reviews block when there are no reviews */
.details__comments.is-no-reviews {
  display: block !important;
}

.details__comments.is-no-reviews .details__comments-content {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
}

.details__comments.is-no-reviews .details__comments-sidebar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  flex: 1 1 100% !important;
  margin-left: 0 !important;
}

/* Cart page: reference-like row + summary + subscribe */
.cart .cart__data {
  background: #eaf6f1 !important;
  border: 1px solid #d4ebe2 !important;
  border-radius: 10px !important;
}

.cart .cart__sidebar .ui-btn--primary {
  background: #f9a825 !important;
  border-color: #f9a825 !important;
  color: #fff !important;
}

.cart .cart__item {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
}

.cart .cart__item-title {
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.cart .cart__item-price {
  font-size: 24px !important;
  font-weight: 700 !important;
}

.cart__subscribe {
  margin-top: 16px !important;
  background: #eaf5f2 !important;
  border: 1px solid #d7ebe4 !important;
  border-radius: 10px !important;
  padding: 16px !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 2fr) !important;
  gap: 16px !important;
  align-items: center !important;
}

.cart__subscribe-label {
  font-weight: 600 !important;
  color: #334155 !important;
}

.cart__subscribe-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px !important;
  gap: 12px !important;
}

.cart__subscribe-form .ui-btn {
  background: #f9a825 !important;
  border-color: #f9a825 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .cart .cart__item-desc {
    min-width: 0 !important;
  }

  .cart .cart__item-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .cart .cart__item-price {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .cart__subscribe {
    grid-template-columns: 1fr !important;
  }

  .cart__subscribe-form {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Mobile nav final fix (menu + stable bottom bar + no clipped icons) ===== */
@media (max-width: 767px) {
  .header__mobile {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    overflow: visible !important;
  }

  .header__mobile-catalog-btn,
  .header__mobile .header__nav-btn,
  .header__mobile .icon-nav-catalog,
  .header__mobile .icon-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header__mobile .header__cart,
  .header__mobile .header__cart-btn {
    display: none !important;
  }

  .header__mobile .header__group {
    min-width: 0 !important;
    overflow: visible !important;
  }

  .header__sticky {
    display: grid !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1400 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .header__sticky .header__sticky-btn {
    min-height: 56px !important;
    pointer-events: auto !important;
  }

  .header__sticky .header__sticky-text {
    font-size: 12px !important;
  }

  .cart,
  .cart__wrapper,
  .cart__content,
  .cart__list,
  .cart__item {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .cart__wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .cart__item {
    grid-template-columns: 64px minmax(0, 1fr) 30px !important;
  }

  .cart__item-price,
  .cart__item-number {
    grid-column: 2 / 3 !important;
  }

  .cart__item-action {
    grid-column: 3 / 4 !important;
  }
}

/* Empty cart subscribe strip */
.cart-empty-subscribe {
  margin: 14px auto 0 !important;
  background: #eaf5f2 !important;
  border: 1px solid #d7ebe4 !important;
  border-radius: 10px !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr) !important;
  gap: 12px !important;
  align-items: center !important;
}

.cart-empty-subscribe__text {
  color: #334155 !important;
  font-weight: 600 !important;
}

.cart-empty-subscribe__form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 200px !important;
  gap: 10px !important;
}

.cart-empty-subscribe__form .ui-btn {
  background: #f9a825 !important;
  border-color: #f9a825 !important;
  color: #fff !important;
}

/* Ensure wishlist buttons are always clickable above image links */
.products .products__item-buttons,
.products .products__item-topleft,
.products .ui-btn--favorite,
.sku__addto {
  position: relative !important;
  z-index: 8 !important;
}

/* Compare is disabled project-wide */
.ui-btn--compare,
[data-action="compare"],
.icon-compare,
.icon-nav-compare,
.js-compare-total {
  display: none !important;
}

/* Guest wishlist popup */
.guest-wishlist-popup {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.guest-wishlist-popup__dialog {
  width: min(720px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px 16px 12px;
  position: relative;
}

.guest-wishlist-popup__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.guest-wishlist-popup__title {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 10px;
  color: #111827;
}

.guest-wishlist-popup__empty {
  color: #4b5563;
  padding: 12px 0;
}

.guest-wishlist-popup__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guest-wishlist-popup__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  padding: 10px 0;
}

.guest-wishlist-popup__link {
  color: #111827;
  text-decoration: none;
}

.guest-wishlist-popup__link:hover {
  color: #f59e0b;
}

.guest-wishlist-popup__price {
  color: #111827;
  font-weight: 700;
}

.guest-wishlist-popup__remove {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

@media (max-width: 767px) {
  .cart-empty-subscribe {
    grid-template-columns: 1fr !important;
  }

  .cart-empty-subscribe__form {
    grid-template-columns: 1fr !important;
  }
}

/* Compact product cards + clean logo fallback fit */
.products .products__item-in {
  min-height: 360px !important;
  display: flex !important;
  flex-direction: column !important;
}

.products .products__item-image {
  height: 170px !important;
  min-height: 170px !important;
  max-height: 170px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
}

.products .products__item-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 150px !important;
  object-fit: contain !important;
}

.products .products__item-title,
.products .products__item-name {
  min-height: 44px !important;
  max-height: 44px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.products .products__item-price {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  min-height: 28px !important;
}

.products .products__item-action {
  margin-top: auto !important;
}

.products .products__item-action .ui-btn--primary {
  opacity: 1 !important;
  visibility: visible !important;
}

 .products .products__item-in:hover,
 .products .products__item-in:active,
 .products .products__item-in:hover .products__item-image,
 .products .products__item-in:active .products__item-image {
   transform: none !important;
}

 .products .products__item-in .products__item-buttons,
 .products .products__item .products__item-buttons {
   display: block !important;
}

 .products .products__item-in,
 .products .products__item,
 .products .products__item-in *,
 .products .products__item-image {
   transition: none !important;
   animation: none !important;
   transform: none !important;
}

@media (max-width: 767px) {
  .products .products__item-in {
    min-height: 300px !important;
  }

  .products .products__item-image {
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
  }

  .products .products__item-image img {
    max-height: 115px !important;
  }
}

/* ===== Category filters: large list optimization ===== */
.catalog .catalog__sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-height: calc(100vh - 110px) !important;
  overflow: hidden !important;
}

.catalog .catalog__sidebar .filters-title {
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
}

.catalog .catalog__sidebar .filter-group {
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #eef2f7 !important;
  min-height: 0 !important;
}

.catalog .catalog__sidebar .filter-group:last-of-type {
  border-bottom: 0 !important;
}

.catalog .catalog__sidebar .filter-group__title {
  margin-bottom: 8px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.catalog .catalog__sidebar .filter-options {
  max-height: 190px !important;
  overflow: auto !important;
  padding-right: 4px !important;
  display: grid !important;
  gap: 6px !important;
}

.catalog .catalog__sidebar .filter-options--brands {
  max-height: 280px !important;
}

.catalog .catalog__sidebar .filter-option {
  align-items: start !important;
  gap: 8px !important;
}

.catalog .catalog__sidebar .filter-option span {
  font-size: 13px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.catalog .catalog__sidebar .price-input {
  height: 36px !important;
  padding: 0 10px !important;
}

.catalog .catalog__sidebar .catalog__sidebar-actions {
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid #eef2f7 !important;
  background: #fff !important;
}

.catalog .catalog__sidebar .filters-reset,
.catalog .catalog__sidebar .filters-apply {
  width: 100% !important;
  height: 38px !important;
}

.catalog .catalog__sidebar .filters-reset {
  margin-bottom: 8px !important;
}

@media (max-width: 1199px) {
  .catalog .catalog__sidebar {
    max-height: none !important;
    overflow: visible !important;
  }

  .catalog .catalog__sidebar .filter-options,
  .catalog .catalog__sidebar .filter-options--brands {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ===== Cart mobile hard-fix ===== */
@media (max-width: 767px) {
  .cart .cart__item {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "img title action"
      "img qty qty"
      "img price price" !important;
    gap: 8px 10px !important;
    align-items: start !important;
    padding: 10px !important;
  }

  .cart .cart__item-image {
    grid-area: img !important;
    width: 64px !important;
    height: 64px !important;
  }

  .cart .cart__item-image img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
  }

  .cart .cart__item-title,
  .cart .cart__item-name,
  .cart .cart__item-desc {
    grid-area: title !important;
    min-width: 0 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .cart .cart__item-action,
  .cart .cart__item-remove {
    grid-area: action !important;
    justify-self: end !important;
    align-self: start !important;
  }

  .cart .cart__item-number,
  .cart .ui-number {
    grid-area: qty !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cart .cart__item-price {
    grid-area: price !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .cart .cart__item-price-piece {
    display: none !important;
  }
}

/* ===== Checkout skeleton hard-fix ===== */
.checkout .checkout__step-body:empty {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.checkout .checkout__step,
.checkout .checkout__step-head,
.checkout .checkout__step-title,
.checkout .checkout__step-body {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== Cart final readable layout (desktop + mobile) ===== */
.is-route-checkout-cart .cart .cart__wrapper,
.cart .cart__wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 20px !important;
  align-items: start !important;
}

.is-route-checkout-cart .cart .cart__content,
.is-route-checkout-cart .cart .cart__sidebar,
.cart .cart__content,
.cart .cart__sidebar {
  min-width: 0 !important;
}

.is-route-checkout-cart .cart .cart__item,
.cart .cart__item {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) 140px 130px 32px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.is-route-checkout-cart .cart .cart__item-image,
.cart .cart__item-image {
  grid-column: 1 !important;
}

.is-route-checkout-cart .cart .cart__item-desc,
.cart .cart__item-desc {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
}

.is-route-checkout-cart .cart .cart__item-number,
.cart .cart__item-number {
  grid-column: 3 !important;
}

.is-route-checkout-cart .cart .cart__item-price,
.cart .cart__item-price {
  grid-column: 4 !important;
}

.is-route-checkout-cart .cart .cart__item-action,
.cart .cart__item-action {
  grid-column: 5 !important;
}

.is-route-checkout-cart .cart .cart__item-image,
.cart .cart__item-image {
  width: 84px !important;
  height: 84px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.is-route-checkout-cart .cart .cart__item-image img,
.cart .cart__item-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.is-route-checkout-cart .cart .cart__item-title,
.cart .cart__item-title {
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: #111827 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  max-width: none !important;
  width: 100% !important;
  display: block !important;
}

.is-route-checkout-cart .cart .cart__item-id,
.is-route-checkout-cart .cart .cart__item-text,
.cart .cart__item-id,
.cart .cart__item-text {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.is-route-checkout-cart .cart .cart__item-price,
.cart .cart__item-price {
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color: #111827 !important;
  text-align: right !important;
}

.is-route-checkout-cart .cart .cart__item-price-piece,
.cart .cart__item-price-piece {
  display: none !important;
}

/* Restore purple action color in cart and mini-cart */
.cart .ui-btn--primary,
.cart .cart__sidebar .ui-btn--primary,
#cart .ui-btn--primary,
#cart .ui-btn.ui-btn--fullwidth,
.checkout__data .ui-btn--primary {
  background: #f9a825 !important;
  border-color: #f9a825 !important;
  color: #ffffff !important;
}

@media (max-width: 1199px) {
  .is-route-checkout-cart .cart .cart__wrapper,
  .cart .cart__wrapper {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  .is-route-checkout-cart .cart .cart__item,
  .cart .cart__item {
    grid-template-columns: 64px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "img title action"
      "img qty qty"
      "img price price" !important;
    align-items: start !important;
    gap: 8px 10px !important;
    padding: 10px !important;
  }

  .is-route-checkout-cart .cart .cart__item-image,
  .cart .cart__item-image {
    grid-area: img !important;
    width: 64px !important;
    height: 64px !important;
  }

  .is-route-checkout-cart .cart .cart__item-desc,
  .is-route-checkout-cart .cart .cart__item-title,
  .cart .cart__item-desc,
  .cart .cart__item-title {
    grid-area: title !important;
    min-width: 0 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .is-route-checkout-cart .cart .cart__item-action,
  .is-route-checkout-cart .cart .cart__item-remove,
  .cart .cart__item-action,
  .cart .cart__item-remove {
    grid-area: action !important;
    justify-self: end !important;
  }

  .is-route-checkout-cart .cart .cart__item-number,
  .is-route-checkout-cart .cart .ui-number,
  .cart .cart__item-number,
  .cart .ui-number {
    grid-area: qty !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .is-route-checkout-cart .cart .cart__item-price,
  .cart .cart__item-price {
    grid-area: price !important;
    text-align: left !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
}

/* ===== Cart mobile absolute override (final) ===== */
@media (max-width: 767px) {
  .cart .cart__list > li > .cart__item {
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "img desc action"
      "img qty qty"
      "img price price" !important;
    align-items: start !important;
    gap: 8px 10px !important;
    padding: 10px !important;
  }

  .cart .cart__list > li > .cart__item > .cart__item-image {
    grid-area: img !important;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
  }

  .cart .cart__list > li > .cart__item > .cart__item-desc {
    grid-area: desc !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cart .cart__list > li > .cart__item .cart__item-title {
    font-size: 14px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin: 0 !important;
  }

  .cart .cart__list > li > .cart__item > .cart__item-number {
    grid-area: qty !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .cart .cart__list > li > .cart__item > .cart__item-price {
    grid-area: price !important;
    text-align: left !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .cart .cart__list > li > .cart__item > .cart__item-action {
    grid-area: action !important;
    justify-self: end !important;
    align-self: start !important;
    margin: 0 !important;
  }
}

/* ===== Cart row hard reset (highest priority) ===== */
.cart .cart__content .cart__list > li > .cart__item {
  display: grid !important;
  grid-template-columns: 84px minmax(220px, 1fr) 140px 140px 30px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px !important;
}

.cart .cart__content .cart__list > li > .cart__item > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

.cart .cart__content .cart__list > li > .cart__item > .cart__item-image {
  grid-column: 1 !important;
  width: 84px !important;
  height: 84px !important;
}

.cart .cart__content .cart__list > li > .cart__item > .cart__item-desc {
  grid-column: 2 !important;
  width: 100% !important;
}

.cart .cart__content .cart__list > li > .cart__item > .cart__item-number {
  grid-column: 3 !important;
}

.cart .cart__content .cart__list > li > .cart__item > .cart__item-price {
  grid-column: 4 !important;
  text-align: right !important;
  padding-right: 16px !important;
}

.cart .cart__content .cart__list > li > .cart__item > .cart__item-action {
  grid-column: 5 !important;
}

.cart .cart__content .cart__list > li > .cart__item .cart__item-title,
.cart .cart__content .cart__list > li > .cart__item .cart__item-id,
.cart .cart__content .cart__list > li > .cart__item .cart__item-text {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

@media (max-width: 767px) {
  .cart .cart__content .cart__list > li > .cart__item {
    grid-template-columns: 64px minmax(0, 1fr) 28px !important;
    grid-template-areas:
      "img desc action"
      "img qty qty"
      "img price price" !important;
    align-items: start !important;
    gap: 8px 10px !important;
    padding: 10px !important;
  }

  .cart .cart__content .cart__list > li > .cart__item > .cart__item-image { grid-area: img !important; width: 64px !important; height: 64px !important; }
  .cart .cart__content .cart__list > li > .cart__item > .cart__item-desc { grid-area: desc !important; }
  .cart .cart__content .cart__list > li > .cart__item > .cart__item-number { grid-area: qty !important; }
  .cart .cart__content .cart__list > li > .cart__item > .cart__item-price { grid-area: price !important; text-align: left !important; }
  .cart .cart__content .cart__list > li > .cart__item > .cart__item-price { padding-left: 12px !important; }
  .cart .cart__content .cart__list > li > .cart__item > .cart__item-action { grid-area: action !important; justify-self: end !important; }
}

/* ===== Cart anti-overlap patch (title/image/qty) ===== */
.cart .cart__item-image,
.cart .cart__item-desc,
.cart .cart__item-title,
.cart .cart__item-number,
.cart .cart__item-price,
.cart .cart__item-action {
  position: relative !important;
  z-index: 1 !important;
  float: none !important;
}

.cart .cart__item-image img {
  display: block !important;
}

.cart .cart__item-title {
  margin: 0 0 6px !important;
}

.cart .cart__item-desc {
  padding-left: 12px !important;
}

.cart .cart__item-desc > .cart__item-id,
.cart .cart__item-desc > .cart__item-title,
.cart .cart__item-desc > .cart__item-text {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
}

.cart .cart__item-number .ui-number,
.cart .ui-number {
  width: 96px !important;
  max-width: 100% !important;
  min-width: 96px !important;
}

.cart .cart__item-number .ui-number__input,
.cart .ui-number__input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  text-align: center !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  box-sizing: border-box !important;
  position: relative !important;
  top: 0 !important;
}

@media (max-width: 767px) {
  .cart .cart__item-number .ui-number,
  .cart .ui-number {
    width: 100% !important;
    min-width: 0 !important;
  }

  .cart .cart__item-number .ui-number__input,
  .cart .ui-number__input {
    top: 2px !important;
  }

  .cart .cart__item-desc {
    padding-left: 10px !important;
  }
}

/* ===== Cart visual polish (summary + larger product image) ===== */
.cart .cart__data {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  padding: 16px !important;
  margin-left: 0 !important;
  transform: translateX(-24px) !important;
}

.cart .cart__data-title {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 10px !important;
}

.cart .cart__data-table td,
.cart .cart__data-table th {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  color: #111827 !important;
}

.cart .cart__data-table tfoot th {
  font-size: 18px !important;
  font-weight: 700 !important;
}

.cart .cart__action.cart__request {
  margin-left: 0 !important;
  transform: translateX(-24px) !important;
}

@media (max-width: 767px) {
  .cart .cart__data,
  .cart .cart__action.cart__request {
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

.cart .cart__content .cart__list > li > .cart__item {
  grid-template-columns: 112px minmax(220px, 1fr) 120px 140px 30px !important;
}

.cart .cart__content .cart__list > li > .cart__item > .cart__item-image {
  width: 112px !important;
  height: 112px !important;
}

@media (max-width: 767px) {
  .cart .cart__content .cart__list > li > .cart__item > .cart__item-image,
  .cart .cart__list > li > .cart__item > .cart__item-image {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    max-width: 76px !important;
    max-height: 76px !important;
  }
}
/* Extra guard: disable any residual animation on product cards */
.products .products__item-in,
.products .products__item,
.products .products__item-in *,
.products .products__item-image {
  transition-duration: 0s !important;
  transition-property: none !important;
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}
.products .products__item-in:hover,
.products .products__item-in:focus,
.products .products__item-in:active {
  transform: none !important;
}
.products .products__item,
.products .products__item:hover,
.products .products__item:focus,
.products .products__item:active,
.products .products__item-in,
.products .products__item-in.is-active,
.products .products__item-in.is-hover {
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
}

.products__item-in::before,
.products__item-in::after {
  transition: none !important;
  animation: none !important;
}

/* ============================================
   ПОЛНОЕ ОТКЛЮЧЕНИЕ ДИНАМИКИ НА КАРТОЧКАХ
   ============================================ */

/* Убираем hover-эффект на ::before (box-shadow) */
.products__item:hover .products__item-in:before,
.products__item-in:hover::before {
  opacity: 0 !important;
  box-shadow: none !important;
  transition: none !important;
}

/* Делаем кнопку "Купить" всегда видимой */
.products__item-action {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/* Отключаем hover-эффект на кнопке */
.products__item:hover .products__item-action,
.products__item:hover .products__item-discount {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/* Отключаем z-index на hover */
.products__item:hover,
.products__item-in:hover {
  z-index: auto !important;
}

/* Убираем все эффекты на кнопках слайдера */
.products__item:hover .swiper-images .swiper-prev,
.products__item:hover .swiper-images .swiper-next {
  opacity: 0 !important;
  transform: none !important;
  transition: none !important;
}

/* ============================================
   УВЕЛИЧЕНИЕ КОНТРАСТНОСТИ КОРЗИНЫ
   ============================================ */

/* Артикул товара - более яркий цвет */
.header__cart-item-id {
  color: #666666 !important;
  font-weight: 500 !important;
}

/* Название товара - чёрный цвет */
.header__cart-item-title {
  color: #1a1a1a !important;
  font-weight: 600 !important;
}

.header__cart-item-title:hover {
  color: #f9a825 !important;
}
