/* Container da busca */
.search, .search-container {
    position: relative !important;
    z-index: 1000;
}

/* A Lista Suspensa (Dropdown) */
#hero-results, .hero-dropdown-menu {
    display: none; /* Começa oculto */
    position: absolute;
    top: 100%; /* Cola embaixo do input */
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 999999 !important; /* Força bruta para aparecer na frente */
    max-height: 400px;
    overflow-y: auto;
}

/* Scrollbar personalizada */
#hero-results::-webkit-scrollbar { width: 6px; }
#hero-results::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }

/* Item da Lista */
.hero-dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.hero-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    background-color: #fff;
}

.hero-search-item:hover {
    background-color: #fcefff;
}

/* --- LADO ESQUERDO (Foto + Texto) --- */
.item-left {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 15px;
    overflow: hidden; /* Garante que texto não vaze */
}

.item-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-right: 12px;
    flex-shrink: 0; /* Foto não encolhe */
}

/* AQUI ESTAVA O ERRO DE DIGITAÇÃO NA IMAGEM, AGORA ESTÁ CORRIGIDO */
.item-title {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
    /* Solução limpa sem erro amarelo no VS Code: */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

/* --- LADO DIREITO (Preços) --- */
.item-right {
    text-align: right;
    min-width: 110px;
}

.price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.current-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.old-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.promo-price, .std-price {
    color: #800080;
    font-weight: 700;
    font-size: 15px;
}

.pix-tag {
    font-size: 11px;
    color: #27ae60;
    font-weight: 600;
}