/*
 * EMZ — Buscador universal Dark Premium
 * Oculta el buscador de Flatsome y coloca un formulario estable sobre el breadcrumb.
 */

/* Buscador anterior del encabezado y del menú móvil. */
#header .header-search,
#header li.header-search,
#header .search-icon,
#masthead .header-search,
#masthead li.header-search,
#main-menu .searchform,
#main-menu form.searchform,
#main-menu .header-search-form {
    display: none !important;
}

.emz-catalog-search {
    position: relative;
    z-index: 12;
    width: 100%;
    padding: 28px 24px 10px;
    background:
        radial-gradient(circle at 15% 0%, rgba(53, 255, 112, .075), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(200, 37, 132, .08), transparent 36%);
}

.emz-catalog-search__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(210px, .72fr) minmax(420px, 1.7fr);
    align-items: center;
    gap: 24px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(19, 20, 25, .96), rgba(6, 7, 10, .97)),
        #08090c;
    box-shadow:
        0 22px 65px rgba(0, 0, 0, .38),
        inset 0 1px 0 rgba(255, 255, 255, .055),
        0 0 30px rgba(131, 0, 75, .07);
}

.emz-catalog-search__heading {
    min-width: 0;
    padding: 0 4px;
}

.emz-catalog-search__kicker {
    display: block;
    margin-bottom: 4px;
    color: #7cff9a;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .18em;
}

.emz-catalog-search__heading strong {
    display: block;
    color: #fff;
    font-family: inherit;
    font-size: clamp(15px, 1.35vw, 20px);
    font-weight: 750;
    line-height: 1.25;
}

.emz-catalog-search__form {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 58px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(0, 0, 0, .48);
    box-shadow:
        inset 0 1px 12px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(128, 0, 75, .08);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.emz-catalog-search__form:focus-within {
    border-color: rgba(61, 240, 102, .60);
    box-shadow:
        inset 0 1px 12px rgba(0, 0, 0, .34),
        0 0 0 3px rgba(61, 240, 102, .10),
        0 0 24px rgba(178, 24, 116, .09);
    transform: translateY(-1px);
}

.emz-catalog-search__icon {
    flex: 0 0 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca4a1;
}

.emz-catalog-search__icon svg,
.emz-catalog-search__form button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.emz-catalog-search__form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    margin: 0 !important;
    padding: 0 14px 0 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 56px;
    appearance: none;
    -webkit-appearance: none;
}

.emz-catalog-search__form input[type="search"]::placeholder {
    color: rgba(224, 229, 227, .52);
    opacity: 1;
}

.emz-catalog-search__form input[type="search"]::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: .6;
}

.emz-catalog-search__form button {
    align-self: stretch;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 126px;
    margin: 5px !important;
    padding: 0 20px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #14bd3b 0%, #087c24 56%, #6c003f 100%) !important;
    box-shadow: 0 8px 24px rgba(8, 137, 40, .18) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .12em;
    text-shadow: none;
    cursor: pointer;
    transition: filter .25s ease, transform .25s ease, box-shadow .25s ease;
}

.emz-catalog-search__form button:hover,
.emz-catalog-search__form button:focus-visible {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(8, 172, 46, .26) !important;
}

.emz-catalog-search__form button svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 849px) {
    .emz-catalog-search {
        padding: 18px 14px 7px;
    }

    .emz-catalog-search__inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 19px;
    }

    .emz-catalog-search__heading {
        padding: 0 2px;
    }

    .emz-catalog-search__heading strong {
        font-size: 16px;
    }

    .emz-catalog-search__form {
        min-height: 54px;
        border-radius: 14px;
    }

    .emz-catalog-search__icon {
        flex-basis: 43px;
    }

    .emz-catalog-search__form input[type="search"] {
        height: 52px;
        font-size: 16px;
        line-height: 52px;
    }

    .emz-catalog-search__form button {
        min-width: 52px;
        padding: 0 15px !important;
    }

    .emz-catalog-search__form button span {
        display: none;
    }
}

@media (max-width: 420px) {
    .emz-catalog-search {
        padding-inline: 10px;
    }

    .emz-catalog-search__inner {
        padding: 11px;
    }

    .emz-catalog-search__kicker {
        font-size: 8px;
    }

    .emz-catalog-search__form button {
        min-width: 47px;
        padding: 0 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .emz-catalog-search__form,
    .emz-catalog-search__form button {
        transition: none;
    }
}
