/* Контейнер */
.category-hero-banner {
  --category-hero-accent: #0b5ed7;
  --category-hero-bg1: #08152b;
  --category-hero-bg2: #102844;
}

.category-hero-banner__inner {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, var(--category-hero-bg1), var(--category-hero-bg2));
}

@media (min-width: 992px) {
  .category-hero-banner__inner {
    flex-direction: row;
    min-height: 380px;
  }
}

/* Левая часть (картинка) */
.category-hero-banner__main {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
}

@media (min-width: 992px) {
  .category-hero-banner__main {
    flex-basis: 72%;
    max-width: 72%;
  }
}

.category-hero-banner__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.category-hero-banner__panel.is-active {
  opacity: 1;
  visibility: visible;
}

.category-hero-banner__panel-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 992px) {
  .category-hero-banner__panel-inner {
    flex-direction: row;
    align-items: stretch;
  }
}

.category-hero-banner__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.category-hero-banner__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.category-hero-banner__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Кнопка */
.category-hero-banner__cta-wrap {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 3;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

@media (min-width: 992px) {
  .category-hero-banner__cta-wrap {
    left: 5.5rem;
    bottom: 3.5rem;
  }
}

.category-hero-banner__cta {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Правая колонка (список товаров) */
.category-hero-banner__sidebar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: #f1f3f5;
}

@media (min-width: 992px) {
  .category-hero-banner__sidebar {
    flex-basis: 28%;
    max-width: 28%;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.category-hero-banner__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2.4rem 1rem;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #f1f3f5;
  cursor: pointer;
  text-align: left;
  color: #6c757d;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-hero-banner__tab:last-child {
  border-bottom: none;
}

.category-hero-banner__tab:hover {
  background: #e9ecef;
  color: #343a40;
}

.category-hero-banner__tab.is-active {
  background: #e2e6ea;
  color: #0b2230;
  font-weight: 600;
}

.category-hero-banner__tab-num {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 2rem;
}

.category-hero-banner__tab-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.category-hero-banner__tab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero-banner__tab-title {
  font-size: 0.875rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Прогресс-бар автопереключения */
.category-hero-banner__tab-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  pointer-events: none;
}

.category-hero-banner__tab.is-active .category-hero-banner__tab-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--category-hero-accent);
  transform-origin: left center;
  transform: scaleX(0);
  animation: categoryHeroProgress var(--hero-duration, 7s) linear forwards;
}

@keyframes categoryHeroProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

