.wooson-paf-wrapper {
    margin-bottom: 2rem;
    font-family: inherit;
}

.wooson-paf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.wooson-paf-main-title {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2c3e50;
}

.paf-icon-filter {
    color: #e67e22;
}

.wooson-paf-top-clear-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f9fa;
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #fadbd8;
    transition: all 0.2s ease;
}

.wooson-paf-top-clear-button:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.paf-icon-x {
    stroke-width: 3;
}

.wooson-paf-filters {
    display: flex;
    gap: 2rem;
}

.orientation-vertical .wooson-paf-filters {
    flex-direction: column;
}

.orientation-horizontal .wooson-paf-filters {
    flex-wrap: wrap;
}

.wooson-paf-filter-group {
    flex: 1;
    min-width: 220px;
    background: #fff;
    border: 1px solid #eef0f2;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wooson-paf-filter-group:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.wooson-paf-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wooson-paf-filter-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wooson-paf-filter-clear {
    color: #999;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s;
}

.wooson-paf-filter-clear:hover {
    color: #e67e22;
}

.wooson-paf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wooson-paf-list li {
    margin-bottom: 0.5rem;
}

.wooson-paf-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wooson-paf-list input {
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #e67e22;
}

.term-count, .swatch-count, .label-count {
    font-size: 0.8em;
    color: #888;
    margin-left: 0.25rem;
}

.wooson-paf-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wooson-paf-swatch-item {
    width: 34px;
    height: 34px;
    border: 2px solid #eee;
    padding: 2px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}

.wooson-paf-swatch-item:hover {
    border-color: #e67e22;
    transform: scale(1.1);
}

.wooson-paf-swatch-item.is-active {
    border-color: #e67e22;
    box-shadow: 0 0 0 1px #e67e22;
}

.swatch-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.swatch-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #eee;
    padding: 1px 4px;
    border-radius: 10px;
    font-size: 10px;
}

.wooson-paf-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wooson-paf-label-item {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.wooson-paf-label-item:hover {
    background-color: #f5f5f5;
}

.wooson-paf-label-item.is-active {
    background-color: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

.wooson-paf-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wooson-paf-submit-wrap, .wooson-paf-clear-wrap {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wooson-paf-submit-button {
    background-color: #e67e22;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.wooson-paf-submit-button:hover {
    background-color: #d35400;
}

.wooson-paf-clear-button {
    color: #666;
    text-decoration: underline;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .wooson-paf-filters {
        flex-direction: column;
        gap: 1.5rem;
    }
    .wooson-paf-filter-group {
        width: 100%;
    }
}

/* Fix WooCommerce Blocks filter overlay in sidebars */
.shop-sidebar :where(.wc-block-product-filters) .wc-block-product-filters__overlay-dialog {
    transform: none !important;
}

/* Hide redundant overlay header/close/open-button/footer in the sidebar */
.shop-sidebar .wc-block-product-filters__open-overlay,
.shop-sidebar .wc-block-product-filters__overlay-header,
.shop-sidebar .wc-block-product-filters__overlay-footer,
.shop-sidebar .wc-block-product-filters__close-overlay {
    display: none !important;
}

/* Ensure header and footer keep their background color when panels are open */
body.menu-open .header-main,
body.sidebar-open .header-main,
body.search-visible .header-main,
body.menu-open .site-footer,
body.sidebar-open .site-footer,
body.search-visible .site-footer {
    background: var(--header-bg-color) !important;
}
