/* Local demo presentation only. Original vendor filter code/styles stay intact. */
html{font-size:16px;scroll-padding-top:80px}body{font-size:16px;line-height:1.5}
button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #235e95;outline-offset:3px}
.demo-head span:not(.demo-label){font-size:15px}.demo-label{font-size:14px;letter-spacing:0}.demo-context p{font-size:18px}.demo-context p+p{font-size:15px}.demo-footer{font-size:14px}
.mh-catalog .desk-main{min-width:0}.mh-catalog .desk-body{min-width:0}.mh-catalog .desk-side{min-width:0}
.mh-catalog .mhf-title,.mh-catalog .mhf-opt,.mh-catalog .mhf-tn,.mh-catalog .mhf-pricevals{font-size:16px}
.mh-catalog .mhf-opt,.mh-catalog .mhf-toggle{min-height:48px}.mh-catalog .mhf-opt:focus-within{outline:2px solid #235e95;outline-offset:3px;border-radius:4px}
.mh-catalog .mhf-apply{min-height:52px;font-size:18px}.mh-catalog .mhf-ct{font-size:15px}.mh-catalog .mhf-nm{white-space:normal;overflow:visible;text-overflow:clip}
.mh-catalog .mhub-title{font-size:18px;font-weight:650}.mh-catalog .mhub-title a{display:block;overflow:visible;-webkit-line-clamp:unset}.mh-catalog .mhub-vendor{font-size:15px}.sample-stock{font-size:14px}
.mh-catalog .mhf-sheet{height:min(780px,calc(100dvh - 12px));max-height:calc(100dvh - 12px)}
.mh-catalog .mhf-sheet__head{flex:none;gap:16px;border-bottom:1px solid var(--line);padding:16px}
.mh-catalog .mhf-sheet__head h2{font-size:22px;line-height:1.3}.mh-catalog .mhf-sheet__head button{min-width:64px;min-height:44px;font-size:16px}
.mh-catalog .mhf-sheet__form{flex:1;min-height:0}.mh-catalog .mhf-sheet__body{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.mh-catalog .mhf-sheet__foot{flex:none;border-top:1px solid var(--line);padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:white}
.mh-catalog .mhf-sheet .mhf-title,.mh-catalog .mhf-sheet .mhf-tn{font-size:18px}.mh-catalog .mhf-sheet .mhf-opt{font-size:17px;min-height:52px}.mh-catalog .mhf-pv{font-size:18px}
.mh-catalog .mhf-box{width:24px;height:24px}.mh-catalog .mhf-range{height:48px}.mh-catalog .mhf-range input[type=range]{height:44px;top:0}
.mh-catalog .mhf-range input[type=range]::-webkit-slider-thumb{width:32px;height:32px}.mh-catalog .mhf-range input[type=range]::-moz-range-thumb{width:32px;height:32px}
.mh-catalog .mhf-track,.mh-catalog .mhf-fill{top:19px}.mh-catalog #mhf-sheet-sort{height:auto}.mh-catalog .mhf-sortopt{font-size:17px;min-height:52px;padding:16px}
@media(max-width:960px){
 .mh-catalog .desk-side{display:none}.mh-catalog .desk-main{grid-template-columns:minmax(0,1fr)}
 main{margin:0 12px}.demo-head{padding:14px 16px;gap:8px}.demo-head b{font-size:23px}.demo-head span:not(.demo-label){font-size:15px}.demo-label{font-size:14px;padding:5px 10px}
 .demo-context{padding:16px 4px}.demo-context p{font-size:17px;line-height:1.5}.demo-context p+p{font-size:14px;margin-bottom:0}.demo-footer{font-size:14px;padding:18px 4px}
 .mh-catalog .desk-cathead{padding:14px 16px}.mh-catalog .desk-cathead .crumb{font-size:14px}.mh-catalog .desk-cathead h2{font-size:26px;margin-top:4px}.mh-catalog .desk-cathead .sub{font-size:16px}
 .mh-catalog .mhf-tools{position:sticky;top:0;z-index:20;min-height:58px}.mh-catalog .mhf-tools__btn{min-height:58px;font-size:18px;padding:12px 10px}.mh-catalog .mhf-tools__btn:first-child{flex:2;background:var(--navy);color:white}
 .mh-catalog .mhf-tools__n{background:white;color:var(--navy);font-size:16px}
 .mh-catalog .mhf-chips{display:flex;flex-wrap:wrap;gap:8px;padding:12px}.mh-catalog .mhf-chips__lbl{font-size:14px;width:100%}
 .mh-catalog .mhf-chip{font-size:14px;padding:0 6px 0 12px;max-width:100%}.mh-catalog .mhf-x{min-width:44px;min-height:44px;font-size:22px;background:transparent}.mh-catalog .mhf-clear{display:inline-flex;align-items:center;min-height:44px;font-size:15px}
 .mh-catalog ul.products{gap:12px;padding:12px}.mh-catalog .mhub-title{font-size:18px;line-height:1.4}.mh-catalog .mhub-card__body{padding:12px;gap:7px}.mh-catalog .mhub-price__now{font-size:22px}.mh-catalog .sample-stock{font-size:14px;line-height:1.45}
 .mh-catalog .empty,.mh-catalog .woocommerce-info{font-size:17px;line-height:1.6;padding:24px 16px}
}
@media(max-width:540px){
 .mh-catalog ul.products{grid-template-columns:minmax(0,1fr)!important}
 .mh-catalog ul.products li.product{display:grid;grid-template-columns:96px minmax(0,1fr);min-width:0;width:auto!important;align-items:stretch}
 .mh-catalog .mhub-card__media{aspect-ratio:auto;border-bottom:0;border-right:1px solid var(--line);min-height:100%}
 .mh-catalog .mhub-card__media .mhub-chip{display:none}.mh-catalog .mhub-ph span{font-size:14px;line-height:1.4;text-align:center;max-width:80px}
 .mh-catalog .mhub-card__body h3{min-height:0}.mh-catalog .mhub-vendor{font-size:14px;line-height:1.4}.mh-catalog .mhub-title{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){.mh-catalog .mhub-card,.mh-catalog .mhf-sheet{transition:none}.mh-catalog .mhub-card:hover{transform:none}}

/* Keep the catalog in view in short or zoomed windows, without shrinking text. */
.demo-head{padding:12px max(16px,calc((100vw - 1300px)/2));gap:12px}
.demo-head b{font-size:22px;line-height:1.3}.demo-head span:not(.demo-label){display:none}
.demo-label{padding:5px 10px}.demo-context{padding:12px 16px}.demo-context p{margin:0;font-size:16px;line-height:1.5}
.mh-catalog .desk-cathead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.mh-catalog .desk-cathead .crumb{display:none}.mh-catalog .desk-cathead h2{font-size:26px;line-height:1.2;margin:0}
.mh-catalog .desk-cathead .sub{font-size:16px;line-height:1.4;margin:0;text-align:right}
.mh-catalog .mhf-pricevals span{font-size:16px;color:var(--ink-2)}
@media(max-width:540px){
 .demo-head{padding:10px 12px;flex-wrap:nowrap;gap:10px}.demo-head>div{min-width:0}.demo-head b{font-size:20px;overflow-wrap:normal}.demo-label{flex:none;font-size:14px}
 .demo-context{padding:12px 4px}.mh-catalog .desk-cathead{padding:10px 12px}
}
@media(max-width:864px) and (max-height:650px){
 .demo-head{padding-block:8px}.demo-context{padding-block:8px}.mh-catalog .desk-cathead{padding-block:8px}
 .mh-catalog ul.products{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important}
 .mh-catalog ul.products li.product{display:grid;grid-template-columns:88px minmax(0,1fr);width:auto!important;min-width:0;align-items:stretch}
 .mh-catalog .mhub-card__media{aspect-ratio:auto;min-height:100%;border-bottom:0;border-right:1px solid var(--line)}
 .mh-catalog .mhub-card__media .mhub-chip{display:none}.mh-catalog .mhub-ph span{font-size:14px;line-height:1.4;text-align:center;max-width:76px}
 .mh-catalog .mhub-card__body h3{min-height:0}.mh-catalog .mhub-vendor{font-size:14px;line-height:1.4}
}

/* Match the requested 90% desktop density without changing browser zoom.
   Phones retain their full-size type, touch targets and filter sheet. */
@media(min-width:865px){
 body{zoom:.9}
 main{margin-inline:auto}
 .mh-catalog .desk-main{grid-template-columns:248px minmax(0,1fr)}
 .mh-catalog .desk-side{display:block}
 .mh-catalog .desk-toolbar{display:flex}
 .mh-catalog .mhf-tools{display:none}
 .mh-catalog ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .mh-catalog ul.products li.product{display:flex;flex-direction:column}
 .mh-catalog .mhub-card__media{aspect-ratio:1/1;min-height:0;border-right:0;border-bottom:1px solid var(--line)}
 .mh-catalog .mhub-card__body{padding:14px;gap:7px}
 .mh-catalog .mhub-card__body h3{min-height:40px}
 .mh-catalog .desk-sort,.mh-catalog .desk-sort select{font-size:16px}
}
