.mpf-container {
        display: flex;
        gap: 20px;
}
.mpf-filter-sidebar {
    width: 280px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Arama kutusu */
.mpf-search-row {
    margin-bottom: 20px;
}

.mpf-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.mpf-search:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Kategori bölümü */
.mpf-category-section {
    margin-bottom: 20px;
}

.mpf-cat-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.mpf-cat-toggle:hover {
    border-color: #999;
    background-color: #f8f8f8;
}

.mpf-cat-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.mpf-cat-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.mpf-category-section.is-open .mpf-cat-arrow {
    transform: rotate(180deg);
}

.mpf-cat-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 16px;
    max-height: 250px;
    overflow-y: auto;
}

.mpf-cat-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin-bottom: 4px;
}

.mpf-cat-item:hover {
    background-color: #f8f8f8;
    padding-left: 6px;
    padding-right: 6px;
}

.mpf-cat-item input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #2271b1;
    cursor: pointer;
    width: 16px;
    height: 16px;
    transform: scale(1.1);
}

.mpf-cat-name {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.mpf-cat-item:last-child {
    margin-bottom: 0;
}

/* Fiyat bölümü */
.mpf-price-section {
    margin-bottom: 20px;
}

.mpf-price-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.mpf-price-toggle:hover {
    border-color: #999;
    background-color: #f8f8f8;
}

.mpf-price-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.mpf-price-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.mpf-price-section.is-open .mpf-price-arrow {
    transform: rotate(180deg);
}

.mpf-price-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 16px;
}

.mpf-price-inputs {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.mpf-price-input-group {
    flex: 1;
}

.mpf-price-input-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.mpf-price-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.mpf-price-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.mpf-price-separator {
    color: #666;
    font-weight: 500;
    padding: 0 4px;
    margin-bottom: 2px;
}

.mpf-price-apply {
    width: 100%;
    background: #101214;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
}

.mpf-price-apply:hover {
    background: #1e5a87;
}

.mpf-price-apply:focus {
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.3);
}
.mpf-products-section {
    flex: 1;
}
.mpf-sort-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

/* Dropdown sıralama stilleri */
.mpf-sort-dropdown {
    position: relative;
    display: inline-block;
}

.mpf-sort-trigger {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px; /* Tetikleyici buton için minimum genişlik */
    justify-content: space-between;
    transition: all 0.2s ease;
    outline: none;
}

.mpf-sort-trigger:hover {
    border-color: #999;
}

.mpf-sort-trigger:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.mpf-sort-text {
    font-weight: 500;
}

.mpf-sort-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mpf-sort-dropdown.is-open .mpf-sort-arrow {
    transform: rotate(180deg);
}

.mpf-sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 140px; /* Açılır menü için tetikleyici butonla aynı minimum genişlik */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-height: 300px;
    overflow-y: auto;
}

.mpf-sort-dropdown.is-open .mpf-sort-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mpf-sort-option {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.mpf-sort-option:last-child {
    border-bottom: none;
}

.mpf-sort-option:hover {
    background-color: #f8f8f8;
}

.mpf-sort-option.active {
    background-color: #1e2429;
    color: #fff;
}

.mpf-sort-option.active:hover {
    background-color: #1e2429;
}

/* Mobil responsive */
@media (max-width: 768px) {
    .mpf-sort-trigger {
        min-width: 120px;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .mpf-sort-options {
        left: 0;
        right: auto;
        min-width: 120px;
    }
    
    .mpf-sort-option {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mpf-sort-bar {
        justify-content: center;
    }
    
    .mpf-sort-trigger {
        min-width: 110px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .mpf-sort-options {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        min-width: 110px;
    }
    
    .mpf-sort-dropdown.is-open .mpf-sort-options {
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobil filtre butonları */
.mpf-mobile-filter-bar {
    display: none;
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    top: 0;
    z-index: 100;
}

.mpf-mobile-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mpf-mobile-filter-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.mpf-mobile-filter-btn:hover {
    border-color: #999;
    background-color: #f8f8f8;
}

.mpf-mobile-filter-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.mpf-mobile-sort-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.mpf-mobile-sort-btn:hover {
    border-color: #999;
    background-color: #f8f8f8;
}

/* Mobil modal overlay */
.mpf-mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    box-sizing: border-box;
}

.mpf-mobile-modal.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* Use viewport units */
    height: 100vh; /* Use viewport units */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mpf-mobile-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    margin: 0;
}

.mpf-mobile-modal.active .mpf-mobile-modal-content {
    transform: translateY(0);
}

.mpf-mobile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px 20px 12px 20px;
    border-bottom: 1px solid #e9ecef;
}

.mpf-mobile-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.mpf-mobile-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobil sıralama seçenekleri */
.mpf-mobile-sort-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 20px 20px 20px;
    max-height: 50vh; /* Adjust this value as needed, 50vh means 50% of the viewport height */
    overflow-y: auto;
    margin-bottom: 3rem;
}

.mpf-mobile-sort-option {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.mpf-mobile-sort-option:hover {
    background-color: #f8f8f8;
}

.mpf-mobile-sort-option.active {
    background-color: #1b1d1f;
    color: #fff;
}

/* Mobil filtre içeriği */
#mpf-mobile-filter-content {
    padding: 0 20px 20px 20px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom : 3rem;
}

#mpf-mobile-filter-content .mpf-search-row,
#mpf-mobile-filter-content .mpf-category-section,
#mpf-mobile-filter-content .mpf-price-section {
    margin-bottom: 24px;
    width: 100%;
}

#mpf-mobile-filter-content .mpf-search-row input {
    width: 100%;
    box-sizing: border-box;
}

#mpf-mobile-filter-content .mpf-cat-panel {
    max-height: 200px;
    overflow-y: auto;
}

#mpf-mobile-filter-content .mpf-cat-toggle,
#mpf-mobile-filter-content .mpf-price-toggle {
    width: 100%;
    text-align: left;
}

#mpf-mobile-filter-content .mpf-price-inputs {
    flex-direction: column;
    gap: 12px;
}

#mpf-mobile-filter-content .mpf-price-input-group {
    width: 100%;
}

#mpf-mobile-filter-content .mpf-price-input {
    width: 100%;
    box-sizing: border-box;
}

#mpf-mobile-filter-content .mpf-price-separator {
    display: none;
}

#mpf-mobile-filter-content .mpf-price-apply {
    width: 100%;
    margin-top: 12px;
}

/* Filtre sidebar responsive */
@media (max-width: 768px) {
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* HERE */
    .mpf-mobile-filter-bar {
        display: block;
    }
    
    .mpf-container {
        flex-direction: column;
        gap: 0;
    }
    
    .mpf-filter-sidebar {
        display: none !important; /* Mobilde gizle */
    }
    
    .mpf-products-section {
        order: 1;
        padding-top: 0;
    }
    
    .mpf-sort-bar {
        display: none; /* Desktop sıralama gizle */
    }
    
    .mpf-cat-panel {
        max-height: 250px;
    }
    
    .mpf-price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .mpf-price-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .mpf-filter-sidebar {
        padding: 15px;
    }
    
    .mpf-search {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mpf-section-title {
        font-size: 15px;
    }
    
    .mpf-cat-item {
        padding: 8px 0;
    }
    
    .mpf-price-toggle {
        padding: 10px 12px;
    }
    
    .mpf-price-input {
        padding: 8px 10px;
        font-size: 13px;
    }
}