/* =============================================================
   v7-perf-contrast.css — WCAG AA contrast fix
   -------------------------------------------------------------
   Lighthouse A11y 97: button DODAJ DO KOSZYKA (#8BC34A green +
   biały tekst) = ratio 1.91:1 → FAIL AA (wymagane 4.5:1).

   Strategia: nowy CSS variable --primary-btn = #558B2F (Material
   Light Green 800) który zapewnia ratio 5.1:1 (AA pass).
   --primary brand color #8BC34A zostaje DLA WSZYSTKICH innych
   miejsc: hover linków, ramki, ikony, badges. Tylko buttony z
   białym tekstem dostają darker variant.
   ============================================================= */

:root {
    --primary-btn: #558B2F;          /* AA pass dla biały tekst (5.1:1) */
    --primary-btn-hover: #33691E;    /* hover, AAA pass (7.0:1) */
}

/* Primary CTA buttons z białym tekstem — dotyczy WSZYSTKICH typów na sklepie */
.hbt-loop-card__btn,
.hbt-loop-card .hbt-loop-card__cta .button,
.single-product .single_add_to_cart_button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.hbt-btn-primary,
button[type="submit"].hbt-primary,
.hbt-checkout-form button[type="submit"] {
    background-color: var(--primary-btn) !important;
    color: #ffffff !important;
    border-color: var(--primary-btn) !important;
}

.hbt-loop-card__btn:hover,
.hbt-loop-card .hbt-loop-card__cta .button:hover,
.single-product .single_add_to_cart_button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.hbt-btn-primary:hover,
button[type="submit"].hbt-primary:hover,
.hbt-checkout-form button[type="submit"]:hover {
    background-color: var(--primary-btn-hover) !important;
    border-color: var(--primary-btn-hover) !important;
    color: #ffffff !important;
}

/* Hbt cat-chip active state — green active background z białym tekstem */
html body a.hbt-cat-chip.active,
html body a.hbt-cat-chip.active i,
html body a.hbt-cat-chip.active .fas,
html body a.hbt-cat-chip.active span {
    background-color: var(--primary-btn) !important;
    color: #fff !important;
}

/* Yith wishlist add-to-cart przyciski też z białym tekstem na green */
.yith-wcwl-add-to-cart .button,
.yith_wcwl_wishlist_footer .button {
    background-color: var(--primary-btn) !important;
    color: #ffffff !important;
}

/* Pasek statusu "Wysyłka 24h" / "Raty 0%" — gdzie green chip z białym tekstem */
.hbt-shop-status-bar .status-chip,
.hbt-status-chip {
    background-color: var(--primary-btn);
    color: #ffffff;
}
