.product-page .product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.product-page .product-image {
    flex: 1 1 300px;
}

.product-page .product-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.product-page .product-info {
    flex: 1 1 300px;
}

.product-page h1 {
    font-size: 26px;
    color: #1e88e5;
    margin-bottom: 15px;
}

.product-page p {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-description {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .product-page .product-detail {
        flex-direction: column;
    }
}

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

.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-image {
    flex: 1 1 400px;
    max-width: 400px;
    border-radius: 10px;
}

.product-info {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.product-info h1 {
    margin: 0 0 10px 0;
    color: #1e88e5;
}

.product-info .weight,
.product-info .price {
    margin: 5px 0;
    font-weight: 500;
}

.product-info .description {
    margin: 15px 0;
    font-size: 15px;
    color: #555;
}

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

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

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        align-items: center;
    }
    .product-image, .product-info {
        flex: 1 1 100%;
    }
}

.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;
}
