/**
 * WC Product Filters CSS
 */
 
/* Container */
.wcpf-filters-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 4px;
}

/* Filter groups */
.wcpf-filter {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wcpf-filter:last-child {
    border-bottom: none;
}

/* Accordion styles */
.wcpf-accordion-item {
    overflow: hidden;
}

.wcpf-accordion-heading {
    position: relative;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcpf-accordion-heading h4 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.wcpf-accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.wcpf-accordion-icon:before,
.wcpf-accordion-icon:after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: transform 0.25s ease-out;
}

/* Horizontal line */
.wcpf-accordion-icon:before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

/* Vertical line */
.wcpf-accordion-icon:after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
    transform: rotate(90deg);
}

.wcpf-accordion-active .wcpf-accordion-icon:after {
    transform: rotate(0);
    opacity: 0;
}

.wcpf-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

.wcpf-accordion-active .wcpf-accordion-content {
    max-height: 1000px;
    padding-bottom: 15px;
}

/* Price filter */
.wcpf-price-slider-wrapper {
    padding: 10px 0;
}

.wcpf-price-slider {
    height: 4px;
    background-color: #e5e5e5;
    margin: 15px 0;
    position: relative;
    border-radius: 2px;
}

.wcpf-price-slider .ui-slider-range {
    position: absolute;
    background-color: #0f834d;
    height: 100%;
    border-radius: 2px;
}

.wcpf-price-slider .ui-slider-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    border: 1px solid #0f834d;
    top: -6px;
    margin-left: -8px;
    cursor: pointer;
    z-index: 2;
}

.wcpf-price-slider-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.wcpf-price-slider-amount .price-inputs {
    display: flex;
    align-items: center;
    width: 100%;
}

.wcpf-price-slider-amount input[type="text"] {
    width: 40%;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0 5px;
    font-size: 14px;
    text-align: center;
}

.wcpf-price-slider-amount .range-separator {
    margin: 0 10px;
}

/* Category list */
.wcpf-category-list,
.wcpf-attribute-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wcpf-category-list li,
.wcpf-attribute-list li {
    padding: 5px 0;
    margin: 0;
    line-height: 1.6;
}

/* Hierarchikus kategória megjelenítés */
/* Főkategóriák (level 0) */
.wcpf-category-list li:not(.wcpf-child-category) label .category-name {
    color: #000000;
    font-weight: 700;
    font-size: 1.05em;
}

/* Alkategóriák (level 1, 2, 3) */
.wcpf-category-list .wcpf-child-category {
    position: relative;
}

.wcpf-category-list .wcpf-child-category label .category-name {
    color: #666666;
    font-weight: normal;
}

/* WooCommerce-hez hasonló behúzás */
.wcpf-category-list .wcpf-level-1 {
    padding-left: 20px;
    font-size: 0.97em;
}

.wcpf-category-list .wcpf-level-2 {
    padding-left: 40px;
    font-size: 0.95em;
}

.wcpf-category-list .wcpf-level-3 {
    padding-left: 60px;
    font-size: 0.92em;
}

.wcpf-category-list .count,
.wcpf-attribute-list .count {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.wcpf-category-list label,
.wcpf-attribute-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-wrap: wrap;
}

.wcpf-category-list input,
.wcpf-attribute-list input {
    margin-right: 8px;
}


/* Filter actions */
.wcpf-filter-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcpf-filter-actions .button {
    background-color: #0f834d;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.wcpf-filter-actions .button:hover {
    background-color: #0a6e3d;
}

.wcpf-reset-button {
    text-decoration: none;
    color: #666;
    font-size: 14px;
}

.wcpf-reset-button:hover {
    color: #333;
    text-decoration: underline;
}

/* Shortcode */
.wcpf-filters-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .wcpf-filters-container {
        padding: 15px;
    }
    
    .wcpf-filter h4 {
        font-size: 15px;
    }
}
