/* Formulario y resultados del buscador. El diseño de la tarjeta de producto
   (con su skeleton) y las primitivas de interacción (glow wrap, "pensando",
   chips, animaciones de entrada) viven en product-card.css — compartidas
   con el buscador de regalos y la vidriera del home. */

#abot-search-finder {
    max-width: 760px;
    margin: 24px auto 0;
    text-align: left;
}

#abot-search-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Campo principal con el botón adentro (como el buscador del hero) ── */
.abot-search-input-wrap {
    display: flex;
    align-items: center;
    border-radius: 999px;
}
.abot-search-input-wrap::before { border-radius: 999px; }
.abot-search-input-wrap .abot-glow-icon { padding: 0 0 0 20px; }
.abot-search-input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(52, 131, 250, .25), 0 4px 20px rgba(0, 0, 0, .08); }

#abot-search-form input[type="text"]#abot-search-query {
    flex: 1;
    min-width: 0;
    height: 60px;
    padding: 0 12px;
    border: none;
    font-size: 17px;
    font-family: inherit;
    color: #1a1a1a;
    background: transparent;
}
#abot-search-query::placeholder { color: #6b6b6b; }
#abot-search-form input[type="text"]:focus { outline: none; }

#abot-search-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    margin: 6px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: #2968c8;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    flex-shrink: 0;
}
#abot-search-submit:hover:not(:disabled) { background: #1f56a8; transform: translateY(-1px); }
#abot-search-submit:focus-visible { outline: 3px solid rgba(52, 131, 250, .5); outline-offset: 2px; }
#abot-search-submit:disabled { opacity: .75; cursor: progress; }

/* ── Filtros ──────────────────────────────────────────────────────────── */
#abot-search-form .abot-search-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

#abot-search-form select,
#abot-search-budget {
    height: 46px;
    border: 1px solid rgba(26, 26, 26, .14);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    transition: border-color .2s ease, box-shadow .2s ease;
}
#abot-search-form select { padding: 0 14px; max-width: 100%; }
#abot-search-form select:focus,
#abot-search-budget:focus {
    outline: none;
    border-color: #3483fa;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, .18);
}

.abot-search-money { position: relative; display: block; }
.abot-search-money-sign {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4d4d4d;
    pointer-events: none;
}
#abot-search-budget {
    width: 170px;
    padding: 0 14px 0 28px;
    font-variant-numeric: tabular-nums;
}
#abot-search-budget::placeholder { color: #6b6b6b; }

.abot-search-shipping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
}
.abot-search-shipping input { width: 20px; height: 20px; accent-color: #2968c8; }

@media (max-width: 600px) {
    #abot-search-submit span { display: none; }
    #abot-search-submit { width: 48px; padding: 0; justify-content: center; }
    #abot-search-form select { flex: 1 1 100%; }
    .abot-search-money { flex: 1; }
    #abot-search-budget { width: 100%; }
    .abot-search-suggestions {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -16px;
        padding: 0 16px 4px;
        scrollbar-width: none;
    }
    .abot-search-suggestions::-webkit-scrollbar { display: none; }
    .abot-search-suggestions > * { flex: 0 0 auto; white-space: nowrap; }
}

/* ── Resultados: sección propia, a ancho completo ─────────────────────── */
.abot-search-results-section {
    background: #fff;
    border-bottom: 1px solid #efefef;
    min-height: 420px; /* reserva lugar: evita el salto de layout al llegar */
}
.abot-search-results-section[hidden] { display: none; }
.abot-search-results-inner {
    max-width: var(--ef-max-width, 1180px);
    margin: 0 auto;
    padding: 40px 24px 48px;
}
.abot-search-results-head { margin-bottom: 24px; }
.abot-search-results-eyebrow {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2968c8;
}
.abot-search-results-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    overflow-wrap: anywhere;
}
.abot-search-count { margin: 0; font-size: 15px; color: #4d4d4d; }
.abot-search-results-head .abot-thinking { margin: 0; }

.abot-search-error,
.abot-search-empty {
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    background: #f7f7f8;
    color: #4d4d4d;
    font-size: 15px;
    text-align: center;
}
.abot-search-empty p { margin: 0; }
.abot-search-empty strong { color: #1a1a1a; }

/* ── Banner "entendí que buscás" ──────────────────────────────────────── */
.abot-search-interpreted {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: #3d3d3d;
    background: #f5f9ff;
    border: 1px solid #dde8fb;
    border-radius: 999px;
}
.abot-search-interpreted svg { color: #2968c8; flex-shrink: 0; }

/* ── Link "Ver más en Mercado Libre" ──────────────────────────────────── */
.abot-search-more {
    text-align: center;
    margin: 32px 0 0;
}
.abot-search-empty .abot-search-more { margin-top: 16px; }

.abot-search-more a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1.5px solid #3483fa;
    border-radius: 999px;
    background: #fff;
    color: #2968c8;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.abot-search-more a:hover,
.abot-search-more a:focus-visible {
    background: #2968c8;
    border-color: #2968c8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(52, 131, 250, 0.25);
}

@media (max-width: 600px) {
    .abot-search-results-inner { padding: 28px 16px 36px; }
    .abot-search-results-section .abot-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
