/* Accessories Shop Premium 1.16.3 / Hotfix 2: stock status, quick preview and brand logo stability. */
body .product-miniature .product-flags li.badge.asu-stock-flag--out,
body .as-product-card .product-flags li.badge.asu-stock-flag--out,
body .product-flags li.badge.asu-stock-flag--out,
body .product-flags li.badge.out_of_stock,
body .product-flags li.badge.out-of-stock,
body .product-flags li.product-flag.out_of_stock,
body .product-flags li.product-flag.out-of-stock {
  background:#f8d5df!important;
  background-color:#f8d5df!important;
  color:#83384f!important;
  border:1px solid #e8b3c4!important;
  border-radius:999px!important;
  box-shadow:none!important;
}
body .product-flags li.badge.asu-stock-flag--out::before,
body .product-flags li.badge.asu-stock-flag--out::after {background:none!important;}
/* Preview dialog must overlay sticky header and product cards. */
dialog.asu-preview-dialog {position:fixed;z-index:2147483600;inset:0;margin:auto;}
dialog.asu-preview-dialog[open] {display:block;}
dialog.asu-preview-dialog::backdrop {background:rgba(27,19,24,.7);}
/* Never hide a genuine brand image even if the placeholder was hidden during recovery. */
.asu-native-brand-card .brand__img:not([hidden]),
.asu-brand-logo img:not([hidden]) {visibility:visible;}

/* Product photo preview on the example PDP and every other product. */
body#product .asu-product-detail__gallery .product__carousel .carousel-item.active img {cursor:zoom-in;}
dialog.asu-image-viewer {position:fixed;inset:0;margin:auto;z-index:2147483601;max-width:min(1100px,96vw);max-height:95vh;padding:20px;background:#fff;border:1px solid #eedde1;border-radius:20px;box-shadow:0 30px 90px rgba(36,17,29,.35);}
dialog.asu-image-viewer::backdrop {background:rgba(21,15,18,.82);}
.asu-image-viewer__image {display:block;width:auto;max-width:90vw;height:auto;max-height:82vh;object-fit:contain;margin:auto;}
.asu-image-viewer__close {position:absolute;right:10px;top:10px;z-index:2;border:1px solid #ead1d9;border-radius:50%;background:#fff;color:#784052;font-size:24px;width:40px;height:40px;cursor:pointer;}
