.site-search-form {
    position: relative;
    min-width: 0;
}

.search-page {
    padding-top: 28px;
    padding-bottom: 60px;
    overflow: visible;
}

.search-page .section-title {
    margin-bottom: 24px;
}

.search-page > .mid > .site-search-form {
    max-width: 660px;
    margin-bottom: 24px;
}

.search-page .shop-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.search-summary {
    margin: 0 0 24px;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.search-empty {
    margin: 24px 0;
    color: var(--text-secondary);
}

.search-sections {
    margin-bottom: 28px;
}

.search-sections h2 {
    margin-bottom: 14px;
    font-size: 18px;
    color: var(--text);
}

.search-sections ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
    padding: 0;
}

.search-sections a {
    color: var(--accent);
}

.mobile-menu-panel > .site-search-form {
    margin-bottom: 20px;
}

.search-suggestions {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(480px, 65vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--separator);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--card-shadow) 0 8px 24px;
    text-align: left;
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion,
.search-suggestion-section,
.search-suggestion-all {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.search-suggestion:hover,
.search-suggestion-section:hover,
.search-suggestions [aria-selected="true"] {
    background: var(--surface-soft);
    color: var(--text);
}

.search-suggestion img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.search-suggestion-text {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.search-suggestion-title {
    overflow-wrap: anywhere;
}

.search-suggestion-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.search-suggestion-section {
    font-size: 13px;
    color: var(--accent);
}

.search-suggestion-all {
    justify-content: center;
    color: var(--accent);
    border-top: 1px solid var(--separator);
    font-weight: 500;
}

.search-suggestion-empty {
    padding: 16px 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 1000px) {
    .search-page .shop-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .search-page .shop-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .search-page .shop-products {
        grid-template-columns: minmax(0, 1fr);
    }
}
