.product-image-open { display: block; position: relative; z-index: 1; cursor: zoom-in; }
.product-image-zoom-hint { position: absolute; z-index: 2; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #d4e1ee; border-radius: 9px; background: #ffffffed; color: #244b6e; box-shadow: 0 3px 12px #12325312; font-size: 12px; font-weight: 700; }
.product-image-zoom-hint > span { font-size: 21px; line-height: 1; }
.product-image-open:hover .product-image-zoom-hint { background: #fff; color: #1268cb; border-color: #8eb6dc; }
.product-image-open:focus-visible { outline: 3px solid #1268cb; outline-offset: 4px; border-radius: 8px; }
html.product-gallery-open { overflow: hidden; scrollbar-gutter: stable; }
.product-lightbox { position: fixed; inset: 0; width: calc(100vw - 40px); height: calc(100vh - 40px); height: calc(100dvh - 40px); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #ffffff30; border-radius: 18px; background: #10263c; color: #fff; overflow: hidden; box-shadow: 0 24px 80px #0008; }
.product-lightbox::backdrop { background: #061321e8; backdrop-filter: blur(5px); }
.product-lightbox-shell { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.product-lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid #ffffff1c; }
.product-lightbox-heading { min-width: 0; }
.product-lightbox-header h2 { color: #fff; font-size: 18px; line-height: 1.4; margin: 0 0 4px; font-weight: 700; }
#product-lightbox-position { color: #b6cbdf; font-size: 12px; }
.product-lightbox-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.product-lightbox button, .product-lightbox-tools a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 13px; border: 1px solid #9dbbd249; border-radius: 9px; background: #1c3a55; color: #fff; font: inherit; font-size: 13px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.product-lightbox button:hover, .product-lightbox-tools a:hover { background: #2a5275; border-color: #adc9e4; color: #fff; }
.product-lightbox button:disabled { opacity: .5; cursor: default; }
.product-lightbox button[aria-pressed="true"] { background: #176ac0; border-color: #70b4f7; }
.product-lightbox .product-lightbox-close { width: 44px; padding: 0; flex-shrink: 0; font-size: 27px; background: transparent; }
.product-lightbox :focus-visible { outline: 3px solid #86c5ff; outline-offset: 3px; }
.product-lightbox-stage { flex: 1; min-height: 0; min-width: 0; overflow: auto; background: #e7edf3; overscroll-behavior: contain; }
.product-lightbox-canvas { display: flex; align-items: center; justify-content: center; height: 100%; padding: 18px; box-sizing: border-box; }
.product-lightbox-canvas img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; flex: 0 0 auto; object-fit: contain; background: #fff; box-shadow: 0 4px 20px #10263c18; }
.product-lightbox-stage.is-original .product-lightbox-canvas { width: max-content; min-width: 100%; height: max-content; min-height: 100%; }
.product-lightbox-stage.is-original img { max-width: none; max-height: none; }
.product-lightbox-canvas #product-lightbox-error { padding: 20px; color: #334f68; font-size: 15px; }
.product-lightbox [hidden] { display: none !important; }
.product-lightbox-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 20px; border-top: 1px solid #ffffff1c; }
.product-lightbox-footer p { flex: 1; margin: 0; text-align: center; color: #c2d4e4; font-size: 12px; line-height: 1.6; }
.product-lightbox-help { display: block; color: #93adc5; font-size: 11px; }
@media (max-width:699px) {
  .product-image-zoom-hint { padding: 7px 9px; font-size: 11px; }
  .product-lightbox { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: 12px; }
  .product-lightbox-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 8px; padding: 12px; }
  .product-lightbox-tools { display: contents; }
  .product-lightbox-heading { grid-column: 1; grid-row: 1; }
  .product-lightbox-header h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .product-lightbox .product-lightbox-close { grid-column: 2; grid-row: 1; justify-self: end; }
  #product-lightbox-zoom { grid-column: 1; grid-row: 2; }
  #product-lightbox-original { grid-column: 2; grid-row: 2; }
  .product-lightbox button, .product-lightbox-tools a { font-size: 12px; padding: 8px 10px; }
  .product-lightbox-canvas { padding: 8px; }
  .product-lightbox-footer { padding: 10px 12px; gap: 8px; min-height: 64px; }
  .product-lightbox-footer button { min-width: 44px; }
  .product-lightbox-footer button span, .product-lightbox-help { display: none; }
}
