.emmet-featured-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 1rem;
  color: var(--b-text-dark, #1a1a1a);
}

.emmet-featured-carousel {
  --emmet-shop-yellow: #f5c400;
  --emmet-shop-yellow-hover: #d9ad00;
  --emmet-shop-yellow-ink: #1a1a1a;
  --emmet-badge-orange: #ff7a1a;
  --emmet-card-radius: 12px;
  position: relative;
  margin-bottom: 1.75rem;
  padding: 0 52px;
}

.emmet-featured-carousel .swiper {
  overflow: hidden;
  padding-bottom: 42px;
}

.emmet-featured-carousel .swiper-slide {
  height: auto;
  display: flex;
}

.emmet-featured-carousel .swiper-slide > .emmet-thumb {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.emmet-featured-carousel .product-thumb.emmet-thumb {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: var(--emmet-card-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 8px 8px 10px;
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    transform 0.2s ease;
}

.emmet-featured-carousel .product-thumb.emmet-thumb:hover {
  border-color: #d0d0d0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.emmet-featured-carousel .emmet-thumb__row {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex: 1;
  height: 100%;
}

.emmet-featured-carousel .emmet-thumb__media {
  width: 100%;
  flex: 0 0 auto;
  position: relative;
}

.emmet-featured-carousel .emmet-thumb__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emmet-featured-carousel .emmet-thumb__install-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 2;
  max-width: calc(100% - 12px);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--emmet-badge-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .emmet-featured-carousel .emmet-thumb__install-badge {
    font-size: 12px;
    line-height: 1.25;
  }
}

.emmet-featured-carousel .emmet-thumb__image img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.emmet-featured-carousel .emmet-thumb__main {
  flex: 1 1 auto;
  padding-top: 8px;
  min-width: 0;
}

.emmet-featured-carousel .emmet-thumb__topline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.emmet-featured-carousel .emmet-thumb__title {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.emmet-featured-carousel .emmet-thumb__title a {
  color: #1a1a1a;
  text-decoration: none;
}

.emmet-featured-carousel .emmet-thumb__title a:hover {
  color: #b38f00;
}

.emmet-featured-carousel .emmet-thumb__mini-actions {
  flex-shrink: 0;
}

.emmet-featured-carousel .emmet-thumb__icon-actions {
  gap: 0.25rem;
}

.emmet-featured-carousel button.emmet-thumb__iconbtn {
  width: 32px;
  height: 32px;
  border-color: #e8e8e8;
  background: #fafafa;
  color: #444;
  box-shadow: none;
}

.emmet-featured-carousel button.emmet-thumb__iconbtn i {
  font-size: 0.85rem;
}

.emmet-featured-carousel button.emmet-thumb__iconbtn:hover {
  border-color: rgba(245, 196, 0, 0.55);
  background: #fffbea;
  color: var(--emmet-shop-yellow-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.emmet-featured-carousel .emmet-thumb__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: 0.75rem;
  margin-bottom: 6px;
  color: #666;
}

/* Код товара в карусели не показываем; рейтинг оставляем */
.emmet-featured-carousel .emmet-thumb__meta-item:not(.emmet-thumb__rating) {
  display: none !important;
}

.emmet-featured-carousel .emmet-thumb__meta:not(:has(.emmet-thumb__rating)) {
  display: none !important;
}

.emmet-featured-carousel .emmet-thumb__meta-item span.text-muted {
  color: #888 !important;
}

.emmet-featured-carousel .emmet-thumb__rating i {
  color: var(--b-yellow, #f6d32d) !important;
}

.emmet-featured-carousel .emmet-thumb__attrs,
.emmet-featured-carousel .emmet-thumb__perks,
.emmet-featured-carousel .emmet-thumb__desc {
  display: none !important;
}

.emmet-featured-carousel .emmet-thumb__price .text-muted.small,
.emmet-featured-carousel .emmet-thumb__price .small.mt-1 {
  display: none !important;
}

.emmet-featured-carousel .emmet-thumb__buy {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #efefef;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  width: 100%;
}

.emmet-featured-carousel .emmet-thumb__price {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

/* Перебиваем глобальный .emmet-thumb__buy-actions { width:100% }, иначе кнопка уезжает на вторую строку */
.emmet-featured-carousel .emmet-thumb__buy-actions {
  flex: 0 1 auto;
  width: auto;
  max-width: 56%;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.emmet-featured-carousel .emmet-thumb__price-new {
  font-size: 1.05rem;
  font-weight: 900;
  color: #111;
  line-height: 1.15;
}

.emmet-featured-carousel .emmet-thumb__price-old {
  font-size: 0.92rem;
  font-weight: 600;
  color: #9a9a9a;
  text-decoration: line-through;
  margin-top: 2px;
}

.emmet-featured-carousel .emmet-thumb__price-compare {
  margin: 0 0 3px;
  font-size: 0.92rem;
}

.emmet-featured-carousel .emmet-thumb__install-btn {
  font-size: 0.68rem;
  line-height: 1.25;
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 6px 8px;
  color: #444;
}

.emmet-featured-carousel .emmet-thumb__install-btn .emmet-thumb__install-sum {
  font-size: 0.72rem;
}

.emmet-featured-carousel .emmet-thumb__cartform {
  flex: 0 0 auto;
  margin: 0;
}

.emmet-featured-carousel .emmet-thumb__btn-cart,
.emmet-featured-carousel .emmet-thumb__btn-cart.btn-primary {
  width: auto;
  min-width: 118px;
  border: none !important;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--emmet-shop-yellow) !important;
  color: var(--emmet-shop-yellow-ink) !important;
  box-shadow: 0 4px 14px rgba(245, 196, 0, 0.45);
  white-space: nowrap;
}

.emmet-featured-carousel .emmet-thumb__btn-cart:hover,
.emmet-featured-carousel .emmet-thumb__btn-cart.btn-primary:hover {
  background: var(--emmet-shop-yellow-hover) !important;
  color: var(--emmet-shop-yellow-ink) !important;
}

.emmet-featured-carousel .emmet-thumb__btn-cart.emmet-btn-added {
  background: #1a7f37 !important;
  color: #fff !important;
  box-shadow: none;
}

.emmet-featured-carousel .emmet-featured-swiper-prev,
.emmet-featured-carousel .emmet-featured-swiper-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #c9a000 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  top: 40%;
  margin-top: 0;
}

.emmet-featured-carousel .emmet-featured-swiper-prev {
  left: 0;
}

.emmet-featured-carousel .emmet-featured-swiper-next {
  right: 0;
}

.emmet-featured-carousel .emmet-featured-swiper-prev::after,
.emmet-featured-carousel .emmet-featured-swiper-next::after {
  font-size: 15px;
  font-weight: 900;
}

.emmet-featured-carousel .swiper-pagination {
  bottom: 22px !important;
}

.emmet-featured-carousel .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #ccc;
  opacity: 1;
}

.emmet-featured-carousel .swiper-pagination-bullet-active {
  background: var(--emmet-shop-yellow);
}

.emmet-featured-carousel .swiper-scrollbar {
  display: none !important;
}

@media (max-width: 767.98px) {
  .emmet-featured-carousel {
    padding: 0 4px;
  }

  .emmet-featured-carousel .emmet-featured-swiper-prev,
  .emmet-featured-carousel .emmet-featured-swiper-next {
    display: none;
  }

  .emmet-featured-carousel .emmet-thumb__buy {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px 8px;
  }

  .emmet-featured-carousel .emmet-thumb__buy-actions {
    max-width: 52%;
  }

  .emmet-featured-carousel .emmet-thumb__btn-cart {
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .emmet-featured-carousel .emmet-thumb__price-new {
    font-size: 0.95rem;
  }
}
