/* ==========================================================
   Kategori Sayfasi Stilleri
   - Filtreleme, Siralama, Sidebar, Sayfalama
   ========================================================== */

/* =====================================================
   KATEGORI SAYFASI - PREMIUM TASARIM
   ===================================================== */

.kategori-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding-bottom: 60px;
}

/* Filtreleme Bolumu */
.filter-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.result-count {
    font-size: 15px;
    color: #6b7280;
}

.result-count strong {
    color: #1f2937;
    font-weight: 700;
}

/* Siralama Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 220px;
}

.sort-btn:hover {
    border-color: #22c55e;
}

.sort-btn.active {
    border-color: #22c55e;
    background: #f0fdf4;
}

.sort-btn i {
    font-size: 16px;
    color: #22c55e;
}

.sort-btn .arrow {
    margin-left: auto;
    transition: transform 0.2s;
}

.sort-btn.active .arrow {
    transform: rotate(180deg);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.sort-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.sort-menu-item:hover {
    background: #f9fafb;
}

.sort-menu-item.active {
    background: #f0fdf4;
    color: #15803d;
    font-weight: 600;
}

.sort-menu-item .radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sort-menu-item.active .radio-circle {
    border-color: #22c55e;
    background: #22c55e;
}

.sort-menu-item.active .radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.sort-menu-item .info-icon {
    width: 18px;
    height: 18px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #2563eb;
    margin-left: auto;
    font-weight: 700;
}

/* Urun Grid */
/* Urun kartlari icin style.css'deki .urun-kart siniflari kullanilir */

/* Marka Filtre */
.marka-filtre-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.marka-filtre-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.marka-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.marka-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #2ecc71;
    cursor: pointer;
    margin: 0;
}

.marka-filtre-ad {
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marka-filtre-ad:hover {
    color: #2ecc71;
}

/* Sayfalama */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.pagination-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pagination-custom .page-item {
    list-style: none;
}

.pagination-custom .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-custom .page-link:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.pagination-custom .page-item.active .page-link {
    background: #22c55e;
    color: white;
}

.pagination-custom .page-link.nav-arrow {
    width: auto;
    padding: 0 16px;
    gap: 6px;
}

.pagination-custom .page-link.nav-arrow:hover {
    background: #f0fdf4;
    color: #22c55e;
}

.pagination-custom .page-ellipsis {
    color: #9ca3af;
    padding: 0 8px;
}

/* Sonuc Yok */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.no-results i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.no-results p {
    color: #6b7280;
    margin: 0;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-links a:hover {
    background: #f9fafb;
    color: #22c55e;
}

.sidebar-links a.active {
    background: #f0fdf4;
    color: #15803d;
    font-weight: 600;
}

.sidebar-links a .count {
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 992px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-left {
        justify-content: space-between;
        width: 100%;
    }

    .sort-btn {
        min-width: 100%;
    }

    .sidebar-card {
        display: none;
    }

    /* Offcanvas icindeki sidebar-card'lar gorunur olmali */
    #mobilFiltre .sidebar-card {
        display: block;
    }
}

@media (max-width: 576px) {
    .pagination-custom .page-link {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Kategori Baslik (filter-section icinde) */
.kat-baslik {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 12px 0 0;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .kat-baslik {
        font-size: 1.1rem;
        white-space: normal;
        margin-bottom: 4px;
    }
}

/* Kategori Aciklama Kutusu - col-lg-9 icinde */
.kat-aciklama {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 8px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
    border-left: 3px solid #d1d5db;
}
.kat-aciklama p { margin: 0 0 6px 0; }
.kat-aciklama p:last-child { margin-bottom: 0; }
.kat-aciklama a { color: #374151; font-weight: 600; text-decoration: underline; }
.kat-aciklama strong { color: #1f2937; }

@media (max-width: 576px) {
    .kat-aciklama {
        padding: 14px 16px;
        font-size: 13px;
        line-height: 1.65;
    }
}

/* =====================================================
   BOŞ DURUM (kategoride ürün yok) — kurumsal empty-state
   ===================================================== */
.kategori-bos {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 16px 64px;
}
.kategori-bos-ikon {
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2fb;
    color: var(--primary-green, #2ECC71);
    border-radius: 50%;
    font-size: 40px;
}
.kategori-bos-baslik {
    font-size: 30px;
    font-weight: 800;
    color: #0f2942;
    margin: 0 0 18px;
    letter-spacing: -.5px;
}
.kategori-bos-metin {
    font-size: 17px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 auto 36px;
    max-width: 620px;
}
.kategori-bos-metin strong { color: #0f2942; font-weight: 700; }
.kategori-bos-metin a {
    color: var(--primary-green-dark, #27AE60);
    font-weight: 600;
    text-decoration: underline;
}
.kategori-bos-oneri-baslik {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 16px;
}
.kategori-bos-cipler {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.kategori-bos-cip {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 999px;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 41, 66, .04);
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.kategori-bos-cip:hover {
    border-color: var(--primary-green, #2ECC71);
    color: var(--primary-green-dark, #27AE60);
    box-shadow: 0 4px 14px rgba(46, 204, 113, .16);
    transform: translateY(-1px);
}
.kategori-bos-buton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    background: var(--primary-green, #2ECC71);
    color: #fff;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(46, 204, 113, .30);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.kategori-bos-buton:hover {
    background: var(--primary-green-dark, #27AE60);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(46, 204, 113, .38);
}
@media (max-width: 576px) {
    .kategori-bos { padding: 28px 12px 48px; }
    .kategori-bos-ikon { width: 80px; height: 80px; font-size: 34px; margin-bottom: 22px; }
    .kategori-bos-baslik { font-size: 23px; }
    .kategori-bos-metin { font-size: 15px; margin-bottom: 30px; }
    .kategori-bos-cip { padding: 10px 18px; font-size: 14px; }
    .kategori-bos-buton { padding: 14px 26px; font-size: 15px; width: 100%; justify-content: center; }
}
