/* ==========================================================================
   SOS IT TRADING - Horizontal Product Filter Bar
   Matching Superior Brand reference design (.pf-bar)
   ========================================================================== */

.sos-pf-wrapper {
    width: 100%;
    max-width: 1430px;
    margin: 20px auto 25px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: inherit;
}

.sos-pf-wrapper * {
    box-sizing: border-box;
}

.sos-pf-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #fff6ef, #fbeadb);
    border: 1px solid rgba(243, 112, 33, 0.18);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(30, 42, 59, 0.07);
    padding: 5px 6px 5px 20px;
    width: 100%;
    min-height: 54px;
    position: relative;
    z-index: 10;
}

.sos-pf-field {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 3px 14px 3px 0;
    position: relative;
}

.sos-pf-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 112, 33, 0.12);
    color: #f37021;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sos-pf-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
}

.sos-pf-field:focus-within .sos-pf-icon {
    background: #f37021;
    color: #ffffff;
}

.sos-pf-control {
    flex: 1;
    min-width: 0;
}

.sos-pf-control label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a08573;
    margin: 0 0 2px 0;
    line-height: 1.2;
    cursor: default;
}

.sos-pf-control select,
.sos-pf-control input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #1e2a3b;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
    box-shadow: none;
    font-family: inherit;
    height: auto;
    min-height: 0;
}

.sos-pf-control select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px 8px;
    padding-right: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.sos-pf-control select option {
    background: #ffffff;
    color: #1e2a3b;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
}

.sos-pf-control input {
    cursor: text;
}

.sos-pf-control input::placeholder {
    color: #b0b7c3;
    font-weight: 500;
    font-size: 14px;
}

.sos-pf-divider {
    width: 1px;
    flex: 0 0 1px;
    background: rgba(243, 112, 33, 0.18);
    height: 32px;
    margin: 0 6px;
    align-self: center;
}

.sos-pf-search-btn {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-self: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f37021, #e02b20);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(243, 112, 33, 0.35);
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 6px;
}

.sos-pf-search-btn svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    display: block;
}

.sos-pf-search-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 26px rgba(224, 43, 32, 0.45);
}

.sos-pf-search-btn:active {
    transform: scale(0.96);
}

/* Active Chips */
.sos-pf-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 4px 10px 4px;
}

.sos-pf-chips-label {
    font-size: 13px;
    font-weight: 700;
    color: #8b96a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sos-pf-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(243, 112, 33, 0.08);
    border: 1px solid rgba(243, 112, 33, 0.25);
    color: #d95a10;
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
}

.sos-pf-chip a {
    color: #d95a10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 2px;
    transition: color 0.2s ease;
}

.sos-pf-chip a:hover {
    color: #e02b20;
}

.sos-pf-clear {
    font-size: 13px;
    font-weight: 600;
    color: #98a2b3;
    text-decoration: underline;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.sos-pf-clear:hover {
    color: #e02b20;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sos-pf-bar {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 12px 18px;
    }
    .sos-pf-field {
        flex: 1 1 100%;
        padding: 8px 0;
    }
    .sos-pf-divider {
        flex: 1 1 100%;
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }
    .sos-pf-search-btn {
        margin: 10px 0 4px auto;
        width: 44px;
        height: 44px;
    }
}
