/* MD Online catalogue cards — scoped so the admin layout is unchanged. */
.shop-catalog{background:#fff;color:#102b50}
.shop-catalog header{position:sticky;top:0;z-index:5;background:#fffffff5;backdrop-filter:blur(12px)}
.shop-catalog main{max-width:1280px;padding:0 28px 64px}
.shop-catalog .intro{padding:40px 0 30px}
.shop-catalog .intro h1{font-size:clamp(2rem,4.5vw,3.5rem)}
.shop-catalog .tools{margin-bottom:24px}
.shop-catalog .products{grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 24px}
.shop-catalog .product{border:0;border-radius:0;overflow:visible;box-shadow:none;background:none;min-width:0}
.shop-catalog .product:hover{box-shadow:none}
.shop-catalog .product-media{position:relative;aspect-ratio:1;background:#f6f7f9;border-radius:14px;isolation:isolate}
.shop-catalog .product-photo-open{display:block;width:100%;height:100%;aspect-ratio:1;border:0;border-radius:14px;padding:22px;background:transparent;overflow:hidden}
.shop-catalog .product-photo-open img,.shop-catalog .product-photo-open .placeholder{display:block;width:100%;height:100%;object-fit:contain;background:transparent}
.shop-catalog .product-photo-open .placeholder{display:flex;align-items:center;justify-content:center;font-size:1rem;min-height:100px}
.shop-catalog .quick-add{position:absolute;bottom:12px;right:12px;width:48px;height:48px;min-width:48px;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:0;border-radius:50%;background:var(--blue);color:#fff;font-size:32px;font-weight:500;line-height:1;box-shadow:0 4px 12px #0866d82b}
.shop-catalog .quick-add:disabled{background:#b7c1cf;color:#fff;box-shadow:none;opacity:1}
.shop-catalog .product-content{padding:14px 0 0;gap:8px;display:flex;align-items:flex-start}
.shop-catalog .price{display:flex;align-items:baseline;gap:2px;white-space:nowrap;color:#102b50;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}
.shop-catalog .price-currency{font-size:13px;font-weight:600;margin-right:3px}
.shop-catalog .price-major{font-size:28px;letter-spacing:-.045em}
.shop-catalog .price-minor{font-size:14px;align-self:flex-start;margin-top:4px}
.shop-catalog .product h2{width:100%;font-size:17px;line-height:1.45;margin:0}
.shop-catalog .product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-align:left;width:100%;padding:0;border:0;border-radius:3px;margin:0;background:transparent;color:#102b50;font-size:inherit;line-height:inherit;font-weight:550;overflow-wrap:anywhere}
.shop-catalog .stock{color:#0866d8;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.shop-catalog .stock:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.shop-catalog .stock.unavailable{color:#6d7889}
.shop-catalog .category-link{padding:3px 0;margin:0;background:transparent;border:0;color:#1766b1;font-size:14px;line-height:1.5;font-weight:550;border-radius:3px;text-align:left;overflow-wrap:anywhere;min-height:44px}
.shop-catalog .category-link:hover,.shop-catalog .product-name:hover{text-decoration:underline}
.shop-catalog .cart-feedback{position:fixed;left:50%;bottom:24px;transform:translate(-50%,12px);z-index:30;background:#102b50;color:#fff;border-radius:12px;padding:14px 20px;margin:0;max-width:calc(100% - 28px);width:max-content;box-shadow:0 8px 28px #102b5030;opacity:0;pointer-events:none;font-size:14px;line-height:1.5}
.shop-catalog .cart-feedback.visible{opacity:1;transform:translate(-50%,0)}
.shop-catalog .product-detail{width:min(600px,calc(100% - 24px));max-height:90vh;max-height:90dvh}
.shop-catalog .product-detail .dialog-heading{align-items:flex-start}
.shop-catalog .product-detail h2{font-size:21px;line-height:1.4;padding-right:10px;overflow-wrap:anywhere}
.shop-catalog .product-detail .dialog-heading button{flex-shrink:0}
.shop-catalog .detail-photo{aspect-ratio:1;background:#f6f7f9;border-radius:12px;padding:24px;margin-bottom:20px;max-height:360px}
.shop-catalog .detail-photo img,.shop-catalog .detail-photo .placeholder{width:100%;height:100%;object-fit:contain;background:transparent}
.shop-catalog .detail-photo .placeholder{display:flex;align-items:center;justify-content:center}
.shop-catalog .product-detail .category{display:block;color:#596d85;font-size:13px;margin-bottom:10px}
.shop-catalog .detail-description{white-space:pre-wrap;overflow-wrap:anywhere;color:#44536a}
.shop-catalog .detail-stock{color:#0866d8;font-size:14px;margin:10px 0}
.shop-catalog .detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.shop-catalog .detail-actions button{flex:1}
@media(min-width:851px) and (max-width:1100px){.shop-catalog .products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.shop-catalog .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px}}
@media(max-width:520px){.shop-catalog main{padding:0 16px 44px}.shop-catalog .intro{padding:26px 0 22px}.shop-catalog .intro h1{font-size:2.15rem;margin:12px 0}.shop-catalog .intro p{font-size:14px}.shop-catalog .pills{gap:6px}.shop-catalog .pills span{padding:6px 9px;font-size:11px}.shop-catalog .products{gap:24px 14px}.shop-catalog .product-media,.shop-catalog .product-photo-open{border-radius:10px}.shop-catalog .product-photo-open{padding:15px}.shop-catalog .quick-add{bottom:8px;right:8px;width:44px;height:44px;min-width:44px;font-size:29px}.shop-catalog .product-content{padding:12px 0 0;gap:7px}.shop-catalog .price-major{font-size:24px}.shop-catalog .price-currency{font-size:11px}.shop-catalog .price-minor{font-size:12px}.shop-catalog .product h2{font-size:15px}.shop-catalog .category-link{font-size:13px}.shop-catalog .detail-photo{padding:18px}.shop-catalog .product-detail h2{font-size:18px}}
@media(max-width:360px){.shop-catalog main{padding-left:12px;padding-right:12px}.shop-catalog .products{column-gap:10px}.shop-catalog .price-major{font-size:21px}.shop-catalog .price-currency{margin-right:1px}}
@media(prefers-reduced-motion:no-preference){.shop-catalog .quick-add,.shop-catalog .cart-feedback{transition:transform .18s,opacity .18s,box-shadow .18s}.shop-catalog .quick-add:active{transform:scale(.92)}}
