
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    background: rgba(30, 25, 50, 0.7);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    gap: 15px;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: #2d2a3b;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h3 {
    margin-bottom: 5px;
    color: #ffffff;
}

.cart-item-info p {
    margin: 3px 0;
    color: #bdc3c7;
}

.cart-item-actions {
    display: flex;
    gap: 5px;
}

.cart-total {
    font-size: 1.4em;
    font-weight: bold;
    color: #6c5ce7;
    margin: 20px 0;
    text-align: right;
}

.cart-checkout {
    text-align: right;
}

.checkout-btn {
    background: #6c5ce7;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #5d4fd3;
}

/* Управление количеством */
.quantity-control {
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #6c5ce7;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #5d4fd3;
    transform: scale(1.1);
}

.qty-val {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    min-width: 30px;
    text-align: center;
}

/* Кнопка удалить */
.remove-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.remove-btn:hover {
    background: #ff6b6b;
    color: white;
}


/* --- Адаптив корзины --- */
@media (max-width: 600px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    .cart-item-info {
        width: 100%;
    }
    .cart-item-actions {
        width: 100%;
    }
    .remove-btn {
        width: 100%;
        padding: 12px;
    }
    .quantity-control form {
        justify-content: center;
    }
}