/* ==========================================================================
   catalog.css — Tüm Siteler katalog sayfası (siteler.html) — LİSTE düzeni
   base.css'ten SONRA yüklenir.
   ========================================================================== */

.catalog-page { background: #fff; padding: 24px 0 80px; }

/* Başlık */
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 22px; }
.catalog-head .ch-left .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #c2410c; background: #fff7ed; border: 1px solid #fed7aa;
  padding: 7px 12px; border-radius: 100px; margin-bottom: 14px;
}
.catalog-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -1px; color: #111827; line-height: 1.1; }
.catalog-head p { font-size: 15px; color: #5f6368; margin-top: 8px; }
.catalog-count { font-size: 14px; color: #5f6368; white-space: nowrap; }
.catalog-count b { color: #1f1f1f; font-weight: 700; }

/* Filtre çubuğu */
.catalog-filters {
  background: #f8f9fa; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px; padding: 16px; margin-bottom: 18px;
}
.cf-top { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cf-search { flex: 1; min-width: 220px; position: relative; }
.cf-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #5f6368; }
.cf-search input {
  width: 100%; padding: 12px 18px 12px 44px;
  border: 1px solid rgba(0,0,0,0.1); border-radius: 100px;
  font-size: 14px; font-family: inherit; outline: none; background: #fff; transition: all 0.2s;
}
.cf-search input:focus { border-color: #1f1f1f; }
.cf-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid rgba(0,0,0,0.1);
  padding: 11px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 500; color: #1f1f1f; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cf-chip:hover { background: #f1f3f4; }
.cf-chip.active { background: #1f1f1f; color: #fff; border-color: #1f1f1f; }
.cf-sort { padding: 11px 18px; border: 1px solid rgba(0,0,0,0.1); border-radius: 100px; font-size: 13px; font-weight: 500; outline: none; background: #fff; cursor: pointer; color: #1f1f1f; }

/* Kategori pill'leri */
.cf-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cf-cats::-webkit-scrollbar { display: none; }
.fpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
  color: #1f1f1f; cursor: pointer; transition: all 0.2s; white-space: nowrap;
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
}
.fpill:hover { background: #f1f3f4; }
.fpill.active { background: #1f1f1f; color: #fff; border-color: #1f1f1f; }

/* ===== LİSTE ===== */
.catalog-cols {
  grid-template-columns: minmax(190px, 2fr) 90px 60px 60px 60px 92px 210px;
}
.slist-head {
  display: grid;
  gap: 16px;
  padding: 4px 20px 10px;
  font-size: 11px; font-weight: 600; color: #5f6368;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.slist-head > div:nth-child(6) { text-align: right; }
.slist-head > div:nth-child(7) { text-align: center; }

.catalog-list { display: flex; flex-direction: column; gap: 8px; background: #f8f9fa; border-radius: 24px; padding: 12px; }

.srow {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.srow:hover { border-color: rgba(0,0,0,0.06); box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.srow.in-cart { background: #E6F4EA; }

.srow-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.srow-favicon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: #f1f3f4; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #1f1f1f;
}
.srow.in-cart .srow-favicon { background: #fff; }
.srow-name { min-width: 0; }
.srow-domain { font-size: 15px; font-weight: 600; color: #1f1f1f; letter-spacing: -0.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow-cat { font-size: 12px; color: #5f6368; margin-top: 2px; text-transform: capitalize; }

.srow-news-cell { display: flex; justify-content: flex-start; }
.news-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #E6F4EA; color: #137333;
  padding: 5px 11px; border-radius: 100px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.news-pill.no { background: #f1f3f4; color: #9aa0a6; }

.srow-metric { display: flex; flex-direction: column; align-items: flex-start; }
.srow-metric .v { font-size: 17px; font-weight: 600; color: #1f1f1f; letter-spacing: -0.3px; line-height: 1; }
.srow-metric .v.high { color: #137333; }
.srow-metric .v.mid { color: #b06000; }
.srow-metric .l { font-size: 11px; color: #5f6368; margin-top: 3px; letter-spacing: 0.3px; }

.srow-price { display: flex; align-items: baseline; gap: 3px; justify-content: flex-end; }
.srow-price .num { font-size: 20px; font-weight: 700; color: #1f1f1f; letter-spacing: -0.3px; }
.srow-price .cur { font-size: 13px; color: #5f6368; }

.srow-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.btn-detail {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 16px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: #fff; color: #1f1f1f; border: 1.5px solid #d2d5d9;
  font-size: 13px; font-weight: 600; white-space: nowrap; transition: all 0.2s;
}
.btn-detail svg { flex-shrink: 0; }
.btn-detail:hover { background: #f1f3f4; border-color: #1f1f1f; }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #1f1f1f; color: #fff; padding: 0 18px; height: 38px; border-radius: 11px;
  font-size: 13px; font-weight: 600; white-space: nowrap; transition: background 0.2s; flex-shrink: 0;
}
.btn-add:hover { background: #000; }
.btn-add.added { background: #137333; }

/* Yükleniyor / boş durum */
.catalog-loading, .catalog-empty { text-align: center; padding: 60px 20px; color: #5f6368; }
.catalog-empty svg { color: #d1d5db; margin-bottom: 12px; }
.catalog-empty h3 { font-size: 17px; color: #1f1f1f; margin-bottom: 6px; }
.cat-spinner {
  width: 34px; height: 34px; margin: 0 auto 14px;
  border: 3px solid #e5e7eb; border-top-color: #1f1f1f; border-radius: 50%;
  animation: catspin 0.8s linear infinite;
}
@keyframes catspin { to { transform: rotate(360deg); } }

.catalog-more { text-align: center; margin-top: 32px; }
.btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #1f1f1f; border: 1px solid rgba(0,0,0,0.15);
  padding: 14px 32px; border-radius: 100px; font-size: 15px; font-weight: 500; transition: background 0.2s;
}
.btn-more:hover { background: #f8f9fa; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  /* YIL kolonunu gizle */
  .catalog-cols { grid-template-columns: minmax(170px, 2fr) 84px 58px 58px 90px 200px; }
  .slist-head > div:nth-child(5) { display: none; }
  .srow > .srow-metric:nth-of-type(3) { display: none; }
}
@media (max-width: 768px) {
  .catalog-head h1 { font-size: 26px; }
  .cf-sort { flex: 1 1 100%; }
  /* Liste → mobil kart formatı */
  .slist-head { display: none; }
  .srow {
    grid-template-columns: 1fr auto;
    gap: 12px 14px;
  }
  .srow-info { grid-column: 1 / -1; }
  .srow-news-cell { grid-column: 1 / -1; }
  .srow-metric { display: none; }
  .srow-price { grid-column: 1; justify-content: flex-start; }
  .srow-actions { grid-column: 2; }
  .btn-add { padding: 0 22px; }
}
