

/* Start:/local/components/public/catalog.favorites/templates/.default/style.css?17825154773973*/
/* ==========================================================================
   ЭФФЕКТ ПЛАВНОГО ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ (SCROLL REVEAL)
   ========================================================================== */
.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   СОВРЕМЕННЫЙ СТИЛЬ КАРТОЧЕК ИЗБРАННОГО (ФОРМАТ 3:4)
   ========================================================================== */
.product {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.3s ease, transform 0.5s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    cursor: pointer;
    
    /* Пропорции всей карточки строго 3:4 */
    aspect-ratio: 3 / 4; 
    display: flex;
    flex-direction: column;
    width: 100%;
}
.product:hover {
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.07) !important;
    border-color: #e2e8f0;
    z-index: 5;
}

/* Квадратный контейнер для картинки (занимает 75% высоты карточки) */
.product-img-holder {
    background: #fdfdfd;
    width: 100%;
    aspect-ratio: 1 / 1; /* Строгий квадрат */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid #f8fafc;
    transform: translateZ(20px);
    flex-shrink: 0;
}
.product-img-holder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Контейнер для текста (занимает оставшиеся 25% высоты карточки) */
.product-info-holder {
    padding: 12px 15px 15px 15px;
    transform: translateZ(35px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    overflow: hidden;
    background: #ffffff;
}

/* Заголовок товара */
.product .caption {
    height: auto;
    margin-bottom: 4px;
    overflow: hidden;
    text-align: left;
    padding: 0 !important;
    flex-grow: 1;
}
.product .caption a {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    
    /* Ограничение строго до двух строк с троеточием */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product .caption a:hover {
    color: #49698E;
}

/* Цены и теги */
.product .ratings {
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.product .price-tag {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}
.product .price-tag span {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.product .secret-tag i {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.2s ease;
}
.product:hover .secret-tag i {
    color: #49698E;
}

/* ==========================================================================
   АДАПТИВНОСТЬ КАРТОЧЕК ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ
   ========================================================================== */
@media (max-width: 768px) {
    .product-img-holder {
        padding: 8px;
    }
    .product-info-holder {
        padding: 8px;
    }
    .product .caption a {
        font-size: 11px;
        line-height: 1.25;
    }
    .product .price-tag {
        font-size: 10px;
    }
    .product .price-tag span {
        font-size: 13px;
    }
}
/* End */
/* /local/components/public/catalog.favorites/templates/.default/style.css?17825154773973 */
