.a5-catalog-grid #v23-product-layout,.a5-catalog-grid #admin-live-product-detail,.a5-catalog-grid #v49-sticker-features{display:none!important}
.a5-catalog-detail #v49-sticker-features{display:none!important}
.a5-catalog-detail #v23-product-layout,.a5-catalog-detail #admin-live-product-detail{max-width:none;margin-inline:auto}
.a5-catalog-detail .v12-product-panel{width:100%!important}
#a5-product-catalog[hidden]{display:none!important}
.a5-catalog-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:12px 0 24px}
.a5-catalog-toolbar label{display:grid;gap:8px;font-size:14px;font-weight:700;width:min(420px,70%)}
.a5-catalog-toolbar input{width:100%;padding:12px 16px;border:1px solid #c1dcd9;border-radius:12px;background:white;font:inherit;font-weight:400;min-height:46px}
#a5-catalog-count{font-size:14px;color:#52646c;padding-bottom:12px}
.a5-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:stretch}
.a5-product-card{background:#fff;border:1px solid #e2e9e7;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 4px 18px #234b4610;font-family:Arial,sans-serif;transition:box-shadow .18s,border-color .18s}
.a5-product-card[hidden]{display:none}
.a5-product-card:hover{border-color:#d7c7bd;box-shadow:0 6px 18px #674b3a0b}
.a5-product-photo{display:block;aspect-ratio:1;background:#f7f6f2;padding:10px;overflow:hidden;min-width:0;box-sizing:border-box;border-bottom:1px solid #edf0ed}
.a5-product-photo img{width:100%!important;height:100%!important;max-height:100%;object-fit:contain!important;display:block;transition:transform .2s}
.a5-product-photo:hover img{transform:scale(1.025)}
.a5-product-copy{padding:15px;display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}
.a5-product-copy h2{font:700 15px/1.35 Arial,sans-serif;margin:0;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.a5-product-copy h2 a{color:#194c53;text-decoration:none}
.a5-product-copy small{font:400 12px/1.35 Arial,sans-serif;color:#717a7c;min-height:1.35em;overflow-wrap:anywhere}
.a5-product-copy>strong{color:var(--current-category-color,#087f79);font:700 19px/1.3 Arial,sans-serif;margin-top:auto;padding-top:3px}
.a5-view-product{display:flex;justify-content:center;align-items:center;min-height:44px;box-sizing:border-box;padding:10px 12px;border-radius:9px;background:var(--current-category-color,#0b8c87);color:#fff;text-decoration:none;font:600 14px/1.25 Arial,sans-serif;margin-top:3px;text-align:center}
.a5-view-product:hover{filter:brightness(.93)}
#a5-detail-back{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px auto 22px;max-width:1100px}
#a5-detail-back a{color:#006b78;text-decoration:none;border:1px solid #bbd9d5;border-radius:10px;padding:12px 16px;font-size:14px;font-weight:700;background:#fff}
#a5-detail-back span{font-size:14px;color:#657780}
.a5-product-card a:focus-visible,#a5-detail-back a:focus-visible{outline:3px solid #006b78;outline-offset:3px}
@media(max-width:760px){.a5-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.a5-product-copy{padding:10px;gap:6px}.a5-product-copy h2{font-size:14px;min-height:2.7em}.a5-product-copy>strong{font-size:17px}.a5-product-photo{padding:6px}.a5-catalog-toolbar{gap:10px}.a5-catalog-toolbar label{width:75%}#a5-detail-back{display:block}#a5-detail-back a{display:inline-flex}#a5-detail-back span{display:block;margin:12px 0}.a5-catalog-detail .v12-product-panel{grid-template-columns:1fr!important}}
@media(max-width:380px){.a5-products-grid{gap:9px}.a5-product-copy{padding:9px}.a5-view-product{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){.a5-product-photo img,.a5-product-card{transition:none}}

.a5-catalog-detail .a5-related{display:block!important;padding:0!important;max-height:none!important;overflow:hidden!important}
.a5-related-filters{display:grid;gap:12px;padding:12px}
.a5-related-filters label{display:grid;gap:7px;font-size:12px;font-weight:800;color:#52646c;text-transform:uppercase}
.a5-related-filters select,.a5-related-filters input{width:100%;min-width:0;height:42px;padding:8px 12px;border:1px solid #e4cec4;border-radius:12px;background:#fff;font:inherit;font-size:14px;text-transform:none;font-weight:400}
.a5-related .admin-related-list{max-height:440px!important;overflow-y:auto!important}
.a5-related a.v12-theme{display:flex!important;text-decoration:none;min-height:72px!important;padding:10px!important}
.a5-related a.v12-theme[hidden]{display:none!important}
.a5-related a.v12-theme img{width:48px!important;height:52px!important;object-fit:contain}
.a5-related a.v12-theme span{min-width:0}
.a5-related a.v12-theme:focus-visible{outline:3px solid #006b78;outline-offset:-3px}
@media(min-width:1101px){.a5-catalog-detail #v23-product-layout,.a5-catalog-detail #admin-live-product-detail{grid-template-columns:minmax(0,1fr) 250px!important}}
@media(max-width:1100px){.a5-catalog-detail #v23-product-layout,.a5-catalog-detail #admin-live-product-detail{grid-template-columns:minmax(0,1fr)!important}.a5-catalog-detail .a5-related{width:100%!important;min-width:0!important;max-width:none!important}.a5-related .admin-related-list{display:block!important}.a5-related a.v12-theme{width:100%!important;flex:none!important}}

/* One route owns one purchase panel, even while another data load releases
   the original catalog's hidden attributes. */
body.products-v12-page.a5-catalog-grid #v23-product-layout,
body.products-v12-page.a5-catalog-grid #admin-live-product-detail,
body.products-v12-page.a5-admin-detail #v23-product-layout,
body.products-v12-page.a5-native-detail #admin-live-product-detail{display:none!important}

.a5-image-unavailable{display:grid;place-items:center;width:100%;height:100%;padding:20px;box-sizing:border-box;color:#637779;font-size:14px;text-align:center;background:#f4f8f7}
