/* =============================================
   LISTING (category page)
   ============================================= */

#js-product-list .ab-pf {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
    padding: 0px 15px;
    margin-bottom: -5px;
}

#js-product-list .ab-pf__tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 3px;
    border-radius: 3px;
    background: #d90244;
    border: 1px solid #d90244;
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    white-space: nowrap;
}

#js-product-list .ab-pf__icon {
    font-size: 14px;
    width: auto;
    height: auto;
    line-height: 1;
    opacity: 0.7;
    vertical-align: middle;
}

#js-product-list .ab-pf__label,
#js-product-list .ab-pf__val {
    display: none;
}

#js-product-list .ab-pf__val-s {
    display: inline;
}

/* =============================================
   PRODUCT PAGE — desktop (>=768px)
   ============================================= */

.tvproduct-page-wrapper .ab-pf {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 12px 0;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.tvproduct-page-wrapper .ab-pf__tag {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
    padding: 10px 16px;
    border-right: 1px solid #e5e5e5;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    background: #fafafa;
    transition: background 0.15s ease;
}

.tvproduct-page-wrapper .ab-pf__tag:last-child {
    border-right: none;
}

.tvproduct-page-wrapper .ab-pf__tag:hover {
    background: #f0f0f0;
}

.tvproduct-page-wrapper .ab-pf__icon {
    font-size: 18px;
    width: auto;
    height: auto;
    opacity: 0.45;
    flex-shrink: 0;
    vertical-align: middle;
    color: #d90244;
}

.tvproduct-page-wrapper .ab-pf__label {
    display: inline;
    font-weight: 400;
    color: #888;
}

.tvproduct-page-wrapper .ab-pf__val {
    display: inline;
    font-weight: 700;
    color: #232323;
}

.tvproduct-page-wrapper .ab-pf__val-s {
    display: none;
}

/* =============================================
   PRODUCT PAGE — mobile (<768px) compact badges
   ============================================= */

@media (max-width: 767px) {
    .tvproduct-page-wrapper .ab-pf {
        border: none;
        border-radius: 0;
        background: transparent;
        gap: 4px;
        margin: 8px 0;
        overflow: visible;
    }

    .tvproduct-page-wrapper .ab-pf__tag {
        flex: 0 1 auto;
        padding: 2px 3px;
        border-radius: 3px;
        border-right: none;
        background: #d90244;
        border: 1px solid #d90244;
        font-size: 0.72rem;
        font-weight: 600;
        color: white;
        gap: 3px;
        line-height: 1.4;
    }

    .tvproduct-page-wrapper .ab-pf__tag:hover {
        background: #d90244;
    }

    .tvproduct-page-wrapper .ab-pf__icon {
        font-size: 14px;
        width: auto;
        height: auto;
        opacity: 0.7;
        color: white;
        vertical-align: middle;
    }

    .tvproduct-page-wrapper .ab-pf__label,
    .tvproduct-page-wrapper .ab-pf__val {
        display: none;
    }

    .tvproduct-page-wrapper .ab-pf__val-s {
        display: inline;
    }
}
