/* Compact catalog only; calculations, ordering, and other page sections retain v4.3. */
#catalog>.shell{max-width:1640px}#catalog .catalog-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
#catalog .products{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}
#catalog .product{display:flex;flex-direction:column;min-width:0;border-radius:8px;overflow:hidden;background:#fff}
#catalog .product-image-link{display:block;color:inherit}#catalog .product-image{display:block;position:relative;aspect-ratio:auto;height:150px;border:0;border-bottom:1px solid #dde4df}
#catalog .product-image img{display:block;width:100%;height:150px;object-fit:contain;object-position:center}
#catalog .missing-photo-frame{height:150px;display:grid;place-content:center;font-size:13px;background:#f0f4ed;color:#40524b}
#catalog .product-body{padding:12px;display:flex;flex:1;flex-direction:column;min-width:0;gap:6px}
#catalog .product h3{font-size:17px;line-height:1.35;margin:0;min-height:46px;overflow-wrap:anywhere;letter-spacing:0}
#catalog .product-title-link{color:#172e35;text-decoration:none}#catalog a:focus-visible{outline:3px solid #4ba6c2;outline-offset:2px}
#catalog .product-sku,#catalog .product-pack{margin:0;font-size:13px;line-height:1.4;overflow-wrap:anywhere;color:#354b43}
#catalog .product-pack small{display:block;font-size:12px;color:#52675d}
#catalog .compact-color{display:block;margin:0;font-size:13px;font-weight:500}#catalog .compact-color select{display:block;width:100%;min-width:0;min-height:44px;font:inherit;font-size:16px;background:white;border:1px solid #a3afa2;border-radius:4px;padding:5px}
#catalog .prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:7px 0;border:0}
#catalog .prices div{min-width:0}#catalog .prices span{font-size:13px}#catalog .prices b,#catalog .prices .current b{font-size:20px;line-height:1.4;white-space:nowrap;letter-spacing:0}
#catalog .quantity-field{display:block;margin:0;font-size:13px}#catalog .quantity-field>span{font-size:13px}
#catalog .qty{display:grid;grid-template-columns:44px minmax(32px,1fr) 44px;gap:6px;margin:4px 0 0;padding:0;min-height:44px}
#catalog .qty button,#catalog .qty input{width:100%;height:44px;min-height:44px;min-width:0;border:1px solid #a3afa2;border-radius:4px;font-size:18px;text-align:center}
#catalog .qty input{font-size:16px}#catalog .quantity-error{font-size:12px;line-height:1.3;overflow-wrap:anywhere}#catalog .quantity-error:empty{display:none}
#catalog .added-state{margin:0;padding:5px;font-size:13px}#catalog .product-detail{font-size:13px;line-height:1.4;min-height:44px;margin:auto 0 0;display:flex;align-items:center}
#catalog .cart{position:static;top:auto;width:100%;max-width:none;margin:0}
@media(min-width:360px){#catalog .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#catalog .product-body{padding:8px;gap:5px}#catalog .product h3{font-size:16px}#catalog .product-image,#catalog .product-image img,#catalog .missing-photo-frame{height:132px}#catalog .prices b,#catalog .prices .current b{font-size:18px}#catalog .qty{gap:4px;grid-template-columns:44px minmax(28px,1fr) 44px}}
@media(min-width:480px){#catalog .product-body{padding:12px}#catalog .product-image,#catalog .product-image img,#catalog .missing-photo-frame{height:150px}}
@media(min-width:800px){#catalog .products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){#catalog .products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1360px){#catalog .products{grid-template-columns:repeat(5,minmax(0,1fr))}}
#catalog .product-gallery-button{display:block;width:100%;padding:0;margin:0;border:0;border-radius:0;background:white;cursor:zoom-in;color:inherit;min-height:44px}
.photo-gallery{width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;border:1px solid #ccd8d2;border-radius:12px;padding:16px;color:#172e35;background:white;overflow:auto}
.photo-gallery::backdrop{background:rgb(10 30 30 / .8)}.gallery-head{display:flex;gap:12px;align-items:start;justify-content:space-between}.gallery-head h2{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}.photo-gallery button{min-width:44px;min-height:44px;padding:8px 12px;background:#172e35;color:white;border:0;border-radius:6px;font-size:16px}.photo-gallery button:focus-visible,#catalog .product-gallery-button:focus-visible{outline:3px solid #4ba6c2;outline-offset:2px}.photo-gallery .gallery-large{display:block;width:100%;height:min(60dvh,600px);object-fit:contain;margin:12px 0}.gallery-actions{display:flex;gap:12px;justify-content:center}.gallery-status{text-align:center;font-size:14px}.photo-gallery button:disabled{opacity:.45}.gallery-head button{flex-shrink:0}body:has(.photo-gallery[open]) .mobile-cart{display:none!important}
