/* ════════════════════════════════
   Overlay de recherche — descend du haut.
   Style flat minimal aligné sur le ton éditorial du site
   (typographies DM Sans / Cormorant, lignes fines, fond blanc).
═══════════════════════════════ */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200; /* > navbar (1100) */
    background: rgba(20, 25, 40, .35);
    display: none;
    opacity: 0;
    transition: opacity .18s ease-out;
}
.search-overlay.open {
    display: block;
    opacity: 1;
}

.search-overlay-panel {
    background: #fff;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(20, 25, 40, .12);
    transform: translateY(-100%);
    transition: transform .26s cubic-bezier(.22,.68,0,1.05);
}
.search-overlay.open .search-overlay-panel {
    transform: translateY(0);
}

/* ── Barre input + close ── */
.search-overlay-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 44px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.search-overlay-icon {
    width: 20px;
    height: 20px;
    color: #6a7282;
    flex-shrink: 0;
}
.search-overlay-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #000;
    padding: 4px 0;
}
.search-overlay-input::placeholder {
    color: #b0b4c2;
    font-style: italic;
}
.search-overlay-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #000;
    transition: border-color .15s, background .15s;
    flex-shrink: 0;
}
.search-overlay-close:hover { border-color: #000; background: rgba(0,0,0,.04); }
.search-overlay-close svg { width: 14px; height: 14px; }

/* ── Contenu (résultats) ── */
.search-overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 44px 32px;
    font-family: 'DM Sans', sans-serif;
}

.search-hint,
.search-empty {
    font-size: .82rem;
    color: #6a7282;
    text-align: center;
    margin: 18px 0;
    line-height: 1.6;
}
.search-empty strong { color: #000; font-weight: 500; }

/* ── Sections (Produits / Collections / Référence directe) ── */
.search-section { margin-bottom: 22px; }
.search-section:last-child { margin-bottom: 0; }
.search-section-label {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-size: .68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6a7282;
    margin: 0 0 10px 4px;
}
.search-section--sku .search-section-label { color: #000; }

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.search-results-list li + li { border-top: 1px solid rgba(0, 0, 0, .05); }

/* ── Une ligne de résultat ── */
.search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 4px;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    border-radius: 4px;
}
.search-result:hover { background: rgba(0, 0, 0, .03); }

.search-result-thumb {
    width: 56px;
    height: 56px;
    background: #f5f5f5;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.search-result-thumb svg {
    width: 22px;
    height: 22px;
    color: #b0b4c2;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.search-result-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-meta {
    font-size: .72rem;
    color: #6a7282;
    letter-spacing: .02em;
}
.search-result-price {
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    color: #000;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ── Variantes ── */
.search-result--sku {
    padding: 12px 14px;
    background: rgba(124, 158, 255, .06);
    border: 1px solid rgba(124, 158, 255, .2);
}
.search-result--sku:hover { background: rgba(124, 158, 255, .1); }
.search-result--sku .search-result-title { font-size: 1rem; }

.search-results-list--simple li + li { border-top: 1px solid rgba(0, 0, 0, .05); }
.search-result--collection { padding: 12px 4px; }
.search-result--collection .search-result-title { font-size: 1.1rem; }
.search-result-arrow { width: 14px; height: 14px; color: #b0b4c2; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 700px) {
    .search-overlay-bar { padding: 16px 20px; }
    .search-overlay-content { padding: 14px 20px 24px; }
    .search-overlay-input { font-size: 1.25rem; }
    .search-result-thumb { width: 48px; height: 48px; }
    .search-result-title { font-size: .98rem; }
    .search-result-price { font-size: .85rem; }
}
