.product-gallery-editor { clear: both; margin: 16px 0 22px; padding: 16px; border: 1px dashed #cbdde6; border-radius: 12px; background: #f8fbfd; text-align: right; }
.product-gallery-editor label { display: block; margin-bottom: 10px; }
.product-gallery-editor small { display: block; color: #748694; font-size: 11px; line-height: 1.9; margin: 8px 0; }
.product-gallery-editor input[type=file] { padding: 10px; width: 100%; background: #fff; }
.product-gallery-counter { display: block; margin: 10px 0; font-size: 11px; color: #448098; }
.product-gallery-edit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.product-gallery-edit-card { overflow: hidden; padding: 5px; background: #fff; border: 1px solid #dfe8ee; border-radius: 10px; }
.product-gallery-edit-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.product-gallery-edit-card button { display: block; width: 100%; min-height: 36px; margin-top: 5px; border: 0; border-radius: 6px; color: #a54151; background: #fff1f3; font: inherit; font-size: 11px; cursor: pointer; }
.product-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px; clear: both; }
.product-gallery-thumbs button { flex-shrink: 0; padding: 3px; border: 1px solid #dce6ed; border-radius: 8px; background: #fff; cursor: pointer; }
.product-gallery-thumbs button[aria-pressed=true] { border: 2px solid #3196b4; padding: 2px; }
.product-gallery-thumbs img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 5px; }
.product-gallery-count { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 7px; background: #193b4de6; color: #fff; font-size: 11px; pointer-events: none; }
.product-detail-gallery .swiper-slide > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #f8fafc; }
.product-gallery-editor button:focus-visible, .product-gallery-thumbs button:focus-visible { outline: 3px solid #3196b4; outline-offset: 2px; }
@media (max-width: 575px) { .product-gallery-edit-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .product-gallery-thumbs img { width: 52px; height: 52px; } }
