.product-gallery [hidden] { display: none !important; }
.product-gallery__status.product-gallery__sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.product-gallery__stage { position: relative; padding: 0; overflow: hidden; }
.product-gallery__inline-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; color: #0f172a; }
.product-gallery__inline-arrow.product-gallery__arrow--prev { left: 8px; }
.product-gallery__inline-arrow.product-gallery__arrow--next { right: 8px; }
.product-gallery__open { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; align-self: stretch; padding: 24px; color: #475569; text-decoration: none; cursor: zoom-in; }
.product-gallery__hint { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; }
.product-gallery__hint span { font-size: 22px; }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.product-gallery__thumb { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: 0 0 64px; padding: 4px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumb[aria-current="true"] { border: 2px solid #c80b0e; box-shadow: 0 0 0 1px #c80b0e; }
.product-gallery :is(a, button):focus-visible { outline: 3px solid #c80b0e; outline-offset: 3px; }
.product-gallery [data-gallery-caption] { margin-top: 12px; }
.product-gallery__status { margin: 8px 0 0; font-size: 13px; color: #9f1014; }
.product-gallery__status:empty { display: none; }
.product-gallery__dialog { box-sizing: border-box; width: min(1200px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 24px; border: 0; border-radius: 12px; background: #fff; color: #0f172a; box-shadow: 0 24px 90px #0005; overflow: auto; }
.product-gallery__dialog::backdrop { background: #0f172acc; }
.product-gallery__toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.product-gallery__toolbar h2 { flex: 1; min-width: 0; margin: 0; font: 600 18px/1.4 var(--font-sans, sans-serif); overflow-wrap: anywhere; }
.product-gallery__dialog button { font: inherit; color: inherit; }
.product-gallery__toolbar button, .product-gallery__arrow { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; min-width: 44px; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer; }
.product-gallery__toolbar [data-gallery-close] { font-size: 28px; }
.product-gallery__toolbar [data-gallery-zoom] { gap: 8px; padding: 8px 12px; }
.product-gallery__toolbar [aria-pressed="true"] { border-color: #c80b0e; color: #c80b0e; }
.product-gallery__viewer { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.product-gallery__viewport { grid-column: 2; grid-row: 1; height: clamp(180px, 55dvh, 650px); overflow: auto; background: #fff; overscroll-behavior: contain; }
.product-gallery__viewport img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-gallery__viewport.is-zoomed img { width: 200%; height: 200%; max-width: none; }
.product-gallery__arrow { grid-row: 1; font-size: 32px !important; }
.product-gallery__arrow--prev { grid-column: 1; }
.product-gallery__arrow--next { grid-column: 3; }
.product-gallery__caption { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #475569; overflow-wrap: anywhere; }
.product-gallery__caption:empty { display: none; }
.product-gallery__count { margin: 10px 0 0; text-align: center; font-size: 13px; color: #475569; }
.product-gallery__dialog .product-gallery__thumbs { justify-content: center; }
@media (max-width: 600px) {
  .product-gallery__open { padding: 16px; }
  .product-gallery__dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 12px; border-radius: 8px; }
  .product-gallery__toolbar { gap: 8px; }
  .product-gallery__toolbar h2 { font-size: 14px; }
  .product-gallery__toolbar [data-gallery-zoom] { font-size: 13px; padding: 4px 8px; }
  .product-gallery__viewer { gap: 4px; }
  .product-gallery__viewport { height: 46dvh; }
}
