/* Jabkomat – kartičky produktov (homepage, kategórie, súvisiace produkty)
   Ceny, dostupnosť a tlačidlo zladené s detailom produktu. */

/* ---------- Ceny ---------- */
.products .product .p .p-bottom > [data-micro="offer"] {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px;
}
.products .product .p .prices {
  flex: 1 1 auto;
  margin: 0;
  justify-content: flex-end;
  min-width: 0;
}
.products .product .p .price-final {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: #1D1D1F;
}
/* pôvodná cena – menšia, sivá, prečiarknutá, nad aktuálnou cenou */
.products .product .p span.price-standard,
.products .product .p span.price-standard-wrapper {
  order: -1;
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: #6E6E73;
}
.products .product .p .price-standard span {
  font-size: inherit;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.products .product .p .price-standard-label {
  display: none;
}
/* aktuálna cena */
.products .product .p .price-final strong {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1D1D1F;
  white-space: nowrap;
}
/* v zľave červená, rovnako ako na detaile */
.products .product .p .price-final:has(.price-standard) strong,
.products .product .p .prices:has(.price-standard-wrapper) .price-final strong {
  color: #D93A2E;
}

/* ---------- Dostupnosť ---------- */
.products .product .p .p-tools {
  margin: 0 0 4px auto;
  flex: 0 1 auto;
  min-width: 0;
}
.products .product .p .availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 4px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  text-transform: none;
  text-align: right;
  letter-spacing: 0;
  color: #6E6E73;
}
.products .product .p .availability > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
}
/* bodka vo farbe stavu (Skladem zelená, ostatné stavy podľa Shoptetu) */
.products .product .p .availability > span:first-child::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.products .product .p .availability > span[style*="3c840f"] {
  color: #2F7A1A !important;
}
.products .product .p .availability-amount {
  display: inline;
  font-weight: 400;
  color: #6E6E73;
  white-space: nowrap;
}
/* zoznam „Nejprodávanější“ – sklad pod názvom, zarovnaný vľavo */
.products .product .p .p-in .p-in-in .ratings-wrapper .availability {
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
}

/* ---------- Tlačidlo ---------- */
.products .product .p .product-btn .btn,
.products .product .p .btn-cart {
  border-radius: 10px;
  box-shadow: none;
  font-weight: 600;
}
.products .product .p .btn-cart {
  background-color: #2F7A1A;
  border-color: #2F7A1A;
  transition: background-color .15s ease;
}
.products .product .p .btn-cart:hover,
.products .product .p .btn-cart:focus-visible {
  background-color: #2B6E18;
  border-color: #2B6E18;
  box-shadow: none;
}
