

/* Sayfa Header */
.bp-kat-page-header {
    background: #faf6f2;
    padding: 18px 0;
    border-bottom: 1px solid #f0ebe5;
}
.bp-kat-page-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.bp-kat-page-count {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

/* Ana Wrapper - Flex Layout */
.bp-kat-wrapper {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    align-items: flex-start;
}

/* ===== SOL FİLTRE PANELI ===== */
.bp-kat-sidebar {
    width: 250px;
    min-width: 250px;
    background: #fff;
    border: 1px solid #f0ebe5;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.bp-kat-sidebar .panel-group {
    margin: 0;
}
.bp-kat-sidebar .panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    border-bottom: 1px solid #f0ebe5;
}
.bp-kat-sidebar .panel:last-child {
    border-bottom: none;
}
.bp-kat-sidebar .panel-heading {
    padding: 0;
    background: none;
    border: none;
}
.bp-kat-sidebar .panel-title a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    transition: background 0.15s;
}
.bp-kat-sidebar .panel-title a:hover {
    background: #faf6f2;
}
.bp-kat-sidebar .panel-title a i {
    font-size: 12px;
    color: #bbb;
    transition: transform 0.25s;
}
.bp-kat-sidebar .panel-body {
    padding: 0 16px 14px;
}

/* Fiyat aralığı inputları */
.bp-kat-sidebar .extra-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bp-kat-sidebar .extra-controls > div {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bp-kat-sidebar .extra-controls input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #e0d5ca;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 10px;
    color: #333;
    outline: none;
    background: #faf6f2;
    transition: border-color 0.2s;
}
.bp-kat-sidebar .extra-controls input[type="text"]:focus {
    border-color: #FE4347;
}
.bp-kat-sidebar .extra-controls span {
    color: #ccc;
    font-weight: 600;
}
.bp-kat-sidebar .extra-controls .btn {
    width: 40px !important;
    height: 35px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #81878E !important;
    border: none;
    border-radius: 8px !important;
    color: #fff !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.bp-kat-sidebar .extra-controls .btn:hover {
    background: #c74200 !important;
}

/* Alt kategori listesi */
.bp-kat-sidebar .filter-radio ul {
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
}
.bp-kat-sidebar .filter-radio ul::-webkit-scrollbar {
    width: 4px;
}
.bp-kat-sidebar .filter-radio ul::-webkit-scrollbar-thumb {
    background: #e0d5ca;
    border-radius: 4px;
}
.bp-kat-sidebar .filter-radio ul li {
    margin: 0;
    padding: 0;
}
.bp-kat-sidebar .filter-radio ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    color: #555 !important;
    font-size: 13px !important;
    text-decoration: none;
    transition: all 0.15s;
}
.bp-kat-sidebar .filter-radio ul li a:hover {
    background: #faf6f2;
    color: #FE4347 !important;
}
.bp-kat-sidebar .filter-radio ul li i {
    font-size: 11px;
    color: #ccc;
    position: static !important;
    float: none !important;
}

/* Checkbox filtreler */
.bp-kat-sidebar .filter-radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: background 0.15s;
    margin: 0;
}
.bp-kat-sidebar .filter-radio label:hover {
    background: #faf6f2;
}
.bp-kat-sidebar .filter-radio label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FE4347;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

/* ===== SAĞ İÇERİK ===== */
.bp-kat-content {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.bp-kat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: white;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #f0ebe5;
}
.bp-kat-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

/* ===== AKTİF FİLTRE CHİPLERİ ===== */
.bp-kat-active-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bp-kat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #fef4ee;
    border: 1px solid #f5d5c0;
    border-radius: 20px;
    font-size: 12px;
    color: #c24200;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    line-height: 1.3;
}
.bp-kat-chip:hover {
    background: #fde8d8;
    border-color: #FE4347;
}
.bp-kat-chip-label {
    color: #999;
    font-weight: 400;
    font-size: 11px;
    margin-right: 2px;
}
.bp-kat-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #c24200;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.15s;
    flex-shrink: 0;
}
.bp-kat-chip-remove:hover {
    background: #FE4347;
    color: #fff;
}
.bp-kat-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: transparent;
    border: 1px dashed #d0c8c0;
    border-radius: 20px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.bp-kat-clear-all:hover {
    border-color: #FE4347;
    color: #FE4347;
    background: #fff5f0;
}
.bp-kat-clear-all i {
    font-size: 10px;
}

/* Filtre sayacı badge */
.bp-kat-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #FE4347;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* Mobil filtre butonu */
.bp-kat-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e0d5ca;
    border-radius: 8px;
    background: #fff;
    color: #2c2c2c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.bp-kat-filter-btn:hover {
    border-color: #FE4347;
    color: #FE4347;
}
.bp-kat-filter-btn i {
    font-size: 14px;
}

/* Sıralama select */
.bp-kat-toolbar .bp-kat-sort-form {
    flex-shrink: 0;
}
.bp-kat-toolbar .orderby {
    padding: 8px 32px 8px 12px;
    border: 1px solid #f0ebe5;
    border-radius: 8px;
    font-size: 13px;
    color: #2c2c2c;
    background: #faf6f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.bp-kat-toolbar .orderby:focus {
    border-color: #FE4347;
}

/* Ürün Grid */
.bp-kat-content .main-products.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.product-card-v2 {
  margin: 2px !important;
  margin-bottom:6px !important;
}
.product-card-v2 .card-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-card-v2 .compare-btn:hover {
    color: #f97316;
    border-color: #f97316;
}
/* Ürün yoksa */
.bp-kat-content .main-products.product-grid a > img {
    max-width: 100%;
    display: block;
    margin: 0px auto;
}

/* ===== ÜRÜN BULUNAMADI - EMPTY STATE ===== */
.bp-kat-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #e0d5ca;
}
.bp-kat-empty-icon {
    margin-bottom: 20px;
    opacity: 0.7;
}
.bp-kat-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 8px;
}
.bp-kat-empty-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 340px;
}
.bp-kat-empty-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.bp-kat-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.bp-kat-empty-btn-primary {
    background: #FE4347;
    color: #fff;
}
.bp-kat-empty-btn-primary:hover {
    background: #c74200;
}
.bp-kat-empty-btn-secondary {
    background: #faf6f2;
    color: #555;
    border: 1px solid #e0d5ca;
}
.bp-kat-empty-btn-secondary:hover {
    border-color: #FE4347;
    color: #FE4347;
}

/* ===== DAHA FAZLA YÜKLE ===== */
.bp-kat-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding-bottom: 10px;
}
.bp-kat-load-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
}
.bp-kat-load-bar {
    width: 100%;
    height: 4px;
    background: #f0ebe5;
    border-radius: 4px;
    overflow: hidden;
}
.bp-kat-load-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FE4347, #f2873d);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.bp-kat-load-text {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}
.bp-kat-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #fff;
    border: 1.5px solid #e0d5ca;
    border-radius: 10px;
    color: #2c2c2c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
}
.bp-kat-load-more-btn:hover {
    border-color: #FE4347;
    color: #FE4347;
    background: #fff5f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 77, 5, 0.1);
}
.bp-kat-load-more-btn i {
    font-size: 11px;
    transition: transform 0.2s;
}
.bp-kat-load-more-btn:hover i {
    transform: translateY(2px);
}

/* Pagination (eski - kaldırıldı, yerine load more geldi) */

/* ===== MOBİL FİLTRE OVERLAY ===== */
.bp-kat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}
.bp-kat-overlay.bp-kat-open {
    display: block;
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .bp-kat-content .main-products.product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bp-kat-sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
        z-index: 10001;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    }
    .bp-kat-sidebar.bp-kat-sidebar-open {
        transform: translateY(0);
    }

    /* Mobil drawer üst bar */
    .bp-kat-sidebar::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 4px;
        margin: 12px auto 4px;
    }

    .bp-kat-filter-btn {
        display: flex;
    }

    .bp-kat-content .main-products.product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bp-kat-wrapper {
        gap: 0;
        padding: 12px 0;
    }

    .bp-kat-page-title {
        font-size: 16px;
    }

    .bp-kat-toolbar {
        padding: 8px 10px;
        gap: 8px;
    }

    .bp-kat-toolbar .orderby {
        font-size: 12px;
        padding: 7px 28px 7px 10px;
    }

    .bp-kat-chip {
        font-size: 11px;
        padding: 4px 8px;
    }

    .bp-kat-active-filters {
        gap: 5px;
        order: 3;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bp-kat-content .main-products.product-grid {
        gap: 8px;
    }
    .bp-kat-empty-state {
        padding: 40px 16px;
    }
    .bp-kat-empty-icon svg {
        width: 48px;
        height: 48px;
    }
    .bp-kat-empty-title {
        font-size: 16px;
    }
    .bp-kat-empty-actions {
        flex-direction: column;
        width: 100%;
    }
    .bp-kat-empty-btn {
        width: 100%;
        justify-content: center;
    }
    .bp-kat-load-more-btn {
        width: 100%;
        justify-content: center;
    }
}

