/*
Theme Name: Metal Testers Classic
Theme URI: https://example.com/
Author: Custom Theme
Description: Classic industrial testing equipment storefront inspired by the supplied reference screenshot. WooCommerce compatible.
Version: 1.4.0
Requires PHP: 7.4
Text Domain: metal-testers-classic
*/
:root{--navy:#001b2e;--cyan:#23979e;--gold:#e6b83e}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#101010;font:13px Arial,Helvetica,sans-serif;background:repeating-linear-gradient(100deg,#001324 0,#001324 35px,#03243a 44px,#00172b 70px,#000f20 105px)}a{color:#74a6df}a:hover{text-decoration:underline}.site-wrap{width:min(1150px,96%);margin:auto}.masthead{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 0 15px}.site-logo{text-decoration:none!important;color:#c4d9e8;font-size:clamp(31px,4vw,60px);font-weight:900;letter-spacing:-3px;white-space:nowrap;text-shadow:0 1px #fff,0 3px #6c8395,0 5px #1e3b56,2px 7px 1px #000,-1px -1px #fff;background:linear-gradient(#f8fbff,#7c9db5 35%,#193953 55%,#e7f4ff 68%,#38526a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.main-nav{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.main-nav a{font-size:12px;font-weight:bold;text-decoration:none;color:#fff;padding:6px 10px;border:1px solid #d5edf7;border-radius:5px;background:linear-gradient(#6d8da8,#234769);box-shadow:0 1px 3px #000}.main-nav a:first-child{background:linear-gradient(#5bd3d2,#0a737d)}.main-nav .cart-link{background:linear-gradient(#f9d86c,#9b690b);padding:10px 14px}.category-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:2px 0 20px}.category-nav a{display:flex;align-items:center;justify-content:center;min-height:39px;padding:7px 4px;border:1px solid #b8e5e9;border-radius:3px;background:linear-gradient(#54c1c1,#187a85);color:white;text-decoration:none;text-align:center;font-size:14px}.five-cols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.category-card{background:#fff;min-height:675px;display:flex;flex-direction:column;border-bottom:5px solid #f1d6cb;box-shadow:2px 2px 0 #092638}.category-card h2{background:#efdbd0;margin:0;min-height:47px;padding:13px 9px;font-size:15px;line-height:1.05}.category-card .category-image{height:335px;display:flex;align-items:center;justify-content:center;padding:10px}.category-image img{max-width:100%;max-height:100%;object-fit:contain}.category-card p{font-size:12px;line-height:1.3;text-align:center;padding:0 10px;margin:0 0 12px;flex:1}.more-wrap{text-align:center;padding:0 0 38px}.more-button,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:linear-gradient(#ff7775,#bd0707)!important;color:white!important;border:1px solid #e9a2a2!important;border-radius:3px;padding:7px 15px;text-decoration:none;display:inline-block;font-weight:normal}.footer-bar{height:23px;margin:10px 0 8px;background:linear-gradient(#ffdf78,#e5b53d);clip-path:polygon(0 0,100% 0,100% 40%,99% 100%,0 100%)}.site-footer{color:#6395c9;font-size:11px;min-height:140px}.footer-links{display:flex;gap:12px;flex-wrap:wrap}.footer-bottom{display:flex;justify-content:space-between;gap:20px;margin-top:20px}.footer-bottom p{margin:0}.footer-bottom .contact{text-align:right}.content-panel{background:#fff;padding:24px;min-height:480px;margin:18px 0}.content-panel h1{font-size:25px}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;border:1px solid #ddd;padding:12px!important;text-align:center}.woocommerce ul.products li.product img{height:185px;object-fit:contain}.woocommerce div.product div.images img{object-fit:contain}.woocommerce .quantity .qty{padding:7px}.woocommerce table.shop_table{border-collapse:collapse}.woocommerce .woocommerce-breadcrumb{margin-bottom:18px}.site-search{margin:0 0 10px}.site-search input{padding:8px;max-width:100%;border:1px solid #aaa}.site-search button{padding:8px;background:#247f8a;color:white;border:0;cursor:pointer}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}@media(max-width:1050px){.masthead{flex-direction:column}.site-logo{white-space:normal;text-align:center}.main-nav{justify-content:center}.category-card .category-image{height:270px}.category-card{min-height:620px}}@media(max-width:780px){.five-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.category-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card{min-height:560px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:460px){.site-wrap{width:94%}.site-logo{font-size:34px;letter-spacing:-2px}.five-cols{grid-template-columns:1fr}.category-card{min-height:0}.category-card .category-image{height:300px}.category-card p{min-height:90px}.category-nav{gap:7px}.category-nav a{font-size:12px}.content-panel{padding:13px}.woocommerce ul.products{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.footer-bottom .contact{text-align:left}}
/* v1.1 dynamic WooCommerce categories and editable menus */
.mt-product-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;height:100%;align-content:center;justify-items:center;align-items:center}
.mt-product-image-grid img{width:100%;height:150px;object-fit:contain;min-width:0}
.mt-product-image-grid.count-1{grid-template-columns:1fr}.mt-product-image-grid.count-1 img{height:300px}
.mt-product-image-grid.count-2 img{height:190px}.mt-product-image-grid.count-3 img{height:140px}
.mt-empty-image{color:#71818b;text-align:center;font-size:12px}.mt-no-categories{grid-column:1/-1;background:#fff;padding:35px;min-height:300px}
.main-nav .menu-item,.category-nav .menu-item,.footer-links .menu-item{list-style:none}
.footer-links a{margin-right:10px}.footer-widget h3{font-size:12px;margin:0 0 8px}.footer-widget p{margin:0 0 8px}
@media(max-width:780px){.mt-product-image-grid img{height:120px}}

/* v1.3 - reference-faithful category presentation and responsive layout */
html,body{max-width:100%;overflow-x:hidden}
body{background-color:#001526;background-image:repeating-linear-gradient(99deg,rgba(0,0,0,.29) 0px,rgba(0,0,0,.29) 23px,rgba(7,42,63,.3) 37px,rgba(0,15,29,.45) 72px,rgba(0,6,17,.55) 99px),linear-gradient(90deg,#00172a,#001020 60%,#001a2c);background-attachment:fixed}
.site-wrap{width:min(1130px,calc(100% - 32px));margin:0 auto}
.masthead{min-height:128px;align-items:center;padding:8px 0 12px}
.site-logo{display:block;max-width:535px;line-height:0;letter-spacing:normal;background:none;-webkit-text-fill-color:initial;text-shadow:none}
.default-metal-logo{display:block;width:100%;height:auto;max-width:535px;object-fit:contain}
.custom-logo-link img{max-width:min(535px,100%);height:auto;display:block}
.header-right{min-width:0}
.category-nav{gap:14px;margin:0 0 20px}
.five-cols{gap:14px;align-items:stretch}
.category-card{min-width:0;min-height:675px;overflow:hidden;box-shadow:none}
.category-card h2{min-height:48px;display:flex;align-items:center;padding:8px 9px}
.category-card h2 a{color:#111;text-decoration:none}
.category-card h2 a:hover{text-decoration:underline}
.category-card .category-image{height:340px;min-height:340px;width:100%;padding:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 340px}
.category-card .category-image img{display:block;max-width:100%!important;max-height:320px!important;width:auto!important;height:auto!important;object-fit:contain!important;position:static!important;transform:none!important;margin:auto!important}
.category-card p{flex:1;min-height:0;margin:12px 0 16px;padding:0 10px;overflow-wrap:anywhere}
.category-card .more-wrap{padding:0 0 32px}
.mt-product-image-grid{display:none}
.footer-links{align-items:center}
.footer-links a{display:inline-block}
@media(max-width:1050px){.masthead{min-height:0;flex-direction:column;align-items:center}.site-logo{max-width:535px}.category-card{min-height:625px}.category-card .category-image{height:280px;min-height:280px;flex-basis:280px}.category-card .category-image img{max-height:260px!important}}
@media(max-width:780px){.site-wrap{width:calc(100% - 24px)}.five-cols,.category-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-card{min-height:530px}.category-card .category-image{height:260px;min-height:260px;flex-basis:260px}.category-card .category-image img{max-height:240px!important}.main-nav{justify-content:center}.footer-bottom{flex-wrap:wrap}}
@media(max-width:480px){.five-cols{grid-template-columns:1fr}.category-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-nav a{min-height:42px}.category-card{min-height:0}.category-card .category-image{height:300px;min-height:300px;flex-basis:300px}.category-card .category-image img{max-height:280px!important}.category-card p{min-height:65px}.main-nav{gap:5px}.main-nav a{padding:7px 9px}.footer-bottom{flex-direction:column}}

/* v1.4: show only one image per category; category thumbnail wins over product thumbnail. */
.category-card .category-image > img.mt-category-photo{display:block!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;position:static!important;inset:auto!important;float:none!important;transform:none!important;}
.category-card .category-image{isolation:isolate;}
.masthead .custom-logo-link{display:inline-block;max-width:100%;line-height:0;}
.masthead .custom-logo-link img{width:auto;height:auto;object-fit:contain;}
