
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Карточка товара */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 91, 255, 0.12);
    transform: translateY(-4px);
    border-color: #e0e4ea;
}

/* Бейдж скидки */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f91155;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(249, 17, 85, 0.3);
}

/* Изображение товара */
.prod-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f7f8fa;
}

.prod-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .prod-img {
    transform: scale(1.05);
}

/* Контент карточки */
.product-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Блок цены */
.price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: #001a34;
    line-height: 1.2;
}

.old-price {
    font-size: 14px;
    color: #8892a0;
    text-decoration: line-through;
    font-weight: 500;
}

/* Название товара */
.prod-title {
    font-size: 14px;
    color: #001a34;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Рейтинг */
.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #8892a0;
    margin-bottom: 12px;
}

.rating i {
    color: #ffb800;
    font-size: 12px;
}

.rating .score {
    font-weight: 600;
    color: #001a34;
}

/* Кнопка в корзину */
.add-btn {
    width: 100%;
    padding: 10px;
    background: #005bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.add-btn:hover {
    background: #004ecc;
    transform: scale(1.02);
}

.add-btn:active {
    transform: scale(0.98);
}

.add-btn.added {
    background: #00a046;
}

/* Уведомление */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #001a34;
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}



/* Пустой список */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #8892a0;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #dfe3e8;
}

.empty-state h3 {
    font-size: 20px;
    color: #001a34;
    margin-bottom: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-content {
        padding: 10px;
    }

    .current-price {
        font-size: 17px;
    }

    .old-price {
        font-size: 12px;
    }

    .prod-title {
        font-size: 13px;
    }

    .add-btn {
        padding: 8px;
        font-size: 13px;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
        padding: 3px 7px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .current-price {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
