.header__chosen {
    position: relative;
}

.header__chosen-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background-color: #D92D20;
    border-radius: 8px;
    line-height: 1;
}

/* Если счётчик внутри ссылки — альтернативный вариант */
.header__chosen-link {
    position: relative;
}

.header__chosen-link .header__chosen-count {
    position: absolute;
    top: -2px;
    right: -8px;
}

/* Активное сердечко */
.products__item-chosen--active svg path {
    fill: #D92D20;
}

.products__item-chosen:hover svg path {
    fill: #D92D20;
    opacity: 0.7;
}

.products__item-chosen--active:hover svg path {
    fill: #D92D20;
    opacity: 1;
}

/* Анимация при добавлении */
.products__item-chosen svg {
    transition: transform 0.2s ease;
}

.products__item-chosen:active svg {
    transform: scale(0.85);
}

.products__item-chosen--active svg {
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Кнопка избранного на странице товара (product__chosen) */
.product__chosen {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product__chosen:hover {
    border-color: #D92D20;
}

.product__chosen svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.product__chosen svg path {
    fill: none;
    stroke: #6B7280;
    stroke-width: 1;
    transition: all 0.2s ease;
}

.product__chosen:hover svg path {
    stroke: #D92D20;
}

.product__chosen.product__chosen--active svg path {
    fill: #D92D20;
    stroke: #D92D20;
}

.product__chosen:active svg {
    transform: scale(0.85);
}

.product__chosen.product__chosen--active svg {
    animation: heartPulse 0.3s ease;
}

/* Кнопка удаления на странице избранного */
.products__item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.products__item-delete:hover {
    background: #FEE2E2;
    border-color: #D92D20;
}

.products__item-delete svg {
    width: 12px;
    height: 12px;
}

/* Пустое состояние */
.results-empty {
    text-align: center;
    padding: 60px 20px;
}

.results-empty__title {
    font-size: 20px;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 12px;
}

.results-empty__desc {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
}

.results-empty.hide {
    display: none;
}

/* Кнопка "Поделиться списком" */
.chosen__share {
    margin-bottom: 24px;
    text-align: right;
}

.chosen__share .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chosen__share .icon-left {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.chosen__share .icon-upload {
    width: 16px;
    height: 16px;
}

/* ===== Счётчик сравнения в шапке (зеркально избранному) ===== */
.header__compare-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    background: #2c5461;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: 8px;
}
.header__compare-link .header__compare-count {
    position: absolute;
    top: -2px;
    right: -8px;
}
.header__compare-icon { position: relative; }
.header__chosen-icon { position: relative; }

/* ===== Кнопка «Подбор по авто» в шапке (светло-синяя) ===== */
.btn--car-select {
    color: #4a90d9;
    background-color: #fff;
    border: 1px solid #4a90d9;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn--car-select:hover {
    background-color: #f2f7fd;
    border-color: #3a7cc0;
    color: #3a7cc0;
}
/* Иконка машины сделана через mask-image — её цвет задаётся background-color */
.btn--car-select .icon-car {
    background-color: #4a90d9;
}
.btn--car-select:hover .icon-car {
    background-color: #3a7cc0;
}

/* ===== Производитель рядом с OEM-номером в карточке товара ===== */
.product__character-oem-mfr {
    color: #8e8e93;
    font-weight: 400;
}
