/* Kurumsal PDP galeri — oklar, yakınlaştırma butonu, tam ekran görüntüleyici */
.co-gallery__stage {
  position: relative;
}

.co-gallery__main-img {
  cursor: zoom-in;
}

.co-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--gray-100, #e6e6e6);
  background: rgba(255, 255, 255, .92);
  color: var(--ink, #1a1a1a);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color .2s, color .2s, background .2s;
}

.co-gallery__arrow:hover,
.co-gallery__arrow:focus-visible {
  border-color: var(--main-dark, #294647);
  color: var(--main-dark, #294647);
  background: #fff;
}

.co-gallery__arrow .icon {
  width: 18px;
  height: 18px;
}

.co-gallery__arrow--prev { inset-inline-start: 12px; }
.co-gallery__arrow--next { inset-inline-end: 12px; }

[dir="rtl"] .co-gallery__arrow .icon {
  transform: scaleX(-1);
}

.co-gallery__zoom-btn {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--gray-100, #e6e6e6);
  background: rgba(255, 255, 255, .92);
  color: var(--ink, #1a1a1a);
  cursor: pointer;
}

.co-gallery__zoom-btn:hover {
  border-color: var(--main-dark, #294647);
  color: var(--main-dark, #294647);
}

.co-gallery__zoom-btn .icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .co-gallery__stage .co-gallery__arrow {
    opacity: 0;
  }

  .co-gallery__stage:hover .co-gallery__arrow,
  .co-gallery__stage .co-gallery__arrow:focus-visible {
    opacity: 1;
  }
}

/* Görüntüleyici */
.co-viewer {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
}

.co-viewer[hidden] {
  display: none !important;
}

.co-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: #0a1718;
}

.co-viewer__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.co-viewer__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}

.co-viewer__counter {
  font-weight: 600;
  letter-spacing: .04em;
}

.co-viewer__hint {
  opacity: .7;
}

.co-viewer__close {
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.co-viewer__close:hover {
  border-color: #fff;
}

.co-viewer__close .icon {
  width: 18px;
  height: 18px;
}

.co-viewer__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 72px 24px;
  overflow: hidden;
}

.co-viewer__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
  transition: transform .2s ease;
  user-select: none;
}

.co-viewer__stage.is-zoomed .co-viewer__img {
  transform: scale(2.5);
  cursor: zoom-out;
}

.co-viewer__stage .co-gallery__arrow {
  opacity: 1;
}

@media (width <= 767px) {
  .co-viewer__stage {
    padding: 0 8px 16px;
  }

  .co-viewer__hint {
    display: none;
  }

  .co-viewer__stage .co-gallery__arrow {
    width: 38px;
    height: 38px;
  }
}
