.apf-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.apf-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.apf-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.apf-breadcrumb span {
    color: #000;
    font-weight: 600;
}

.apf-result-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.apf-store-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.apf-filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.apf-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.apf-filter-toggle,
.apf-filter-btn {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.apf-filter-toggle:hover,
.apf-filter-btn:hover {
    border-color: #000;
}

.apf-filter-btn.active {
    background: #000;
    color: white;
    border-color: #000;
}

.apf-sort-wrapper {
    position: relative;
}

.apf-sort-select {
    padding: 12px 40px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    appearance: none;
    min-width: 200px;
}

.apf-sort-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.apf-sort-dropdown.active {
    display: block;
}

.apf-sort-dropdown label {
    display: block;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.apf-sort-dropdown label:hover {
    background: #f5f5f5;
}

.apf-sort-dropdown input[type="radio"] {
    margin-right: 8px;
}

.apf-sort-dropdown label input[type="radio"]:checked + * {
    color: #0066ff;
}

.apf-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: none;
}

.apf-sidebar.active {
    right: 0;
}

.apf-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.apf-sidebar-overlay.active {
    display: block;
}

.apf-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.apf-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}

.apf-sidebar-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.apf-sidebar-content {
    padding: 20px;
}

.apf-sidebar-section {
    margin-bottom: 30px;
}

.apf-sidebar-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.apf-sort-options label,
.apf-price-options label {
    display: block;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
}

.apf-sort-options input[type="radio"],
.apf-price-options input[type="radio"] {
    margin-right: 10px;
}

.apf-active-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.apf-clear-filters,
.apf-active-filter-tag {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.apf-clear-filters:hover,
.apf-active-filter-tag:hover {
    border-color: #000;
}

.apf-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.apf-product-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.apf-product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.apf-product-image {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

.apf-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apf-wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.apf-wishlist-btn:hover {
    background: #f5f5f5;
}

.apf-product-info {
    padding: 20px;
}

.apf-product-info h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.apf-product-category {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
}

.apf-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    margin: 0 0 15px 0;
}

.apf-select-options {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.apf-select-options:hover {
    background: #000;
    color: white;
}

.apf-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .apf-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .apf-container {
        padding: 15px;
    }
    
    .apf-filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .apf-filter-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .apf-filter-buttons::-webkit-scrollbar {
        height: 4px;
    }
    
    .apf-filter-buttons::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }
    
    .apf-filter-toggle,
    .apf-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .apf-sort-select {
        display: none;
    }
    
    .apf-sort-wrapper {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .apf-sort-wrapper::after {
        content: '⇅';
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        border: 1px solid #ddd;
        border-radius: 50px;
        background: white;
        cursor: pointer;
        font-size: 18px;
    }
    
    .apf-sidebar {
        display: block;
    }
    
    .apf-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .apf-product-info {
        padding: 15px;
    }
    
    .apf-product-info h3 {
        font-size: 14px;
    }
    
    .apf-product-price {
        font-size: 14px;
    }
    
    .apf-select-options {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .apf-breadcrumb {
        font-size: 12px;
    }
    
    .apf-filter-toggle,
    .apf-filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .apf-sidebar {
        width: 100%;
        right: -100%;
    }
}
