/* ===== Buscador en el header ===== */

.dega-header-search-form {
    position: relative;
    max-width: 260px;      /* Ajustá según el espacio en el header */
    width: 100%;
}

.dega-search-inner {
    width: 100%;
}

.dega-header-search-input {
    width: 100%;
    padding: 8px 34px 8px 12px;  /* espacio para la lupa a la derecha */
    border-radius: 999px;
    border: 1px solid #ccc;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    background-color: #fff;
}

/* Lupa dibujada con CSS (no es un botón real) */
.dega-header-search-form::after {
    content: "\1F50D";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    opacity: 0.6;
}

/* ===== Autocompletado ===== */

.dega-search-wrapper {
    position: relative;
    width: 100%;
}

/* Caja de resultados */
.dega-autocomplete-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 500px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 9999;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Cada resultado */
.dega-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dega-suggestion:last-child {
    border-bottom: none;
}

.dega-suggestion:hover {
    background: #f7f7f7;
}

/* Imagen */
.dega-suggestion-thumb img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

/* Texto */
.dega-suggestion-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dega-suggestion-title {
    display: block;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 3px;
    word-wrap: break-word;
}

.dega-suggestion-price {
    font-size: 13px;
    color: #444;
}

/* Mobile: más cómodo para dedo */
@media (max-width: 768px) {
    .dega-header-search-form {
        max-width: 100%;
    }

    .dega-suggestion {
        padding: 10px 12px;
        font-size: 15px;
    }

    .dega-suggestion-thumb img {
        width: 48px;
        height: 48px;
    }
}
