/* ЭМИНЕССА — блок товаров на главной.
   Карточка собрана как складская бирка: сверху ровная «полка» с фотографией,
   ниже название и цена. Кромка окалины при наведении — тот же мотив, что в знаке,
   шапке, плитках разделов и шапках таблиц. Правила ограничены главной страницей. */

.front-products {
  background: #F2F4F6;
  padding: 56px 0 60px;
}
.front-products .promo-products { position: relative; }

/* ------------------------------------------------------- переключатель и стрелки */
.front-products .promo-products > .title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 120px;   /* место под стрелки */
  font-size: 15px;
  font-weight: 700;
}
.front-products .promo-products > .title > div {
  padding: 10px 18px;
  border-radius: 8px;
  color: #6C7885;
  line-height: 20px;
  border: 1px solid transparent;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
  margin-left: 0;
}
.front-products .promo-products > .title > div:hover { color: #1E232A; border-color: #DDE2E8; }
.front-products .promo-products > .title .active {
  background: #1E232A;
  color: #fff;
  border-color: #1E232A;
}
/* прежнее подчёркивание активной вкладки больше не нужно */
.front-products .promo-products > .title .active:after { display: none; }

.front-products .promo-products .slick-arrow {
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #DDE2E8;
  background-size: 17px 17px;
  transition: border-color .15s ease, background-color .15s ease;
}
.front-products .promo-products .slick-prev {
  right: 50px;
  border-radius: 8px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E232A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 5-7 7 7 7'/%3E%3C/svg%3E");
}
.front-products .promo-products .slick-next {
  right: 0;
  border-radius: 8px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E232A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
}
.front-products .promo-products .slick-arrow:not(.slick-disabled):hover {
  opacity: 1;
  border-color: #B8321C;
  background-color: #fff;
}
.front-products .promo-products .slick-disabled { opacity: .4; }

/* ------------------------------------------------------------------- карточка */
.front-products .promo-products .slick-list { padding-top: 26px; margin: 0 -7px; }
.front-products .promo-products .slick-slide {
  margin: 0 7px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E4E8ED;
  border-radius: 12px;
  box-shadow: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.front-products .promo-products .slick-slide:hover {
  border-color: #B8321C;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px 0 rgba(16, 20, 30, .10);
}
/* кромка окалины по верху карточки */
.front-products .promo-products .product-item:before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: #B8321C;
  opacity: 0;
  transition: opacity .16s ease;
  z-index: 3;
}
.front-products .promo-products .slick-slide:hover .product-item:before { opacity: 1; }

/* «полка» с фотографией — общая сцена для разных по стилю снимков */
.front-products .promo-products .product-image {
  width: 100%;
  height: 208px;
  background: #F5F7F9;
  border-bottom: 1px solid #E9EDF1;
  box-sizing: border-box;
  padding: 14px;
}
.front-products .promo-products .product-image img {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.front-products .promo-products .product-name {
  padding: 16px 18px 0;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  color: #1E232A;
  min-height: 58px;
  transition: color .15s ease;
}
.front-products .promo-products .slick-slide:hover .product-name { color: #B8321C; }

/* --------------------------------------------------------------------- цена */
.front-products .promo-products .commercial-block {
  margin-top: 0;
  padding: 6px 18px 18px;
  display: block;
}
.front-products .promo-products .price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.front-products .promo-products .price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #1E232A;
  order: 0;
}
.front-products .promo-products .price span { color: #6C7885; font-size: 15px; font-weight: 700; }
.front-products .promo-products .old-price {
  order: 1;
  margin-top: 0;
  height: auto;
  font-size: 0;                 /* прячем слово «Цена:» перед зачёркнутым числом */
  color: #98A1AC;
}
.front-products .promo-products .old-price span {
  font-size: 14px;
  color: #98A1AC;
  text-decoration: line-through;
  text-decoration-color: #C4C9D0;
  padding: 0;
}

/* ------------------------------------------------------------------- метки */
.front-products .promo-products .product-icons {
  top: 12px;
  left: 12px;
  grid-gap: 6px;
  z-index: 2;
}
.front-products .promo-products .promo-icon,
.front-products .promo-products .popular-icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 14px;
  cursor: default;
}
.front-products .promo-products .promo-icon { background: #B8321C; color: #fff; }
.front-products .promo-products .promo-icon:after { content: "Акция"; }
.front-products .promo-products .popular-icon { background: #1E232A; color: #fff; }
.front-products .promo-products .popular-icon:after { content: "Хит"; }

@media only screen and (max-width: 767px) {
  .front-products { padding: 34px 15px 38px; }
  .front-products .promo-products > .title { padding-right: 0; gap: 6px; font-size: 14px; }
  .front-products .promo-products > .title > div { padding: 9px 14px; }
  .front-products .promo-products .slick-list { padding-top: 18px; margin: 0 -5px; }
  .front-products .promo-products .slick-slide { margin: 0 5px; border-radius: 10px; }
  .front-products .promo-products .product-image { height: 160px; padding: 10px; }
  .front-products .promo-products .product-image img { max-height: 138px; }
  .front-products .promo-products .product-name {
    padding: 12px 12px 0; font-size: 13.5px; line-height: 18px; min-height: 46px;
  }
  .front-products .promo-products .commercial-block { padding: 4px 12px 14px; }
  .front-products .promo-products .price { font-size: 18px; }
  .front-products .promo-products .price span { font-size: 13px; }
  .front-products .promo-products .slick-slide:hover { transform: none; }
}

@media only screen and (max-width: 400px) {
  .front-products .promo-products > .title > div { padding: 8px 11px; font-size: 13px; }
  .front-products .promo-products .product-image { height: 140px; }
  .front-products .promo-products .product-image img { max-height: 120px; }
}
