/* Protools shop cards, quick view, wishlist / compare, product page buy box. Loads after storefront.css (same tokens). */
:root{--mtc-ok:#1d7a3a;--mtc-ok-bg:#e9f6ed;--mtc-img-bg:#f5f6f7}
.mtc-sico{flex:0 0 auto;display:block}

/* ── card: grey picture panel, badges top-left, icons top-right on hover ── */
ul.products li.product{position:relative}
ul.products li.product .woocommerce-loop-image-link{background:var(--mtc-img-bg)!important;margin:10px 10px 0;border-radius:6px;overflow:hidden;isolation:isolate}
ul.products li.product .woocommerce-loop-image-link img{background:transparent!important;mix-blend-mode:multiply}   /* white photo backgrounds blend into the panel */
ul.products li.product .product-details{padding:12px 16px 16px!important}
.mtc-badges{position:absolute;top:20px;left:20px;z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:6px;pointer-events:none}
.mtc-badge{font:700 12px/1 var(--mtc-display);letter-spacing:.06em;text-transform:uppercase;color:#fff;padding:6px 9px;border-radius:3px}
.mtc-badge-sale{background:var(--mtc-red)}
.mtc-badge-new{background:var(--mtc-ok)}
.mtc-card-tools{position:absolute;top:20px;right:20px;z-index:3;display:flex;flex-direction:column;background:#fff;border-radius:6px;box-shadow:0 4px 16px rgba(0,0,0,.1);opacity:0;transform:translateX(12px);transition:opacity .2s,transform .2s;pointer-events:none}
ul.products li.product:hover .mtc-card-tools,ul.products li.product:focus-within .mtc-card-tools{opacity:1;transform:none;pointer-events:auto}
@media (hover:none){.mtc-card-tools{opacity:1;transform:none;pointer-events:auto;top:16px;right:16px}.mtc-card-tools .mtc-tool{width:36px;height:36px}}
.mtc-tool{border:0;background:transparent;color:#5c636b;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;padding:0;width:42px;height:42px;font:600 15px var(--mtc-body);transition:color .15s}
.mtc-tool:hover,.mtc-tool:focus-visible{color:var(--mtc-red);background:transparent}
.mtc-tool.on{color:var(--mtc-red)}
.mtc-tool.on .mtc-sico-heart{fill:currentColor}
.mtc-card-tools .mtc-tool+.mtc-tool{border-top:1px solid var(--mtc-line)}

/* stock line */
.mtc-stock{display:flex;align-items:center;gap:6px;font:600 14px var(--mtc-body);margin:0 0 6px;color:var(--mtc-ok)}
.mtc-stock .mtc-sico{width:17px;height:17px;stroke-width:2.4}
.mtc-stock.out{color:var(--mtc-red)}

/* quantity + Add to cart: one bar */
.mtc-atc{display:flex;align-items:stretch;border-radius:6px;overflow:hidden;background:var(--mtc-red);min-height:42px}
.mtc-atc .mtc-qty{display:flex;align-items:center;background:var(--mtc-red-dark);flex:0 0 auto}
.mtc-atc .mtc-qty-btn{background:transparent;border:0;color:#fff;width:26px;height:100%;padding:0;font:600 17px/1 var(--mtc-body);cursor:pointer}
.mtc-atc .mtc-qty-btn:hover{background:rgba(0,0,0,.15)}
.mtc-atc .mtc-qty-in{width:30px;height:100%;border:0!important;background:transparent!important;color:#fff!important;text-align:center;padding:0!important;font:600 15px var(--mtc-body);-moz-appearance:textfield;box-shadow:none!important}
.mtc-qty-in::-webkit-outer-spin-button,.mtc-qty-in::-webkit-inner-spin-button,.mtc-qty input.qty::-webkit-outer-spin-button,.mtc-qty input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
ul.products li.product .mtc-atc .button,.mtc-atc .button{flex:1 1 auto;width:auto!important;border-radius:0!important;min-height:42px;margin:0!important;padding:10px 8px!important;font-size:13px!important}
ul.products li.product .mtc-atc .button:hover{background:var(--mtc-dark)!important}
ul.products li.product .mtc-atc+.added_to_cart{margin-top:8px!important}

/* ── header icons ── */
.mtc-head-icon{position:relative;align-self:center;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--mtc-ink);margin:0 2px}
.mtc-head-icon .mtc-sico{width:24px;height:24px}
.mtc-head-icon:hover{color:var(--mtc-red)}
.mtc-count{position:absolute;top:0;right:-2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--mtc-red);color:#fff;font:700 11px/18px var(--mtc-body);text-align:center}
.mtc-count[hidden]{display:none}

/* ── toast ── */
.mtc-toast{position:fixed;left:50%;bottom:24px;z-index:100000;transform:translate(-50%,20px);opacity:0;transition:opacity .25s,transform .25s;background:var(--mtc-dark);color:#fff;padding:12px 18px;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.25);font:500 15px var(--mtc-body);display:flex;gap:14px;align-items:center;max-width:calc(100vw - 32px)}
.mtc-toast.show{opacity:1;transform:translate(-50%,0)}
.mtc-toast a{color:#ff8a8e;font-weight:700;text-decoration:none;white-space:nowrap}

/* ── quick view ── */
html.mtc-modal-open{overflow:hidden}
.mtc-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px}
.mtc-modal[hidden]{display:none}
.mtc-modal-bg{position:absolute;inset:0;background:rgba(10,12,14,.6)}
.mtc-modal-box{position:relative;background:#fff;border-radius:12px;width:min(980px,100%);max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.mtc-modal-x{position:absolute;top:10px;right:10px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:var(--mtc-soft);color:var(--mtc-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.mtc-modal-x:hover{background:var(--mtc-red);color:#fff}
.mtc-modal-body>.mtc-list-wait{padding:60px;text-align:center}
.mtc-qv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;padding:28px}
.mtc-qv-media{position:relative;background:var(--mtc-img-bg);border-radius:8px;padding:20px;align-self:start}
.mtc-qv-media .mtc-badges{top:14px;left:14px}
.mtc-qv-media img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply;display:block}
.mtc-qv-thumbs{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.mtc-qv-thumbs button{width:60px;height:60px;padding:4px;border:1px solid var(--mtc-line);background:#fff;border-radius:6px;cursor:pointer}
.mtc-qv-thumbs img{mix-blend-mode:normal}
.mtc-qv-info{display:flex;flex-direction:column;gap:10px;padding-right:30px}
.mtc-qv-title{font:700 26px/1.15 var(--mtc-display);margin:0}
.mtc-qv-title a{color:var(--mtc-ink);text-decoration:none}
.mtc-qv-info .price{font:700 26px var(--mtc-display);color:var(--mtc-ink);margin:0}
.mtc-qv-info .price ins{color:var(--mtc-red);text-decoration:none}
.mtc-qv-info .price del{color:#9aa0a6;font-size:18px}
.mtc-qv-atc{max-width:340px}
.mtc-qv-atc .button{background:var(--mtc-red)!important;color:#fff!important;font:700 14px var(--mtc-display)!important;text-transform:uppercase;letter-spacing:.05em;display:flex!important;align-items:center;justify-content:center}
.mtc-qv-atc .button.added{background:#1f9d55!important}
.mtc-qv-atc+.added_to_cart{display:none}
.mtc-qv-desc{padding-top:4px;font-size:15px;color:#3d4249}
.mtc-qv-desc h4{font:700 16px var(--mtc-display);text-transform:uppercase;margin:10px 0 6px}
.mtc-qv-desc ul{margin:0 0 0 18px}
.mtc-qv-more a{color:var(--mtc-red);font:700 15px var(--mtc-display);text-transform:uppercase;letter-spacing:.04em;text-decoration:none}
.mtc-qv-info .mtc-sp-brand{position:static;align-self:flex-start;float:none;margin:0}
@media (max-width:760px){.mtc-qv{grid-template-columns:1fr;gap:18px;padding:20px}.mtc-qv-info{padding-right:0}.mtc-qv-title{font-size:22px}}

/* ── product page ── */
.single-product .summary{position:relative}
.mtc-sp-brand{float:right;margin:0 0 10px 16px;border:1px solid var(--mtc-line);border-radius:6px;padding:8px 12px;background:#fff;display:flex;align-items:center}
.mtc-sp-brand img{display:block;max-height:38px;max-width:110px;width:auto;object-fit:contain}
.mtc-sp-code{margin:6px 0 14px;font-size:15px;color:var(--mtc-steel)}
.mtc-sp-code strong{color:var(--mtc-ink)}
.single-product .summary .price{margin-bottom:16px}
.single-product .summary .price del{color:#9aa0a6!important;font-size:22px}
.single-product .summary .price ins{color:var(--mtc-red);text-decoration:none}
.single-product .product_meta .sku_wrapper{display:none!important}   /* shown under the title */
.mtc-buybox{border:1px solid var(--mtc-line);border-radius:8px;padding:20px 20px 0;margin:18px 0 22px;clear:both}
.mtc-buybox p.stock{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:5px;font:600 15px var(--mtc-body)!important;margin:0 0 16px!important}
.mtc-buybox p.stock.in-stock,.mtc-buybox p.stock.available-on-backorder{background:var(--mtc-ok-bg);color:var(--mtc-ok)!important}
.mtc-buybox p.stock.in-stock:before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat}
.mtc-buybox p.stock.out-of-stock{background:#fdeced;color:var(--mtc-red)!important}
.mtc-buybox p.stock.out-of-stock+p.stock.out-of-stock{display:none}
.mtc-buybox form.cart{display:flex!important;flex-wrap:wrap;align-items:stretch;gap:12px;margin:0 0 20px!important}
.mtc-buybox form.cart .quantity{margin:0!important}
.mtc-qty.quantity{display:inline-flex!important;align-items:stretch;border:1px solid var(--mtc-line);border-radius:6px;overflow:hidden;background:var(--mtc-soft)}
.mtc-qty.quantity .mtc-qty-btn{width:38px;border:0;background:transparent;color:var(--mtc-ink);font:600 18px/1 var(--mtc-body);cursor:pointer;padding:0}
.mtc-qty.quantity .mtc-qty-btn:hover{background:var(--mtc-line)}
.mtc-qty.quantity input.qty{width:52px!important;border:0!important;background:#fff!important;text-align:center;-moz-appearance:textfield;font:600 16px var(--mtc-body);box-shadow:none!important;padding:0!important;min-height:48px}
.single-product .mtc-buybox .single_add_to_cart_button,.single-product .mtc-buybox .mtc-buynow{margin:0!important;padding:13px 28px!important;font:700 16px var(--mtc-display)!important;text-transform:uppercase;letter-spacing:.05em;border-radius:6px!important;line-height:1.3!important}
.mtc-buynow{background:var(--mtc-dark)!important;color:#fff!important;border:0}
.mtc-buynow:hover{background:var(--mtc-dark-3)!important}
.mtc-sp-ask{margin:0 0 20px}
.mtc-buybox-links{display:flex;gap:4px;border-top:1px solid var(--mtc-line);margin:0 -20px;padding:6px 20px}
.mtc-buybox-links .mtc-tool{width:auto;height:44px;padding:0 14px 0 0;color:var(--mtc-ink)}
.mtc-buybox-links .mtc-tool+.mtc-tool{border-left:1px solid var(--mtc-line);padding-left:16px}
.mtc-buybox-links .mtc-tool:hover,.mtc-buybox-links .mtc-tool.on{color:var(--mtc-red)}
.mtc-qv-info .mtc-buybox-links{margin:0;padding:6px 0;border-bottom:1px solid var(--mtc-line)}
/* cart page quantity */
.woocommerce-cart-form .mtc-qty.quantity input.qty{min-height:40px;width:46px!important}

/* ── wishlist / compare pages ── */
.mtc-list-wait{color:var(--mtc-steel)}
.mtc-list-bar{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;font:600 15px var(--mtc-body);color:var(--mtc-steel)}
.mtc-link{border:0;background:none;color:var(--mtc-red);font:700 14px var(--mtc-display);text-transform:uppercase;letter-spacing:.05em;cursor:pointer;padding:6px 0}
.mtc-link:hover{background:none;color:var(--mtc-red-dark);text-decoration:underline}
.mtc-list-empty{text-align:center;padding:50px 20px;border:1px dashed var(--mtc-line);border-radius:12px;background:var(--mtc-soft)}
.mtc-list-empty>.mtc-sico{width:46px;height:46px;margin:0 auto 10px;color:var(--mtc-red)}
.mtc-list-empty h3{font:700 24px var(--mtc-display);margin:0 0 6px}
.mtc-list-empty .button{background:var(--mtc-red);color:#fff;border-radius:6px;font:700 15px var(--mtc-display);text-transform:uppercase;letter-spacing:.05em;padding:12px 26px;text-decoration:none;display:inline-block}
.mtc-compare-wrap{overflow-x:auto;border:1px solid var(--mtc-line);border-radius:10px}
.mtc-compare{width:100%;border-collapse:collapse;min-width:640px;margin:0}
.mtc-compare th,.mtc-compare td{border:0;border-bottom:1px solid var(--mtc-line);padding:12px 16px;vertical-align:top;text-align:left;font-size:15px}
.mtc-compare tr:last-child th,.mtc-compare tr:last-child td{border-bottom:0}
.mtc-compare th{width:150px;background:var(--mtc-soft);font:700 14px var(--mtc-display);text-transform:uppercase;letter-spacing:.04em;color:var(--mtc-ink)}
.mtc-compare td{min-width:200px;position:relative}
.mtc-compare-img{display:block;background:var(--mtc-img-bg);border-radius:6px;margin-bottom:10px}
.mtc-compare-img img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply;padding:10px;display:block}
.mtc-compare-name{font:700 17px/1.2 var(--mtc-display);color:var(--mtc-ink);text-decoration:none}
.mtc-compare-remove{position:absolute;top:18px;right:22px;z-index:1;width:32px;height:32px;border-radius:50%;border:0;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;color:var(--mtc-ink)}
.mtc-compare-remove:hover{background:var(--mtc-red);color:#fff}
.mtc-compare .price{font:700 20px var(--mtc-display);color:var(--mtc-ink)}
.mtc-compare .button{background:var(--mtc-red);color:#fff;border-radius:6px;font:700 14px var(--mtc-display);text-transform:uppercase;letter-spacing:.05em;padding:10px 18px;display:inline-block;text-decoration:none}
.mtc-compare .button.added{background:#1f9d55}
.mtc-compare-desc{font-size:14px;color:#3d4249;max-height:260px;overflow:auto}
.mtc-compare-desc h4{font:700 14px var(--mtc-display);text-transform:uppercase;margin:8px 0 4px}
.mtc-compare-desc ul{margin:0 0 0 16px}

/* MTC quotation mode: products "Available on request" can be quoted too - same button as in-stock cards */
ul.products li.product.outofstock .mtc-atc .button,ul.products li.product.outofstock .button.add_to_cart_button{background:var(--mtc-red)!important;color:#fff!important;opacity:1!important;pointer-events:auto!important;border-color:var(--mtc-red)!important}
ul.products li.product.outofstock .mtc-atc .button:hover{background:var(--mtc-red-dark)!important}
ul.products li.product.outofstock .woocommerce-loop-product__link img{opacity:1!important;filter:none!important}
/* "Available on request" is not an error on a quotation site: amber, not red */
.mtc-stock.out{color:#a86400!important}
.mtc-stock.out .mtc-sico{color:#d98a00}
/* shop sidebar: long series names, no counts */
.widget_product_categories .count{display:none!important}
.mtc-tab-info .mtc-cards{margin-top:8px}
