/* Hogarazo Oficial 7.3.0 — resultados enriquecidos en el buscador de Blocksy. */
.ct-search-form.hz-smart-search-enabled > .ct-search-results {
    display: none !important;
}

.hz-smart-search-results[hidden] {
    display: none !important;
}

.hz-smart-search-results {
    width: 100%;
    max-height: min(62vh, 570px);
    margin-top: 13px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dbe6df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(4, 56, 34, .16);
    scrollbar-width: thin;
}

.hz-smart-search-results__state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 92px;
    padding: 20px;
    color: #65736b;
    font-size: .88rem;
    font-weight: 750;
    text-align: center;
}

.hz-smart-search-results__spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #dce9e1;
    border-top-color: #0d7540;
    border-radius: 50%;
    animation: hz-smart-search-spin .7s linear infinite;
}

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

.hz-smart-search-item {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 86px;
    padding: 10px 13px;
    border-bottom: 1px solid #e8eee9;
    color: #17221c;
    text-decoration: none;
    transition: background .16s ease, transform .16s ease;
}

.hz-smart-search-item:hover,
.hz-smart-search-item:focus-visible,
.hz-smart-search-item.is-active {
    background: #f0f8f3;
    color: #17221c;
    outline: 0;
}

.hz-smart-search-item__image {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    overflow: hidden;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    background: #fff;
}

.hz-smart-search-item__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hz-smart-search-item__body {
    min-width: 0;
}

.hz-smart-search-item__title {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    color: #17221c;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.28;
    text-overflow: ellipsis;
}

.hz-smart-search-item__sku {
    display: block;
    margin-bottom: 6px;
    color: #78857e;
    font-size: .67rem;
    font-weight: 750;
}

.hz-smart-search-item__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 12px;
}

.hz-smart-search-item__price,
.hz-smart-search-item__cash {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: .75rem;
}

.hz-smart-search-item__price small,
.hz-smart-search-item__cash small {
    color: #7a8780;
    font-size: .62rem;
    font-weight: 750;
}

.hz-smart-search-item__price strong {
    color: #17221c;
    font-weight: 900;
}

.hz-smart-search-item__cash strong {
    color: #08733a;
    font-weight: 950;
}

.hz-smart-search-item__stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f6ed;
    color: #08733a;
    font-size: .65rem;
    font-weight: 900;
    white-space: nowrap;
}

.hz-smart-search-item__stock--low {
    background: #fff3d3;
    color: #805b00;
}

.hz-smart-search-item__stock--out {
    background: #f7e9e9;
    color: #a22a2a;
}

.hz-smart-search-results__more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    background: #f4f8f5;
    color: #0d7540;
    font-size: .8rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.hz-smart-search-results__more:hover,
.hz-smart-search-results__more:focus-visible {
    background: #e7f4eb;
    color: #074f2b;
    outline: 0;
}

@media (max-width: 560px) {
    .hz-smart-search-results {
        max-height: 64vh;
        margin-top: 10px;
        border-radius: 14px;
    }

    .hz-smart-search-item {
        grid-template-columns: 56px minmax(0, 1fr);
        min-height: 78px;
        gap: 10px;
        padding: 9px 10px;
    }

    .hz-smart-search-item__image {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }

    .hz-smart-search-item__stock {
        grid-column: 2;
        justify-self: start;
        min-height: 23px;
        margin-top: -3px;
        padding: 3px 8px;
    }

    .hz-smart-search-item__title {
        font-size: .82rem;
    }

    .hz-smart-search-item__prices {
        display: grid;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hz-smart-search-results__spinner {
        animation-duration: 1.5s;
    }
}
