/* B2B giriş kapısı + ürün galeri lightbox */

.b2b-login-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(160deg, rgba(29, 78, 216, 0.06) 0%, rgba(248, 250, 252, 1) 55%);
  border: 1px solid rgba(29, 78, 216, 0.15);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.b2b-login-gate__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
}

.b2b-login-gate__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.b2b-login-gate__text {
  margin: 0;
  max-width: 36ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}

.b2b-login-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.b2b-login-gate__actions .btn {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
}

.listing-card--guest .listing-card-meta .price,
.listing-card--guest .listing-card-meta .moq,
.listing-card--guest .listing-card-supplier {
  display: none;
}

.listing-card-guest-hint {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.supplier-card--guest .supplier-card-sensitive {
  display: none;
}

/* Tedarikçi listesi — misafir satırı (2 sütun: bilgi + CTA) */
.supplier-card--guest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.supplier-card-guest-info {
  min-width: 0;
}

.supplier-card-guest-title {
  margin: 0 0 0.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.supplier-card--guest .supplier-card-guest-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #64748b;
}

.supplier-card-guest-cta {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 40px;
  padding: 0.5rem 1.125rem;
  font-weight: 600;
}

@media (max-width: 520px) {
  .supplier-card--guest {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .supplier-card-guest-cta {
    width: 100%;
    justify-content: center;
  }
}

.supplier-hero--guest .supplier-hero-sensitive {
  display: none;
}

.supplier-hero--guest .b2b-login-gate {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.supplier-hero--guest .b2b-login-gate__title {
  color: #fff;
}

.supplier-hero--guest .b2b-login-gate__text {
  color: rgba(255, 255, 255, 0.78);
}

.supplier-hero--guest .b2b-login-gate__icon {
  background: rgba(255, 255, 255, 0.14);
  color: #93c5fd;
}

/* Galeri — tıklanabilir ana görsel */
.gallery-main {
  position: relative;
  cursor: zoom-in;
}

.gallery-main::after {
  content: "";
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 3v12M3 9h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  pointer-events: none;
}

.gallery-main:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.45);
  outline-offset: 2px;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 520px);
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: min(70vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.gallery-lightbox__img.is-loading {
  opacity: 0.4;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.gallery-lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__nav:active,
.gallery-lightbox__close:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-lightbox__close:active {
  transform: scale(0.94);
}

.gallery-lightbox__nav--prev { left: 0.75rem; }
.gallery-lightbox__nav--next { right: 0.75rem; }

.gallery-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.gallery-lightbox__caption {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-lightbox__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.gallery-lightbox__thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-lightbox__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.gallery-lightbox__thumb.is-active,
.gallery-lightbox__thumb:hover {
  opacity: 1;
  border-color: #60a5fa;
}

.gallery-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .gallery-lightbox {
    padding: 0;
    align-items: flex-end;
  }

  .gallery-lightbox__panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 14px 14px 0 0;
    background: #0f172a;
    padding: 0.5rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .gallery-lightbox__stage {
    min-height: 55vh;
    border-radius: 10px;
  }

  .gallery-lightbox__nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}
