.equip-section { padding: 2rem 0 8rem; }
.equip-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 2.5rem; align-items: start; }

.equip-sortbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .9rem 1.1rem; padding: 1rem 0 1.25rem; border-bottom: 2px solid #e2e8f0; margin-bottom: 1.25rem; }
.equip-sortbar .result-info { color: #475569; font-weight: 600; }
.sort-form select { padding: .6rem .8rem; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; font-weight: 600; color: #334155; }
.type-badge { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; padding: .15rem .5rem; border-radius: 9999px; font-size: .85rem; }

.equip-filters { position: sticky; top: 80px; display: grid; gap: 1.25rem; z-index: 0; }
.filters-form { display: grid; gap: 1.25rem; }
.filter-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.1rem; box-shadow: 0 2px 12px rgba(15,23,42,.06); position: relative; z-index: 1; }
.filter-title { font-weight: 700; color: #1f2937; margin-bottom: .75rem; }
.filter-search { width: 100%; padding: .6rem .75rem; border: 1px solid #cbd5e1; border-radius: 10px; }
.type-chips { display: flex; gap: .6rem .6rem; flex-wrap: wrap; margin-top: .15rem; }
.chip { padding: .45rem .7rem; border: 1px solid #cbd5e1; border-radius: 9999px; background: #f8fafc; cursor: pointer; font-weight: 600; color: #334155; }
.chip.active, .chip:hover { background: #e0e7ff; border-color: #c7d2fe; color: #3730a3; }

.brand-list { display: grid; gap: .6rem; max-height: 320px; overflow: auto; padding-right: 2px; }
.brand-item { display: flex; align-items: center; gap: .5rem; justify-content: space-between; border: 1px dashed #e2e8f0; padding: .55rem .7rem; border-radius: 10px; }
.brand-item input { margin-right: .25rem; }
.brand-item em { color: #64748b; font-style: normal; font-size: .85rem; }

.price-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.price-row input { padding: .5rem .6rem; border: 1px solid #cbd5e1; border-radius: 10px; }
.price-row .dash { color: #64748b; }

.filter-actions { display: flex; gap: .6rem; margin-top: .5rem; }
.btn-primary { background: #6366f1; color: #fff; border: 1px solid #4f46e5; padding: .6rem .9rem; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { background: #4f46e5; }
.btn-clear { display: inline-flex; align-items: center; padding: .55rem .85rem; border-radius: 10px; border: 1px solid #cbd5e1; color: #334155; text-decoration: none; }

.equip-results { display: grid; gap: 1rem; position: relative; z-index: 1; }
.equip-empty { background: #f8fafc; border: 2px dashed #e2e8f0; padding: 2.25rem; text-align: center; color: #64748b; border-radius: 14px; }
.product-list { display: grid; gap: 12px; }
.product-card { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: #fff; border-radius: 16px; padding: 16px 72px 16px 18px; border: 1px solid rgba(226,232,240,.7); box-shadow: 0 6px 24px rgba(15,23,42,.06); transition: transform .2s ease, box-shadow .2s ease; min-height: 96px; overflow: hidden; position: relative; }
.sort-form { display: inline-flex; align-items: center; gap: .5rem; }
.sort-form label { color: #64748b; font-weight: 600; }
.filters-toggle { display: none; background: #111827; color: #fff; border: none; padding: .55rem .85rem; border-radius: 10px; font-weight: 700; }

/* Safari overflow fix */
.brand-list { scrollbar-gutter: stable; }

.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,23,42,.12); }
.product-media img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; border: 2px solid #e5e7eb; }
.product-avatar { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 2px dashed #e5e7eb; background: #f8fafc; color: #64748b; font-weight: 800; font-size: 1.4rem; }
.product-title { margin: 0; font-size: 1.05rem; color: #0f172a; }
.product-main { min-width: 0; }
.product-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-sub { display: flex; align-items: center; gap: 8px; color: #64748b; margin-top: 2px; font-size: .92rem; }
.type-tag { background: #f1f5f9; color: #334155; border-radius: 9999px; padding: .15rem .5rem; border: 1px solid #e2e8f0; font-size: .8rem; }
.dot { color: #cbd5e1; }
.year { color: #475569; font-weight: 500; }
.rating { color: #eab308; letter-spacing: 1px; }
/* ——— Spec badges: tek satır, ayraçlı metin (override) ——— */
.spec-badges { list-style: none; display: block; margin-top: 6px; color: #64748b; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-badges li { display: inline; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; border-radius: 0; }
.spec-badges li+li::before { content: " \2022 "; color: #cbd5e1; margin: 0 .35rem; }

.spec-badges li { display: inline; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; border-radius: 0; }
.product-side { display: grid; gap: 10px; justify-items: end; min-width: 120px; position: relative; }
.price { font-weight: 800; color: #0f172a; font-size: 1.05rem; }
.btn-ghost { color: #334155; border: 1px solid #cbd5e1; background: #fff; padding: .5rem .75rem; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn-ghost[aria-disabled="true"] { pointer-events: none; opacity: .6; }

/* Overlay */
.filters-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: flex-end; justify-content: center; z-index: 1000; }
.filters-overlay.open { display: flex; }
.filters-sheet { width: min(720px, calc(100% - 24px)); margin: 0 12px 12px; max-height: 90vh; background: transparent; border-top-left-radius: 16px; border-top-right-radius: 16px; box-shadow: 0 -10px 30px rgba(0,0,0,0.15); overflow: auto; }
.filters-sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; background: #fff; z-index: 3; }
.filters-close { background: transparent; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px; }
.filters-sheet-body { padding: 24px 16px 16px; display: grid; gap: 16px; }

body.no-scroll { overflow: hidden; }

@media (min-width: 1360px) {
  .equip-layout { grid-template-columns: 360px minmax(0,1fr); gap: 3rem; }
}

/* Karşılaştırma Stilleri */
.product-compare {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.compare-checkbox {
  display: none;
}

.compare-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #475569;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compare-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.compare-checkbox:checked + .compare-label {
  background: #111827;
  color: white;
  border-color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.compare-checkbox:checked + .compare-label::before {
  opacity: 0;
}

.compare-checkbox:checked + .compare-label::after {
  content: '✓';
  font-weight: bold;
  position: static;
  background: none;
  transition: none;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.product-card {
  position: relative;
  transition: all 0.3s ease;
}

/* Seçilen ürün kartı stilleri */
.product-card.selected {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3), 0 10px 25px rgba(139, 92, 246, 0.2);
  border: 1px solid #7c3aed;
  background: white;
  position: relative;
  overflow: hidden;
}

.product-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(236, 72, 153, 0.07) 100%);
  border-radius: inherit;
  z-index: 0;
  animation: selectedGlow 1.8s ease-in-out infinite alternate;
}

.product-card.selected::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -50%;
  width: 200%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
  animation: borderSweep 2.5s ease-in-out infinite;
}

@keyframes selectedGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

@keyframes borderSweep {
  0% { left: -75%; opacity: 0.5; }
  50% { opacity: 1; }
  100% { left: 175%; opacity: 0.5; }
}

.product-card.selected .product-title {
  color: #6d28d9;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.product-card.selected .product-main,
.product-card.selected .product-media,
.product-card.selected .product-side {
  position: relative;
  z-index: 1;
}

.product-card.selected .compare-label {
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  transform: scale(1.1);
}

/* Floating Karşılaştırma Paneli */
.compare-floating-panel {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  max-width: 480px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  animation: slideUp 0.3s ease;
}



@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.compare-panel-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 16px;
}

.compare-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.compare-icon {
  font-size: 24px;
  color: #374151;
}

.compare-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compare-count {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.compare-subtitle {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.compare-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-compare-clear {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-compare-clear:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.btn-compare {
  background: #111827;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-compare:hover:not(:disabled) {
  background: #1f2937;
}

.btn-compare:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Karşılaştırma Modal */
.compare-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.compare-modal.open {
  display: flex;
}

.compare-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 95vw;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}

.compare-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.compare-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.compare-modal-close {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  color: #6b7280;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-modal-close:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #374151;
}

.compare-modal-body {
  flex: 1;
  overflow: auto;
  padding: 0;
  background: transparent;
}

.compare-table-container {
  overflow-x: auto;
  position: relative;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: white;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.compare-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #d1d5db;
}

.compare-feature-header {
  background: #f1f5f9 !important;
  font-weight: 600;
  color: #374151;
  min-width: 160px;
  font-size: 14px;
}

.compare-product-header {
  text-align: center;
  min-width: 200px;
  background: #f9fafb !important;
}

.compare-product-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 8px;
  display: block;
  border: 1px solid #e2e8f0;
}

.compare-product-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.3;
}

.compare-product-type {
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 3px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

.compare-product-year {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 400;
  background: #f9fafb;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid #f3f4f6;
}

.compare-section-header {
  background: #f1f5f9 !important;
  color: #374151 !important;
  font-weight: 600;
  text-align: left;
  font-size: 14px;
  padding: 12px 16px !important;
}

.compare-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-highlights li {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 3px;
  font-size: 12px;
  color: #475569;
  border-left: 3px solid #667eea;
  position: relative;
  transition: all 0.2s ease;
}

.compare-highlights li:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.compare-highlights li::before {
  content: '✓';
  color: #667eea;
  font-weight: bold;
  margin-right: 6px;
}

.compare-highlights li:last-child {
  margin-bottom: 0;
}

.compare-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.compare-table tbody tr:hover {
  background: #f3f4f6;
}

/* ------------------------- */
/* --- RESPONSIVE STYLES --- */
/* ------------------------- */

@media (max-width: 1024px) {
  .equip-layout { grid-template-columns: 1fr; }
  .equip-filters { position: static; }
  .product-card { grid-template-columns: 72px minmax(0,1fr) auto; }
  .product-media img, .product-avatar { width: 72px; height: 72px; }
  /* Filtre paneli ile liste çakışmasını engelle */
  .equip-results { z-index: 1; }
  .equip-filters { z-index: 2; }
  .filters-form { position: relative; }
  .filters-toggle { display: inline-flex; }
  #filtersMount { display: none; }
}

@media (max-width: 768px) {
  .equip-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .equip-filters { order: 2; }
  .equip-results { order: 1; }
  .product-card { grid-template-columns: 72px minmax(0, 1fr); padding: 14px 60px 14px 16px; gap: 12px; }
  .product-side { display: none; }
  .product-compare { top: 12px; right: 12px; }
  .compare-label { width: 32px; height: 32px; font-size: 14px; }
  
  .compare-floating-panel {
    max-width: 100%;
    width: calc(100% - 24px);
    bottom: 16px;
    border-radius: 18px;
  }

  .compare-panel-content {
    padding: 12px 16px;
    gap: 12px;
  }

  .compare-icon {
    font-size: 20px;
  }

  .compare-count {
    font-size: 14px;
  }

  .compare-subtitle {
    font-size: 11px;
  }

  .btn-compare-clear {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .btn-compare {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 12px;
  }

  .compare-modal {
    padding: 1rem;
  }

  .compare-modal-content {
    border-radius: 20px;
    max-height: 95vh;
  }

  .compare-modal-header {
    padding: 16px 20px;
  }

  .compare-modal-header h3 {
    font-size: 1.5rem;
    gap: 10px;
  }

  .compare-modal-close {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

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

  .compare-product-header {
    min-width: 150px;
  }

  .compare-product-image {
    width: 60px;
    height: 60px;
  }

  .compare-product-name {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  /* Sheet boyutu ve header/gövde boşlukları */
  .filters-sheet { width: min(720px, calc(100% - 16px)); margin: 0 8px 8px; }
  .filters-sheet-header { padding: 10px 12px; }
  .filters-sheet-body { padding: 20px 12px 12px; gap: 12px; }

  /* Form ve kartlar */
  .filters-form { gap: 1rem; }
  .filter-card { padding: .85rem; border-radius: 12px; }
  .filter-title { margin-bottom: .5rem; }

  /* Girdiler */
  .filter-search { padding: .55rem .7rem; border-radius: 9px; }
  .price-row { gap: .5rem; }
  .price-row input { padding: .45rem .6rem; border-radius: 9px; }

  /* Chipler ve marka listesi */
  .chip { padding: .35rem .55rem; font-size: .85rem; }
  .brand-list { max-height: 260px; }
  .brand-item { padding: .5rem .6rem; border-radius: 9px; }

  /* Aksiyon butonları */
  .btn-primary { padding: .55rem .8rem; border-radius: 9px; }
  .btn-clear { padding: .45rem .7rem; border-radius: 9px; }

  /* — Sort bar hizalama ve minimal görünüm — */
  .equip-sortbar { flex-wrap: nowrap; gap: .6rem; }
  .equip-sortbar .result-info { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sort-form { flex: 0 0 auto; }
  .sort-form label { display: none; }
  .sort-form select { padding: .48rem .6rem; font-size: .9rem; border-radius: 9px; }
  .filters-toggle { padding: .48rem .6rem; border-radius: 9px; }
}

@media (max-width: 480px) {
  .spec-badges { font-size: .78rem; }

  .product-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 56px 12px 14px;
  }

  .product-media img, .product-avatar {
    width: 60px;
    height: 60px;
  }

  .product-side {
    display: none; /* Fiyat ve butonları gizle, yer kazan */
  }

  .product-compare {
    top: 10px;
    right: 10px;
  }

  .compare-label {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 8px;
  }

  .compare-floating-panel {
    bottom: 12px;
    width: calc(100% - 20px);
  }

  .compare-panel-content {
    padding: 10px 14px;
    gap: 10px;
  }

  .compare-icon {
    font-size: 18px;
  }

  .compare-count {
    font-size: 13px;
  }

  .compare-subtitle {
    font-size: 10px;
  }

  /* ——— Sade tasarım ve çakışmasız yeniden konumlandırma ——— */
  :root {
    --compare-panel-radius: 14px;
    --compare-panel-shadow: 0 8px 20px rgba(2, 6, 23, 0.08);
  }

  /* Kartta buton için yer ayır (çakışmayı engelle) */
  .product-card {
    padding-right: 72px;
  }

  /* Karşılaştırma butonunu kartın sağ üstüne sabitle, çakışmayı kaldır */
  .product-compare {
    top: 12px;
    right: 12px;
    transform: none;
    z-index: 5;
  }

  /* Minimal buton stili */
  .compare-label {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.06);
    color: #334155;
    transition: background .2s ease, box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  }
  .compare-label::before,
  .compare-label::after { content: none !important; display: none !important; }
  .compare-label:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(2, 6, 23, 0.08); }
  .compare-checkbox:checked + .compare-label {
    background: #111827;
    color: #fff;
    border-color: #111827;
    transform: none;
    box-shadow: 0 6px 14px rgba(2, 6, 23, 0.12);
  }

  /* Alt ortadaki bar: sade, güvenli alan farkında ve her zaman üstte */
  .compare-floating-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--compare-panel-shadow);
    border-radius: var(--compare-panel-radius);
    z-index: 1500; /* modal(2000)'ın altında, diğerlerinin üstünde */
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .compare-floating-panel::before,
  .compare-floating-panel::after { content: none !important; display: none !important; }
  .compare-panel-content { padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }

  /* İçerik panelin altında kalmasın diye sayfa alt boşluğunu artır */
  .equip-section { padding-bottom: 6rem; }

  /* Responsive sade ayarlar */
  @media (max-width: 768px) {
    .product-card { padding-right: 60px; }
    .compare-label { width: 36px; height: 36px; }
    .compare-floating-panel { width: calc(100% - 24px); }
  }

  @media (max-width: 480px) {
    .product-card { padding-right: 56px; }
    .compare-floating-panel { width: calc(100% - 16px); bottom: max(8px, env(safe-area-inset-bottom)); }
  }
}

