.listing-page--all-products{
  max-width: 1680px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.listing-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  flex-wrap:wrap;
  margin: 0 0 10px;
  padding: 0 0 0 10px;
}

.listing-toolbar__title{
  margin:0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height:1.15;
  font-weight:800;
  color:#222;
}

.listing-toolbar__divider{
  font-size: 26px;
  line-height:1;
  color:#9aa3af;
  font-weight:300;
}

.listing-toolbar__region{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.listing-toolbar__region-label{
  font-size:22px;
  font-weight:700;
  color:#222;
}

.listing-toolbar__select{
  min-width:460px;
  height:40px;
  padding:0 14px;
  border:1px solid #d8dde6;
  border-radius:12px;
  background:#fff;
  font-size:18px;
}

.all-products-grid{
  width:100% !important;
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:12px;
  padding:0 !important;
  align-items:start;
}

.all-products-grid__link{
  display:block;
  color:inherit;
  text-decoration:none;
  min-width:0;
}

.listing-page--all-products .product_card{
  height:100%;
}

.listing-page--all-products .pl-card__title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.6em;
}

.listing-page--all-products .pl-card__descr{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:4.5em;
}

@media (max-width: 1400px){
  .all-products-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px){
  .listing-page--all-products{
    padding-top:8px;
  }

  .listing-toolbar{
    padding:0 0 0 8px;
    gap:10px;
    align-items:flex-start;
  }

  .listing-toolbar__divider{
    display:none;
  }

  .listing-toolbar__title{
    font-size: clamp(20px, 4.6vw, 28px);
  }

  .listing-toolbar__region-label{
    font-size:18px;
  }

  .listing-toolbar__select{
    min-width:340px;
    height:38px;
    font-size:16px;
  }

  .all-products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:8px;
    padding:0 !important;
  }
}

@media (max-width: 520px){
  .listing-toolbar{
    padding:0 6px;
  }

  .listing-toolbar__title-wrap{
    width:100%;
  }

  .listing-toolbar__region{
    width:100%;
    gap:8px;
  }

  .listing-toolbar__select{
    width:100%;
    min-width:0;
  }

  .all-products-grid{
    padding:0 !important;
    gap:8px;
  }
}

/* 2026-05-02: GLOBAL product cards final layout */
.product_card .card-like,
.product_card.hover .card-like,
.product_card.category .card-like{
  top:8px !important;
  right:8px !important;
  bottom:auto !important;
  z-index:8 !important;
}

.product_card .inn-check,
.product_card.hover .inn-check,
.product_card.category .inn-check{
  top:8px !important;
  left:8px !important;
  bottom:auto !important;
  z-index:8 !important;
}

.product_card .product_text_box,
.product_card.hover .product_text_box,
.product_card.category .product_text_box{
  text-align:left !important;
  align-items:flex-start !important;
  padding-left:8px !important;
  padding-right:8px !important;
}

.product_card .pl-card__price,
.product_card .pl-card__title,
.product_card .pl-card__descr,
.product_card.hover .pl-card__price,
.product_card.hover .pl-card__title,
.product_card.hover .pl-card__descr,
.product_card.category .pl-card__price,
.product_card.category .pl-card__title,
.product_card.category .pl-card__descr{
  width:100% !important;
  text-align:left !important;
}

.product_card .pl-card__title,
.product_card.hover .pl-card__title,
.product_card.category .pl-card__title{
  display:-webkit-box !important;
  -webkit-line-clamp:1 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  min-height:auto !important;
  margin-top:10px !important;
  margin-bottom:0 !important;
}

.product_card .pl-card__descr,
.product_card.hover .pl-card__descr,
.product_card.category .pl-card__descr,
.product_card .product_text_box .product.pl-card__descr,
.product_card.hover .product_text_box .product.pl-card__descr,
.product_card.category .product_text_box .product.pl-card__descr{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  min-height:auto !important;
  max-height:2.8em !important;
  margin-top:10px !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

.product_card .pl-card__unit,
.product_card.hover .pl-card__unit,
.product_card.category .pl-card__unit{
  color:#111 !important;
  font-size:.72em !important;
  font-weight:700 !important;
}

/* 2026-05-02: card favorite contrast + lowercase unit */

/* Единица измерения после / — меньше, черная, всегда lowercase */
.product_card .pl-card__unit,
.product_card.hover .pl-card__unit,
.product_card.category .pl-card__unit,
.home-products-wrap .product_card .pl-card__unit,
.all-products-grid .product_card .pl-card__unit{
  color:#111 !important;
  font-size:.72em !important;
  font-weight:700 !important;
  text-transform:lowercase !important;
}

/* Неактивное сердце: белая внутренняя подложка, чтобы было видно на темных фото */
.product_card .card-like:not(.on),
.product_card.hover .card-like:not(.on),
.product_card.category .card-like:not(.on),
.home-products-wrap .product_card .card-like:not(.on),
.all-products-grid .product_card .card-like:not(.on){
  background:#fff !important;
  border-radius:999px !important;
  box-shadow:0 1px 5px rgba(0,0,0,.28) !important;
  opacity:1 !important;
  filter:none !important;
}

/* Картинка сердца внутри кнопки */
.product_card .card-like:not(.on) img,
.product_card.hover .card-like:not(.on) img,
.product_card.category .card-like:not(.on) img,
.home-products-wrap .product_card .card-like:not(.on) img,
.all-products-grid .product_card .card-like:not(.on) img{
  opacity:1 !important;
  filter:none !important;
}

/* Активное сердце не ломаем: остается красным по текущей логике */
.product_card .card-like.on,
.product_card.hover .card-like.on,
.product_card.category .card-like.on,
.home-products-wrap .product_card .card-like.on,
.all-products-grid .product_card .card-like.on{
  background:transparent !important;
  box-shadow:none !important;
  filter:drop-shadow(0 0 2px rgba(255,0,0,.5)) !important;
}

/* 2026-05-02: card favorite no circle white fill */

/* Убираем белый круг у неактивного сердца */
.product_card .card-like:not(.on),
.product_card.hover .card-like:not(.on),
.product_card.category .card-like:not(.on),
.home-products-wrap .product_card .card-like:not(.on),
.all-products-grid .product_card .card-like:not(.on){
  background:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
  opacity:1 !important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.55)) !important;
}

/* Само неактивное сердце делаем белым внутри/контрастным, без круглой подложки */
.product_card .card-like:not(.on) img,
.product_card.hover .card-like:not(.on) img,
.product_card.category .card-like:not(.on) img,
.home-products-wrap .product_card .card-like:not(.on) img,
.all-products-grid .product_card .card-like:not(.on) img{
  opacity:1 !important;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 1px 1px rgba(0,0,0,.85))
    drop-shadow(0 0 1px rgba(0,0,0,.85)) !important;
}

/* Активное сердце оставляем красным по текущей логике */
.product_card .card-like.on,
.product_card.hover .card-like.on,
.product_card.category .card-like.on,
.home-products-wrap .product_card .card-like.on,
.all-products-grid .product_card .card-like.on{
  background:transparent !important;
  box-shadow:none !important;
  filter:drop-shadow(0 0 2px rgba(255,0,0,.5)) !important;
}

.product_card .card-like.on img,
.product_card.hover .card-like.on img,
.product_card.category .card-like.on img,
.home-products-wrap .product_card .card-like.on img,
.all-products-grid .product_card .card-like.on img{
  filter:none !important;
}

/* 2026-05-02: card unit lowercase global + check shadow */

/* Единица цены после / — маленькая, черная, lowercase на RU и FARM */
.product_card .pl-card__unit,
.product_card.hover .pl-card__unit,
.product_card.category .pl-card__unit,
.home-products-wrap .product_card .pl-card__unit,
.all-products-grid .product_card .pl-card__unit{
  color:#111 !important;
  font-size:.72em !important;
  font-weight:700 !important;
  text-transform:lowercase !important;
}

/* Галка: видимость на светлых и темных фото */
.product_card .inn-check img,
.product_card.hover .inn-check img,
.product_card.category .inn-check img,
.home-products-wrap .product_card .inn-check img,
.all-products-grid .product_card .inn-check img{
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,.75))
    drop-shadow(0 0 1px rgba(255,255,255,.9)) !important;
}

/* Проверенная галка — зеленая + контрастная тень */
.product_card .inn-check.ok img,
.product_card.hover .inn-check.ok img,
.product_card.category .inn-check.ok img,
.home-products-wrap .product_card .inn-check.ok img,
.all-products-grid .product_card .inn-check.ok img{
  opacity:1 !important;
  filter:
    brightness(0)
    saturate(100%)
    invert(49%)
    sepia(93%)
    saturate(1352%)
    hue-rotate(95deg)
    brightness(96%)
    contrast(101%)
    drop-shadow(0 1px 2px rgba(0,0,0,.85))
    drop-shadow(0 0 1px rgba(255,255,255,.95)) !important;
}

/* Непроверенная галка — светлая, но тоже видимая */
.product_card .inn-check.no img,
.product_card.hover .inn-check.no img,
.product_card.category .inn-check.no img,
.home-products-wrap .product_card .inn-check.no img,
.all-products-grid .product_card .inn-check.no img{
  opacity:.45 !important;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 1px 2px rgba(0,0,0,.75))
    drop-shadow(0 0 1px rgba(255,255,255,.85)) !important;
}

/* 2026-05-02: GLOBAL unit fix and inn check visibility */

/* Единица цены после / — всегда маленькая, черная, lowercase */
.pl-card__unit,
.product_card .pl-card__unit,
.product_card.hover .pl-card__unit,
.product_card.category .pl-card__unit,
.home-products-wrap .product_card .pl-card__unit,
.all-products-grid .product_card .pl-card__unit{
  color:#111 !important;
  font-size:.72em !important;
  font-weight:700 !important;
  text-transform:lowercase !important;
}

/* Галка ИНН — чуть крупнее и заметнее */
.inn-check,
.product_card .inn-check,
.product_card.hover .inn-check,
.product_card.category .inn-check{
  width:22px !important;
  height:22px !important;
  z-index:9 !important;
}

/* Зеленая галка — жирнее визуально через двойную тень */
.inn-check.ok img,
.product_card .inn-check.ok img,
.product_card.hover .inn-check.ok img,
.product_card.category .inn-check.ok img{
  opacity:1 !important;
  filter:
    brightness(0)
    saturate(100%)
    invert(49%)
    sepia(93%)
    saturate(1352%)
    hue-rotate(95deg)
    brightness(96%)
    contrast(115%)
    drop-shadow(0 1px 2px rgba(0,0,0,.95))
    drop-shadow(0 0 2px rgba(255,255,255,.95)) !important;
}

/* Непроверенная галка — белая/светлая, но без грязи */
.inn-check.no img,
.product_card .inn-check.no img,
.product_card.hover .inn-check.no img,
.product_card.category .inn-check.no img{
  opacity:.55 !important;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 1px 2px rgba(0,0,0,.85))
    drop-shadow(0 0 1px rgba(255,255,255,.9)) !important;
}
