/* Умный поиск — карточки товаров */
.search-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
    z-index: 9999;
    max-height: 520px;
    overflow-y: auto;
    padding: 12px;
}
.search-suggest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.search-suggest-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.search-suggest-card:hover,
.search-suggest-card.active {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.search-suggest-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.search-suggest-card-imgwrap {
    width: 100%;
    aspect-ratio: 1;
    background: #f9f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.search-suggest-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.search-suggest-card-img--empty {
    width: 100%;
    aspect-ratio: 1;
    background: #f4f2f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-suggest-card-info {
    padding: 8px 10px 4px;
}
.search-suggest-card-article {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}
.search-suggest-card-name {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-suggest-card-name mark {
    background: #ffeaa7;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}
.search-suggest-card-bottom {
    padding: 4px 10px 10px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.search-suggest-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #2c2c2c;
    white-space: nowrap;
}
.search-suggest-card-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #B48F5B;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.search-suggest-card-btn:hover {
    background: #9a7a4d;
}
.search-suggest-showall {
    display: block;
    text-align: center;
    padding: 12px;
    color: #B48F5B;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}
.search-suggest-showall:hover {
    background: #faf8f5;
    color: #9a7a4d;
}
.search-suggest-empty,
.search-suggest-loading {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
@media (max-width: 991px) {
    .search-suggest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .search-suggest-dropdown {
        max-height: 70vh;
        padding: 8px;
    }
    .search-suggest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}