.product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card__image {
    position: relative;
    padding-top: 100%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: #f8f9fa;
}

/* Для картинки внутри контейнера */
.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Вместо cover - вся картинка видна */
}

.product-card:hover .product-card__img {
    transform: scale(1.05);
}

/* Бейдж скидки */
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #2980b9, #2b507f);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Действия с товаром */
.product-card__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card__action-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card__action-btn:hover {
    background: #2980b9;
    color: white;
    transform: scale(1.1);
}

/* Контент */
.product-card__content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Рейтинг */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.product-card__reviews {
    font-size: 12px;
    color: #666;
}

/* Название */
.product-card__title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    
    /* Фиксированная высота с учетом 2 строк */
    height: 2.8em; /* 2 строки * line-height 1.4 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение до 2 строк */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-card__title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    
    /* Обеспечиваем перенос слов */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.product-card__title-link:hover {
    color: #2980b9;
}

/* Цены */
.product-card__pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.product-card__old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-card__current-price {
    font-size: 18px;
    font-weight: 600;
    color: #2980b9;
}

/* Кнопка корзины */
.product-card__cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #2980b9, #2b507f);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card__cart-btn:hover {
    background: linear-gradient(135deg, #1a97ebff, #1a97ebff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.product-card__cart-icon {
    display: flex;
    align-items: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-card__actions {
        opacity: 1;
        transform: translateX(0);
        flex-direction: row;
    }
    
    .product-card__action-btn {
        width: 32px;
        height: 32px;
    }
    
    .product-card__content {
        padding: 12px;
    }
    
    .product-card__title {
        font-size: 14px;
    }
    
    .product-card__current-price {
        font-size: 16px;
    }
    
    .product-card__cart-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}