:root {
    --mc-card-accent: #ffdd05;
}

.search-card-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(96px, auto);
    gap: .8rem;
    align-items: stretch;
}

.search-card-title-wrap {
    min-width: 0;
    padding-right: .25rem;
    position: relative;
}

.search-card-title-row {
    position: relative;
    min-width: 0;
}

.search-card-title-marker {
    width: 4px;
    height: 1.15rem;
    position: absolute;
    top: .07rem;
    left: -.65rem;
    border-radius: 999px;
    background: var(--mc-card-accent);
    pointer-events: none;
}

.search-card-title {
    display: -webkit-box;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.18;
    color: #172033;
    letter-spacing: -.015em;
    min-height: calc(2 * 1.18em);
    max-height: calc(2 * 1.18em);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card-subtitle {
    display: -webkit-box;
    margin-top: .5rem;
    color: #222;
    font-size: .76rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card-price {
    min-width: 108px;
    padding-left: .8rem;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

.search-card-price-old {
    color: #9ca3af;
    font-size: .78rem;
    text-decoration: line-through;
    min-height: 1rem;
    margin-bottom: .16rem;
}

.search-card-price-current {
    color: #111827;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.search-card-divider {
    height: 1px;
    background: #eceff3;
}

.search-card-facts {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    font-size: .74rem;
    line-height: 1.35;
    min-height: calc((3 * 1.35em) + (.15rem * 2));
    max-height: calc((3 * 1.35em) + (.15rem * 2));
    overflow: hidden;
}

.search-card-fact {
    display: flex;
    align-items: flex-start;
    gap: .67rem;
    color: #374151;
}

.search-card-fact span {
    min-width: 0;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card-fact i {
    width: 16px;
    margin-top: .12rem;
    color: #6b7280;
    flex: 0 0 auto;
    text-align: center;
}

.search-card-equipment {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-content: flex-start;
    min-height: calc((18px * 2) + (.55rem * 2));
    max-height: calc((18px * 2) + (.55rem * 2));
    overflow: hidden;
}

.search-card-equipment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: .08rem .46rem;
    border-radius: 999px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    font-size: .7rem;
    font-weight: 400;
    line-height: 1.1;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.search-card-equipment-badge:hover {
    background: rgba(255, 221, 5, 0.22);
    border-color: rgba(255, 221, 5, 0.55);
    color: #3a3200;
}

.search-card-equipment-badge.is-more {
    background: #eef2f7;
    color: #475569;
}

.search-card-footer {
    border-top: 1px solid #edf0f3;
    min-height: 52px;
}

.search-card-seller {
    display: flex;
    flex-direction: column;
    gap: .14rem;
    min-width: 0;
}

.search-card-seller strong {
    color: #172033;
    font-size: .74rem;
    line-height: 1.15;
}

.search-card-seller span {
    color: #6b7280;
    font-size: .72rem;
    line-height: 1.25;
}

.search-card-badges {
    position: absolute;
    top: .85rem;
    left: .85rem;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .45rem;
    max-width: calc(100% - 1.7rem);
}

.search-card-badges .premium-tooltip {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    box-shadow: none;
}

.search-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: #dff7dc;
    color: #1f7a31;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
}

.search-card-head .search-status-badge {
    align-self: flex-end;
}

.search-pagination {
    margin-top: 1rem;
}

.search-pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.search-pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-pagination-link,
.search-pagination-ellipsis {
    min-width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-pagination-link {
    padding: 0 1rem;
    border: 1px solid #e7e7e7;
    background: #fff;
    color: #111;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.search-pagination-link:hover {
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.search-pagination-link.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.search-pagination-link.is-disabled {
    pointer-events: none;
    opacity: 0.45;
    box-shadow: none;
}

.search-pagination-link.is-nav {
    min-width: 110px;
    gap: 0.55rem;
}

.search-pagination-ellipsis {
    color: #666;
}

@media (max-width: 575.98px) {
    .search-card-head {
        grid-template-columns: minmax(0, 1.6fr) minmax(84px, auto);
        gap: .65rem;
    }

    .search-card-title {
        font-size: .98rem;
    }

    .search-card-price {
        min-width: 92px;
        padding-left: .65rem;
    }

    .search-card-price-current {
        font-size: .95rem;
    }

    .search-card-fact,
    .search-card-facts {
        font-size: .72rem;
    }

    .search-pagination-list {
        gap: 0.5rem;
    }

    .search-pagination-link,
    .search-pagination-ellipsis {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .search-pagination-link.is-nav {
        min-width: 92px;
        padding: 0 0.85rem;
    }
}
