/* v578: purchase controls stay visible on every mobile product card. */
@media(max-width:600px){
 #catalog #products.product-grid{align-items:stretch!important}
 #catalog #products .bmk-product{display:flex;flex-direction:column}
 #catalog #products .bmk-product-body{display:flex;flex-direction:column;flex:1;padding:10px!important}
 #catalog #products .bmk-product-body>small{gap:6px;min-height:34px;margin-bottom:5px}
 #catalog #products .product-brand577{display:none!important}
 #catalog #products .product-category578{font-size:10px!important;line-height:1.45;color:#64748b;min-width:0}
 #catalog #products .brand-badge{width:58px!important;height:32px!important;flex:0 0 58px}
 #catalog #products h3{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;min-height:0!important;font-size:13px!important;line-height:1.55!important;margin:4px 0 7px!important}
 #catalog #products .bmk-product-body>p{display:block!important;font-size:11px!important;line-height:1.5!important;min-height:0!important;margin:0 0 10px!important}
 #catalog #products .bmk-price{margin:0 0 6px!important}
 #catalog #products .bmk-product-footer{margin-bottom:10px}
 #catalog #products .bmk-product-footer button{min-height:34px}
 #catalog #products .buy538{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;gap:7px 5px!important;width:100%;min-width:0;margin-top:auto!important;padding:0!important}
 #catalog #products .pack539{grid-column:1/-1;display:grid!important;gap:5px!important;margin:0 0 3px!important}
 #catalog #products .pack539>span,#catalog #products .pack539>small{font-size:10px!important;line-height:1.5!important}
 #catalog #products .pack539 select{height:40px!important;min-height:40px!important;padding:5px 3px!important;width:100%;font-size:16px!important;border-radius:9px!important}
 #catalog #products .quantity538{display:grid!important;grid-template-columns:25px minmax(0,1fr) 25px!important;width:78px!important;height:44px;min-width:0;padding:0!important;border-radius:9px!important;overflow:hidden}
 #catalog #products .quantity538 button{width:25px!important;min-width:25px!important;min-height:44px!important;padding:0!important;font-size:16px!important;border:0!important}
 #catalog #products .quantity538 input{width:100%!important;min-width:0!important;height:44px!important;padding:0!important;font-size:14px!important;border:0!important;text-align:center;appearance:textfield;-moz-appearance:textfield}
 #catalog #products .quantity538 input::-webkit-inner-spin-button,#catalog #products .quantity538 input::-webkit-outer-spin-button{appearance:none;margin:0}
 #catalog #products .add538{display:flex!important;align-items:center;justify-content:center;gap:4px!important;padding:4px 3px!important;min-width:0!important;width:100%!important;min-height:44px!important;font-size:11px!important;line-height:1.3!important;border-radius:9px!important;white-space:nowrap}
 #catalog #products .add538 svg{width:16px!important;height:16px!important;flex:none}
}
@media(max-width:420px){#catalog #products .add538 svg{display:none}}
@media(max-width:360px){#catalog #products .bmk-product-body{padding:7px!important}#catalog #products .buy538{grid-template-columns:70px minmax(0,1fr)!important;gap:5px 4px!important}#catalog #products .quantity538{width:70px!important;grid-template-columns:24px minmax(0,1fr) 24px!important}#catalog #products .quantity538 button{width:24px!important;min-width:24px!important}#catalog #products .add538{font-size:10px!important}}
.product-header>a:first-child img{width:58px!important;height:54px!important;object-fit:contain!important}
.product-gallery578{min-width:0;width:100%;align-self:start;display:grid;gap:10px;text-align:center}
.product-shell .gallery-main578{border:1px solid #e0e6ed;border-radius:18px;background:#fff;padding:8px;width:100%;height:min(44vw,620px);display:grid;place-items:center;overflow:hidden;cursor:zoom-in}
.gallery-main578 img{width:100%!important;height:100%!important;max-height:100%;object-fit:contain!important}
.gallery-nav578{display:flex;justify-content:center;align-items:center;gap:18px}.gallery-nav578 button{min-width:44px;min-height:44px;padding:4px 14px}.gallery-thumbs578{display:flex;overflow:auto;gap:8px;padding:4px}.product-shell .gallery-thumbs578 button{flex:0 0 68px;width:68px;height:68px;padding:3px;background:#fff;border:2px solid #e0e6ed}.product-shell .gallery-thumbs578 button[aria-pressed=true]{border-color:#f2aa18;background:#fff7e3}.gallery-thumbs578 img{width:100%;height:100%;object-fit:contain}.gallery-nav578[hidden],.gallery-thumbs578[hidden]{display:none}.product-gallery578>small{color:#63718b}
.gallery-zoom578{position:fixed;inset:0;width:min(1100px,96vw);height:90dvh;max-width:96vw;max-height:90dvh;padding:36px 8px 8px;border:0;border-radius:16px;background:#fff;overflow:auto}.gallery-zoom578::backdrop{background:#102844cc}.gallery-zoom578 img{display:block;max-width:100%;min-height:0;width:100%;height:100%;object-fit:contain}.gallery-close578{position:fixed;right:max(3vw,calc((100vw - 1100px)/2 + 8px));top:6dvh;border:0;border-radius:50%;width:44px;height:44px;background:#142b50;color:#fff;font-size:30px;cursor:pointer}
@media(max-width:760px){.product-header>a:first-child img{width:46px!important;height:44px!important}.product-shell .gallery-main578{height:min(94vw,520px);padding:4px}.product-gallery578{gap:6px}.product-hero{gap:22px!important}.product-shell .gallery-thumbs578 button{flex-basis:60px;width:60px;height:60px}}
