/* ==========================================================
   🔹 Compare Page Ana Kapsayıcı
   ========================================================== */
.cncbul-compare-page {
  max-width: 1200px;
  margin: 30px auto;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ==========================================================
   🔹 Scroll Wrapper (taşma kontrolü)
   ========================================================== */
.compare-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-y: hidden;
}

.compare-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}
.compare-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.compare-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ==========================================================
   🔹 Table Görünümü
   ========================================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  text-align: center;
  table-layout: auto; /* 🔹 Fixed yerine Auto — içerik kesilmesin */
  word-break: break-word;
  white-space: normal;
}

.compare-table th,
.compare-table td {
  border: 1px solid #eee;
  padding: 14px;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.compare-table thead th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* 🔹 İlk sütun sticky (Feature) */
.compare-table td:first-child,
.compare-table th:first-child {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 15;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.03);
}

/* ==========================================================
   🔹 Görseller
   ========================================================== */
.compare-table img,
.compare-img {
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.no-img {
  color: #aaa;
  font-style: italic;
}

/* ==========================================================
   🔹 Technical Specs hücreleri
   ========================================================== */
.specs-cell {
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  white-space: normal;
  font-size: 14px;
  line-height: 1.4;
}

.specs-cell table {
  width: 100% !important;
  border-collapse: collapse;
  table-layout: auto;
}

.specs-cell td,
.specs-cell th {
  border: none !important;
  padding: 4px 6px !important;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
}

.specs-cell img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin: 5px 0;
}

/* ==========================================================
   🔹 Başlıklar
   ========================================================== */
.page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.compare-category {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
  font-style: italic;
  font-size: 15px;
}

/* ==========================================================
   🔹 Back Button
   ========================================================== */
.cncbul-compare-page .back-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 25px;
  background: #dc3545;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}
.cncbul-compare-page .back-btn:hover {
  background: #c82333;
}

/* ==========================================================
   🔹 Responsive (Mobil)
   ========================================================== */
@media (max-width: 1024px) {
  .compare-table {
    min-width: 700px;
  }
  .compare-table img {
    max-width: 140px;
  }
}

@media (max-width: 768px) {
  .cncbul-compare-page {
    padding: 10px;
  }

  .compare-table th,
  .compare-table td {
    font-size: 13px;
    padding: 10px;
  }

  .compare-table img {
    max-width: 110px;
  }

  .specs-cell {
    font-size: 13px;
  }

  .page-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .compare-table {
    min-width: 600px;
  }

  .compare-table img {
    max-width: 90px;
  }

  .specs-cell {
    font-size: 12px;
  }
}
