/**
 * Recherche maison — formulaire + menu déroulant d'autocomplétion.
 * Remplace le style d'Advanced Woo Search. Palette alignée sur le thème.
 */

.idcom-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.idcom-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 8px 4px;
    font-size: 15px;
    color: #1e1e1e;
    font-family: inherit;
}

.idcom-search__input::placeholder {
    color: #9a9186;
    font-style: italic;
}

.idcom-search__submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    color: #ae9b88;
    line-height: 0;
    transition: color 0.15s ease;
}

.idcom-search__submit:hover,
.idcom-search__submit:focus-visible {
    color: #1e1e1e;
}

/* ---- Menu déroulant ---- */
.idcom-search__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e7e0d4;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(30, 25, 21, 0.14);
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
}

.idcom-search__list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.idcom-search__item {
    margin: 0;
    padding: 0;
}

.idcom-search__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e1e1e;
    transition: background-color 0.12s ease;
}

.idcom-search__link:hover,
.idcom-search__link:focus-visible {
    background: #f6f2ea;
}

.idcom-search__thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #f2ede4;
}

.idcom-search__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.idcom-search__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.idcom-search__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    color: #1e1e1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.idcom-search__artist {
    font-size: 12.5px;
    color: #827261;
}

.idcom-search__price {
    font-size: 13px;
    color: #1e1e1e;
    margin-top: 1px;
}

.idcom-search__price del {
    color: #9a9186;
    margin-right: 5px;
}

.idcom-search__viewall {
    display: block;
    text-align: center;
    padding: 12px;
    border-top: 1px solid #efe9df;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ae9b88;
    text-decoration: none;
    background: #fbf8f2;
}

.idcom-search__viewall:hover,
.idcom-search__viewall:focus-visible {
    color: #1e1e1e;
}

.idcom-search__message {
    padding: 16px;
    text-align: center;
    font-size: 13.5px;
    color: #827261;
}

/* Le thème applique `justify-content: center` à tous les <a> de l'en-tête
   (body header .corps .col-md-auto a) — ce qui centrait le contenu des lignes.
   On rétablit l'alignement à gauche + on laisse la colonne texte occuper la
   largeur restante, avec une spécificité suffisante pour gagner. */
.idcom-search .idcom-search__panel .idcom-search__link {
    justify-content: flex-start;
    width: 100%;
}

.idcom-search .idcom-search__panel .idcom-search__item {
    display: block;
}

.idcom-search .idcom-search__panel .idcom-search__meta {
    flex: 1 1 auto;
    align-items: flex-start;
    text-align: left;
}