/* ============================================================
   KoşAtSepete — liste sayfaları (At İlanları, Mağaza)
   Filtre kenar çubuğu + kart ızgarası; home.css'teki ks-card'ı kullanır
   ============================================================ */
.cat-page { padding: 0 0 50px; }

/* ---- Üst görsel: engel atlayan at (orijinal Header_resim.png) ---- */
.cat-hero {
    position: relative; color: #fff; margin-bottom: 22px; overflow: hidden;
    background: #2a231c url('/css/images/header_bg.jpg') center 40% / cover no-repeat;
}
.cat-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 28, 20, 0.88) 0%, rgba(36, 28, 20, 0.7) 45%, rgba(36, 28, 20, 0.35) 100%); }
.cat-hero .container, .cat-hero .cat-wrap { position: relative; padding-top: 22px; padding-bottom: 26px; }
.cat-hero .ld-crumb, .cat-hero .ld-crumb a { color: rgba(255, 255, 255, 0.7); }
.cat-hero .ld-crumb .current { color: #fff; }
.cat-hero .cat-head { margin-bottom: 16px; }
.cat-hero .cat-head h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.cat-hero .cat-head h1 i { color: #c9a84c; }
.cat-hero .cat-sub { color: rgba(255, 255, 255, 0.8); }
.cat-hero .cat-sub b { color: #c9a84c; }
.cat-hero .cat-search { margin-bottom: 0; border-color: transparent; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3); max-width: 760px; }
.cat-hero .cat-sort, .cat-hero .cat-filter-btn { border-color: rgba(255, 255, 255, 0.2); }
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.cat-head h1 { font-family: var(--font-display, 'Playfair Display', Georgia, serif); font-size: 2.1rem; font-weight: 700; color: #1f1912; margin: 0; letter-spacing: -0.4px; display: flex; align-items: center; gap: 12px; }
.cat-head h1 i { color: #c9a84c; font-size: 1.5rem; }
.cat-sub { font-size: 0.86rem; color: #6b5d47; margin-top: 4px; }
.cat-sub b { color: #2a231c; }
.cat-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-sort { display: inline-flex; background: #fff; border: 1px solid rgba(42, 35, 28, 0.12); border-radius: 10px; padding: 4px; gap: 2px; }
.cat-sort a { padding: 7px 13px; border-radius: 8px; font-size: 0.82rem; font-weight: 700; color: #6b5d47; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease; }
.cat-sort a:hover { color: #2a231c; }
.cat-sort a.active { background: #2a231c; color: #c9a84c; }
.cat-filter-btn { display: none; align-items: center; gap: 8px; background: #fff; border: 1px solid rgba(42, 35, 28, 0.14); border-radius: 10px; padding: 9px 14px; font-size: 0.86rem; font-weight: 700; color: #2a231c; cursor: pointer; }
.cat-filter-btn .ks-count { background: #c9a84c; color: #fff; }

/* ---- Arama şeridi ---- */
.cat-search { display: flex; align-items: stretch; background: #fff; border: 1px solid rgba(42, 35, 28, 0.1); border-radius: 14px; padding: 5px; margin-bottom: 20px; box-shadow: 0 6px 20px rgba(42, 35, 28, 0.06); }
.cat-search .ks-search-input input { padding: 11px 0; }
.cat-search .ks-search-btn { border-radius: 10px; padding: 0 22px; }

/* ---- Filtre kenar çubuğu ---- */
.cat-filters { background: #fff; border: 1px solid rgba(42, 35, 28, 0.08); border-radius: 16px; padding: 18px; position: sticky; top: 86px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.cat-filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(42, 35, 28, 0.08); margin-bottom: 8px; }
.cat-filters-title { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 800; color: #2a231c; }
.cat-filters-title i { color: #c9a84c; }
.cat-filters-clear { font-size: 0.78rem; font-weight: 700; color: #d64545; text-decoration: none; }
.cat-filters-close { display: none; border: 0; background: transparent; font-size: 1.2rem; color: #2a231c; }
.cat-fs { padding: 12px 0; border-bottom: 1px solid rgba(42, 35, 28, 0.07); }
.cat-fs:last-of-type { border-bottom: 0; }
.cat-fs-label { display: flex; align-items: center; gap: 7px; font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; color: #9a8b73; margin-bottom: 8px; }
.cat-fs-label i { color: #c9a84c; font-size: 0.8rem; }
.cat-select, .cat-input { width: 100%; border: 1px solid rgba(42, 35, 28, 0.14); border-radius: 10px; padding: 9px 12px; font-size: 0.86rem; color: #2a231c; background: #fff; font-weight: 600; }
.cat-select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b5d47 50%), linear-gradient(135deg, #6b5d47 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.cat-select:focus, .cat-input:focus { outline: none; border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18); }
.cat-range { display: flex; align-items: center; gap: 8px; }
.cat-range .cat-input { padding: 8px 10px; min-width: 0; -moz-appearance: textfield; }
.cat-range .cat-input::-webkit-outer-spin-button, .cat-range .cat-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cat-range span { color: #9a8b73; font-size: 0.8rem; }
.cat-check { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; color: #2a231c; cursor: pointer; padding: 6px 0; }
.cat-check input { width: 18px; height: 18px; accent-color: #c9a84c; }
.cat-check i { color: #c9a84c; }
.cat-filters .ld-btn-gold { margin-top: 12px; }

/* ---- Aktif filtre çipleri ---- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid rgba(201, 168, 76, 0.4); color: #2a231c; font-size: 0.76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.cat-chip i { color: #c9a84c; }

/* ---- Kart ızgarası ---- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-grid .ks-card { flex: none; border-radius: 14px; }
.cat-grid .ks-card-body { padding: 12px 14px 10px; gap: 4px; }
.cat-grid .ks-card-title { font-size: 0.98rem; }
.cat-grid .ks-card-meta { font-size: 0.78rem; }
.cat-grid .ks-card-meta i { font-size: 0.76rem; }
.cat-grid .ks-card-price { font-size: 1.08rem; margin-top: 4px; }
.cat-grid .ks-card-price s { font-size: 0.78rem; }
.cat-grid .ks-card-foot { padding: 9px 14px; font-size: 0.74rem; justify-content: space-between; }
.cat-grid .ks-fav { width: 34px; height: 34px; font-size: 1rem; top: 10px; right: 10px; }
.cat-grid .ks-tag { font-size: 0.66rem; padding: 4px 9px; }
.cat-tags { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.cat-tags .ks-tag { position: static; }
.ks-tag.ks-tag-new { background: #2a231c; }
.ks-tag.ks-tag-cert { background: #1f9d5b; }
.ks-tag.ks-tag-used { background: #6b5d47; }
.cat-soldout { position: absolute; inset: 0; background: rgba(245, 241, 232, 0.72); display: flex; align-items: center; justify-content: center; }
.cat-soldout span { background: #2a231c; color: #fff; font-size: 0.78rem; font-weight: 800; padding: 6px 14px; border-radius: 999px; letter-spacing: 0.5px; }
.cat-urgent { position: absolute; left: 10px; bottom: 10px; background: #d64545; color: #fff; font-size: 0.66rem; font-weight: 800; padding: 4px 9px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
.cat-meta-row { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cat-stars { color: #c9a84c; font-size: 0.72rem; display: inline-flex; align-items: center; gap: 2px; }
.cat-stars .faint { color: rgba(201, 168, 76, 0.35); }
.cat-stars small { color: #9a8b73; margin-left: 4px; font-weight: 600; }
.cat-ship { font-size: 0.7rem; color: #1f9d5b; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.cat-cta { border: 0; background: #c9a84c; color: #fff; font-size: 0.74rem; font-weight: 800; padding: 6px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background .15s ease; }
.cat-cta:hover { background: #b8963f; }
.cat-cta.ok { background: #1f9d5b; }
.cat-view { color: #6b5d47; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ---- Boş durum & sayfalama ---- */
.cat-empty { background: #fff; border: 1px dashed rgba(201, 168, 76, 0.5); border-radius: 16px; padding: 50px 20px; text-align: center; color: #6b5d47; }
.cat-empty i { display: block; font-size: 2.4rem; color: rgba(201, 168, 76, 0.5); margin-bottom: 10px; }
.cat-empty b { display: block; font-size: 1.05rem; color: #2a231c; margin-bottom: 4px; }
.cat-pages { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.cat-pages a, .cat-pages span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(42, 35, 28, 0.12); background: #fff; color: #2a231c; font-size: 0.86rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.cat-pages a:hover { border-color: #c9a84c; }
.cat-pages a.active { background: #2a231c; color: #c9a84c; border-color: #2a231c; }
.cat-pages a.disabled { opacity: 0.4; pointer-events: none; }
.cat-pages span { border: 0; background: transparent; }

/* ---- Geniş düzen (At İlanları + Mağaza): tam genişlik, sabit filtre sütunu, 4 kart ---- */
.cat-page--wide .cat-wrap { padding-left: 28px; padding-right: 28px; }
.cat-page--wide .cat-side { width: 300px; }
.cat-page--wide .cat-main { min-width: 0; }
.cat-page--wide .cat-grid { grid-template-columns: repeat(4, 1fr); }

/* ---- Duyarlılık ---- */
@media (max-width: 1399px) { .cat-page--wide .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1199px) { .cat-grid, .cat-page--wide .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) {
    .cat-hero { background-image: url('/css/images/header_bg_mobile.jpg'); background-position: center center; }
    .cat-filter-btn { display: inline-flex; }
    .cat-filters { position: fixed; top: 0; right: -340px; width: 320px; height: 100vh; max-height: none; border-radius: 0; z-index: 1050; transition: right .28s ease; box-shadow: -10px 0 40px rgba(42, 35, 28, 0.2); }
    .cat-filters.show { right: 0; }
    .cat-filters-close { display: inline-block; }
    .cat-overlay { position: fixed; inset: 0; background: rgba(42, 35, 28, 0.45); z-index: 1040; display: none; }
    .cat-overlay.show { display: block; }
    .cat-grid, .cat-page--wide .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-page--wide .cat-side { width: 100%; }
    .cat-page--wide .cat-wrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 575px) {
    .cat-hero { background-image: url('/css/images/header_bg_mobile.jpg'); background-position: center center; }
    .cat-head h1 { font-size: 1.6rem; }
    .cat-grid { gap: 10px; }
    .cat-grid .ks-card-title { font-size: 0.86rem; }
    .cat-grid .ks-card-body { padding: 10px 10px 8px; }
    .cat-grid .ks-card-foot { padding: 8px 10px; font-size: 0.68rem; }
    .cat-sort a { padding: 6px 10px; font-size: 0.76rem; }
    .cat-cta { padding: 5px 9px; font-size: 0.68rem; }
}
