/* ─── Filter Bars Wrapper ────────────────────────────────────────────────── */

.ffp-filter-bars-wrapper {
    max-width: 1340px;
    margin: 0 auto 35px;
    padding: 28px 35px;
    background: #faf7f6;
    border-radius: 12px;
    border: 1px solid #f0e6e3;
    text-align: center;
}

/* ─── Product Filter Bar ─────────────────────────────────────────────────── */

.ffp-filter-bar {
    margin-bottom: 18px;
}

.ffp-filter-bar:last-child {
    margin-bottom: 0;
}

.ffp-filter-label {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ffp-filter-search {
    margin-bottom: 14px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ffp-filter-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e0d5d2;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #0F172A;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ffp-filter-search-input::placeholder {
    color: #a89895;
}

.ffp-filter-search-input:focus {
    border-color: #c37e6f;
    box-shadow: 0 0 0 3px rgba(195, 126, 111, 0.12);
}

.ffp-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.ffp-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid #e0d5d2;
    border-radius: 8px;
    background: #fff;
    color: #364151;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.ffp-tag:hover {
    border-color: #c37e6f;
    color: #c37e6f;
    background: #fff;
    box-shadow: 0 1px 4px rgba(195, 126, 111, 0.15);
}

.ffp-tag.ffp-tag-active {
    background: #c37e6f;
    border-color: #c37e6f;
    color: #fff;
    box-shadow: 0 2px 8px rgba(195, 126, 111, 0.3);
}

.ffp-tag.ffp-tag-active:hover {
    background: #b06b5d;
    border-color: #b06b5d;
    color: #fff;
}

.ffp-tag-count {
    margin-left: 5px;
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
}

/* ─── Product Detail Tags (on product page) ─────────────────────────────── */

.ffp-detail-filter {
    margin-bottom: 12px;
    line-height: 1.8;
}

.ffp-detail-label {
    font-weight: 600;
    font-size: 14px;
    color: #0F172A;
    font-family: 'Poppins', sans-serif;
}

.ffp-detail-tags {
    display: inline;
}

.ffp-detail-tag {
    display: inline-block;
    padding: 4px 14px;
    margin: 2px 4px;
    border: 1px solid #e0d5d2;
    border-radius: 8px;
    background: #faf7f6;
    color: #364151;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ffp-detail-tag:hover {
    background: #c37e6f;
    border-color: #c37e6f;
    color: #fff;
    text-decoration: none;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .ffp-filter-bars-wrapper {
        padding: 18px 16px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 10px;
    }

    .ffp-filter-search-input {
        max-width: 100%;
    }

    .ffp-filter-tags {
        gap: 6px;
    }

    .ffp-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .ffp-detail-tag {
        padding: 3px 10px;
        font-size: 12px;
    }
}
