/* v1.9.88 — Global UI/UX QA layer
   Final safety layer. Existing theme colours and component design remain unchanged. */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{max-width:100%;overflow-x:hidden}
a,button,input,select,textarea{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button,.btn,a.btn,input[type=submit],input[type=button]{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(37,99,235,.24);outline-offset:2px}
button:disabled,.btn:disabled{cursor:not-allowed}
img{max-width:100%}

/* Public catalog interaction safety */
.a4-public-body .dc-card{isolation:isolate}
.a4-public-body .dc-card-image,.a4-public-body .dc-card-body{position:relative}
.a4-public-body .dc-fav,.a4-public-body .dc-actions,.a4-public-body .dc-actions .dc-btn{position:relative;z-index:8;pointer-events:auto}
.a4-public-body .dc-fav{touch-action:manipulation}
.a4-public-body .dc-actions{z-index:9}
.a4-public-body .dc-actions .dc-btn{display:flex;align-items:center;justify-content:center}
.a4-public-body .catalog-enquiry-widget{pointer-events:none}
.a4-public-body .catalog-enquiry-widget .catalog-enquiry-fab{pointer-events:auto;touch-action:manipulation}
.a4-public-body .catalog-enquiry-drawer{pointer-events:none}
.a4-public-body .catalog-enquiry-drawer.is-open{pointer-events:auto}
.a4-public-body .catalog-product-modal{pointer-events:none}
.a4-public-body .catalog-product-modal.is-open{pointer-events:auto}
.a4-public-body .catalog-product-dialog,.a4-public-body .catalog-product-backdrop{pointer-events:auto}
.a4-public-body .catalog-share-menu{pointer-events:none}
.a4-public-body .catalog-share-menu.is-open{pointer-events:auto}
.a4-public-body .catalog-share-menu button{touch-action:manipulation}

/* Mobile browsers should not get a frozen page after closing a modal. */
@media(max-width:760px){
  body.a4-public-body.modal-open{position:static!important;width:auto!important;overflow:hidden!important}
  .a4-public-body .dc-actions .dc-btn{min-height:44px}
  .a4-public-body .dc-fav{min-width:42px;min-height:42px}
  .a4-public-body .dc-card:hover{transform:none!important}
}

/* Admin controls */
.content .card,.content .grid{min-width:0}
.content .table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.content table{min-width:620px}
.field input,.field select,.field textarea{max-width:100%}

/* Lightweight motion only; respects accessibility settings. */
.btn,.card,.nav a,.platform-tile,.dc-btn,.dc-fav,.v42-mode,.v42-stat{transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease,color .16s ease}
.btn:not(:disabled):active,.dc-btn:not(:disabled):active,.dc-fav:not(:disabled):active{transform:translateY(1px)}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* Public catalog desktop/tablet final layout */
@media(min-width:1201px){
  .a4-public-body .dc-wrap{width:min(1320px,calc(100% - 56px))!important;max-width:1320px!important;margin-inline:auto!important;padding-inline:0!important}
  .a4-public-body .dc-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
  .a4-public-body .dc-card-image{height:245px!important}
}
@media(min-width:761px) and (max-width:1200px){
  .a4-public-body .dc-wrap{width:min(1120px,calc(100% - 36px))!important;margin-inline:auto!important;padding-inline:0!important}
  .a4-public-body .dc-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
}
@media(min-width:761px){
  .a4-public-body .dc-section-head{align-items:center!important}
  .a4-public-body .dc-card-body{min-height:172px!important;display:flex!important;flex-direction:column!important}
  .a4-public-body .dc-actions{margin-top:auto!important}
  .a4-public-body .dc-card-body h3{min-height:44px!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
}
