/* Единый стиль карточки товара для всех страниц: главная, категории, жанры, поиск, избранное, теги, карусель «Новинки».
   Двойной класс .product-card.product-card повышает специфичность, чтобы перебить старые правила страницы товара. */

.product-card.product-card{
  position:relative;
  border-radius:14px!important;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card.product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 1px 2px rgba(16,24,40,.05),0 10px 26px -14px rgba(16,24,40,.22)!important;
}

/* ссылка-обёртка */
.product-card.product-card>a.product-link{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:space-between;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.product-card.product-card>a.product-link:hover{text-decoration:none}
.product-card.product-card>a.product-link:focus-visible{
  outline:3px solid #107c10;
  outline-offset:-3px;
  border-radius:14px;
}

/* обложка и её ховер */
.product-card.product-card .product-image{overflow:hidden}
.product-card.product-card .product-image img{transition:transform .25s ease}
.product-card.product-card:hover .product-image img{transform:scale(1.04)}

/* бейдж платформы */
.product-card.product-card .product-platform{
  position:absolute;left:7px;bottom:7px;z-index:2;
  padding:3px 7px;border-radius:999px;
  background:rgba(15,23,32,.78);color:#fff;
  font-size:9.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;line-height:1;
  pointer-events:none;box-shadow:0 1px 4px rgba(0,0,0,.28);
}
.product-card.product-card .product-platform.is-xbox-one,
.product-card.product-card .product-platform.is-both{background:rgba(16,124,16,.92)}
.product-card.product-card .product-platform.is-gamepass{background:rgba(15,23,32,.92)}
.product-card.product-card .product-platform.is-xbox-360{background:rgba(71,85,105,.9)}

/* тип товара */
.product-card.product-card .product-kind{
  margin:-2px 0 2px;text-align:center;
  font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#6b7280;
}

/* избранное */
.product-card.product-card .card-fav{
  position:absolute;top:8px;left:8px;z-index:3;
  width:34px;height:34px;border-radius:50%;
  background:rgba(15,23,32,.55);border:0;padding:0;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;
  transition:opacity .18s ease, background .18s ease;
}
.product-card.product-card:hover .card-fav,
.product-card.product-card .card-fav:focus-visible,
.product-card.product-card .card-fav.active{opacity:1}
.product-card.product-card .card-fav:hover{background:rgba(15,23,32,.78)}
.product-card.product-card .card-fav .heart-icon{
  width:18px;height:18px;display:block;background:#fff;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/></svg>") center/contain no-repeat;
}
.product-card.product-card .card-fav.active .heart-icon{background:#f44336}

/* «ХИТ!» */
.product-card.product-card .bestseller-badge{
  position:absolute!important;top:10px!important;right:10px!important;z-index:3;
  border-radius:8px!important;background:linear-gradient(135deg,#ff6b57,#e5453b)!important;
  color:#fff!important;font-weight:700!important;font-size:11px!important;letter-spacing:.02em;
  padding:4px 8px!important;line-height:1.2;box-shadow:0 4px 10px -4px rgba(229,69,59,.8);
}

@media (max-width:768px){
  .product-card.product-card{border-radius:12px!important}
  .product-card.product-card:hover{transform:none}
  .product-card.product-card .card-fav{top:6px;left:6px;width:30px;height:30px;opacity:1}
  .product-card.product-card .card-fav .heart-icon{width:16px;height:16px}
  .product-card.product-card .product-platform{left:6px;bottom:6px;font-size:9px;padding:3px 6px}
  .product-card.product-card .bestseller-badge{top:6px!important;right:6px!important;font-size:10px!important;padding:3px 6px!important}
}
@media (hover:none),(pointer:coarse){
  .product-card.product-card .card-fav{opacity:1}
}
