@media (max-width: 600px) {
  #product-dialog .product-detail-grid { grid-template-columns: minmax(0, 1fr); }
  #product-dialog .detail-copy { overflow-wrap: anywhere; }
}

.qr-product-brand { display:none; }
@media (max-width:720px) and (any-pointer:coarse) {
  #product-dialog[data-qr-entry] { padding-top:max(56px, calc(env(safe-area-inset-top) + 48px)); }
  #product-dialog[data-qr-entry] .qr-product-brand {
    display:block; position:absolute; top:max(17px,env(safe-area-inset-top)); left:max(19px,env(safe-area-inset-left));
    width:100px; height:22px; background:url("assets/amaya-logo-active.png") left center / contain no-repeat;
  }
  #product-dialog[data-qr-entry] .floating-close { left:auto; right:max(12px,env(safe-area-inset-right)); }
}
