/* Yalla! Pierogi Vegan — wspólne karty produktów dla Blocksy, WooCommerce i Elementora.
   Nie zmienia markup/koszyka, układu kolumn ani kart pojedynczego produktu.
   Slider własny ma osobny styl w product-slider.css. */
body.yalla-pv-shop-styled {
  --yalla-pv-shop-accent:#284B38;
  --yalla-pv-shop-card-radius:12px;
  --yalla-pv-shop-button-radius:7px;
  --yalla-pv-shop-ratio:auto;
  --yalla-pv-shop-fit:contain;
}

/* Podstawowy katalog Blocksy (karty type-1/2/3) i standardowe ul.products WooCommerce. */
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) {
  box-sizing:border-box;
  background:#fff !important;
  border:1px solid #eeeae1 !important;
  border-radius:var(--yalla-pv-shop-card-radius) !important;
  overflow:hidden;
  padding:0 0 18px !important;
  min-width:0;
  height:100%;
  box-shadow:none !important;
  transition:border-color .18s ease,box-shadow .18s ease;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category):hover {
  border-color:#e3e2d9 !important;
  box-shadow:0 9px 24px rgba(40,75,56,.07) !important;
}
/* Karta pozostaje czytelna, gdy Blocksy ukrywa elementy przy hoverze. */
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) > figure,
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .ct-media-container {
  margin:0;
  overflow:hidden;
  background:#fff;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) > figure a,
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) > a.woocommerce-LoopProduct-link > img {
  background:#fff;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .ct-media-container,
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) > figure .ct-media-container {
  aspect-ratio:var(--yalla-pv-shop-ratio);
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(figure, .ct-media-container) img,
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) > a.woocommerce-LoopProduct-link > img {
  width:100%;
  max-width:100%;
  object-fit:var(--yalla-pv-shop-fit);
  object-position:center;
  background:#fff;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) > a.woocommerce-LoopProduct-link > img {
  aspect-ratio:var(--yalla-pv-shop-ratio);
}
/* Typografia produktu jak w sliderze; zachowujemy linkowanie i tag V. */
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(.woocommerce-loop-product__title, .ct-woo-card-title, .entry-title) {
  color:var(--yalla-pv-shop-accent) !important;
  font-size:18px !important;
  line-height:1.3 !important;
  font-weight:700 !important;
  margin:15px 17px 11px !important;
  min-width:0;
  overflow-wrap:anywhere;
  text-transform:none;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(.woocommerce-loop-product__title, .ct-woo-card-title, .entry-title) a {
  color:inherit !important;
  text-decoration:none;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(.entry-excerpt, .woocommerce-product-details__short-description) {
  color:#665f55 !important;
  margin:0 17px 11px !important;
  font-size:13px !important;
  line-height:1.5;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .price {
  display:block;
  color:var(--yalla-pv-shop-accent) !important;
  font-size:18px !important;
  font-weight:800 !important;
  line-height:1.5 !important;
  margin:0 17px 12px !important;
  text-decoration:none;
  opacity:1 !important;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .price :is(.woocommerce-Price-amount, bdi) {color:inherit !important;font-weight:inherit;}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .price del {opacity:.6;font-size:.88em;}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .price ins {text-decoration:none;}

/* Blocksy grupuje cenę i przyciski w .ct-woo-card-actions. */
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .ct-woo-card-actions {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-end !important;
  gap:0 !important;
  width:100%;
  min-height:0;
  margin-top:auto;
  padding:0 !important;
  background:transparent !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .ct-woo-card-actions .price {width:auto !important;}

/* Wspólne, pełnoszerokie CTA. Nie obejmuje wishlist / quick-view ani przycisku na stronie produktu. */
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(a.button, button.button):is(.add_to_cart_button, .product_type_simple, .product_type_variable, .product_type_grouped, .product_type_external),
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) a.button.product_type_subscription,
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .ct-woo-card-actions > :is(a.button, button.button) {
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px;
  width:calc(100% - 34px) !important;
  max-width:none !important;
  min-height:43px !important;
  height:auto !important;
  margin:0 17px !important;
  padding:11px 12px !important;
  position:relative !important;
  inset:auto !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  text-align:center !important;
  white-space:normal !important;
  border:0 !important;
  border-radius:var(--yalla-pv-shop-button-radius) !important;
  background:var(--yalla-pv-shop-accent) !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.4 !important;
  text-transform:none !important;
  text-decoration:none !important;
  box-shadow:none !important;
  cursor:pointer;
  transition:filter .2s ease !important;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(a.button, button.button):hover,
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(a.button, button.button):focus-visible {
  filter:brightness(1.12);
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(a.button, button.button):focus-visible {
  outline:2px solid var(--yalla-pv-shop-accent);
  outline-offset:3px;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) a.added_to_cart {
  display:block;
  margin:7px 17px 0 !important;
  color:var(--yalla-pv-shop-accent);
  font-size:12px;
}
body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .yalla-pv-vegan-mark {
  width:20px;height:20px;min-width:20px;font-size:11px;
}

/* Gdy WooCommerce wykorzystuje Product Collection Blocks zamiast klasycznych list. */
body.yalla-pv-shop-styled .wc-block-product-template > li.wc-block-product {
  background:#fff;
  border:1px solid #eeeae1;
  border-radius:var(--yalla-pv-shop-card-radius);
  padding:0 0 18px;
  overflow:hidden;
  box-sizing:border-box;
}
body.yalla-pv-shop-styled .wc-block-product-template > li.wc-block-product :is(.wp-block-post-title, .wc-block-components-product-title) {
  margin:15px 17px 11px !important;
  font-size:18px !important;
  font-weight:700 !important;
  color:var(--yalla-pv-shop-accent) !important;
}
body.yalla-pv-shop-styled .wc-block-product-template > li.wc-block-product :is(.wc-block-components-product-price, .wp-block-woocommerce-product-price) {
  margin:0 17px 12px !important;
  font-size:18px !important;
  font-weight:800 !important;
  color:var(--yalla-pv-shop-accent) !important;
}
body.yalla-pv-shop-styled .wc-block-product-template > li.wc-block-product .wc-block-components-product-button {
  margin:0 17px !important;
}
body.yalla-pv-shop-styled .wc-block-product-template > li.wc-block-product .wc-block-components-product-button .wp-block-button__link {
  display:flex !important;align-items:center;justify-content:center;
  min-height:43px;width:100%;
  background:var(--yalla-pv-shop-accent) !important;
  color:#fff !important;
  border:0 !important;border-radius:var(--yalla-pv-shop-button-radius) !important;
  font-size:13px;font-weight:700;line-height:1.4;
}
body.yalla-pv-shop-styled .wc-block-product-template > li.wc-block-product .wc-block-components-product-image img {
  object-fit:var(--yalla-pv-shop-fit);
}

@media(max-width:767px){
  body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) :is(.woocommerce-loop-product__title,.ct-woo-card-title,.entry-title){font-size:16px !important;}
  body.yalla-pv-shop-styled ul.products > li.product:not(.product-category) .price{font-size:17px !important;}
}
@media(prefers-reduced-motion:reduce){
  body.yalla-pv-shop-styled ul.products > li.product:not(.product-category){transition:none !important;}
}
