/* ========================================================================
   BALAPARK — ÜRÜN DETAY SAYFASI
   ===================================================================== */

.product-page .site-main {
  padding-top: 16px;
  padding-bottom: 40px;
  background: #020617;
}

.product-detail-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* --------------------------------------------------------------------- */
/* Breadcrumbs */
/* --------------------------------------------------------------------- */

.product-breadcrumb {
  font-size: 0.85rem;
  color: #cbd5f5;
  margin-bottom: 10px;
}

.product-breadcrumb a {
  color: #cbd5f5;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  color: #38bdf8;
}

.product-breadcrumb__sep {
  margin: 0 4px;
  opacity: 0.6;
}

.product-breadcrumb__current {
  color: #38bdf8;
  font-weight: 600;
}

/* --------------------------------------------------------------------- */
/* Üst bar */
/* --------------------------------------------------------------------- */

.product-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 16px;
}

.product-detail-topbar__left {
  display: flex;
  align-items: center;
}

.product-detail-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
}

.product-detail-topbar__back i {
  color: #38bdf8;
}

.product-detail-topbar__back:hover {
  color: #38bdf8;
}

.product-detail-topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-detail-topbar__nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.product-detail-topbar__nav .btn-outline {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.product-detail-topbar__nav .btn-outline:hover {
  border-color: #38bdf8;
}

/* --------------------------------------------------------------------- */
/* Ana layout */
/* --------------------------------------------------------------------- */

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 24px;
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------- */
/* Galeri */
/* --------------------------------------------------------------------- */

.product-gallery {
  background: #020617;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 0.6);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.product-gallery__main {
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(15, 23, 42, 0.9);
  position: relative;
  min-height: 260px;
}

.product-gallery__item {
  display: none;
  width: 100%;
  height: 100%;
}

.product-gallery__item.is-active {
  display: block;
}

.product-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* slider nav okları */
.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.product-gallery__nav--prev {
  left: 10px;
}

.product-gallery__nav--next {
  right: 10px;
}

.product-gallery__nav:hover {
  border-color: #38bdf8;
}

.product-gallery__video {
  position: relative;
  padding-top: 56.25%;
}

.product-gallery__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Küçük görseller */
.product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.product-gallery__thumb {
  flex: 1;
  min-width: 0;
  max-width: calc(25% - 6px);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.product-gallery__thumb img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.product-gallery__thumb--video {
  justify-content: center;
}

.product-gallery__thumb-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle, #ef4444, #b91c1c);
}

.product-gallery__thumb-video i {
  color: #fef2f2;
  font-size: 1rem;
}

.product-gallery__thumb span {
  white-space: nowrap;
}

.product-gallery__thumb.is-active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* --------------------------------------------------------------------- */
/* Lightbox */
/* --------------------------------------------------------------------- */

.product-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.product-lightbox.is-open {
  display: block;
}

.product-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
}

.product-lightbox__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-lightbox__inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
}

.product-lightbox__inner img,
.product-lightbox__inner iframe {
  width: 100%;
  height: auto;
  display: block;
}

.product-lightbox__inner iframe {
  aspect-ratio: 16/9;
}

.product-lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.product-lightbox__close:hover {
  border-color: #f97316;
}

.product-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.product-lightbox__nav--prev {
  left: 16px;
}

.product-lightbox__nav--next {
  right: 16px;
}

.product-lightbox__nav:hover {
  border-color: #38bdf8;
}

/* --------------------------------------------------------------------- */
/* Ürün özet kutusu */
/* --------------------------------------------------------------------- */

.product-summary {
  background: #020617;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 0.6);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.product-summary__code {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-bottom: 4px;
}

.product-summary__title {
  margin: 0 0 8px;
  font-size: 1.7rem;
  color: #f9fafb;
}

.product-summary__divider {
  border: 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  margin: 6px 0 12px;
}

.product-summary__primary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-summary__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-summary__price-new {
  font-size: 1.7rem;
  font-weight: 700;
  color: #f97316;
}

.product-summary__price-old {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-summary__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.badge--discount,
.badge--new {
  font-size: 0.8rem;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge--discount {
  background: rgba(56, 189, 248, 0.12);
  color: #e5e7eb;
}

.badge--new {
  background: rgba(147, 51, 234, 0.18);
  color: #f5f3ff;
}

.badge--discount i,
.badge--new i {
  color: #facc15;
}

/* durum satırı */
.product-summary__status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.product-summary__status .status {
  font-size: 0.95rem;
}

.product-summary__status .status.in-stock i {
  color: #4ade80;
}

.product-summary__status .status.delivery i {
  color: #38bdf8;
}

/* özellikler listesi */
.product-summary__features {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* İlk iki satır */
.product-summary__features--primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.feature-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #e5e7eb;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.15);
}

.feature-main i {
  color: #22d3ee;
}

/* Alt 4 satır (2 li grid) */
.product-summary__features--secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.feature-secondary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  color: #fee2e2;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(127, 29, 29, 0.85);
}

.feature-secondary i {
  margin-top: 2px;
  color: #fecaca;
}

/* --------------------------------------------------------------------- */
/* Ürün Bilgisi */
/* --------------------------------------------------------------------- */

.product-info {
  margin-bottom: 28px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-radius: 24px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(30, 64, 175, 0.6);
}

.product-info__layout {
  display: grid;

  gap: 20px;
}

.product-info__text h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #f9fafb;
}

.product-info__text p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.product-info__text ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #cbd5f5;
  font-size: 0.95rem;
}

.product-info__video-inner {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: var(--shadow);
}

.product-info__video-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------- */
/* Teknik bilgiler */
/* --------------------------------------------------------------------- */

.product-specs {
  margin-bottom: 32px;
  background: radial-gradient(circle at top left, #020617, #020617);
  border-radius: 24px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.product-specs h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #f9fafb;
}

.product-specs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-specs__group {
  background: #020617;
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  padding: 10px 12px;
}

.product-specs__group h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #e5e7eb;
  font-weight: 600;
}

.product-specs__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.product-specs__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5f5;
}

.product-specs__value {
  font-size: 0.9rem;
  color: #e5e7eb;
  text-align: right;
}

/* --------------------------------------------------------------------- */
/* Benzer ürünler slider */
/* --------------------------------------------------------------------- */

.product-related {
  margin-bottom: 32px;
}

.product-related__head h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: #f9fafb;
}

.product-related__head p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.product-related__slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-related__viewport {
  overflow: hidden;
  flex: 1;
}

.product-related__track {
  display: flex;
  gap: 12px;
  scroll-behavior: smooth;
}

.product-related__track .product-card {
  min-width: 260px;
  max-width: 260px;
}

.product-related__nav {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-related__nav:hover {
  border-color: #38bdf8;
}

/* swiper dots */
.product-related__dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.product-related__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  padding: 0;
  cursor: pointer;
}

.product-related__dot.is-active {
  width: 18px;
  background: #38bdf8;
}

/* --------------------------------------------------------------------- */
/* Kişiselleştirme */
/* --------------------------------------------------------------------- */

.product-customization {
  border-radius: 24px;
  padding: 18px 18px 20px;
  background: radial-gradient(circle at top left, #4c1d95, #020617);
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.7);
}

.product-customization__inner h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #e0f2fe;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-customization__inner h2 i {
  color: #facc15;
}

.product-customization__inner h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: #f9fafb;
}

.product-customization__inner p {
  margin: 0 0 8px;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.product-customization__inner ul {
  margin: 6px 0 10px;
  padding-left: 18px;
  color: #e5e7eb;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------- */
/* Responsive */
/* --------------------------------------------------------------------- */

@media (max-width: 992px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-info__layout {
    grid-template-columns: 1fr;
  }

  .product-specs__grid {
    grid-template-columns: 1fr;
  }

  .product-detail-topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
  }

  .product-related__track .product-card {
    min-width: 220px;
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  .product-gallery__thumb {
    max-width: calc(50% - 6px);
  }

  .product-summary__features--secondary {
    grid-template-columns: 1fr;
  }
}
