/* =========================================
   AutoStreet72 Popular Products v1.0
   Modern UI | uCoz MYINF_5
========================================= */

.as72-popular-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    position: relative;
    margin: 0 0 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(20, 49, 80, 0.04);
    transition: border-color .2s ease,
                box-shadow .2s ease,
                transform .2s ease;
}

/* Эффект при наведении */

@media (hover: hover) {
    .as72-popular-card:hover {
        border-color: #1765b4;
        box-shadow: 0 6px 18px rgba(23, 101, 180, 0.12);
        transform: translateY(-2px);
    }
}

/* Фотография товара */

.as72-popular-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 110px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.as72-popular-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

@media (hover: hover) {
    .as72-popular-card:hover .as72-popular-image img {
        transform: scale(1.05);
    }
}

/* Индикатор скидки */

.as72-popular-discount {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 1;
    padding: 4px 7px;
    background: #e66c12;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 5px;
}

/* Информация о товаре */

.as72-popular-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 6px;
}

/* Название */

.as72-popular-name {
    display: block;
    color: #173550;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.as72-popular-name:hover {
    color: #1765b4;
}

/* Блок цен */

.as72-popular-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Старая цена */

.as72-popular-old {
    color: #94a3b8;
    font-size: 12px;
    text-decoration: line-through;
    font-weight: 400;
}

/* Актуальная цена */

.as72-popular-price {
    display: block;
    color: #123d66;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Кнопка Подробнее */

.as72-popular-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    margin-top: 2px;
    background: #edf4fc;
    color: #1765b4 !important;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .2s ease,
                color .2s ease;
}

.as72-popular-more:hover {
    background: #1765b4;
    color: #ffffff !important;
}

.as72-popular-more span {
    font-size: 15px;
}

/* Последняя карточка */

.as72-popular-card:last-child {
    margin-bottom: 0;
}

/* Навигация с клавиатуры */

.as72-popular-card a:focus-visible {
    outline: 2px solid #1765b4;
    outline-offset: 3px;
}

/* Адаптация для узких экранов */

@media (max-width: 480px) {

    .as72-popular-card {
        grid-template-columns: 80px minmax(0, 1fr);
        padding: 10px;
        gap: 9px;
    }

    .as72-popular-image {
        height: 100px;
    }

    .as72-popular-price {
        font-size: 17px;
    }

    .as72-popular-name {
        font-size: 12px;
    }
}

/* Отключение анимации по настройкам пользователя */

@media (prefers-reduced-motion: reduce) {

    .as72-popular-card,
    .as72-popular-image img,
    .as72-popular-more {
        transition: none;
        transform: none !important;
    }
}