/* Kreilio Sites Shop: Woo-page polish and catalogue mode. Woo pages only. */
.ksites-card { position: relative; }
.ksites-card .wp-block-woocommerce-product-image img { border-radius: var(--wp--custom--radius--md, 8px); }
.ksites-card .wp-block-woocommerce-product-button .wp-block-button__link { min-height: 44px; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--ks-btn-bg, var(--ks-accent)); color: var(--ks-btn-fg, var(--ks-on-accent)); border-radius: var(--wp--custom--radius--sm, 4px); }
.wc-block-components-button:not(.is-link):hover { background: var(--ks-accent-hover); }
.wc-block-components-text-input input, .wc-block-components-select .components-custom-select-control__button, .wc-block-components-textarea textarea { border-color: var(--ks-border-strong); border-radius: var(--wp--custom--radius--sm, 4px); }
.wc-block-components-text-input input:focus-visible, .wc-block-components-button:focus-visible, .wc-block-components-checkbox input:focus-visible { outline: 2px solid var(--ks-focus); outline-offset: 2px; box-shadow: none; }
.wc-block-components-notice-banner.is-error { border-color: var(--ks-error); }
.wc-block-components-notice-banner.is-success { border-color: var(--ks-success); }
.wc-block-components-product-badge, .wc-block-components-sale-badge { background: var(--ks-warn-fill); color: var(--wp--preset--color--text); border: 0; }
.wc-block-components-order-summary, .wc-block-components-totals-wrapper { border-color: var(--ks-border); }
.wc-block-grid__product-onsale, .woocommerce span.onsale, span.onsale { background: var(--ks-warn-fill); color: var(--wp--preset--color--text); border: 0; } /* Woo's white on olive was 3.5:1 */
/* No sideways scroll on phones */
.wc-block-cart-items, .wc-block-components-order-summary-item { max-width: 100%; }
.woocommerce-tabs, .wc-block-components-product-details { overflow-wrap: anywhere; }
/* Catalogue mode: nothing to click (the server refuses purchases too) */
.ksites-catalog .wc-block-add-to-cart-form, .ksites-catalog .wp-block-woocommerce-add-to-cart-form, .ksites-catalog .wp-block-woocommerce-add-to-cart-with-options,
.ksites-catalog .wp-block-woocommerce-product-button, .ksites-catalog .wp-block-woocommerce-mini-cart, .ksites-catalog .wc-block-mini-cart,
.ksites-catalog .ksites-sticky-cart, .ksites-catalog .ksites-side-cart, .ksites-catalog .ksites-free-shipping, .ksites-catalog .ksites-qv__add, .ksites-catalog form.cart { display: none !important; }
/* Omnibus: a reduction is announced once, on the product; the cart repeats no old price */
.wc-block-cart .wc-block-components-product-price__regular, .wc-block-mini-cart .wc-block-components-product-price__regular, .wc-block-checkout .wc-block-components-product-price__regular { display: none; }
.ksites-omnibus { display: block; margin-top: .25rem; font-size: var(--wp--preset--font-size--small); color: var(--ks-text-muted, inherit); font-weight: 400; }
.wc-block-cart .wc-block-components-sale-badge, .wc-block-mini-cart .wc-block-components-sale-badge, .wc-block-checkout .wc-block-components-sale-badge, .wc-block-cart .wc-block-components-product-badge, .wc-block-mini-cart .wc-block-components-product-badge, .wc-block-checkout .wc-block-components-product-badge { display: none; } 
/* Woo's own templates (account, order received) keep the house column: gutter --ks-m-pad, content width */
body.ksites-house.woocommerce-page main.has-global-padding { padding-inline: var(--ks-m-pad); padding-block: var(--wp--custom--section-y, 3rem); }
body.ksites-house.woocommerce-page main.has-global-padding > :where(.alignwide, .alignfull) { max-width: var(--wp--style--global--content-size); }
/* Prices and cart headings read from the left */
body.ksites-house .wc-block-grid__product-price, body.ksites-house .wc-block-components-product-price { text-align: start; }
body.ksites-house .wc-block-cart-items th { text-align: start; }
body.ksites-house .wc-block-cart-items th.wc-block-cart-items__header-total { text-align: right; }
.ksites-example-price { color: var(--ks-text-muted, inherit); font-weight: 400; white-space: normal; }
body.ksites-house .wc-block-product-template .wp-block-post-title { text-align: start; }
body.ksites-house .wc-block-product-template .wp-block-post-title a { color: var(--ks-text, inherit); text-decoration: none; }
body.ksites-house .wc-block-product-template .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
/* Our shop templates sit in the house .ksites-m-grid column; saved Woo blocks asking for .alignwide stay inside it */
.ksites-m-shop .ksites-m-grid { row-gap: var(--wp--preset--spacing--24, 1.5rem); }
.ksites-m-shop .alignwide, .ksites-m-shop .alignfull { max-width: 100%; }
/* Swatches replace the select of the same attribute (view.ts hides it; it still holds the value) */
.variations_form [hidden] { display: none !important; }
/* Add to cart before a variation is chosen: Woo's half opacity fails AA contrast */
.woocommerce button.button.single_add_to_cart_button.disabled, .woocommerce button.button.single_add_to_cart_button.disabled:hover { opacity: 1; background: var(--ks-surface-2); color: var(--ks-text-muted); cursor: not-allowed; }
/* Product page, house sites (design gate 3-5 A): one primary button (the inline Add to basket is the same black as the sticky bar and "Select options", also before an option is chosen: a click still tells which option is missing), breadcrumb and related names read as text, and no 100 px of air above the breadcrumb */
body.ksites-house .woocommerce button.button.single_add_to_cart_button, body.ksites-house .woocommerce button.button.single_add_to_cart_button.disabled, body.ksites-house .woocommerce button.button.single_add_to_cart_button.disabled:hover { background: var(--ks-btn-bg); color: var(--ks-btn-fg); opacity: 1; min-block-size: 48px; border-radius: var(--ks-m-r-btn, var(--wp--custom--radius--sm, 4px)); }
body.ksites-house .woocommerce button.button.single_add_to_cart_button:hover { background: var(--ks-accent-hover, var(--ks-btn-bg)); }
body.ksites-house .woocommerce button.button.single_add_to_cart_button.disabled { cursor: not-allowed; }
body.ksites-house .wc-block-breadcrumbs a, body.ksites-house .woocommerce-breadcrumb a, body.ksites-house .wp-block-woocommerce-related-products .wp-block-post-title a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.ksites-house .ksites-m-shop:has(.wc-block-breadcrumbs, .woocommerce-breadcrumb) { padding-block-start: clamp(1.5rem, 3vw, 2.5rem); }
