/* =========================================================
   SPRINTSHIRT — COMMON / PRODUCT CARD
   Shared .product-miniature styles for all product cards.
   Source: migrated from Anvanto Custom CSS.
========================================================= */

/* ============================================================
   SPRINTSHIRT — КАРТОЧКА ТОВАРА (ИСПРАВЛЕНО — картинки вернулись)
   Куда: Anvanto → Custom CSS, В САМЫЙ НИЗ. Вставить и сохранить.
   Эта версия перекрывает прошлый (сломанный) блок карточки.
   ============================================================ */

.product-miniature{
  background: #fff !important;
  border: 1px solid var(--ss-border, #ececec) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(17,17,26,.05) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.product-miniature:hover{
  transform: translateY(-4px) !important;
  border-color: rgba(229,61,96,.4) !important;
  box-shadow: 0 12px 26px rgba(229,61,96,.12), 0 4px 12px rgba(17,17,26,.06) !important;
}
.product-miniature .thumbnail-container{ margin: 0 !important; }

/* ОБЛАСТЬ КАРТИНКИ — квадрат через aspect-ratio.
   Высота берётся от ширины, не зависит от темы и не схлопывается. */
.product-miniature .thumbnail-container-image{
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  background: #f7f7f9 !important;
  overflow: hidden !important;
}
.product-miniature .product-thumbnail{
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.product-miniature .product-thumbnail img{
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  padding: 14px !important;
  box-sizing: border-box !important;
}

/* сердечко «в избранное» — в правый верхний угол */
.product-miniature .highlighted-informations{
  position: absolute !important;
  top: 10px !important; right: 10px !important; left: auto !important; bottom: auto !important;
  background: transparent !important; border: none !important;
  z-index: 4 !important;
}
.product-miniature .an_wishlist-mini{
  width: 34px !important; height: 34px !important; border-radius: 50% !important; background: #fff !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
}
.product-miniature .quick-view{ display: none !important; }

/* флаги (если есть) — в левый верхний угол */
.product-miniature .product-flags{
  position: absolute !important; top: 10px !important; left: 10px !important;
  margin: 0 !important; padding: 0 !important; z-index: 4 !important;
}

/* длинное описание в карточке убираем */
.product-miniature .an_short_description{ display: none !important; }

/* тело карточки */
.product-miniature .product-description{ padding: 14px 16px 18px !important; }
.product-miniature .product-title{ margin: 0 0 .55rem !important; }
.product-miniature .product-title a{
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  text-decoration: none !important;
  line-height: 1.35 !important;
}
.product-miniature:hover .product-title a{ color: var(--ss-accent, #e53d60) !important; }

/* цена + тег «Od 1 sztuki» */
.product-miniature .product-price-and-shipping{ margin: 0 !important; }
.product-miniature .product-prices-block{
  display: flex !important; align-items: center !important; gap: 10px !important; flex-wrap: wrap !important;
}
.product-miniature .price{
  font-size: 1.15rem !important; font-weight: 800 !important; color: #1f2937 !important;
}
.product-miniature .product-prices-block::after{
  content: "Od 1 sztuki";
  font-size: .7rem !important; font-weight: 700 !important;
  color: var(--ss-accent, #e53d60) !important;
  background: rgba(229,61,96,.1) !important;
  padding: 4px 9px !important; border-radius: 999px !important; white-space: nowrap !important;
}
/* =========================================================
   PRODUCT CARDS — IMAGE FULL COVER FIX
   Убираем поля слева/справа и растягиваем фото как на референсе
   ========================================================= */

/* Карточка товара */
body .products .product-miniature,
body .product-miniature,
body .js-product-miniature {
  border-radius: 22px !important;
  overflow: hidden !important;
}

/* Контейнер картинки */
body .products .product-miniature .thumbnail-container-image,
body .product-miniature .thumbnail-container-image,
body .js-product-miniature .thumbnail-container-image {
  position: relative !important;

  width: 100% !important;
  aspect-ratio: 1 / 1.05 !important;

  margin: 0 !important;
  padding: 0 !important;

  background: #f7f7f7 !important;
  border-radius: 22px 22px 0 0 !important;

  overflow: hidden !important;
}

/* Ссылка с картинкой */
body .products .product-miniature .product-thumbnail,
body .product-miniature .product-thumbnail,
body .js-product-miniature .product-thumbnail {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  display: block !important;

  background: transparent !important;
  border-radius: 22px 22px 0 0 !important;

  overflow: hidden !important;
}

/* Сама картинка — главный фикс */
body .products .product-miniature .product-thumbnail img,
body .product-miniature .product-thumbnail img,
body .js-product-miniature .product-thumbnail img {
  width: 100% !important;
  height: 100% !important;

  min-width: 100% !important;
  min-height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  display: block !important;

  object-fit: cover !important;
  object-position: center center !important;

  border-radius: 22px 22px 0 0 !important;
}

/* Убираем старый внутренний белый контейнер, если тема его оставляет */
body .products .product-miniature .thumbnail-container,
body .product-miniature .thumbnail-container,
body .js-product-miniature .thumbnail-container {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border-radius: 22px !important;

  overflow: hidden !important;
}

/* Если картинка в lazyload-обертке */
body .products .product-miniature picture,
body .product-miniature picture,
body .js-product-miniature picture {
  width: 100% !important;
  height: 100% !important;

  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .products .product-miniature picture img,
body .product-miniature picture img,
body .js-product-miniature picture img {
  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center center !important;
}
/* Приставка "Od" перед ценой в карточке товара */
.product-miniature .product-price-and-shipping .price{
  display: inline-flex !important;
  align-items: baseline !important;
}
.product-miniature .product-price-and-shipping .price::before{
  content: "Od ";
  margin-right: 4px !important;
  color: #000000 !important;
  font-size: .8em !important;
  font-weight: 600 !important;
}