/* Live search suggestions (js/site-search.js) */
.header__search { position: relative; }

.ss-dropdown {
    --ss-accent: var(--color-brand-500, #E3441C);
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 420px;
    max-height: min(72vh, 640px);
    overflow-y: auto;
    z-index: 1000;
    padding: 8px 0;
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .16);
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
}
.ss-dropdown.is-loading { opacity: .7; }

.ss-dropdown--mobile {
    position: static;
    min-width: 0;
    max-height: none;
    margin-top: 8px;
    box-shadow: none;
}

.ss-section {
    padding: 10px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7280;
}
.ss-note {
    padding: 6px 16px 8px;
    font-size: 13px;
    color: #4b5563;
}
.ss-empty {
    padding: 14px 16px;
    color: #6b7280;
}

.ss-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: inherit;
    text-decoration: none;
}
.ss-item:hover,
.ss-item.is-active { background: #fff3ef; }
.ss-item:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: -2px; }

.ss-car { justify-content: space-between; font-weight: 600; }
.ss-car__count {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.ss-product__img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f3f4f6;
    overflow: hidden;
}
.ss-product__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-product__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}
.ss-product__meta { font-size: 12px; color: #6b7280; }
.ss-in-stock { color: #15803d; }
.ss-product__price { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }

.ss-all {
    justify-content: center;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    font-weight: 700;
    color: var(--ss-accent);
}

@media (max-width: 767px) {
    .ss-dropdown:not(.ss-dropdown--mobile) { min-width: 0; }
    .ss-product { flex-wrap: wrap; row-gap: 2px; }
    .ss-product__body { flex-basis: calc(100% - 60px); }
    .ss-product__title { -webkit-line-clamp: 3; }
    .ss-product__price { margin-left: 60px; font-size: 13px; }
}
