.vc-search-user,
.vc-search-user * {
    box-sizing: border-box;
}

.vc-search-user {
    font-family: 'Inter', Arial, sans-serif;
    width: 100%;
}

.vc-search-trigger {
    --vc-search-trigger-color: #ffffff;
    --vc-search-trigger-icon-color: #ffffff;
    --vc-search-trigger-bg: rgba(255,255,255,0);
    --vc-search-trigger-border: #ffffff;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 260px;
    min-height: 31px;
    padding: 6px 10px 6px 14px;
    border: 1px solid var(--vc-search-trigger-border);
    border-radius: 0;
    background: var(--vc-search-trigger-bg);
    color: var(--vc-search-trigger-color);
    font-family: inherit;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.vc-search-user--icon .vc-search-trigger {
    width: auto;
    min-width: 36px;
    justify-content: center;
    padding: 8px;
}

.vc-search-trigger:hover,
.vc-search-trigger:focus {
    color: var(--vc-search-trigger-color);
    background: var(--vc-search-trigger-bg);
    border-color: var(--vc-search-trigger-border);
    outline: none;
}

.vc-search-trigger__text {
    display: block;
    min-width: 0;
    color: var(--vc-search-trigger-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vc-search-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--vc-search-trigger-icon-color);
    fill: currentColor;
    line-height: 0;
}

.vc-search-trigger__icon svg,
.vc-search-trigger__icon i {
    display: block;
    width: 100%;
    height: 100%;
    color: currentColor;
    fill: currentColor;
}

.vc-search-popup {
    --vc-search-popup-bg: #ffffff;
    --vc-search-popup-overlay-bg: rgba(0,0,0,.55);
    --vc-search-logo-color: #111111;
    --vc-search-input-bg: #f3f3f3;
    --vc-search-input-color: #111111;
    --vc-search-input-border-color: transparent;
    --vc-search-close-color: #111111;
    --vc-search-close-bg: transparent;
    --vc-search-suggestion-label-color: #111111;
    --vc-search-suggestion-link-color: #111111;
    --vc-search-results-title-color: #111111;
    --vc-search-count-color: #111111;
    --vc-search-empty-color: #111111;
    --vc-search-card-bg: #ffffff;
    --vc-search-product-title-color: #111111;
    --vc-search-price-color: #111111;
    --vc-search-old-price-color: #8a8a8a;
    --vc-search-sale-color: #ffffff;
    --vc-search-sale-bg: #000000;
    --vc-search-heart-color: #111111;
    --vc-search-heart-active-color: #111111;
    position: fixed;
    inset: 0;
    z-index: 2147483000 !important;
    display: none;
    width: 100vw;
    height: 100vh;
    padding: 20px 54px 42px;
    background: var(--vc-search-popup-overlay-bg);
    color: #111;
    overflow: auto;
    overscroll-behavior: contain;
}

.vc-search-popup.is-open {
    display: block;
}

body.vc-search-popup-open {
    overflow: hidden;
}

.vc-search-popup__panel {
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    min-height: 0;
    margin: 0 auto;
    background: var(--vc-search-popup-bg);
    overflow: auto;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.vc-search-popup__panel-inner {
    padding: 16px 20px 30px;
}

.vc-search-popup__topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: 0 0 18px;
}

.vc-search-popup__logo {
    display: flex;
    align-items: center;
    flex: 0 0 115px;
    width: 115px;
    min-width: 0;
}

.vc-search-popup__logo-text {
    display: block;
    color: var(--vc-search-logo-color);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vc-search-popup__logo img {
    display: block;
    width: 100%;
    max-height: 56px;
    object-fit: contain;
    object-position: left center;
}

.vc-search-popup__form {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.vc-search-popup__input {
    appearance: none;
    display: block;
    width: 100%;
    min-height: 45px;
    padding: 10px 16px;
    border: 0 solid var(--vc-search-input-border-color) !important;
    border-radius: 6px;
    background: var(--vc-search-input-bg);
    color: var(--vc-search-input-color);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    outline: none !important;
    box-shadow: none !important;
}

.vc-search-popup__input:hover,
.vc-search-popup__input:focus {
    border-color: var(--vc-search-input-border-color) !important;
    outline: none !important;
    box-shadow: none !important;
}

.vc-search-popup__input::-webkit-search-cancel-button,
.vc-search-popup__input::-webkit-search-decoration {
    appearance: none;
}

.vc-search-popup__close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--vc-search-close-bg);
    color: var(--vc-search-close-color);
    cursor: pointer;
    line-height: 0;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.vc-search-popup__close:hover,
.vc-search-popup__close:focus {
    background: var(--vc-search-close-bg);
    color: var(--vc-search-close-color);
    outline: none;
}

.vc-search-popup__close svg,
.vc-search-popup__close i {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    color: currentColor;
}

.vc-search-popup__suggestion {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 34px;
    padding-left: 120px;
    font-size: 13px;
    line-height: 1.2;
}

.vc-search-popup__suggestion-label {
    color: var(--vc-search-suggestion-label-color);
    font-weight: 700;
}

.vc-search-popup__suggestion-link {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--vc-search-suggestion-link-color);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.vc-search-popup__suggestion-link:hover,
.vc-search-popup__suggestion-link:focus {
    background: transparent;
    outline: none;
}

.vc-search-popup__results-title {
    margin: 0 0 18px;
    color: var(--vc-search-results-title-color);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.vc-search-popup__results-title[hidden],
.vc-search-popup__results-count[hidden] {
    display: none !important;
}

.vc-search-popup__results-count {
    margin: -8px 0 18px;
    color: var(--vc-search-count-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.vc-search-popup__results {
    position: relative;
    min-height: 120px;
}

.vc-search-popup__results.is-loading {
    opacity: .75;
}

.vc-search-popup__loading,
.vc-search-popup__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 100%;
    color: var(--vc-search-empty-color);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.vc-search-products {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    padding: 0 0 34px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: auto;
}

.vc-search-products::-webkit-scrollbar {
    height: 12px;
}

.vc-search-products::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.vc-search-products::-webkit-scrollbar-thumb {
    background: #9a9a9a;
    border-radius: 999px;
}

.vc-search-product {
    position: relative;
    display: flex;
    flex: 0 0 202px;
    flex-direction: column;
    width: 202px;
    min-height: 325px;
    padding: 14px 20px 20px;
    border: 1px solid #cfcfcf;
    background: var(--vc-search-card-bg);
    overflow: hidden;
}

.vc-search-product__favorite {
    position: absolute;
    top: 15px;
    right: 14px;
    z-index: 3;
}

.vc-search-favorite-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--vc-search-heart-color);
    cursor: pointer;
    line-height: 0;
}

.vc-search-favorite-button:hover,
.vc-search-favorite-button:focus {
    background: transparent !important;
    color: var(--vc-search-heart-color);
    outline: none;
}

.vc-search-favorite-button svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.vc-search-favorite-button__icon--active {
    display: none;
}

.vc-search-favorite-button.is-active {
    color: var(--vc-search-heart-active-color);
}

.vc-search-favorite-button.is-active .vc-search-favorite-button__icon--normal {
    display: none;
}

.vc-search-favorite-button.is-active .vc-search-favorite-button__icon--active {
    display: inline-flex;
}

.vc-search-product__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 170px;
    margin-top: 26px;
    text-decoration: none;
}

.vc-search-product__image:hover {
    text-decoration: none;
}

.vc-search-product__image-stack {
    position: relative;
    display: block;
    width: 100%;
    height: 170px;
}

.vc-search-product__image-stack .vc-search-product__image-img {
    position: absolute;
    inset: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.vc-search-product__image-img--hover {
    opacity: 0;
}

.vc-search-product__image:hover .vc-search-product__image-img--main {
    opacity: 0;
}

.vc-search-product__image:hover .vc-search-product__image-img--hover {
    opacity: 1;
}

.vc-search-product__image img,
.vc-search-product__image-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 170px;
    object-fit: contain;
    object-position: center;
}

.vc-search-product__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.vc-search-product__title {
    display: block;
    max-width: 100%;
    color: var(--vc-search-product-title-color) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vc-search-product__title:hover,
.vc-search-product__title:focus {
    color: var(--vc-search-product-title-color) !important;
    text-decoration: none;
}

.vc-search-product__price {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--vc-search-price-color);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.vc-search-product__price .price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vc-search-product__price del {
    color: var(--vc-search-old-price-color);
    font-size: .9em;
    font-weight: 400;
    opacity: 1;
}

.vc-search-product__price ins {
    background: transparent;
    text-decoration: none;
}

.vc-search-product__sale {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 1px 6px;
    background: var(--vc-search-sale-bg);
    color: var(--vc-search-sale-color);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.vc-search-product__swatches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 17px;
    margin-top: 2px;
}

.vc-search-product__swatch {
    display: block;
    width: 18px;
    height: 14px;
    border: 1px solid rgba(0,0,0,.08);
}

.vc-search-product__swatch-more {
    display: inline-flex;
    align-items: center;
    min-height: 14px;
    margin-left: 2px;
    color: #111;
    font-size: 11px;
    line-height: 1;
}

@media (max-width: 767px) {
    .vc-search-popup {
        padding: 10px 12px 24px;
    }

    .vc-search-popup__panel {
        max-height: calc(100vh - 34px);
    }

    .vc-search-popup__panel-inner {
        padding: 16px 14px 28px;
    }

    .vc-search-popup__topbar {
        gap: 12px;
    }

    .vc-search-popup__logo {
        flex-basis: 90px;
        width: 90px;
    }

    .vc-search-popup__logo-text {
        font-size: 16px;
        letter-spacing: .16em;
    }

    .vc-search-popup__suggestion {
        padding-left: 0;
        margin-bottom: 24px;
    }

    .vc-search-product {
        flex-basis: 180px;
        width: 180px;
    }

    .vc-search-user--mobile-icon-only .vc-search-trigger {
        width: auto !important;
        min-width: 36px;
        justify-content: center;
        padding: 8px !important;
    }

    .vc-search-user--mobile-icon-only .vc-search-trigger__text {
        display: none !important;
    }

}

/* v1.0.9 - Mobile popup: logo centralizada, input + fechar abaixo, títulos à esquerda */
@media (max-width: 767px) {
    .vc-search-popup .vc-search-popup__topbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .vc-search-popup .vc-search-popup__logo {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-basis: auto !important;
        max-width: 100% !important;
        margin: 0 auto 2px !important;
        text-align: center !important;
    }

    .vc-search-popup .vc-search-popup__logo img {
        margin: 0 auto !important;
        object-position: center center !important;
    }

    .vc-search-popup .vc-search-popup__logo-text {
        width: 100% !important;
        text-align: center !important;
    }

    .vc-search-popup .vc-search-popup__form {
        grid-column: 1 / 2 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .vc-search-popup .vc-search-popup__close {
        grid-column: 2 / 3 !important;
        justify-self: end !important;
    }

    .vc-search-popup .vc-search-popup__results-title,
    .vc-search-popup .vc-search-popup__results-count {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        justify-self: start !important;
    }
}


/* v1.0.10 - Mobile popup realmente 100% da tela */
@media (max-width: 767px) {
    html.vc-search-popup-open,
    body.vc-search-popup-open {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .vc-search-popup,
    body .vc-search-popup,
    .elementor .vc-search-popup {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 2147483647 !important;
        display: none;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        background: var(--vc-search-popup-bg) !important;
    }

    .vc-search-popup.is-open,
    body .vc-search-popup.is-open,
    .elementor .vc-search-popup.is-open {
        display: block !important;
    }

    .vc-search-popup__panel,
    body .vc-search-popup .vc-search-popup__panel {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: none !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .vc-search-popup__panel-inner,
    body .vc-search-popup .vc-search-popup__panel-inner {
        width: 100% !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        padding: 22px 16px 30px !important;
        box-sizing: border-box !important;
    }

    .vc-search-popup .vc-search-popup__topbar {
        margin-bottom: 18px !important;
    }

    .vc-search-popup .vc-search-popup__logo {
        width: 100% !important;
    }

    .vc-search-popup .vc-search-popup__results-title,
    .vc-search-popup .vc-search-popup__results-count {
        text-align: left !important;
    }

    .vc-search-products {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}


/* v1.0.11 - Portal acima de todos os elementos e logo mobile com 45px */
.vc-search-popup-portal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;
    isolation: isolate !important;
}

.vc-search-popup-portal .vc-search-popup {
    pointer-events: auto !important;
    z-index: 2147483647 !important;
}

body.vc-search-popup-open .vc-search-popup-portal {
    display: block !important;
}

@media (max-width: 767px) {
    .vc-search-popup-portal .vc-search-popup,
    body .vc-search-popup-portal .vc-search-popup,
    .elementor .vc-search-popup-portal .vc-search-popup {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .vc-search-popup-portal .vc-search-popup .vc-search-popup__logo,
    body .vc-search-popup-portal .vc-search-popup .vc-search-popup__logo {
        width: 45px !important;
        max-width: 45px !important;
        min-width: 45px !important;
        flex: 0 0 45px !important;
        flex-basis: 45px !important;
        justify-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .vc-search-popup-portal .vc-search-popup .vc-search-popup__logo img,
    body .vc-search-popup-portal .vc-search-popup .vc-search-popup__logo img {
        width: 45px !important;
        max-width: 45px !important;
        min-width: 45px !important;
        height: auto !important;
        max-height: 45px !important;
        object-fit: contain !important;
        object-position: center center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .vc-search-popup-portal .vc-search-popup .vc-search-popup__results-title,
    .vc-search-popup-portal .vc-search-popup .vc-search-popup__results-count {
        text-align: left !important;
    }
}
