@media (min-width: 992px) {
    .vf-desktop-search-host {
        position: relative !important;
        overflow: visible !important;
    }

    .vf-desktop-search-results[hidden] {
        display: none !important;
    }

    .vf-desktop-search-results {
        position: absolute;
        z-index: 100050;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        max-height: min(620px, 72vh);
        padding: 16px;
        overflow: auto;
        overscroll-behavior: contain;
        border: 1px solid #e4e6ea;
        border-radius: 14px;
        background: #fff;
        color: #171717;
        box-shadow: 0 22px 55px rgba(15, 20, 30, 0.18);
        text-align: left;
    }

    .vf-desktop-search-host--open {
        z-index: 100051 !important;
    }

    .vf-desktop-search-host .klb-search-results,
    .vf-desktop-search-host > .header-search-results,
    .vf-desktop-search-host .header-search-results:not(.vf-desktop-search-results) {
        display: none !important;
    }

    body.vf-custom-desktop-search-open .dgwt-wcas-suggestions-wrapp,
    body.vf-custom-desktop-search-open .aws-search-result,
    body.vf-custom-desktop-search-open .klb-search-results {
        display: none !important;
    }

    .vf-desktop-search-status {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 92px;
        padding: 18px;
        color: #747a84;
        font-size: 14px;
        text-align: center;
    }

    .vf-desktop-search-spinner {
        width: 22px;
        height: 22px;
        border: 2px solid #e0e2e5;
        border-top-color: #ffbd1a;
        border-radius: 50%;
        animation: vf-desktop-search-spin 650ms linear infinite;
    }

    @keyframes vf-desktop-search-spin {
        to { transform: rotate(360deg); }
    }

    .vf-desktop-search-section-title {
        margin: 4px 0 9px;
        color: #8b9199;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .vf-desktop-search-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .vf-desktop-search-category {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 38px;
        padding: 8px 11px;
        border: 1px solid #e4e6ea;
        border-radius: 999px;
        background: #f7f8fa;
        color: #171717 !important;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
    }

    .vf-desktop-search-category small {
        color: #7a8089;
        font-size: 11px;
        font-weight: 600;
    }

    .vf-desktop-search-category:hover,
    .vf-desktop-search-category.is-keyboard-active {
        border-color: #ffbd1a;
        background: #fff8df;
        transform: translateY(-1px);
    }

    .vf-desktop-search-products {
        display: grid;
        gap: 4px;
    }

    .vf-desktop-search-product {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: 70px;
        padding: 7px 8px;
        border-radius: 10px;
        color: #171717 !important;
        transition: background 150ms ease;
    }

    .vf-desktop-search-product:hover,
    .vf-desktop-search-product.is-keyboard-active {
        background: #f5f6f8;
    }

    .vf-desktop-search-product__image {
        display: grid;
        place-items: center;
        width: 58px;
        height: 58px;
        overflow: hidden;
        border: 1px solid #eceef1;
        border-radius: 9px;
        background: #fff;
    }

    .vf-desktop-search-product__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .vf-desktop-search-product__info {
        display: grid;
        min-width: 0;
        gap: 4px;
    }

    .vf-desktop-search-product__info strong {
        overflow: hidden;
        color: #171717;
        font-size: 14px;
        font-weight: 750;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vf-desktop-search-product__info small {
        color: #27884a;
        font-size: 12px;
        font-weight: 650;
    }

    .vf-desktop-search-product__info small.is-out-of-stock {
        color: #b33b3b;
    }

    .vf-desktop-search-product__price {
        justify-self: end;
        padding-left: 10px;
        color: #111;
        font-size: 14px;
        font-weight: 800;
        white-space: nowrap;
    }

    .vf-desktop-search-product__price del {
        margin-right: 4px;
        color: #8a9098;
        font-size: 12px;
        font-weight: 500;
    }

    .vf-desktop-search-view-all {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin-top: 12px;
        border-radius: 9px;
        background: #101010;
        color: #fff !important;
        font-size: 14px;
        font-weight: 800;
        transition: transform 150ms ease, opacity 150ms ease;
    }

    .vf-desktop-search-view-all:hover,
    .vf-desktop-search-view-all.is-keyboard-active {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    @media (max-width: 1180px) {
        .vf-desktop-search-product {
            grid-template-columns: 52px minmax(0, 1fr);
        }

        .vf-desktop-search-product__image {
            width: 52px;
            height: 52px;
        }

        .vf-desktop-search-product__price {
            grid-column: 2;
            justify-self: start;
            padding-left: 0;
        }
    }
}

@media (max-width: 991px) {
    .vf-desktop-search-host {
        position: relative !important;
        overflow: visible !important;
        z-index: 40;
    }

    .vf-desktop-search-results[hidden] {
        display: none !important;
    }

    .vf-desktop-search-results {
        position: absolute;
        z-index: 100060;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(64vh, 560px);
        padding: 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid #e3e6ea;
        border-radius: 14px;
        background: #fff;
        color: #171717;
        box-shadow: 0 20px 48px rgba(15, 20, 30, 0.18);
        text-align: left;
        -webkit-overflow-scrolling: touch;
    }

    .vf-desktop-search-host .klb-search-results,
    .vf-desktop-search-host > .header-search-results,
    .vf-desktop-search-host .header-search-results:not(.vf-desktop-search-results),
    body.vf-custom-desktop-search-open .dgwt-wcas-suggestions-wrapp,
    body.vf-custom-desktop-search-open .aws-search-result,
    body.vf-custom-desktop-search-open .klb-search-results,
    body.vf-custom-desktop-search-open .header-search-results:not(.vf-desktop-search-results) {
        display: none !important;
    }

    .vf-desktop-search-status {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 82px;
        padding: 16px;
        color: #747a84;
        font-size: 14px;
        text-align: center;
    }

    .vf-desktop-search-spinner {
        width: 20px;
        height: 20px;
        border: 2px solid #e0e2e5;
        border-top-color: #ffbd1a;
        border-radius: 50%;
        animation: vf-desktop-search-spin 650ms linear infinite;
    }

    .vf-desktop-search-section-title {
        margin: 4px 0 8px;
        color: #8b9199;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .vf-desktop-search-categories {
        display: flex;
        gap: 7px;
        margin: 0 0 13px;
        padding-bottom: 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .vf-desktop-search-categories::-webkit-scrollbar {
        display: none;
    }

    .vf-desktop-search-category {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 38px;
        padding: 8px 11px;
        border: 1px solid #e4e6ea;
        border-radius: 999px;
        background: #f7f8fa;
        color: #171717 !important;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    .vf-desktop-search-category small {
        color: #7a8089;
        font-size: 11px;
    }

    .vf-desktop-search-products {
        display: grid;
        gap: 3px;
    }

    .vf-desktop-search-product {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-height: 68px;
        padding: 7px 0;
        border-bottom: 1px solid #e8e9ec;
        color: #171717 !important;
    }

    .vf-desktop-search-product__image {
        display: grid;
        place-items: center;
        width: 54px;
        height: 54px;
        overflow: hidden;
        border: 1px solid #eceef1;
        border-radius: 9px;
        background: #fff;
    }

    .vf-desktop-search-product__image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .vf-desktop-search-product__info {
        display: grid;
        min-width: 0;
        gap: 3px;
    }

    .vf-desktop-search-product__info strong {
        display: -webkit-box;
        overflow: hidden;
        color: #171717;
        font-size: 13px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .vf-desktop-search-product__info small {
        color: #27884a;
        font-size: 11px;
    }

    .vf-desktop-search-product__info small.is-out-of-stock {
        color: #b33b3b;
    }

    .vf-desktop-search-product__price {
        color: #111;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .vf-desktop-search-view-all {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin-top: 12px;
        border-radius: 10px;
        background: #101010;
        color: #fff !important;
        font-size: 14px;
        font-weight: 800;
    }

    @media (max-width: 420px) {
        .vf-desktop-search-product {
            grid-template-columns: 50px minmax(0, 1fr);
        }

        .vf-desktop-search-product__price {
            grid-column: 2;
            justify-self: start;
        }
    }
}
