.category-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1e88e5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card a {
    text-decoration: none;
    color: #333;
}

.product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-name {
    font-size: 18px;
    margin: 10px 0 5px;
}

.product-weight,
.product-price {
    font-size: 14px;
    margin: 2px 0;
    color: #555;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h3 {
    margin: 5px 0;
    font-size: 18px;
    color: #333;
}

.product-card .weight,
.product-card .price {
    margin: 3px 0;
    font-weight: 500;
}

.product-card .description {
    font-size: 14px;
    margin: 10px 0;
    color: #555;
}

.buy-btn {
    display: inline-block;
    background-color: #1e88e5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s, transform 0.2s;
}

.buy-btn:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #1e88e5;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

.cart-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Toast (правая верхняя) */
.cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1e88e5;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1200;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    font-weight: 600;
}
.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
