/**
 * Project-specific overrides for PYM Blinds Child.
 * Keep this file small; heavy modules must stay in the parent theme or plugin.
 */
body.pym-blinds-theme {
  --pym-child-loaded: 1;
}


/* v1.2.5 — child-level safety net for WooCommerce mobile product grids. */
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .pym-product-related .products,
  .pym-shop-landing .products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .pym-product-related .products li.product,
  .pym-shop-landing .products li.product {
    width: auto !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    min-width: 0 !important;
  }
}


/* v1.2.6 — child safety for product grids and primary button contrast. */
body.pym-blinds-theme :where(.btn-primary, .pym-btn--primary, .button.alt):hover,
body.pym-blinds-theme :where(.btn-primary, .pym-btn--primary, .button.alt):disabled,
body.pym-blinds-theme :where(.btn-primary, .pym-btn--primary, .button.alt)[disabled] {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
