/* === PG-products grid === */
.pgproducts.products-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* vždy 3 sloupce */
  gap: 24px;
  margin: 40px 0;
}

/* placeholder bloky neviditelné, ale zachovávají layout */
.pgproducts .product.placeholder {
  visibility: hidden;
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

/* PG-products kontejner */
.pgproducts {
  min-height: 200px;
  margin: 25px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pgproducts.done {
  min-height: unset;
}

/* jednotlivá karta */
.pgproduct {
  display: flex;
  gap: 20px;
  border: 1px solid #e4e4e4;
  padding: 15px;
  background: #fff;
}

/* obrázek */
.pgproduct-image img {
  max-width: 160px;
  height: auto;
  display: block;
}

/* tělo karty */
.pgproduct-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pgproduct-name {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  margin-bottom: 6px;
}

.pgproducts .name {
  text-align: center;
}

/* Cena */
.pgproducts .price-final {
  font-size: 20px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-top: 8px;
}

/* Shoptet struktura */
.pgproducts .product {
  width: 100%;
  border: 1px solid #e4e4e4 !important;
  box-sizing: border-box !important;
}

.pgproducts .p {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pgproducts .p-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pgproducts .image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pgproducts .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pgproducts .p-image {
  position: relative;
}

/* === CTA tlačítko === */
.pgproducts .btn-cart::before,
.pgproducts .btn-cart i,
.pgproducts .btn-cart svg,
.pgproducts .btn-cart .icon,
.pgproducts .btn-cart .cart-icon {
  display: none !important;
  content: none !important;
}

.pgproducts .btn-cart {
  display: inline-block;               /* menší šířka */
  width: 80px;                          /* fixní šířka */
  margin: 15px auto 0 auto;             /* vycentrované */
  text-align: center;
  background-color: #009901 !important;
  border: 1px solid #000000 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  font-weight: normal !important;
  padding: 6px 0;                       /* menší padding */
  cursor: pointer;
  transition: background-color 0.3s;
}

.pgproducts .btn-cart:hover {
  background-color: #022283 !important;
  border: 1px solid #000000 !important;
  color: #ffffff !important;
}

/* Vycentrování CTA tlačítka */
.pgproducts .p-bottom {
  display: flex;
  justify-content: center;
}

/* === Flag discount === */
.pgproducts .flag-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 60px;
  background-color: #00B6ED;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
}

/* Text ve flagu přímo */
.pgproducts .flag-discount .flag-text {
  color: #ffffff !important;   /* bílé písmo */
  text-align: center;
  font-weight: 600;
}

.pgproducts .price-save {
  color: #ffffff !important;   /* bílé písmo */
}

/* Media queries */
@media (max-width: 767px) {

  .pgproducts.products-block {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    gap: 24px;
  }

  .pgproducts.products-block .product {
    width: 100%;
    max-width: 100%;
  }
  
  .pgproducts.products-block .product .p-bottom {
    margin-bottom: 15px;
  }

  /* placeholdery na mobilu nemají smysl */
  .pgproducts.products-block .product.placeholder {
    display: none !important;
  }

}