/* Ürün detay — bilgilendirme kataloğu */

.product-page {
  padding: 2rem 0 3rem;
}

.product-hero {
  margin-bottom: 1.5rem;
}

.product-meta-top {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: .65rem;
}

.product-brand {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted, #666);
  display: flex;
  align-items: center;
  min-height: 1.5rem;
}
.product-brand-logo img {
  display: block;
  max-height: 1.375rem;
  max-width: 6.5rem;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.product-cert-badge {
  font-size: .625rem;
  font-weight: 700;
  color: var(--red, #E32626);
  border: 1.5px solid var(--red, #E32626);
  padding: .2rem .55rem;
  border-radius: 4px;
}
.product-cert-inline {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--red, #E32626);
  border: 1.5px solid var(--red, #E32626);
  padding: .2rem .55rem;
  border-radius: 4px;
}
.spec-row dd .product-brand-logo img {
  max-height: 1.75rem;
  max-width: 7.5rem;
}

.product-title {
  font-family: var(--font, 'Manrope', system-ui, sans-serif);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--ink, #0c0c0c);
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.product-chip {
  font-size: .5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .6rem;
  border-radius: 4px;
}
.product-chip.fav { background: var(--red, #E32626); color: #fff; }
.product-chip.new { background: var(--ink, #0c0c0c); color: #fff; }

.product-detail-notice {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1.1rem;
  background: rgba(227,38,38,.06);
  border: 1px solid rgba(227,38,38,.15);
  border-radius: var(--radius-sm, 10px);
  font-size: .8125rem;
  color: var(--muted, #666);
  line-height: 1.55;
  margin-bottom: 2rem;
}
.product-detail-notice svg { color: var(--red, #E32626); flex-shrink: 0; margin-top: .1rem; }
.product-detail-notice strong { color: var(--ink, #0c0c0c); }

/* Ana grid */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.product-gallery {
  position: relative;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 20px;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: default;
}
.product-gallery.has-zoom {
  cursor: crosshair;
}
.product-gallery.has-zoom.is-zoomed {
  cursor: zoom-in;
}

.product-gallery-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.product-gallery.has-zoom.is-zoomed img {
  transition: transform .2s ease-out;
}

.gallery-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 100px;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--muted, #666);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transition: opacity .25s ease;
  white-space: nowrap;
}
.product-gallery.is-zoomed .gallery-hint { opacity: 0; }

.gallery-expand {
  position: absolute;
  left: 1rem;
  bottom: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #666);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  z-index: 3;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.gallery-expand:hover {
  color: var(--red, #E32626);
  border-color: rgba(227,38,38,.35);
  box-shadow: 0 4px 14px rgba(227,38,38,.12);
}

.product-gallery .catalog-badge {
  position: absolute;
  top: 1rem;
  font-size: .5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .6rem;
  border-radius: 4px;
  z-index: 2;
}
.product-gallery .catalog-badge.fav { left: 1rem; background: var(--red, #E32626); color: #fff; }
.product-gallery .catalog-badge.new { right: 1rem; background: var(--ink, #0c0c0c); color: #fff; }

.product-info {
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.product-info h2 {
  font-family: var(--display, 'Manrope', system-ui, sans-serif);
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted, #666);
  margin-bottom: 1.25rem;
}

.spec-grid {
  display: grid;
  gap: 0;
  margin-bottom: 1.75rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  font-size: .875rem;
  line-height: 1.5;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  font-weight: 700;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, #666);
}
.spec-row dd {
  color: var(--text, #1c1c1c);
  font-weight: 500;
}
.spec-row dd .spec-line {
  display: block;
  padding: .15rem 0;
}
.spec-row dd .spec-line + .spec-line {
  border-top: 1px dashed rgba(0,0,0,.06);
  margin-top: .15rem;
  padding-top: .35rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding-top: .25rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted, #666);
  padding: .65rem 0;
  transition: color .2s;
}
.btn-back:hover { color: var(--red, #E32626); }

/* Açıklama */
.product-desc {
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
}
.product-desc > h2 {
  font-family: var(--display, 'Manrope', system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink, #0c0c0c);
  margin-bottom: 1.25rem;
}
.product-desc-html p {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--text, #1c1c1c);
  margin-bottom: 1rem;
}
.product-desc-html p:last-child { margin-bottom: 0; }
.product-desc-html strong,
.product-desc-html b {
  font-weight: 800;
  color: var(--ink, #0c0c0c);
}
.product-desc p {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--text, #1c1c1c);
  margin-bottom: 1rem;
}
.product-desc p:last-child { margin-bottom: 0; }

/* Rich editör HTML içeriği */
.rich-content ul,
.rich-content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.rich-content li { margin-bottom: 0.35rem; }
.rich-content a {
  color: var(--red, #E32626);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rich-content blockquote {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--red, #E32626);
  background: rgba(227, 38, 38, 0.04);
  color: var(--muted, #666);
}
.product-desc-html h2,
.product-desc-html h3 {
  font-family: var(--display, inherit);
  font-weight: 900;
  margin: 1.25rem 0 0.5rem;
  color: var(--ink, #0c0c0c);
  line-height: 1.3;
}
.product-desc-html h2 { font-size: 1.2rem; }
.product-desc-html h3 { font-size: 1.05rem; }
.product-desc-html h2:first-child,
.product-desc-html h3:first-child { margin-top: 0; }

.product-standards-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.25rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--red, #E32626);
}
.product-standards-link:hover { text-decoration: underline; }

/* İlgili ürünler */
.product-related {
  padding-top: .5rem;
}
.product-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.product-related-head h2 {
  font-family: var(--display, 'Manrope', system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink, #0c0c0c);
}
.product-related-head a {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--red, #E32626);
}
.product-related-head a:hover { text-decoration: underline; }

/* Benzer ürünler — tek satırda 5 kompakt kart */
.product-related .catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
}
.product-related .catalog-card {
  border-radius: 12px;
}
.product-related .catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.product-related .catalog-card-img {
  padding: .65rem;
}
.product-related .catalog-card-body {
  padding: .55rem .6rem .65rem;
}
.product-related .catalog-brand {
  font-size: .5625rem;
  margin-bottom: .2rem;
  min-height: 1rem;
}
.product-related .catalog-brand-logo img {
  max-height: .875rem;
  max-width: 3.5rem;
}
.product-related .catalog-card-body h3 {
  font-size: .6875rem;
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-related .catalog-cta {
  display: none;
}
.product-related .catalog-cert {
  font-size: .5rem;
  padding: .15rem .35rem;
  bottom: .4rem;
  right: .4rem;
}
.product-related .catalog-badge {
  font-size: .5rem;
  padding: .15rem .4rem;
  top: .4rem;
}

@media (max-width: 1023px) {
  .product-related .catalog-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    grid-template-columns: none;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
  }
  .product-related .catalog-card {
    scroll-snap-align: start;
  }
}
@media (max-width: 639px) {
  .product-related .catalog-grid {
    grid-auto-columns: minmax(45%, 1fr);
  }
  .product-related .catalog-card-img {
    padding: .75rem;
  }
  .product-related .catalog-card-body h3 {
    font-size: .8125rem;
    line-height: 1.3;
  }
}

.product-not-found {
  text-align: center;
  padding: 5rem 1.5rem;
  background: #fff;
  border: 1px dashed var(--line, #e5e7eb);
  border-radius: 20px;
  margin: 2rem 0 3rem;
}
.product-not-found h2 {
  font-family: var(--display, 'Manrope', system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink, #0c0c0c);
  margin-bottom: .65rem;
}
.product-not-found p {
  font-size: .875rem;
  color: var(--muted, #666);
  margin-bottom: 1.25rem;
}

/* Lightbox — tam ekran inceleme */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.product-lightbox.open {
  opacity: 1;
  visibility: visible;
}
.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, .88);
  backdrop-filter: blur(6px);
}
.product-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(920px, 96vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.product-lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 2rem);
  margin: 0 auto;
  object-fit: contain;
}
.product-lightbox-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink, #0c0c0c);
  z-index: 2;
  transition: border-color .2s, color .2s;
}
.product-lightbox-close:hover {
  color: var(--red, #E32626);
  border-color: rgba(227,38,38,.35);
}
