.product-search-section {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding-bottom: 48px;
}

.product-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.product-search__tabs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-search__tab {
    border: none;
    background: #FAFAFA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 8px;
    gap: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    color: #BDBDBD;
    font-weight: 500;
    font-size: 14px;
    line-height: 145%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.product-search__tab.is-active {
    background: #FFF7F7;
    color: #C40F0F;
}

.product-search__panel {
    width: 100%;
    position: relative;
    z-index: 1;
}

.product-search__form {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
    padding: 16px;
    background: #FFF7F7;
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.product-search__fields {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.product-search__field {
    position: relative;
    flex: 0 0 220px;
    width: 220px;
    min-width: 0;
}

.product-search__field--combobox {
    z-index: 1;
}

.product-search__field--combobox.is-open {
    z-index: 3;
}

.product-search__field input,
.product-search__select {
    width: 100%;
    height: 40px;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #FFFFFF;
    padding: 8px 16px;
    color: #212121;
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    outline: none;
    text-transform: none;
}

.product-search__input {
    width: 100%;
}

.product-search__field input::placeholder {
    color: #9E9E9E;
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    text-transform: none;
}

.product-search__field input:focus,
.product-search__select:focus {
    border-color: #C40F0F;
}

.product-search__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.product-search__select::-ms-expand {
    display: none;
}

.product-search__select.is-placeholder {
    color: #9E9E9E;
}

.product-search__field--combobox .product-search__input {
    padding-right: 44px;
    cursor: pointer;
    caret-color: transparent;
}

.product-search__field-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #212121;
    pointer-events: none;
}

.product-search__field-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    padding: 0;
    border: none;
    background: transparent;
    color: #212121;
    cursor: pointer;
}

.product-search__field--combobox.is-open .product-search__field-toggle svg {
    transform: rotate(180deg);
}

.product-search__field-toggle svg {
    transition: transform 0.2s ease;
}

.product-search__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 4;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 12px 24px rgba(33, 33, 33, 0.08);
    overflow: hidden;
    pointer-events: auto;
}

.product-search__dropdown-list {
    max-height: 220px;
    overflow-y: auto;
}

.product-search__dropdown-option,
.product-search__dropdown-empty {
    width: 100%;
    padding: 10px 16px;
    font-weight: 300;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0.01em;
}

.product-search__dropdown-option {
    border: none;
    background: #FFFFFF;
    color: #212121;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product-search__dropdown-option:hover,
.product-search__dropdown-option:focus,
.product-search__dropdown-option.is-selected {
    background: #FFF7F7;
    color: #C40F0F;
    outline: none;
}

.product-search__dropdown-empty {
    color: #9E9E9E;
}

.product-search__form--sku .product-search__field,
.product-search__field--sku {
    flex: 1 1 auto;
    width: auto;
}

.product-search__form--sku {
    width: 100%;
    max-width: 888px;
}

.product-search__form--sku .product-search__fields {
    flex: 1 1 auto;
}

.product-search__form--sku .product-search__field--sku {
    flex: 1 1 692px;
    width: 100%;
    max-width: 692px;
    position: relative;
}

.product-search__form--sku .product-search__field--sku input {
    width: 100%;
    max-width: none;
}

.header-product-search-suggest--product-search {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    z-index: 30;
}

.product-search__submit {
    flex: 0 0 auto;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #C40F0F;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    font-weight: 500;
    font-size: 14px;
    line-height: 145%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.product-search__submit svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.product-search__empty {
    flex: 1 1 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #757575;
    font-size: 15px;
    line-height: 1.5;
}

@media screen and (max-width: 998px) {
    .product-search__form {
        flex-direction: column;
        width: 100%;
        max-width: none;
    }

    .product-search__fields {
        width: 100%;
    }

    .product-search__field,
    .product-search__form--sku .product-search__field,
    .product-search__field--sku {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .product-search__submit {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .product-search-section {
        padding-bottom: 32px;
    }

    .product-search__tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .product-search__tab {
        width: 100%;
        padding: 16px 10px 10px 10px;
        font-size: 10px;
        text-align: center;
        min-width: 0;
    }

    .product-search__form {
        gap: 12px;
        padding: 12px;
    }

    .product-search__fields {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .product-search__field,
    .product-search__field--sku,
    .product-search__form--sku .product-search__field {
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    .product-search__field input,
    .product-search__select {
        width: 100%;
    }
}
