/* ════════════════════════════════════════════════
   Hyped AI Search — Searchanise-style Design
   ════════════════════════════════════════════════ */

/* ── Ocultar título del tema ── */
.c-header-search__tip {
    display: none !important;
}

/* ── OCULTAR COMPLETAMENTE el modal de búsqueda del tema Moderno ── */
@media (max-width: 1024px) {
    .c-header-search.c-header-search--active .c-header-search__content,
    .c-header-search.c-header-search--active .c-header-search__form,
    .c-header-search.c-header-search--active .c-header-search__input-block,
    .c-header-search.c-header-search--active .c-header-search__tip,
    .c-header-search.c-header-search--active .c-header-search__overlay,
    .c-header-search__tip,
    .c-header-search__overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Desactivar el contenedor del modal del tema */
    .c-header-search--active {
        background: transparent !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

/* ── Ocultar buscador de Elementor y Searchanise ── */
.elementor-search-form,
.elementor-widget-search-form,
.elementor-lightbox,
.elementor-popup-modal,
.snize-ac-results,
[class*="elementor-search"],
dialog[open],
.dialog-backdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Desabilitar otros inputs de búsqueda ── */
.snize-input-style,
.elementor-search__input {
    display: none !important;
}

/* ════════════════════════════════════════════════
   VARIABLES
   ════════════════════════════════════════════════ */
:root {
    --hdf-font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hdf-black: #111;
    --hdf-gray:  #666;
    --hdf-light: #f5f5f5;
    --hdf-border: #e8e8e8;
    --hdf-accent: #111;
    --hdf-sale: #e00;
    --hdf-radius: 12px;
    --hdf-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
    --hdf-anim: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ════════════════════════════════════════════════
   PANEL CONTAINER (Desktop dropdown)
   ════════════════════════════════════════════════ */
@media (min-width: 1025px) {
    .hyped-ai-search-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        width: 580px;
        max-width: 96vw;
        background: #fff;
        border-radius: var(--hdf-radius);
        box-shadow: var(--hdf-shadow);
        z-index: 999999 !important;
        overflow: hidden;
        font-family: var(--hdf-font);
        animation: hdf-fadeIn var(--hdf-anim) forwards;
        height: auto;
        bottom: auto;
    }

    .hyped-ai-search-dropdown.is-open {
        display: block;
    }
}

@keyframes hdf-fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.c-header-search__input-block,
.c-header-search__form {
    position: relative;
}

/* ════════════════════════════════════════════════
   HEADER DEL PANEL (sección superior)
   ════════════════════════════════════════════════ */
.hdf-panel-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--hdf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hdf-panel-header__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hdf-gray);
}

.hdf-panel-header__count {
    font-size: 11px;
    color: var(--hdf-gray);
}

/* ════════════════════════════════════════════════
   LISTA DE RESULTADOS
   ════════════════════════════════════════════════ */
.hyped-search-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 420px;
    overflow-y: auto;
}

.hyped-search-list::-webkit-scrollbar {
    width: 4px;
}
.hyped-search-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* ── Item ── */
.hyped-search-item {
    margin: 0;
    padding: 0;
}

.hyped-search-item__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    text-decoration: none !important;
    color: inherit;
    transition: background var(--hdf-anim);
}

.hyped-search-item__link:hover,
.hyped-search-item.is-active .hyped-search-item__link {
    background: var(--hdf-light);
    text-decoration: none !important;
    color: inherit;
}

/* ── Imagen ── */
.hyped-search-item__img-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.hyped-search-item__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px;
}

/* ── Info ── */
.hyped-search-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hyped-search-item__title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--hdf-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.hyped-search-item__title mark {
    background: transparent;
    color: var(--hdf-black);
    font-weight: 700;
}

.hyped-search-item__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hyped-search-item__price-sale {
    font-size: 13px;
    font-weight: 700;
    color: var(--hdf-sale);
}

.hyped-search-item__price-regular {
    font-size: 12px;
    color: var(--hdf-gray);
    text-decoration: line-through;
}

.hyped-search-item__price-normal {
    font-size: 13px;
    font-weight: 600;
    color: var(--hdf-black);
}

.hyped-search-item__sale-tag {
    display: inline-block;
    background: var(--hdf-sale);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-top: 2px;
    width: fit-content;
    align-self: flex-start;
}

.hyped-search-item__oos {
    font-size: 11px;
    color: var(--hdf-gray);
    font-style: italic;
}

/* ── Flecha ── */
.hyped-search-item__arrow {
    flex-shrink: 0;
    color: #ccc;
    font-size: 16px;
    transition: color var(--hdf-anim), transform var(--hdf-anim);
}

.hyped-search-item__link:hover .hyped-search-item__arrow {
    color: var(--hdf-black);
    transform: translateX(3px);
}

/* ════════════════════════════════════════════════
   FOOTER — Ver todos
   ════════════════════════════════════════════════ */
.hyped-search-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--hdf-border);
    background: #fafafa;
}

.hyped-search-footer__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hdf-black);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background var(--hdf-anim);
    letter-spacing: 0.2px;
}

.hyped-search-footer__link:hover {
    background: #333;
    color: #fff !important;
    text-decoration: none !important;
}

/* ════════════════════════════════════════════════
   LOAD MORE SPINNER (infinite scroll)
   ════════════════════════════════════════════════ */
.hyped-search-load-more-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    border-top: 1px solid var(--hdf-border);
}

/* ════════════════════════════════════════════════
   LOADING
   ════════════════════════════════════════════════ */
.hyped-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    color: var(--hdf-gray);
    font-size: 13px;
    font-family: var(--hdf-font);
}

.hyped-search-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--hdf-black);
    border-radius: 50%;
    animation: hdf-spin 0.65s linear infinite;
}

@keyframes hdf-spin {
    to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════
   SUGGESTIONS SECTION (Searchanise style)
   ════════════════════════════════════════════════ */
.hyped-search-suggestions-section {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hyped-search-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--hdf-black);
    padding: 16px 16px 10px;
    border-bottom: 1px solid var(--hdf-border);
    background: #fff;
}

.hyped-search-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hyped-search-suggestion {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--hdf-black);
    transition: background var(--hdf-anim);
    border-bottom: none;
}

.hyped-search-suggestion:hover {
    background: var(--hdf-light);
}

.hyped-search-suggestion-icon {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--hdf-gray);
}

/* ════════════════════════════════════════════════
   SIN RESULTADOS
   ════════════════════════════════════════════════ */
.hyped-search-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--hdf-gray);
    font-size: 14px;
    font-family: var(--hdf-font);
}

.hyped-search-empty strong {
    color: var(--hdf-black);
}

/* ════════════════════════════════════════════════
   MOBILE — Full-screen panel estilo Doofinder
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* NO overlay en mobile (el dropdown ocupa toda la pantalla) */
    body.hyped-search-open::before {
        display: none !important;
    }

    @keyframes hdf-fadeOverlay {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* Mobile full-screen panel (appended to body, position:fixed works correctly) */
    .hyped-ai-search-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100% !important;
        transform: none !important;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        display: none;
        flex-direction: column;
        animation: hdf-slideDown 0.25s cubic-bezier(0.4,0,0.2,1) forwards;
        z-index: 999999 !important;
        background: #fff;
    }

    .hyped-ai-search-dropdown.is-open {
        display: flex !important;
    }

    @keyframes hdf-slideDown {
        from { transform: translateY(-100%); opacity: 0; }
        to   { transform: translateY(0);     opacity: 1; }
    }

    /* ── Header fijo en móvil (Searchanise style) ── */
    .hdf-mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        height: auto;
        min-height: 90px;
        border-bottom: 1px solid var(--hdf-border);
        background: #fff;
        flex-shrink: 0;
    }

    .hdf-mobile-back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: none;
        border: 1px solid var(--hdf-border);
        cursor: pointer;
        border-radius: 6px;
        color: var(--hdf-black);
        font-size: 22px;
        transition: background var(--hdf-anim);
        flex-shrink: 0;
    }

    .hdf-mobile-back:active {
        background: var(--hdf-light);
    }

    .hdf-mobile-input-wrapper {
        flex: 1;
        position: relative;
    }

    .hdf-mobile-input {
        width: 100%;
        border: 1px solid #999;
        padding: 16px 18px;
        font-size: 20px;
        border-radius: 10px;
        background: #fff;
        color: var(--hdf-black);
        font-family: var(--hdf-font);
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative;
        z-index: 10;
        height: 64px;
    }

    .hdf-mobile-input:focus {
        outline: 2px solid var(--hdf-black);
        outline-offset: 0;
    }

    .hdf-mobile-input::placeholder {
        color: #999;
    }

    .hdf-mobile-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--hdf-black);
        font-size: 18px;
        padding: 0;
        flex-shrink: 0;
        transition: opacity var(--hdf-anim);
    }

    .hdf-mobile-close:hover {
        opacity: 0.7;
    }

    .hdf-mobile-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: none;
        border: 1px solid var(--hdf-border);
        cursor: pointer;
        border-radius: 6px;
        color: var(--hdf-black);
        font-size: 18px;
        transition: background var(--hdf-anim);
        flex-shrink: 0;
    }

    .hdf-mobile-close:active {
        background: var(--hdf-light);
    }

    .hdf-mobile-query {
        flex: 1;
        font-size: 15px;
        font-weight: 500;
        color: var(--hdf-black);
        font-family: var(--hdf-font);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hdf-mobile-count {
        font-size: 12px;
        color: var(--hdf-gray);
        white-space: nowrap;
    }

    /* ── Content area (scrollable) ── */
    .hdf-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ── Lista scrollable ── */
    .hyped-search-list {
        overflow-y: auto;
        max-height: none;
        padding: 4px 0;
        -webkit-overflow-scrolling: touch;
    }

    .hyped-search-item__link {
        padding: 12px 16px;
        gap: 14px;
    }

    .hyped-search-item__img-wrap {
        width: 90px;
        height: 90px;
        border-radius: 10px;
    }

    .hyped-search-item__title {
        font-size: 14.5px;
        white-space: normal;
        overflow: visible;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hyped-search-item__price-row {
        margin-top: 2px;
    }

    .hyped-search-item__price-sale,
    .hyped-search-item__price-normal {
        font-size: 14px;
    }

    /* ── Footer sticky at bottom ── */
    .hyped-search-footer {
        position: sticky;
        bottom: 0;
        flex-shrink: 0;
        padding: 12px 16px;
        background: #fff;
        border-top: 1px solid var(--hdf-border);
        z-index: 5;
    }

    .hyped-search-footer__link {
        font-size: 14px;
        padding: 14px;
        border-radius: 10px;
    }

    /* ── Loading / empty en móvil ── */
    .hyped-search-loading,
    .hyped-search-empty {
        flex: 1;
        padding: 60px 20px;
        font-size: 15px;
    }

    /* ── Ocultar panel header del panel desktop ── */
    .hdf-panel-header {
        display: none;
    }
}

/* ════════════════════════════════════════════════
   POPULAR SEARCHES — "Lo más buscado"
   ════════════════════════════════════════════════ */
.hdf-popular {
    padding: 20px 16px;
}

.hdf-popular__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hdf-gray);
    margin: 0 0 14px;
    font-family: var(--hdf-font);
}

.hdf-popular__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hdf-popular__item {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    color: var(--hdf-black);
    font-family: var(--hdf-font);
    background: var(--hdf-light);
    border-radius: 20px;
    transition: background var(--hdf-anim), color var(--hdf-anim);
    border: 1px solid var(--hdf-border);
}

.hdf-popular__item:hover,
.hdf-popular__item:active {
    background: var(--hdf-black);
    color: #fff;
    border-color: var(--hdf-black);
}

.hdf-popular__text {
    font-weight: 500;
}

/* ════════════════════════════════════════════════
   AUTOCOMPLETE — predictive suggestions
   ════════════════════════════════════════════════ */
.hdf-autocomplete {
    padding: 8px 0;
}

.hdf-ac__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    color: var(--hdf-black);
    font-family: var(--hdf-font);
    transition: background var(--hdf-anim);
}

.hdf-ac__item:hover,
.hdf-ac__item:active {
    background: var(--hdf-light);
}

.hdf-ac__icon {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--hdf-gray);
    width: 20px;
    text-align: center;
}

.hdf-ac__text {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════
   TRENDING — "🔥 Trending" section
   ════════════════════════════════════════════════ */
.hdf-trending {
    padding: 16px;
    border-top: 1px solid var(--hdf-border);
}

.hdf-trending__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hdf-gray);
    margin: 0 0 12px;
    font-family: var(--hdf-font);
}

.hdf-trending__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hdf-pcard--trending {
    position: relative;
}

.hdf-trending__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 14px;
    z-index: 2;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .hdf-trending__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* ════════════════════════════════════════════════
   PERSONALIZED — "Para ti" product cards
   ════════════════════════════════════════════════ */
.hdf-personalized {
    padding: 16px;
    border-top: 1px solid var(--hdf-border);
}

.hdf-personalized__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hdf-gray);
    margin: 0 0 12px;
    font-family: var(--hdf-font);
}

.hdf-personalized__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hdf-pcard {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--hdf-anim), box-shadow var(--hdf-anim);
}

.hdf-pcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hdf-pcard__img-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: var(--hdf-light);
    border-radius: 8px;
    overflow: hidden;
}

.hdf-pcard__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.hdf-pcard__info {
    padding: 6px 2px;
}

.hdf-pcard__title {
    font-size: 11px;
    font-weight: 500;
    color: var(--hdf-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    font-family: var(--hdf-font);
}

.hdf-pcard__prices {
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.hdf-pcard__price {
    font-size: 12px;
    font-weight: 600;
    color: var(--hdf-black);
    font-family: var(--hdf-font);
}

.hdf-pcard__price-sale {
    font-size: 12px;
    font-weight: 700;
    color: var(--hdf-sale);
    font-family: var(--hdf-font);
}

.hdf-pcard__price-old {
    font-size: 10px;
    color: var(--hdf-gray);
    text-decoration: line-through;
    font-family: var(--hdf-font);
}

@media (max-width: 1024px) {
    .hdf-personalized__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hdf-pcard__title {
        font-size: 11px;
    }
}

/* ════════════════════════════════════════════════
   SIZE FILTER BADGE
   ════════════════════════════════════════════════ */
/* ── Spell correction banner ── */
.hyped-search-spell {
    margin: 10px 16px 4px;
    padding: 10px 14px;
    background: #f0f4ff;
    border: 1px solid #d0d8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--hdf-font);
    color: #333;
    line-height: 1.4;
}

.hyped-search-spell__corrected {
    color: var(--hdf-black, #111);
}

.hyped-search-spell__original {
    color: #666;
    font-size: 12px;
}

.hyped-search-spell__original .js-spell-original {
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
}

.hyped-search-spell__original .js-spell-original:hover {
    color: #1d4ed8;
}

.hyped-search-size-badge,
.hyped-search-sort-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 16px 4px;
    padding: 8px 14px;
    background: var(--hdf-black);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--hdf-font);
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* ── Trending Searches ── */
.hdf-trending-searches {
    padding: 16px 16px 8px;
}
.hdf-trending-searches__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--hdf-muted);
    margin-bottom: 8px;
    font-family: var(--hdf-font);
}
.hdf-trending-searches__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hdf-trending-searches__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--hdf-font);
}
.hdf-trending-searches__item:hover {
    background: #f5f5f5;
}
.hdf-ts__rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hdf-black);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.hdf-ts__text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--hdf-black);
}
.hdf-ts__badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.hdf-ts__badge--up {
    background: #dcfce7;
    color: #166534;
}

/* ── Predictive Suggestions (chips above results) ── */
.hdf-predictive {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
}
.hdf-predictive__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--hdf-font);
}
.hdf-predictive__chip:hover {
    background: var(--hdf-black);
    color: #fff;
    border-color: var(--hdf-black);
}

/* ── No Results / Alternatives ── */
.hyped-search-empty {
    text-align: center;
    padding: 32px 16px 16px;
}
.hdf-noresults__icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.hdf-noresults__text {
    font-size: 15px;
    font-weight: 500;
    color: var(--hdf-black);
    margin-bottom: 6px;
    font-family: var(--hdf-font);
}
.hdf-noresults__hint {
    font-size: 13px;
    color: var(--hdf-muted);
    font-family: var(--hdf-font);
}

.hdf-alternatives {
    padding: 16px;
}
.hdf-alternatives__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--hdf-muted);
    margin-bottom: 10px;
    font-family: var(--hdf-font);
}
.hdf-alternatives__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hdf-alt__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid var(--hdf-black);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hdf-black);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--hdf-font);
}
.hdf-alt__chip:hover {
    background: var(--hdf-black);
    color: #fff;
}
.hdf-trending--alt {
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
    padding-top: 16px;
}

.hdf-alternatives-loading {
    text-align: center;
    padding: 16px;
}

/* ── Popular search count badge ── */
.hdf-popular__item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hdf-popular__icon {
    font-size: 12px;
    opacity: 0.4;
}
.hdf-popular__count {
    font-size: 11px;
    color: var(--hdf-muted);
    margin-left: auto;
}

/* ── Autocomplete icons ── */
.hdf-ac__item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hdf-ac__icon {
    font-size: 12px;
    opacity: 0.5;
}

@media (min-width: 1025px) {
    .hdf-mobile-header {
        display: none;
    }

    .hdf-personalized__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── v5.0.2: Professional icon overrides ── */
.hdf-popular__icon {
    display: none !important;
}
.hdf-popular__item::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3E%3C/svg%3E") no-repeat center/contain;
    flex-shrink: 0;
    opacity: 0.4;
}
.hdf-popular__item:hover::before {
    filter: brightness(10);
    opacity: 0.6;
}
.hdf-trending-searches__title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 18 9 11.25l4.306 4.306a11.95 11.95 0 0 1 5.814-5.518l2.74-1.22m0 0-5.94-2.281m5.94 2.28-2.28 5.941'/%3E%3C/svg%3E") no-repeat center/contain;
    margin-right: 6px;
    vertical-align: middle;
}
