/* Production polish: scoped to the approved M&P theme and native WooCommerce markup. */
:root{--mp-polish-ink:#26323a;--mp-polish-red:#cb2036;--mp-polish-line:#d9dddf;--mp-polish-soft:#f4f5f5}

/* The category grid remains the no-JavaScript fallback. */
.mp-category-controls{display:flex;justify-content:flex-end;gap:.65rem;margin:0 0 1rem}
.mp-category-controls[hidden]{display:none}
.mp-category-controls button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--mp-polish-ink);border-radius:2px;background:#fff;color:var(--mp-polish-ink);font-size:1.2rem;cursor:pointer}
.mp-category-controls button:hover:not(:disabled),.mp-category-controls button:focus-visible{background:var(--mp-polish-ink);color:#fff}
.mp-category-controls button:disabled{opacity:.38;cursor:not-allowed}
.category-tiles .category-tile small{display:none}
.category-tiles.mp-category-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(176px,calc((100% - 4rem)/5));grid-template-columns:none;gap:1rem;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;scrollbar-width:thin;padding:2px 2px 12px}
.mp-category-carousel>.category-tile{scroll-snap-align:start;min-width:0}
.mp-category-carousel .category-tile img{height:130px}
@media(max-width:1120px){.category-tiles.mp-category-carousel{grid-auto-columns:minmax(175px,calc((100% - 3rem)/4))}}
@media(max-width:800px){.category-tiles.mp-category-carousel{grid-auto-columns:minmax(170px,calc((100% - 2rem)/3))}}
@media(max-width:560px){.category-tiles.mp-category-carousel{grid-auto-columns:minmax(152px,76%);gap:.75rem}.mp-category-carousel .category-tile img{height:115px}}

/* Product archive, native pagination and progressively loaded cards. */
.woocommerce .mp-load-more{display:block;min-width:190px;min-height:48px;margin:2rem auto .75rem;border:1px solid var(--mp-polish-ink);border-radius:2px;background:var(--mp-polish-ink);color:#fff;font:700 15px/1.3 var(--sans);cursor:pointer}
.woocommerce .mp-load-more:hover:not(:disabled){background:var(--mp-polish-red);border-color:var(--mp-polish-red)}
.woocommerce .mp-load-more[hidden]{display:none}
.mp-load-status{text-align:center;font-size:.9rem;color:#526068;min-height:1.5em}
.woocommerce nav.woocommerce-pagination{clear:both}

/* Product detail and its genuine WooCommerce fields. */
.single-product .mp-single-product .quantityProduct{display:none}
body.single-product.woocommerce div.product .summary{align-self:start}
body.single-product.woocommerce div.product .summary .price{margin:0 0 1.3rem}
body.single-product.woocommerce div.product form.cart{padding:1.4rem 0;border-top:1px solid var(--mp-polish-line);border-bottom:1px solid var(--mp-polish-line)}
body.single-product.woocommerce div.product form.cart .variations{border:0;margin:0 0 1.1rem}
body.single-product.woocommerce div.product form.cart .variations tr{display:block;margin:0 0 1.2rem}
body.single-product.woocommerce div.product form.cart .variations tr:has(>td[colspan]){margin:0}
body.single-product.woocommerce div.product form.cart .variations tr:has(>td[colspan]:empty){display:none}
body.single-product.woocommerce div.product form.cart .variations th.label{font-size:.9rem;font-weight:700;letter-spacing:.01em;color:var(--mp-polish-ink);padding-bottom:.55rem}
body.single-product.woocommerce div.product form.cart .variations td.value{display:flex;flex-wrap:wrap;gap:.55rem;padding:0}
body.single-product.woocommerce div.product form.cart .variations td.value>div:has(>input[type=radio]){display:flex;align-items:center;position:relative;margin:0}
body.single-product.woocommerce div.product form.cart .variations td.value input[type=radio]{position:absolute;width:1px;height:1px;opacity:0}
body.single-product.woocommerce div.product form.cart .variations td.value input[type=radio]+label{display:block;min-height:44px;padding:.65rem .85rem;border:1px solid #b8c0c4;border-radius:2px;background:#fff;color:var(--mp-polish-ink);font-size:.88rem;line-height:1.4;cursor:pointer}
body.single-product.woocommerce div.product form.cart .variations td.value input[type=radio]:checked+label{border-color:var(--mp-polish-red);box-shadow:inset 0 -3px var(--mp-polish-red);font-weight:700}
body.single-product.woocommerce div.product form.cart .variations td.value input[type=radio]:focus-visible+label{outline:3px solid var(--mp-polish-red);outline-offset:3px}
body.single-product.woocommerce div.product form.cart .variations td.value input[type=radio]:disabled+label{opacity:.45;cursor:not-allowed}
body.single-product.woocommerce div.product form.cart .variations td.value select{min-height:48px;border-color:#b8c0c4}
body.single-product.woocommerce div.product form.cart .reset_variations{display:inline-block;margin-top:.45rem;border:0;background:none;color:var(--mp-polish-ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body.single-product.woocommerce div.product .single_variation_wrap .woocommerce-variation-price{margin:.6rem 0 1rem}
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button{min-height:48px;padding-inline:1.6rem}
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button.disabled,body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:disabled{background:#858d91!important;border-color:#858d91!important;color:#fff!important;cursor:not-allowed;box-shadow:none}
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:not(.disabled):not(:disabled){background:var(--mp-polish-ink);border-color:var(--mp-polish-ink);color:#fff}
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:not(.disabled):not(:disabled):hover{background:var(--mp-polish-red);border-color:var(--mp-polish-red)}
body.single-product.woocommerce div.product form.cart:not(.variations_form){display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem}
body.single-product.woocommerce div.product form.cart:not(.variations_form)>.mp-quantity{flex:0 0 auto;width:max-content!important;margin:0}
body.single-product.woocommerce div.product form.cart:not(.variations_form)>.single_add_to_cart_button{flex:1 1 180px;width:auto!important;max-width:320px;margin:0!important}
body.single-product.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem}
body.single-product.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart>.mp-quantity{flex:0 0 auto;width:max-content!important;margin:0}
body.single-product.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart>.single_add_to_cart_button{flex:1 1 180px;width:auto!important;max-width:320px;margin:0!important}
.single-product .product-support{display:flex;flex-direction:column;align-items:stretch;gap:.75rem;margin:1.4rem 0 1.8rem;padding:1.25rem 1.4rem;background:var(--mp-polish-soft);border-left:4px solid var(--mp-polish-red)}
.single-product .product-support .button{width:100%;min-height:46px;text-align:center}
.single-product .product-support>a{align-self:flex-start;color:var(--mp-polish-ink);font-size:.9rem;text-underline-offset:3px}
.single-product .product-support [data-mp-wishlist],.single-product .product-support .yith-wcwl-add-to-wishlist{display:none!important}
.woocommerce .mp-quantity{display:inline-flex;flex:0 0 auto;align-items:stretch;width:max-content;max-width:100%;min-height:48px;border:1px solid #aeb7bb;border-radius:2px;background:#fff;vertical-align:middle;overflow:hidden}
.woocommerce .mp-quantity .quantity{float:none!important;flex:0 0 58px;width:58px!important;min-width:0!important;margin:0!important;display:flex;align-items:center}
.woocommerce .mp-quantity .quantity::before,.woocommerce .mp-quantity .quantity::after{display:none!important;content:none!important}
.woocommerce .mp-quantity .quantity>a.minus,.woocommerce .mp-quantity .quantity>a.plus{display:none!important}
.woocommerce .mp-quantity .qty{width:58px!important;min-height:46px;border:0!important;border-radius:0!important;padding:.4rem!important;text-align:center;appearance:textfield}
.woocommerce .mp-quantity .qty::-webkit-inner-spin-button,.woocommerce .mp-quantity .qty::-webkit-outer-spin-button{appearance:none;margin:0}
.woocommerce .mp-quantity-button{display:grid;place-items:center;flex:0 0 42px;width:42px!important;min-width:42px;max-width:42px;min-height:46px;padding:0!important;border:0;background:#fff;color:var(--mp-polish-ink);font-size:1.25rem;font-weight:500;cursor:pointer}
.woocommerce .mp-quantity-button:hover:not(:disabled){background:var(--mp-polish-soft)}
.woocommerce .mp-quantity-button:disabled{opacity:.4;cursor:not-allowed}
body.single-product.woocommerce div.product form.cart .mp-quantity{margin:0}

/* WooCommerce tabs and reviews. Keep native tab links and event handling. */
body.single-product.woocommerce div.product .woocommerce-tabs{margin-top:2.2rem;min-width:0;width:100%;max-width:100%}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;flex-direction:row;flex-wrap:nowrap;gap:.35rem;margin:0;padding:.45rem!important;border:0;border-bottom:4px solid var(--mp-polish-red);border-radius:2px 2px 0 0;background:var(--mp-polish-ink);overflow-x:auto;scrollbar-width:thin}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs::before,body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::before,body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li{display:block;flex:0 0 auto;width:auto!important;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;min-height:44px;padding:.75rem 1rem;border:0;border-radius:2px;color:#fff;font:700 .95rem/1.4 var(--sans);white-space:nowrap}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{background:var(--mp-polish-red);color:#fff}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible{outline:3px solid #fff;outline-offset:-3px}
body.single-product.woocommerce div.product .woocommerce-tabs .panel{margin:0 0 2.5rem;padding:1.8rem 1.6rem;color:var(--mp-polish-ink);border:1px solid var(--mp-polish-line);border-top:0;background:#fff}
body.single-product.woocommerce div.product .woocommerce-tabs .panel>h2:first-child{font:700 clamp(1.45rem,2vw,2rem)/1.25 var(--serif);margin:0 0 1rem}
body.single-product.woocommerce div.product .woocommerce-tabs .panel h3{font-size:1.2rem;margin:1.5rem 0 .65rem}
body.single-product.woocommerce div.product .woocommerce-tabs .panel ul,body.single-product.woocommerce div.product .woocommerce-tabs .panel ol{padding-left:1.35rem}
body.single-product.woocommerce div.product .woocommerce-tabs .panel li{margin:.35rem 0}
body.single-product.woocommerce #reviews #comments ol.commentlist li .comment-text{border:1px solid var(--mp-polish-line);border-radius:2px;padding:1.2rem}
body.single-product.woocommerce #review_form #respond{padding:1.5rem;border-top:3px solid var(--mp-polish-red);background:var(--mp-polish-soft)}

/* A real add-to-basket success notice can be read and dismissed. */
.woocommerce .woocommerce-message.mp-floating-notice{position:fixed;z-index:100001;left:clamp(1rem,3vw,2rem);bottom:calc(clamp(1rem,3vw,2rem) + var(--mp-cookie-offset,0px));width:min(520px,calc(100vw - 2rem));margin:0;padding:1.15rem 3rem 1.15rem 3.2rem;box-shadow:0 14px 40px #26323a3d;background:#fff;border:1px solid var(--mp-polish-line);border-top:4px solid var(--mp-polish-red);color:var(--mp-polish-ink)!important}
.woocommerce .woocommerce-message.mp-floating-notice::before{top:1.15rem;color:var(--mp-polish-red)}
.woocommerce .woocommerce-message.mp-floating-notice a.button{float:none;display:inline-block;min-height:40px;margin:.65rem .5rem 0 0;padding:.55rem .9rem;border:1px solid var(--mp-polish-ink)!important;border-radius:2px;background:var(--mp-polish-ink)!important;color:#fff!important;font-weight:700;text-decoration:none;opacity:1;visibility:visible}
.woocommerce .woocommerce-message.mp-floating-notice a.button:hover,.woocommerce .woocommerce-message.mp-floating-notice a.button:focus-visible{border-color:var(--mp-polish-red)!important;background:var(--mp-polish-red)!important;color:#fff!important}
.woocommerce .woocommerce-message.mp-floating-notice>a:not(.button){color:var(--mp-polish-ink)!important;text-decoration:underline}
.mp-notice-dismiss{position:absolute;top:.65rem;right:.65rem;width:36px;height:36px;border:0;background:transparent;color:var(--mp-polish-ink);font-size:1.3rem;cursor:pointer}
.mp-notice-dismiss:hover{background:var(--mp-polish-soft)}
.woocommerce .woocommerce-message.mp-floating-notice{display:flex;flex-direction:column;align-items:flex-start;gap:.8rem;bottom:calc(4.75rem + var(--mp-cookie-offset,0px));padding-left:1.4rem}
.woocommerce .woocommerce-message.mp-floating-notice::before{display:none}
.woocommerce .woocommerce-message.mp-floating-notice a.button{order:1;margin:0;flex:0 0 auto}
@media(max-width:620px){.woocommerce .woocommerce-message.mp-floating-notice{bottom:calc(5.9rem + var(--mp-cookie-offset,0px))}body.single-product.woocommerce div.product form.cart:not(.variations_form)>.single_add_to_cart_button,body.single-product.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart>.single_add_to_cart_button{max-width:none}}
@media(max-width:620px){body.single-product.woocommerce div.product form.cart:not(.variations_form)>.single_add_to_cart_button,body.single-product.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart>.single_add_to_cart_button{flex-basis:140px;min-width:0;padding-inline:.8rem}}

/* Basket: compact variation definitions, usable quantity and matched coupon controls. */
body.woocommerce-cart .woocommerce table.cart{table-layout:auto}
body.woocommerce-cart .woocommerce table.cart td.product-quantity{min-width:160px}
body.woocommerce-cart .woocommerce table.cart td.product-name dl.variation{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.25rem .45rem;margin:.6rem 0;color:#526068;font-size:.82rem}
body.woocommerce-cart .woocommerce table.cart td.product-name dl.variation dt,body.woocommerce-cart .woocommerce table.cart td.product-name dl.variation dd{float:none;clear:none;display:block;margin:0;padding:0;min-width:0;overflow-wrap:anywhere}
body.woocommerce-cart .woocommerce table.cart td.product-name dl.variation dt{font-weight:700;color:var(--mp-polish-ink)}
body.woocommerce-cart .woocommerce table.cart td.product-name dl.variation dd p{margin:0}
body.woocommerce-cart .woocommerce table.cart .coupon{display:flex;flex-wrap:wrap;align-items:stretch;gap:.6rem}
body.woocommerce-cart .woocommerce table.cart .coupon #coupon_code{width:min(260px,100%);min-height:46px;padding:.7rem .9rem;border:1px solid #aeb7bb;border-radius:2px;float:none;margin:0}
body.woocommerce-cart .woocommerce table.cart .coupon .button{min-height:46px;margin:0!important}
body.woocommerce-cart .woocommerce table.cart td.actions>.button{min-height:46px}

/* Checkout and account, without changing WooCommerce's payment widgets. */
body.woocommerce-checkout .woocommerce form.checkout #customer_details .col-1,body.woocommerce-checkout .woocommerce form.checkout #customer_details .col-2{padding:1.5rem;border:1px solid var(--mp-polish-line);background:#fff}
body.woocommerce-checkout .woocommerce form.checkout #customer_details .col-2{margin-top:1rem}
body.woocommerce-checkout .woocommerce form.checkout #customer_details h3,body.woocommerce-checkout .woocommerce #order_review_heading{font:700 clamp(1.4rem,2vw,1.8rem)/1.25 var(--serif);color:var(--mp-polish-ink);margin:0 0 1.2rem}
body.woocommerce-checkout .woocommerce #order_review{padding:1.3rem;border:1px solid var(--mp-polish-line);border-top:3px solid var(--mp-polish-red);background:#fff}
body.woocommerce-checkout .woocommerce #payment{background:var(--mp-polish-soft)}
body.woocommerce-checkout .woocommerce #payment ul.payment_methods{padding:1.1rem}
body.woocommerce-checkout .woocommerce #payment li.wc_payment_method{padding:.5rem 0;border-bottom:1px solid var(--mp-polish-line)}
body.woocommerce-checkout .woocommerce #payment li.wc_payment_method:last-child{border:0}
body.woocommerce-checkout .woocommerce #payment div.form-row{padding:1.1rem}
body.woocommerce-checkout .woocommerce #payment #place_order{min-height:50px;font-size:1rem}
body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,body.woocommerce-checkout .woocommerce form .form-row textarea:focus,body.woocommerce-account .woocommerce form .form-row input.input-text:focus{border-color:var(--mp-polish-ink);outline:2px solid #cb203655;outline-offset:1px}
.woocommerce-account .woocommerce-MyAccount-navigation{border-top-color:var(--mp-polish-red)}
.woocommerce-account .woocommerce-MyAccount-content{min-width:0;overflow-wrap:anywhere}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table a{font-weight:700;text-underline-offset:3px}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button{min-height:44px}
.mp-hardware-search input[type=search]{min-height:48px;background:#fff;color:var(--mp-polish-ink)}
.mp-hardware-search .button{min-height:48px}

@media(max-width:760px){body.woocommerce-checkout .woocommerce form.checkout #customer_details .col-1,body.woocommerce-checkout .woocommerce form.checkout #customer_details .col-2,body.woocommerce-checkout .woocommerce #order_review{padding:1rem}.single-product .product-support{align-items:stretch;flex-direction:column}.single-product .product-support .button{width:100%;text-align:center}}
@media(max-width:620px){body.woocommerce-cart .woocommerce table.shop_table_responsive tr td.product-quantity{min-width:0}body.woocommerce-cart .woocommerce table.cart .coupon{display:grid;grid-template-columns:minmax(0,1fr) auto}body.woocommerce-cart .woocommerce table.cart .coupon #coupon_code{width:100%;min-width:0}body.single-product.woocommerce div.product form.cart .variations td.value{gap:.45rem}body.single-product.woocommerce div.product form.cart .variations td.value input[type=radio]+label{font-size:.82rem}}
