.expert-choice-section {
  margin-bottom: var(--spacing-40);
}

.expert-choice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-32);
}

.expert-choice-header .section-title {
  margin-bottom: 0;
}

.expert-choice-navigation {
  display: flex;
  gap: var(--spacing-10);
}

.expert-choice-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: var(--spacing-4) var(--spacing-14);
  color: var(--color-red);
  border-radius: 0;
  transition: background-color 0.3s;
}

.expert-choice-arrow:hover {
  background-color: var(--color-soft-red-hover);
}

.expert-choice-arrow svg {
  width: var(--spacing-26);
  height: var(--spacing-16);
}

.expert-choice-arrow.prev svg {
  transform: rotate(180deg);
}

.expert-choice-slider {
  overflow: hidden;
}

.expert-choice-slider .swiper-slide {
  height: auto;
}

.expert-choice-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  height: 100%;
}

.expert-choice-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--spacing-298);
  background-color: var(--color-gray);
  border-radius: 0;
  border: 1px solid var(--color-gray);
  margin-bottom: var(--spacing-16);
  object-fit: cover;
}

.expert-choice-image-container--ratio-5-3 {
  height: auto;
  aspect-ratio: var(--aspect-ratio-5-3);
  overflow: hidden;
}

.expert-choice-image-container--ratio-4-4 {
  height: auto;
  aspect-ratio: var(--aspect-ratio-4-4);
  overflow: hidden;
}

.expert-choice-image {
  width: 100%;
  max-height: 100%;
}

.expert-choice-image-container--ratio-5-3 .expert-choice-image,
.expert-choice-image-container--ratio-4-4 .expert-choice-image {
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.theme-hpower .expert-choice-image {
  width: auto;
  max-width: 100%;
}

.expert-choice-title {
  font-size: var(--font-size-18) !important;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--spacing-14);
  line-height: 1.3;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

a .expert-choice-title:hover {
  color: var(--color-red);
}

.expert-choice-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-20) 0;
  flex-grow: 1;
}

.expert-choice-text {
  font-size: var(--font-size-13);
  line-height: 1.5;
  color: var(--color-gray-text);
  margin: 0 0 var(--spacing-20) 0;
  flex-grow: 1;
}

.expert-choice-features li {
  font-size: var(--font-size-13);
  line-height: var(--font-size-14);
  color: var(--color-black);
  margin-bottom: var(--spacing-8);
}

.expert-choice-features li:last-child {
  margin-bottom: 0;
}

.expert-choice-button {
  width: 100%;
  color: var(--color-red);
  border-color: var(--color-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
}

.expert-choice-button-series {
  gap: 0;
}

.expert-choice-button-series .expert-choice-button-arrow {
  margin-left: 10px;
  width: var(--spacing-22);
  height: auto;
  flex-shrink: 0;
}

.expert-choice-button.active {
  gap: 0;
}

.expert-choice-button:hover {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.expert-choice-button:hover svg {
  color: var(--color-white);
}

.expert-choice-button svg {
  width: var(--spacing-20);
  height: var(--spacing-20);
}

.expert-choice-button .catalog-quantity-btn,
.expert-choice-button .catalog-quantity-input {
  display: none !important;
}

.expert-choice-button.active {
  background-color: transparent !important;
  border-color: var(--color-red) !important;
  color: var(--color-red) !important;
  justify-content: center;
}

.expert-choice-button.active .catalog-product-cart-icon,
.expert-choice-button.active .catalog-product-button-text {
  display: none !important;
}

.expert-choice-button.active .catalog-quantity-btn,
.expert-choice-button.active .catalog-quantity-input {
  display: block !important;
}

.expert-choice-button.active:hover {
  background-color: transparent !important;
  color: var(--color-red) !important;
  border-color: var(--color-red) !important;
}

@media (max-width: 767px) {
  body.home-page .expert-choice-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-8);
  }

  body.home-page .expert-choice-navigation {
    align-self: flex-start;
  }
}

@media (max-width: 1023px) {
  .expert-choice-slider .swiper-wrapper {
    /* Показывать 1 карточку на мобильном. */
  }
}

@media (max-width: 360px) {
  .expert-choice-section .expert-choice-header {
    align-items: flex-end;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-20);
  }

  .expert-choice-section .section-title {
    min-width: 0;
    font-size: var(--font-size-20) !important;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .expert-choice-section .expert-choice-navigation {
    flex: 0 0 auto;
    gap: 0;
  }

  .expert-choice-section .expert-choice-arrow {
    padding: var(--spacing-4) var(--spacing-8);
  }
}
