/* Inter подключается один раз в common/header.twig (preconnect + stylesheet) */

:root {
  --b-white: #ffffff;
  --b-light-gray: #f8f9fa;
  --b-text-dark: #1a1a1a;
  --b-text-gray: #707070;
  --b-yellow: #f6d32d;
  --b-shadow: rgba(0, 0, 0, 0.05);
  --b-radius: 20px;
  --b-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.benefits-light {
  background-color: var(--b-white);
  padding: 60px 20px;
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.benefits-wrapper {
  max-width: 1500px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--b-radius);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--b-transition);
  box-shadow: 0 4px 15px var(--b-shadow);
  cursor: default;
}
:
 .benefit-item:hover {
   transform: translateY(-6px);
   background: var(--b-white);
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
   border-color: var(--b-yellow);
 }
:
 .benefit-icon-box {
   width: 54px;
   height: 54px;
   background: var(--b-light-gray);
   border-radius: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   transition: var(--b-transition);
 }
:
 .benefit-icon-box svg {
   width: 28px;
   height: 28px;
   fill: var(--b-text-dark);
   transition: var(--b-transition);
 }
:
 .benefit-item:hover .benefit-icon-box {
   background: var(--b-yellow);
   transform: rotate(-8deg) scale(1.1);
 }
:
 .benefit-item:hover .benefit-icon-box svg {
   fill: #000;
 }
:
 .benefit-info h3 {
   margin: 0;
   font-size: 17px;
   font-weight: 700;
   color: var(--b-text-dark);
   letter-spacing: -0.3px;
   line-height: 1.2;
 }
:
 .benefit-info p {
   margin: 4px 0 0 0;
   font-size: 14px;
   color: var(--b-text-gray);
   font-weight: 400;
 }
:
@media (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
:
@media (max-width: 650px) {
  .benefits-light {
    padding: 40px 15px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .benefit-item {
    padding: 20px;
  }
  .benefit-info h3 {
    font-size: 16px;
  }
}
:
 .benefit-item {
   animation: cardAppear 0.5s ease backwards;
 }
:
@keyframes cardAppear {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
:
.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.15s; }
.benefit-item:nth-child(3) { animation-delay: 0.2s; }
.benefit-item:nth-child(4) { animation-delay: 0.25s; }
.benefit-item:nth-child(5) { animation-delay: 0.3s; }
.benefit-item:nth-child(6) { animation-delay: 0.35s; }

/* ==========================================================================
   Главная: карусель Featured (Swiper) — стиль как у маркетплейсов + акценты Emmet
   ========================================================================== */

.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 2px;
}

.emmet-featured-carousel .emmet-featured-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__image::before {
  content: 'Частями до 12 мес.';
  position: absolute;
  bottom: 6px;
  left: 6px;
  top: auto;
  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;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.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__mini-actions .btn-group > .btn:only-child {
  border-radius: 8px !important;
}

.emmet-featured-carousel .emmet-thumb__mini-actions .btn {
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #f7f7f7;
  color: #444;
}

.emmet-featured-carousel .emmet-thumb__mini-actions .btn:hover {
  border-color: rgba(245, 196, 0, 0.55);
  background: #fffbea;
  color: var(--emmet-shop-yellow-ink);
}

.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: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  width: 100%;
}

.emmet-featured-carousel .emmet-thumb__price {
  flex: 1 1 auto;
  min-width: 0;
}

.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.78rem;
  color: #9a9a9a;
  text-decoration: line-through;
  margin-top: 2px;
}

.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%;
}

.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 {
  left: 0 !important;
  width: 100% !important;
  height: 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

.emmet-featured-carousel .swiper-scrollbar-drag {
  background: var(--emmet-shop-yellow);
  border-radius: 4px;
}

@media (max-width: 767.98px) {
  .emmet-featured-carousel .emmet-featured-swiper-prev,
  .emmet-featured-carousel .emmet-featured-swiper-next {
    display: none;
  }

  .emmet-featured-carousel .emmet-thumb__buy {
    flex-direction: column;
    align-items: stretch;
  }

  .emmet-featured-carousel .emmet-thumb__btn-cart {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   Главная: карусель блога (JSON + Swiper)
   ========================================================================== */

.emmet-blog-carousel-section {
  --emmet-shop-yellow: #f5c400;
  --emmet-shop-yellow-ink: #1a1a1a;
  margin: 1.5rem 0 2rem;
}

.emmet-blog-carousel__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--b-text-dark, #1a1a1a);
}

.emmet-blog-carousel {
  position: relative;
  padding: 0 2px;
}

.emmet-blog-carousel .emmet-blog-swiper {
  overflow: hidden;
  padding-bottom: 40px;
}

.emmet-blog-carousel .swiper-slide {
  height: auto;
}

.emmet-blog-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.emmet-blog-card:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.emmet-blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #fafafa, #f0f0f0);
  overflow: hidden;
}

.emmet-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emmet-blog-card__media--placeholder {
  min-height: 140px;
  background: linear-gradient(135deg, #fff8dc 0%, #f5f5f5 100%);
}

.emmet-blog-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.emmet-blog-card__heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.emmet-blog-card__heading a {
  color: #1a1a1a;
  text-decoration: none;
}

.emmet-blog-card__heading a:hover {
  color: #b38f00;
}

.emmet-blog-card__excerpt {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.emmet-blog-card__more {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  background: var(--emmet-shop-yellow, #f5c400);
  color: var(--emmet-shop-yellow-ink, #1a1a1a);
  box-shadow: 0 3px 12px rgba(245, 196, 0, 0.35);
}

.emmet-blog-carousel .emmet-blog-swiper-prev,
.emmet-blog-carousel .emmet-blog-swiper-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #c9a000 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  top: 38%;
}

.emmet-blog-carousel .swiper-pagination-bullet-active {
  background: var(--emmet-shop-yellow, #f5c400);
}

.emmet-blog-carousel .swiper-scrollbar {
  left: 0 !important;
  width: 100% !important;
  height: 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

.emmet-blog-carousel .swiper-scrollbar-drag {
  background: var(--emmet-shop-yellow, #f5c400);
  border-radius: 4px;
}

@media (max-width: 767.98px) {
  .emmet-blog-carousel .emmet-blog-swiper-prev,
  .emmet-blog-carousel .emmet-blog-swiper-next {
    display: none;
  }
}

