/* WC Pro Filters — Estilo MercadoLibre */

.wcpf-filters-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Active Filters (Pills) ── */
.wcpf-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.wcpf-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 1.3;
}

.wcpf-active-pill:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.wcpf-pill-x {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.6;
}

.wcpf-active-pill:hover .wcpf-pill-x {
    opacity: 1;
}

.wcpf-clear-all {
    font-size: 13px;
    color: #3483fa;
    text-decoration: none;
    margin-left: 4px;
}

.wcpf-clear-all:hover {
    text-decoration: underline;
    color: #2968c8;
}

/* ── Filter Sections ── */
.wcpf-filter-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wcpf-filter-section:last-child {
    border-bottom: none;
}

.wcpf-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding: 0;
    line-height: 1.3;
}

/* ── Category Drill-down Back Link ── */
.wcpf-cat-back {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #3483fa;
    text-decoration: none;
    font-weight: 500;
}

.wcpf-cat-back:hover {
    text-decoration: underline;
    color: #2968c8;
}

/* ── Filter Lists ── */
.wcpf-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcpf-filter-item {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.wcpf-filter-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.wcpf-filter-item a:hover {
    color: #3483fa;
    text-decoration: none;
}

.wcpf-filter-item.wcpf-item-active a {
    color: #333;
    font-weight: 600;
}

/* ── Checkboxes ── */
.wcpf-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: all 0.15s;
    flex-shrink: 0;
}

.wcpf-filter-item a:hover .wcpf-checkbox {
    border-color: #3483fa;
}

.wcpf-item-active .wcpf-checkbox {
    background: #3aaf90;
    border-color: #3aaf90;
}

.wcpf-item-active .wcpf-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.wcpf-count {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

/* Hidden items (show more) */
.wcpf-filter-item.wcpf-hidden-item {
    display: none;
}

.wcpf-filter-list.wcpf-expanded .wcpf-hidden-item {
    display: list-item;
}

/* Show more link */
.wcpf-show-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    color: #3483fa;
    text-decoration: none;
    cursor: pointer;
}

.wcpf-show-more:hover {
    text-decoration: underline;
    color: #2968c8;
}

/* ── Price Inputs ── */
.wcpf-price-form {
    margin-top: 12px;
}

.wcpf-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcpf-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.wcpf-price-inputs input[type="number"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
    appearance: textfield;
    height: 36px;
    box-sizing: border-box;
}

.wcpf-price-inputs input[type="number"]::-webkit-inner-spin-button,
.wcpf-price-inputs input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wcpf-price-inputs input[type="number"]:focus {
    border-color: #3483fa;
}

.wcpf-price-sep {
    color: #999;
    flex-shrink: 0;
    font-weight: 300;
    line-height: 1;
}

.wcpf-price-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: #8267AB;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.wcpf-price-btn:hover {
    background: #6b4f96;
}

/* ── Rating Stars ── */
.wcpf-stars {
    color: #f5a623;
    font-size: 15px;
    letter-spacing: 1px;
}

.wcpf-rating-label {
    color: #999;
    font-size: 13px;
}

/* ── Color Swatches ── */
.wcpf-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcpf-color-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s;
    position: relative;
}

.wcpf-color-swatch:hover {
    transform: scale(1.1);
    border-color: #999;
}

.wcpf-color-swatch.wcpf-swatch-active {
    border-color: #3483fa;
    border-width: 3px;
}

.wcpf-swatch-check {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ── On Sale Toggle Style ── */
.wcpf-filter-item.wcpf-item-active a .wcpf-count {
    color: #3483fa;
}

/* ── Price Form V2 (New) ── */
.wcpf-price-form-v2 {
    margin-top: 12px;
}

.wcpf-price-container-v2 {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 8px;
    align-items: center;
}

.wcpf-price-input-v2 {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
    appearance: textfield;
    min-width: 0;
}

.wcpf-price-input-v2::-webkit-inner-spin-button,
.wcpf-price-input-v2::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wcpf-price-input-v2:focus {
    border-color: #8267AB;
}

.wcpf-price-dash-v2 {
    color: #999;
    text-align: center;
    font-weight: 300;
}

.wcpf-submit-btn-v2 {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    background: #8267AB;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

.wcpf-submit-btn-v2 svg {
    display: block;
    width: 20px;
    height: 20px;
}

.wcpf-submit-btn-v2:hover {
    background: #6b4f96;
}

.wcpf-submit-btn-v2:active {
    transform: scale(0.95);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .wcpf-filters-wrapper {
        padding: 16px;
        background: #fff;
        border-radius: 8px;
    }

    .wcpf-section-title {
        font-size: 15px;
    }

    .wcpf-filter-item a {
        padding: 6px 0;
        font-size: 14px;
    }

    .wcpf-price-container-v2 {
        grid-template-columns: 1fr auto 1fr auto;
        gap: 8px;
    }

    .wcpf-price-input-v2 {
        padding: 8px 10px;
        font-size: 14px;
    }

    .wcpf-submit-btn-v2 {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
