/* seq_search - barre de recherche + dropdown autocomplete */

.seq-search-widget {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.seq-search-widget form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

.seq-search-input {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 18px;
}

/* Bouton de recherche : fond vert du site, loupe blanche */
.seq-search-widget button[type="submit"] {
    background-color: #004338;
    border: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    align-self: stretch;
    cursor: pointer;
}

.seq-search-widget button[type="submit"] .material-icons {
    color: #fff;
}

.seq-search-widget button[type="submit"]:hover,
.seq-search-widget button[type="submit"]:focus {
    background-color: #005c4d;
}

.seq-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    max-height: 70vh;
    overflow-y: auto;
}

.seq-search-corrected {
    padding: 8px 12px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.seq-search-empty {
    padding: 16px 12px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.seq-search-group {
    padding: 4px 0;
}

.seq-search-group + .seq-search-group {
    border-top: 1px solid #f0f0f0;
}

.seq-search-group-title {
    display: block;
    padding: 6px 12px 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #999;
}

.seq-search-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.seq-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.seq-search-item:hover,
.seq-search-item.active {
    background: #f5f5f5;
}

.seq-search-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 40px;
    background: #fafafa;
    border-radius: 3px;
}

.seq-search-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.seq-search-name {
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seq-search-category-label {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seq-search-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.seq-search-price {
    font-size: 13px;
    font-weight: 700;
}

.seq-search-avail {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
}

.seq-search-avail.in-stock {
    color: #2e7d32;
    background: #e8f5e9;
}

.seq-search-avail.out-stock {
    color: #b71c1c;
    background: #ffebee;
}

.seq-search-category .material-icons {
    font-size: 20px;
    color: #999;
}

.seq-search-all {
    display: block;
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.seq-search-all:hover,
.seq-search-all.active {
    background: #f5f5f5;
}

@media (max-width: 575px) {
    .seq-search-results {
        max-height: 60vh;
    }

    .seq-search-thumb {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}
