/* Catalog only. Native dialog supplies keyboard trapping and background inertness. */
#shop-filter-form{display:grid;gap:14px;min-width:0}
#shop-filter-form select,#shop-filter-form input:not([type=checkbox]){width:100%;min-width:0;min-height:44px}
.shop-filter-reset{display:block;text-align:center;padding:10px;color:inherit;text-decoration:underline;text-underline-offset:3px}
.shop-filter-submit{width:100%;min-height:44px}
#shop-results{min-width:0;scroll-margin-top:110px}
#shop-results[aria-busy=true]{opacity:.65}
#shop-grid .marketplace-card__image img{width:100%;height:100%;object-fit:contain}
#shop-grid .marketplace-card__image,.catalog-product-page .product-gallery__main,.catalog-product-page .product-gallery__thumb{background:#fff}
#shop-grid .marketplace-card__body{display:flex;flex-direction:column}
#shop-grid .marketplace-card__body h3{min-height:2.8em;line-height:1.4;overflow-wrap:anywhere}
#shop-grid .marketplace-card__bottom{margin-top:auto}
#shop-grid .marketplace-card__meta{min-height:30px;margin-bottom:14px}
#shop-grid .marketplace-card__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px}
#shop-grid .shop-price-kind{flex-basis:100%;font-size:12px;line-height:1.4;color:var(--muted,#acb9d0)}
#shop-grid .marketplace-add-cart{display:flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none}
.shop-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:24px 0}
.shop-pagination a{min-height:44px;display:inline-flex;align-items:center;padding:8px 14px}
#shop-active-filter-count:empty{display:none}
#shop-active-filter-count{border-radius:20px;background:#6650cd;color:white;min-width:26px;padding:3px 7px;text-align:center}
#shop-filter-dialog{display:none;box-sizing:border-box;width:min(560px,calc(100% - 16px));max-height:85dvh;margin:auto auto 8px;border:1px solid #596282;border-radius:22px;background:#121a2c;color:#edf2ff;padding:20px;overflow:auto;overscroll-behavior:contain;box-shadow:0 10px 50px #0008}
#shop-filter-dialog[open]{display:block}
#shop-filter-dialog::backdrop{background:#050a18bb}
#shop-filter-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
#shop-filter-dialog h2{font-size:20px;margin:0}
#shop-filter-dialog [data-shop-filter-close]{width:44px;height:44px;border:1px solid #596282;border-radius:50%;color:inherit;background:transparent;font-size:25px}
.shop-filters-open{overflow:hidden!important}
#shop-filter-form :focus-visible,.shop-pagination a:focus-visible,#shop-filter-dialog button:focus-visible{outline:3px solid #52d5f3;outline-offset:3px}
[data-theme=light] #shop-filter-dialog{background:#f8faff;color:#172033}
[data-theme=light] #shop-grid .shop-price-kind{color:#48576e}
@media(max-width:1180px){
 #shop-mobile-filters-toggle:not([hidden]),html.shop-dialog-supported #shop-mobile-filters-toggle[hidden]{display:flex!important;align-items:center;gap:10px}
 #shop-mobile-filters-toggle .shop-mobile-filters-toggle__label{flex:1;text-align:left}
 html.shop-dialog-supported #shop-mobile-filters-panel{display:none!important}
 html:not(.shop-dialog-supported) #shop-mobile-filters-panel{display:block!important;position:static!important;transform:none!important;visibility:visible!important;opacity:1!important;max-height:none!important}
 #shop-mobile-filters-toggle[hidden]{display:none!important}
 html.shop-dialog-supported #shop-mobile-filters-toggle[hidden]{visibility:hidden}
 #shop-filter-form{padding:0}
}
@media(max-width:700px){#shop-grid{grid-template-columns:minmax(0,1fr)}#shop-grid .marketplace-card__body h3{min-height:0}.shop-pagination{font-size:14px}.shop-pagination a{padding:8px 10px}}
.catalog-product-page .product-gallery__main{aspect-ratio:1;min-width:0}
.catalog-product-page #product-main-image{width:100%;height:100%;object-fit:contain}
.catalog-product-page .product-gallery__thumb{min-width:64px;min-height:64px}
.shop-photo-dialog{box-sizing:border-box;border:1px solid #596282;border-radius:18px;padding:54px 58px 42px;width:min(1100px,calc(100vw - 24px));height:min(850px,calc(100dvh - 24px));max-width:100%;max-height:100%;background:#0c1422;color:white;overflow:hidden}
.shop-photo-dialog::backdrop{background:#050a18dd}
.shop-photo-dialog img{display:block;width:100%;height:100%;object-fit:contain}
.shop-photo-dialog img{background:#fff;border-radius:10px}
.shop-photo-dialog button{position:absolute;width:44px;height:44px;display:grid;place-items:center;border:1px solid #8b99b2;border-radius:50%;background:#27364b;color:white;font-size:26px}
.shop-photo-dialog button:focus-visible{outline:3px solid #52d5f3;outline-offset:3px}
.shop-photo-close{top:8px;right:8px}.shop-photo-prev{left:6px;top:calc(50% - 22px)}.shop-photo-next{right:6px;top:calc(50% - 22px)}
.shop-photo-counter{position:absolute;bottom:10px;left:0;width:100%;text-align:center;font-size:14px;pointer-events:none}
@media(max-width:700px){.shop-photo-dialog{padding:54px 6px 50px}.shop-photo-prev,.shop-photo-next{top:auto;bottom:3px}}
