/* cart.css */
.cart {
    padding: 40px 0;
}

.cart__content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cart__items {
    flex: 2;
}

.cart__item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    gap: 20px;
    align-items: center;
}

.cart__item--image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.cart__item--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart__item--info {
    flex: 1;
    min-width: 150px;
}

.cart__item--info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart__item--info h3 a {
    color: #333;
    text-decoration: none;
}

.cart__item--info h3 a:hover {
    color: #a351ef;
}

.cart__item--color {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.cart__item--price {
    font-size: 14px;
    font-weight: 600;
    color: #a351ef;
}

.cart__item--actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn__qty {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn__qty:hover {
    background: #a351ef;
    color: #fff;
    border-color: #a351ef;
}

.cart__item--qty {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.btn__remove {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    transition: all 0.3s;
}

.btn__remove:hover {
    color: #dc3545;
    transform: scale(1.2);
}

.cart__item--total {
    font-weight: 700;
    font-size: 16px;
    min-width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.cart__summary {
    flex: 1;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 12px;
    position: sticky;
    top: 30px;
}

.cart__summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 24px;
    font-weight: 700;
    border-top: 2px solid #ddd;
    margin-bottom: 20px;
}

.cart__total span {
    color: #a351ef;
}

.cart__summary .btn__purple {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    text-align: center;
    display: block;
    background: #a351ef;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.cart__summary .btn__purple:hover {
    background: #8a3ad4;
}

/* Пустая корзина */
.cart-empty {
    text-align: center;
    padding: 60px 0;
}

.cart-empty p {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

.cart-empty .btn__purple {
    display: inline-block;
    padding: 15px 40px;
    background: #a351ef;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s;
}

.cart-empty .btn__purple:hover {
    background: #8a3ad4;
}

/* Адаптив */
@media (max-width: 768px) {
    .cart__content {
        flex-direction: column;
    }
    
    .cart__item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart__item--image {
        width: 70px;
        height: 70px;
    }
    
    .cart__item--actions {
        order: 3;
        margin-left: 90px;
    }
    
    .cart__item--total {
        text-align: left;
        min-width: auto;
    }
    
    .cart__summary {
        position: static;
    }
}