/* временные стили  */
.catalog__aside {
    flex-direction: column;
    background-color:unset;
}
.catalog__sort {
    background-color:unset;
}
.product-card__head .cas_link {
    font-weight: bold;
}

.product-card__name-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.product-card__name-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.product-model__article-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.product-model__article-wrap .product-model__article {
    display: inline;
}

/* Порядок иконок в блоке действий оффера */
.product-card .product-model__box-4 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Десктоп: Корзина → Избранное → Сравнить */
@media (min-width: 1280px) {
    .product-card .product-model__box-4 {
        flex-direction: row !important; /* перебиваем row-reverse из шаблонных стилей */
    }

    .product-card .product-model__box-4 .product-model__basket {
        order: 1;
    }
    .product-card .product-model__box-4 button[onclick="setFavorite(this)"] {
        order: 2;
    }
    .product-card .product-model__box-4 .js_button_compare {
        order: 3;
    }
}

/* Мобильная/планшет: Сравнить → Избранное → Корзина */
@media (max-width: 1279px) {
    .product-card .product-model__box-4 {
        flex-direction: row !important;
    }

    .product-card .product-model__box-4 .js_button_compare {
        order: 1;
    }
    .product-card .product-model__box-4 button[onclick="setFavorite(this)"] {
        order: 2;
    }
    .product-card .product-model__box-4 .product-model__basket {
        order: 3;
    }
}

/* Кнопки копирования (галочка поверх иконки) */
.detail-copy-btn {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
    vertical-align: top;
}

.detail-copy-btn__icon {
    position: relative;
    display: block;
    line-height: 0;
}

.detail-copy-btn__icon img {
    display: block;
}

.detail-copy-btn__check {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
}

.detail-copy-btn__check::after {
    content: '';
    display: block;
    width: 11px;
    height: 6px;
    margin-top: -2px;
    border-left: 2px solid #22a447;
    border-bottom: 2px solid #22a447;
    transform: rotate(-45deg);
}

.detail-copy-btn--copied .detail-copy-btn__check {
    display: flex;
}

/* Кнопка Поделиться (Яндекс) — только иконка */
.product-card__name-actions .product-card__ya-share {
    display: inline-block;
    width: 24px;
    height: 20px;
    padding: 0 !important;
    margin: 0;
    border: none;
    background: transparent !important;
    line-height: 0;
    flex-shrink: 0;
    vertical-align: top;
    overflow: visible;
}

.product-card__name-actions .product-card__ya-share .ya-share2__container,
.product-card__name-actions .product-card__ya-share .ya-share2__list,
.product-card__name-actions .product-card__ya-share .ya-share2__item_more {
    margin: 0;
    padding: 0;
}

.product-card__name-actions .product-card__ya-share .ya-share2__list.ya-share2__list_direction_horizontal > .ya-share2__item {
    margin-top: 0;
}

.product-card__name-actions .product-card__ya-share .ya-share2__item_more.ya-share2__item_has-pretty-view .ya-share2__link_more,
.product-card__name-actions .product-card__ya-share .ya-share2__link_more.ya-share2__link_more-button-type_short,
.product-card__name-actions .product-card__ya-share .ya-share2__link_more.ya-share2__link_more-button-type_long {
    display: block;
    box-sizing: border-box;
    width: 24px !important;
    height: 20px !important;
    min-width: 24px;
    min-height: 20px;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none;
    background-color: transparent !important;
    background-image: url(/local/templates/diam/img/share2.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 24px 20px !important;
    transition: opacity 0.15s ease;
}

.product-card__name-actions .product-card__ya-share .ya-share2__link_more:hover,
.product-card__name-actions .product-card__ya-share .ya-share2__link_more:focus,
.product-card__name-actions .product-card__ya-share .ya-share2__link_more:active {
    opacity: 0.7;
    outline: none;
}

.product-card__name-actions .product-card__ya-share .ya-share2__link_more .ya-share2__badge,
.product-card__name-actions .product-card__ya-share .ya-share2__link_more .ya-share2__badge_more,
.product-card__name-actions .product-card__ya-share .ya-share2__link_more .ya-share2__icon,
.product-card__name-actions .product-card__ya-share .ya-share2__link_more .ya-share2__icon_more,
.product-card__name-actions .product-card__ya-share .ya-share2__link_more .ya-share2__title {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    background: none !important;
    background-image: none !important;
}

/**
    Стиль для корректного вывода таблиц в списках
 */
.product-card__collapse .product-card__text:has(table) {
    overflow-x: auto;
}
/* временные стили */

