/**
 * Bigazone WooCommerce visual layer. WooCommerce's data and validation remain native.
 * Includes selectors for both classic markup and WooCommerce Cart/Checkout Blocks.
 */
.bz-shop-layout { min-width: 0; }
.bz-shop-layout--sidebar { display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: 28px; }
.bz-shop-main, .bz-shop-sidebar { min-width: 0; }
.bz-shop-sidebar { padding-top: 18px; }
.bz-shop-sidebar .bz-widget { padding: 0 0 22px; margin-bottom: 20px; border-bottom: 1px solid var(--bz-border); }
.bz-woocommerce :is(.woocommerce,.bz-shop-main) ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 24px 0 35px; padding: 0; }
.bz-woocommerce :is(.woocommerce,.bz-shop-main) ul.products::before, .bz-woocommerce :is(.woocommerce,.bz-shop-main) ul.products::after { content: none; }
.bz-woocommerce :is(.woocommerce,.bz-shop-main) ul.products li.product { min-width: 0; width: auto; float: none; margin: 0; text-align: center; }
.woocommerce ul.products li.product a img { width: 100%; margin-bottom: 13px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .95rem; font-weight: 600; color: var(--bz-ink); }
.woocommerce ul.products li.product .price { color: var(--bz-primary); font-size: .92rem; font-weight: 700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce .button.alt { border: 0; border-radius: var(--bz-radius); padding: 12px 18px; background: var(--bz-primary); color: #fff; font-weight: 700; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce .button.alt:hover { background: var(--bz-primary-hover); color: #fff; }
.woocommerce :is(input, select, textarea) { max-width: 100%; }
.woocommerce form .form-row :is(input.input-text, textarea, select) { width: 100%; padding: 12px; border: 1px solid var(--bz-border); border-radius: var(--bz-radius); }
.woocommerce table.shop_table { border-color: var(--bz-border); border-radius: 0; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { min-width: 0; }
.woocommerce div.product .product_title { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--bz-primary); font-weight: 700; }
.woocommerce div.product .woocommerce-tabs { padding-top: 30px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: #fff; border-radius: 0; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--bz-primary); }
/* My Account: deliberate responsive navigation, no default list bullets. */
.woocommerce-account .woocommerce-MyAccount-navigation { width: 24%; }
.woocommerce-account .woocommerce-MyAccount-content { width: 72%; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bz-border); }
.woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--bz-border); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 15px; color: var(--bz-ink); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--bz-surface); color: var(--bz-primary); }
.woocommerce-MyAccount-content :is(table, input) { max-width: 100%; }
.woocommerce-MyAccount-content table { width: 100%; }
/* Checkout/Cart Blocks (not classic-only). Keep native form behavior. */
.wc-block-components-button:not(.is-link), .wp-block-woocommerce-cart .wc-block-components-button, .wp-block-woocommerce-checkout .wc-block-components-button { border-radius: var(--bz-radius); }
.wc-block-components-button:not(.is-link) { background-color: var(--bz-primary); color: #fff; }
.wc-block-components-button:not(.is-link):hover { background-color: var(--bz-primary-hover); }
.wc-block-components-text-input :is(input, select), .wc-blocks-components-select .wc-blocks-components-select__select { border-color: var(--bz-border); border-radius: var(--bz-radius); }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { max-width: 100%; }
@media (max-width: 1050px) {
    .bz-woocommerce :is(.woocommerce,.bz-shop-main) ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .bz-shop-layout--sidebar { grid-template-columns: 1fr; }
    .bz-shop-sidebar { order: 2; }
    .bz-woocommerce :is(.woocommerce,.bz-shop-main) ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; }
    .woocommerce-account .woocommerce-MyAccount-content { margin-top: 25px; }
}
@media (max-width: 480px) {
    .bz-woocommerce :is(.woocommerce,.bz-shop-main) ul.products { gap: 12px; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .86rem; }
    .woocommerce table.shop_table_responsive { width: 100%; }
    .woocommerce-account .woocommerce-MyAccount-content { overflow-wrap: anywhere; }
}

/* Equal-width focus borders for WooCommerce classic and block fields.
 * Scope to the actual form controls to avoid changing block layout or validation.*/
.woocommerce :is(input.input-text, input.qty, textarea, select):focus,
.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-textarea:focus,
.wc-block-components-combobox-control input:focus {
    border-color: var(--bz-primary);
    outline: none;
    box-shadow: none;
}

/* marketing opt-in is optional, unchecked and keyboard accessible. */
.woocommerce-checkout .bz-marketing-consent{margin:16px 0;padding:12px 14px;border:1px solid var(--bz-border,#d6d6d6);border-radius:5px;max-width:100%;box-sizing:border-box}
.woocommerce-checkout .bz-marketing-consent label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;line-height:1.5;overflow-wrap:anywhere}
.woocommerce-checkout .bz-marketing-consent input{flex:0 0 auto;margin:4px 0 0}
.woocommerce-checkout .bz-marketing-consent input:focus-visible{outline:2px solid currentColor;outline-offset:3px}
