/* Keep buying information visible while reducing repeated space. */
.zmx-hero-compact { min-height:230px; padding:22px 28px; margin-top:20px; gap:30px; background:linear-gradient(110deg,#f3edda,#f6f7f0); }
.zmx-hero-compact h1 { font-size:36px; line-height:1.12; }
.zmx-hero-compact>div>p:not(.zmx-eyebrow) { max-width:480px; margin-top:12px; font-size:14px; }
.zmx-hero-compact .zmx-actions { margin-top:18px; }
.zmx-hero-compact .zmx-hero-product { min-height:185px; padding:14px; gap:18px; grid-template-columns:minmax(110px,1fr) 1fr; }
.zmx-hero-compact .zmx-hero-product img { height:160px; max-height:160px; }
.zmx-hero-compact .zmx-hero-product strong { font-size:17px; }
.zmx-hero-compact .zmx-hero-product b { margin-block:9px; }
.zmx-home-categories .zmx-section-title,.zmx-home-products .zmx-section-title { margin:22px 0 12px; }
.zmx-home-categories h2,.zmx-home-products h2 { font-size:24px; }
.zmx-home-categories .zmx-category-grid>a { padding:12px; }
.zmx-home-categories .zmx-category-grid span { display:none; }
.zmx-purchase-note { font-size:12px; color:#626755; line-height:1.5; margin:-4px 0 12px !important; }
.zmx-purchase-note a { text-decoration:underline; text-underline-offset:3px; }
.zmx-card-body { padding:12px; }
.zmx-card-image { aspect-ratio:1.25; padding:12px; }
.zmx-card h3 { font-size:14px; line-height:1.35; min-height:38px; margin-top:7px !important; overflow-wrap:anywhere; }
.zmx-stock { font-size:10px; }
.zmx-sku { font-size:10px; margin-top:3px !important; }
.zmx-card .zmx-price { margin-top:9px; font-size:23px; line-height:1.3; }
.zmx-card .zmx-condition { font-size:11px; line-height:1.45; min-height:32px; }
.zmx-card .zmx-colors { margin-top:7px !important; font-size:11px; line-height:1.5; min-height:17px; }
.zmx-card-bottom { padding-top:8px; margin-top:8px; gap:6px; font-size:10px; }
.zmx-card-cta { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:8px 10px; }
.zmx-catalog-title { margin:24px 0 18px; }
.zmx-catalog-title h1 { font-size:32px; }
.zmx-catalog-title [data-catalog-total] { margin-top:6px; }
@media(max-width:1050px) {
 .zmx-catalog { display:block; }
 .zmx-filters { border:1px solid var(--zmx-line); border-radius:6px; padding:12px; margin-bottom:14px; }
 .zmx-filters details:not([open]) summary { padding:0; border:0; }
 .zmx-filters summary { min-height:24px; }

 .zmx-hero-compact { padding:20px; gap:20px; }
 .zmx-hero-compact h1 { font-size:30px; }
 .zmx-hero-compact .zmx-hero-product { grid-template-columns:110px minmax(0,1fr); text-align:left; }
 .zmx-hero-compact .zmx-hero-product img { height:135px; }
 .zmx-hero-compact .zmx-hero-product strong { font-size:14px; }
 .zmx-home-categories .zmx-category-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
 .zmx-home-categories .zmx-category-grid>a { gap:7px; padding:10px; }
 .zmx-home-categories .zmx-category-grid i { display:none; }
 .zmx-home-categories .zmx-category-grid strong { font-size:12px; }
}
@media(max-width:680px) {
 .zmx-hero-compact { padding:17px; margin-top:12px; gap:14px; }
 .zmx-hero-compact h1 { font-size:28px; letter-spacing:-.7px; margin-top:8px; }
 .zmx-hero-compact>div>p:not(.zmx-eyebrow) { font-size:12px; line-height:1.5; margin-top:10px; }
 .zmx-hero-compact .zmx-actions { margin-top:13px; gap:16px; }
 .zmx-hero-compact .zmx-hero-product { min-height:0; padding:10px; gap:12px; grid-template-columns:74px minmax(0,1fr); }
 .zmx-hero-compact .zmx-hero-product img { height:74px; }
 .zmx-hero-compact .zmx-hero-product strong { font-size:13px; }
 .zmx-hero-compact .zmx-hero-product b { font-size:19px; margin:5px 0; }
 .zmx-hero-compact .zmx-hero-product div>span:last-child { font-size:10px; }
 .zmx-home-categories .zmx-section-title,.zmx-home-products .zmx-section-title { margin:17px 0 10px; align-items:center; }
 .zmx-home-categories h2,.zmx-home-products h2 { font-size:19px; letter-spacing:-.4px; }
 .zmx-home-categories .zmx-category-grid { display:flex; gap:7px; overflow-x:auto; overscroll-behavior-x:contain; padding-bottom:5px; }
 .zmx-home-categories .zmx-category-grid>a { flex:0 0 auto; min-height:44px; padding:9px 12px; background:#f6f7f2; }
 .zmx-home-categories .zmx-category-grid b { display:none; }
 .zmx-home-products .zmx-section-title>a { max-width:none; white-space:nowrap; }
 .zmx-purchase-note { font-size:11px; margin:0 0 10px !important; }
 .zmx-card-image { aspect-ratio:1.15; padding:8px; }
 .zmx-card-body { padding:10px; }
 .zmx-card h3 { font-size:13px; min-height:36px; }
 .zmx-card .zmx-price { font-size:21px; margin-top:7px; }
 .zmx-card .zmx-condition { min-height:30px; font-size:10px; }
 .zmx-card .zmx-colors { font-size:10px; min-height:15px; }
 .zmx-card .zmx-sku { font-size:9px; }
 .zmx-card-bottom { gap:5px; font-size:10px; }
 .zmx-card-cta { width:100%; font-size:12px; }
 .zmx-catalog-title { margin:18px 0 14px; }
 .zmx-catalog-title h1 { font-size:25px; }
 .zmx-filters { margin-bottom:12px; padding:12px; }
 .zmx-chips { margin-bottom:10px; }
}

/* WoodMart's search input reset uses content-box; keep the compact header size. */
.zmx-storefront .zmx-search input[type="search"] { box-sizing:border-box; }
.zmx-header-main > .wd-header-cart { flex-shrink:0; }
.zmx-header-main > .wd-header-cart > a { min-width:44px; min-height:44px; }
@media(max-width:1024px) {
 /* Keep the existing contact button above WoodMart's mobile purchase toolbar. */
 body.zmx-storefront:has(.wd-toolbar) a#sendbtn.floating_button { bottom:calc(70px + env(safe-area-inset-bottom, 0px))!important; }
}
#zmx-cart-drawer .zmx-drawer-quantity{flex-wrap:wrap;row-gap:6px;max-width:100%}
#zmx-cart-drawer .zmx-drawer-quantity input{box-sizing:border-box;flex:0 0 56px;width:56px;max-width:56px;padding:0}
#zmx-cart-drawer .zmx-drawer-quantity button{box-sizing:border-box;flex:0 0 44px;min-width:44px;padding:0}
#zmx-cart-drawer .zmx-drawer-quantity .zmx-drawer-save{flex:0 0 auto;width:auto;min-width:72px;margin-left:6px;padding:0 4px}
.zmx-product-information .zmx-extension-tab,.zmx-product-information .zmx-product-warranty-link{grid-column:1/-1;min-width:0}

/* A complete taxonomy menu sits outside the horizontally scrolling shortcuts. */
.zmx-nav-row{position:relative;display:flex;align-items:center;gap:22px}
.zmx-nav-row>.zmx-nav{flex:1;min-width:0;width:auto;margin:0;overflow-x:auto;white-space:nowrap}
.zmx-category-menu{min-width:0}
.zmx-category-menu>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 13px;border:1px solid var(--zmx-line);border-radius:5px;background:var(--zmx-surface);font-size:13px;font-weight:700;list-style:none;white-space:nowrap}
.zmx-category-menu>summary::-webkit-details-marker{display:none}
.zmx-category-menu[open]>summary{background:#e9eddc}
.zmx-category-chevron{margin-left:auto}
.zmx-category-menu-header{flex:0 0 auto}
.zmx-category-menu-header>.zmx-category-panel{position:absolute;top:100%;left:0;right:0;z-index:60;box-shadow:0 12px 24px #23272125}
.zmx-category-panel{background:white;border:1px solid var(--zmx-line);border-radius:6px;padding:18px;max-height:min(62vh,540px);overflow-y:auto;overscroll-behavior:contain}
.zmx-category-all{display:inline-flex;align-items:center;min-height:44px;margin-bottom:8px;font-weight:700;font-size:14px}
.zmx-category-tree{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 22px;margin:0!important;padding:0!important;list-style:none}
.zmx-category-tree li{min-width:0;margin:0;list-style:none;break-inside:avoid}
.zmx-category-tree>li>a{font-weight:700}
.zmx-category-tree a{display:flex;align-items:center;min-height:44px;padding:8px;border-radius:4px;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.zmx-category-tree a:hover,.zmx-category-tree a:focus-visible{background:var(--zmx-surface)}
.zmx-category-tree ul{margin:0!important;padding:0 0 0 12px!important;list-style:none;border-left:1px solid var(--zmx-line)}
.zmx-category-menu-home{margin-top:12px}
.zmx-category-menu-home>.zmx-category-panel{margin-top:8px}
.zmx-home-categories .zmx-category-grid>a{min-width:0;overflow-wrap:anywhere}
@media(max-width:1050px){.zmx-nav-row{gap:12px}.zmx-category-tree{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}}
@media(max-width:680px){
 .zmx-nav-row{display:block;padding-block:6px}
 .zmx-category-menu-header>summary{width:100%;justify-content:flex-start}
 .zmx-nav-row>.zmx-nav{padding-block:10px 5px}
 .zmx-category-menu-header>.zmx-category-panel{top:52px;max-height:58vh}
 .zmx-category-panel{padding:12px}
 .zmx-category-tree{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .zmx-home-categories .zmx-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding-bottom:0}
 .zmx-home-categories .zmx-category-grid>a{min-height:56px;white-space:normal}
}

/* Purchase shortcuts remain reachable without expanding the whole mobile header. */
.zmx-category-scroll-hint,.zmx-jump-purchase{display:none}
.zmx-product-excerpt summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.zmx-product-excerpt[open] summary{margin-bottom:10px}
#zmx-product-purchase{scroll-margin-top:180px}
@media(max-width:680px){
 .zmx-header-main{padding-block:10px;row-gap:10px}
 .zmx-search input[type=search]{height:46px;font-size:16px;padding-left:12px}
 .zmx-search button{width:44px;height:44px;top:1px;right:1px}
 .zmx-nav-row>.zmx-nav{padding-block:5px;gap:20px}
 .zmx-nav a{display:inline-flex;align-items:center;min-height:44px}
 .zmx-hero-compact{padding:14px;gap:10px}
 .zmx-hero-compact h1{font-size:25px;line-height:1.1}
 .zmx-hero-compact .zmx-hero-product{grid-template-columns:64px minmax(0,1fr);padding:8px}
 .zmx-hero-compact .zmx-hero-product img{height:64px}
 .zmx-hero-compact .zmx-hero-product strong{margin-top:0}
 .zmx-home-categories .zmx-category-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,minmax(48px,auto));grid-template-columns:none;grid-auto-columns:46%;overflow-x:auto;overscroll-behavior-x:contain;gap:7px;padding:3px 3px 7px;scroll-snap-type:x proximity}
 .zmx-home-categories .zmx-category-grid>a{min-height:48px;padding:8px;scroll-snap-align:start}
 .zmx-category-scroll-hint{display:block;margin-top:3px!important;font-size:11px;color:#626755}
 .zmx-home-categories .zmx-category-menu-home{margin-top:6px}
 .zmx-home-products .zmx-section-title{gap:10px;align-items:center}
 .zmx-home-products h2{font-size:18px}
 .zmx-jump-purchase{display:flex;min-height:44px;align-items:center;justify-content:center;border:1px solid var(--zmx-line);border-radius:5px;font-weight:600;margin-bottom:12px;background:var(--zmx-surface)}
 .zmx-product{gap:16px}
 .zmx-product-visual{padding:8px}
 .zmx-product-visual .zmx-media-main img{height:190px;aspect-ratio:auto;object-fit:contain}
 .zmx-product-buy h1{font-size:25px;line-height:1.18}
 .zmx-product-buy .zmx-eyebrow{margin-bottom:6px!important}
 .zmx-product-intro{margin-top:8px!important}
 .zmx-product-price{margin-top:8px;font-size:26px}
 .zmx-product-excerpt{margin-block:6px}
 .zmx-product-excerpt summary{font-size:13px}
 .zmx-product-visual>.zmx-product-social,.zmx-product-share{margin-top:7px}
 .zmx-product-buy input,.zmx-filters input,.zmx-filters select{font-size:16px}
}
@media(max-width:680px){
 .zmx-header-main .zmx-logo img{width:38px;height:38px}
 .zmx-nav-row{display:flex;gap:12px;align-items:center}
 .zmx-category-menu-header{flex:0 0 55%;max-width:55%}
 .zmx-category-menu-header>summary{font-size:12px;padding:8px;gap:6px}
 .zmx-nav-row>.zmx-nav{min-width:0;margin:0;padding-block:0}
 .zmx-category-menu-header>.zmx-category-panel{top:100%}
}
#zmx-bulk{scroll-margin-top:195px}
/* A short introduction leaves the campaign banner and category links prominent. */
.zmx-home-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 22px;margin-top:18px;border:1px solid #e4e5db;border-radius:10px;background:#f6f6ee}
.zmx-home-intro>div:first-child{min-width:0}
.zmx-home-intro .zmx-eyebrow{margin-bottom:5px!important;font-size:9px}
.zmx-home-intro h1{font-size:25px;line-height:1.2;letter-spacing:-.6px}
.zmx-home-intro h1 em{font-style:normal;color:#7c6428}
.zmx-home-intro h1+p{margin-top:7px;font-size:13px;color:#666b60;max-width:660px}
.zmx-home-intro .zmx-actions{flex-shrink:0;gap:16px;margin-top:0}
.zmx-home-intro .zmx-text-link{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:1050px){
 .zmx-home-intro{gap:14px;padding:16px 18px}
 .zmx-home-intro h1{font-size:23px}
 .zmx-home-intro .zmx-actions{flex-direction:column;gap:0;align-items:stretch}
 .zmx-home-intro .zmx-text-link{justify-content:center}
}
@media(max-width:680px){
 .zmx-home-intro{display:block;margin-top:12px;padding:14px}
 .zmx-home-intro h1{font-size:21px;line-height:1.2}
 .zmx-home-intro h1+p{font-size:12px;line-height:1.45}
 .zmx-home-intro .zmx-actions{flex-direction:row;align-items:center;gap:12px;margin-top:10px}
 .zmx-home-intro .zmx-button{font-size:12px!important;padding:10px 13px!important;gap:12px}
 .zmx-home-intro .zmx-text-link{font-size:12px}
}
/* Leave a clear mobile action lane beside the existing WhatsApp launcher. */
@media (max-width: 1024px) {
 body.zmx-storefront:has(#sendbtn.floating_button) .zmx-quote { display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding-right:84px; }
 body.zmx-storefront:has(#sendbtn.floating_button) .zmx-quote .zmx-button { width:100%;min-width:0; }
}
