/* Galeria sklepów: wyłącznie strona główna, bez ingerencji w HERO i mapy. */
.store-gallery-link {
  text-decoration: underline;
  text-decoration-color: #1f2d4a70;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.store-gallery-link svg { display: inline-block; vertical-align: -2px; margin-left: 5px; }
.store-gallery-link:hover { color: var(--red); }
.store-gallery-link:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; border-radius: 3px; }
.store-gallery {
  width: min(1060px, calc(100% - 40px));
  height: min(900px, calc(100dvh - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 24px 100px #0e172744;
  overflow: auto;
  overscroll-behavior: contain;
}
.store-gallery::backdrop { background: #152239b8; backdrop-filter: blur(5px); }
.store-gallery[open] { display: flex; flex-direction: column; }
.store-gallery [hidden] { display: none !important; }
.store-gallery button { color: inherit; }
.store-gallery button:focus-visible,
.store-gallery a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sg-header { position: relative; flex: none; padding: 25px 76px 18px 30px; }
.sg-eyebrow { margin: 0 0 5px; color: var(--red); font-size: .65rem; font-weight: 700; letter-spacing: .14em; }
.sg-header h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -.045em; line-height: 1.15; }
.sg-close, .sg-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: color .2s, background .2s;
}
.sg-close { position: absolute; z-index: 2; top: 22px; right: 24px; }
.sg-close:hover, .sg-arrow:hover { color: var(--red); background: var(--blue); }
.sg-storebar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px 18px; }
.sg-tabs { display: flex; padding: 4px; border: 1px solid #f2dce0; border-radius: 30px; background: #fff7f7; }
.sg-tabs button { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 24px; background: transparent; font-size: .78rem; font-weight: 700; }
.sg-tabs button[aria-selected="true"] { color: white; background: var(--red); }
.sg-address { margin: 0; color: var(--gray); font-size: .74rem; text-align: right; }
.sg-panel { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.sg-stage { position: relative; min-height: 150px; flex: 1; margin: 0 22px; overflow: hidden; border-radius: 15px; background: #eef2f6; touch-action: pan-y pinch-zoom; }
.sg-photo { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.sg-stage[data-loading="true"]::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 12px; height: 3px; border-radius: 3px; background: var(--red); animation: sg-loading 1s ease-in-out infinite alternate; }
@keyframes sg-loading { from { opacity: .3; } to { opacity: 1; } }
.sg-arrow { position: absolute; top: 50%; transform: translateY(-50%); box-shadow: 0 3px 14px #1f2d4a12; }
.sg-prev { left: 14px; }
.sg-next { right: 14px; }
.sg-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; flex: none; padding: 10px 30px 6px; font-size: .8rem; }
.sg-caption p { margin: 0; }
.sg-counter { color: var(--gray); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-thumbs { display: flex; flex: none; gap: 9px; overflow-x: auto; padding: 7px 30px 13px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.sg-thumb { position: relative; flex: 0 0 80px; width: 80px; height: 62px; border: 2px solid transparent; padding: 3px; border-radius: 9px; background: #f2f5f8; opacity: .66; transition: opacity .2s, border-color .2s; }
.sg-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.sg-thumb:hover, .sg-thumb[aria-current="true"] { opacity: 1; }
.sg-thumb[aria-current="true"] { border-color: var(--red); }
.sg-footer { flex: none; display: flex; justify-content: space-between; gap: 16px; padding: 0 30px 18px; border: 0; color: var(--gray); font-size: .68rem; }
.sg-footer p { margin: 0; }
.sg-footer a { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.sg-error { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; padding: 25px 65px; text-align: center; background: var(--blue); }
.sg-error p { margin: 0; }
.sg-error button { justify-self: center; padding: 10px 18px; border-radius: 25px; border: 1px solid var(--line); background: #fff; }
.sg-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .store-gallery { width: calc(100% - 16px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 19px; }
  .sg-header { padding: 20px 65px 16px 18px; }
  .sg-close { top: 15px; right: 12px; }
  .sg-storebar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 0 18px 13px; }
  .sg-tabs { max-width: 100%; }
  .sg-tabs button { padding-inline: 12px; font-size: .73rem; }
  .sg-address { text-align: left; font-size: .68rem; }
  .sg-stage { margin-inline: 10px; border-radius: 12px; min-height: 130px; }
  .sg-prev { left: 7px; }
  .sg-next { right: 7px; }
  .sg-caption { padding-inline: 18px; font-size: .73rem; min-height: 48px; }
  .sg-thumbs { padding-inline: 18px; gap: 6px; }
  .sg-thumb { flex-basis: 62px; width: 62px; height: 50px; }
  .sg-footer { padding: 0 18px 15px; font-size: .62rem; }
}
@media (max-height: 540px) and (min-width: 601px) {
  .store-gallery { height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .sg-header { min-height: 58px; padding: 12px 75px 9px 22px; }
  .sg-header h2 { max-width: calc(100% - 240px); font-size: 1.2rem; }
  .sg-eyebrow, .sg-address, .sg-footer { display: none; }
  .sg-close { top: 8px; }
  .sg-storebar { position: absolute; top: 7px; right: 76px; padding: 0; }
  .sg-tabs button { min-height: 34px; padding: 6px 12px; font-size: .7rem; }
  .sg-caption { min-height: 32px; padding-block: 4px; }
  .sg-thumbs { padding-block: 5px 8px; }
  .sg-thumb { height: 42px; flex-basis: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-gallery *, .store-gallery-link { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
