/* AUDITASOFT v1.5 — product gallery, scoped to avoid conflicting with existing theme. */
.product-gallery {min-width:0;width:100%}
.product-gallery-stage {position:relative;width:100%;isolation:isolate}
.product-gallery-stage img {display:block;width:100%;height:100%;object-fit:contain}
.gallery-arrow {position:absolute;z-index:1;top:50%;transform:translateY(-50%);width:42px;height:42px;border:1px solid rgba(114,27,66,.17);border-radius:50%;background:rgba(255,255,255,.94);color:#721b42;font:700 31px/1 sans-serif;cursor:pointer;display:grid;place-items:center;box-shadow:0 2px 12px rgba(0,0,0,.14)}
.gallery-arrow:hover,.gallery-arrow:focus-visible {background:#721b42;color:white}
.gallery-arrow:focus-visible,.gallery-thumbnail:focus-visible {outline:3px solid #ffca3a;outline-offset:3px}
.gallery-prev {left:12px}.gallery-next {right:12px}
.gallery-count {position:absolute;bottom:13px;right:14px;padding:5px 11px;background:rgba(35,23,30,.72);color:#fff;border-radius:100px;font:600 12px/1.4 sans-serif}
.gallery-thumbnails {display:flex;gap:10px;margin-top:13px;overflow-x:auto;padding:3px 3px 10px;scrollbar-width:thin}
.gallery-thumbnail {flex:0 0 78px;height:65px;background:#fff;border:2px solid #e6d4da;border-radius:12px;cursor:pointer;padding:3px;overflow:hidden}
.gallery-thumbnail.is-active,.gallery-thumbnail[aria-pressed="true"] {border-color:#721b42;box-shadow:0 0 0 1px #721b42}
.gallery-thumbnail img {width:100%;height:100%;object-fit:contain;border-radius:6px}
.gallery-admin-section small {font-size:.8rem;color:#706168;line-height:1.6}
.gallery-admin-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;margin-top:12px}
.gallery-admin-item {display:flex;flex-direction:column;gap:7px;padding:8px;border:1px solid #e4d0d8;border-radius:12px;background:#fff;font-size:.8rem}
.gallery-admin-item img {width:100%;height:105px;object-fit:contain;border-radius:7px;background:#faf5f7}
.gallery-admin-item span {display:flex;align-items:flex-start;gap:6px}
.gallery-admin-item input[type="checkbox"] {width:16px;min-height:auto;flex:0 0 16px;accent-color:#721b42}
@media(max-width:760px) {.product-gallery-stage.detail-picture {height:360px}.gallery-thumbnail {flex-basis:70px;height:60px}}
@media(max-width:480px) {.product-gallery-stage.detail-picture {height:290px}.gallery-arrow {width:36px;height:36px;font-size:27px}.gallery-prev {left:8px}.gallery-next {right:8px}}
@media(prefers-reduced-motion:reduce) {.gallery-arrow,.gallery-thumbnail {transition:none}}
