/* ═══════════════════════════════════════════════════════════════════════════
   PAZARIX BRAND PAGE - Ultra Minimal Design
   Bu CSS sadece marka sayfasını etkiler (.pzx-brand-page)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reset ve Base */
.pzx-brand-page {
    background: #f8f9fa;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PAGE LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */

.pzx-brand-page .cat-detail-main-div-in {
    display: flex;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 20px;
}

.pzx-brand-page .cat-right-main {
    flex: 1;
    min-width: 0;
}

/* Eski elementleri gizle */
.pzx-brand-page .cat-right-elements-out,
.pzx-brand-page .cat-right-header-out {
    display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MARKA HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.pzx-brand-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pzx-brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pzx-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pzx-brand-info {
    flex: 1;
}

.pzx-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.pzx-brand-count {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.pzx-brand-desc {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TOOLBAR - Sıralama, Stok Filtresi, Görünüm
   ═══════════════════════════════════════════════════════════════════════════ */

.pzx-brand-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pzx-brand-toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pzx-brand-toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Toolbar Checkbox */
.pzx-brand-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.pzx-brand-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pzx-brand-checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

.pzx-brand-checkbox-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.pzx-brand-checkbox input:checked + .pzx-brand-checkbox-mark {
    background: #000;
    border-color: #000;
}

.pzx-brand-checkbox input:checked + .pzx-brand-checkbox-mark::after {
    opacity: 1;
    transform: scale(1);
}

.pzx-brand-checkbox-label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
}

/* Sıralama Select */
.pzx-brand-toolbar-sort {
    position: relative;
}

.pzx-brand-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 40px 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.15s ease;
    background-image: 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='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.pzx-brand-select:hover {
    border-color: #ccc;
    background-color: #fff;
}

.pzx-brand-select:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
}

/* Görünüm Butonları */
.pzx-brand-views {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
}

.pzx-brand-view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pzx-brand-view-btn:hover {
    color: #333;
    background: rgba(0,0,0,0.05);
}

.pzx-brand-view-btn.is-active {
    background: #000;
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SOL FİLTRE SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.pzx-brand-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pzx-brand-sidebar::-webkit-scrollbar {
    display: none;
}

/* Filtre Bölümleri */
.pzx-brand-filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pzx-brand-filter-section:last-child {
    margin-bottom: 0;
}

.pzx-brand-filter-title {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.pzx-brand-filter-content {
    padding-top: 5px;
}

/* Scrollable içerik */
.pzx-brand-filter-scrollable {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}

.pzx-brand-filter-scrollable::-webkit-scrollbar {
    width: 3px;
}

.pzx-brand-filter-scrollable::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 2px;
}

/* Checkbox Items */
.pzx-brand-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.pzx-brand-filter-item:hover {
    opacity: 0.7;
}

.pzx-brand-filter-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pzx-brand-filter-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

.pzx-brand-filter-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.pzx-brand-filter-item input:checked + .pzx-brand-filter-mark {
    background: #000;
    border-color: #000;
}

.pzx-brand-filter-item input:checked + .pzx-brand-filter-mark::after {
    opacity: 1;
    transform: scale(1);
}

.pzx-brand-filter-label {
    font-size: 14px;
    color: #444;
    flex: 1;
}

/* Kategori Linkleri */
.pzx-brand-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.15s ease;
}

.pzx-brand-cat-link:last-child {
    border-bottom: none;
}

.pzx-brand-cat-link:hover {
    color: #000;
    padding-left: 8px;
}

.pzx-brand-cat-link.is-active {
    color: #000;
    font-weight: 600;
}

.pzx-brand-cat-link i {
    font-size: 12px;
    color: #888;
}

.pzx-brand-cat-arrow {
    margin-left: auto;
    color: #ccc;
    transition: transform 0.2s ease;
}

.pzx-brand-cat-link:hover .pzx-brand-cat-arrow {
    color: #000;
    transform: translateX(3px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   FİYAT SLIDER
   ═══════════════════════════════════════════════════════════════════════════ */

.pzx-brand-price-slider {
    padding: 10px 0;
}

.pzx-brand-range-slider {
    position: relative;
    height: 6px;
    margin: 20px 0;
}

.pzx-brand-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 0;
    left: 0;
}

.pzx-brand-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pzx-brand-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pzx-brand-range-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    top: 0;
}

.pzx-brand-range-progress {
    position: absolute;
    height: 6px;
    background: #000;
    border-radius: 3px;
    top: 0;
}

.pzx-brand-price-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.pzx-brand-price-box {
    flex: 1;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    text-align: center;
}

.pzx-brand-price-currency {
    font-size: 12px;
    color: #888;
}

.pzx-brand-price-value {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.pzx-brand-price-sep {
    color: #ccc;
    font-size: 16px;
}

.pzx-brand-price-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pzx-brand-price-btn:hover {
    background: #333;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBİL FİLTRE PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop'ta gizle */
.pzx-brand-mobile-filter {
    display: none;
}

.pzx-brand-mobile-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.pzx-brand-mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pzx-brand-mobile-btn:hover {
    border-color: #000;
}

.pzx-brand-mobile-btn--primary {
    background: #000;
    border-color: #000;
    color: #fff;
}

.pzx-brand-mobile-btn--primary:hover {
    background: #333;
}

/* Mobil Panel */
.pzx-brand-mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.pzx-brand-mobile-panel.is-open {
    right: 0;
}

.pzx-brand-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.pzx-brand-panel-header span {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pzx-brand-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pzx-brand-panel-close:hover {
    background: #000;
    color: #fff;
}

.pzx-brand-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Mobil Kategori Link */
.pzx-brand-mobile-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.15s ease;
}

.pzx-brand-mobile-cat-link:last-child {
    border-bottom: none;
}

.pzx-brand-mobile-cat-link:hover {
    padding-left: 8px;
    color: #000;
}

.pzx-brand-mobile-cat-link svg {
    margin-left: auto;
    color: #ccc;
}

/* Mobil Overlay */
.pzx-brand-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pzx-brand-mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ÜRÜN GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.pzx-brand-page .cat-detail-products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .pzx-brand-page .cat-detail-products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    /* Sidebar gizle */
    .pzx-brand-sidebar {
        display: none !important;
    }
    
    /* Mobil filtre göster */
    .pzx-brand-mobile-filter {
        display: block !important;
    }
    
    /* Layout düzelt */
    .pzx-brand-page .cat-detail-main-div-in {
        flex-direction: column;
        gap: 0;
        padding: 15px;
    }
    
    .pzx-brand-page .cat-detail-products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    
    .pzx-brand-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .pzx-brand-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .pzx-brand-toolbar-left {
        order: 2;
    }
    
    .pzx-brand-toolbar-right {
        order: 1;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .pzx-brand-page .cat-detail-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .pzx-brand-select {
        min-width: 140px;
        padding: 8px 32px 8px 12px;
        font-size: 12px;
    }
    
    .pzx-brand-view-btn {
        width: 32px;
        height: 32px;
    }
    
    .pzx-brand-name {
        font-size: 20px;
    }
}

/* ==========================================
   PZX BRAND ACTIVE FILTERS
   ========================================== */

.pzx-brand-page .pzx-brand-active-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pzx-brand-page .pzx-brand-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pzx-brand-page .pzx-brand-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pzx-brand-page .pzx-brand-filter-tag:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.pzx-brand-page .pzx-brand-filter-tag svg {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.pzx-brand-page .pzx-brand-filter-tag:hover svg {
    opacity: 1;
}

.pzx-brand-page .pzx-brand-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #dc2626;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.pzx-brand-page .pzx-brand-clear-all:hover {
    background: #b91c1c;
}

/* Mobil için aktif filtreler */
@media (max-width: 767px) {
    .pzx-brand-page .pzx-brand-active-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .pzx-brand-page .pzx-brand-filter-tags {
        margin-bottom: 12px;
    }
    
    .pzx-brand-page .pzx-brand-clear-all {
        justify-content: center;
    }
}
