/* Элементы корзины */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    gap: 15px;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #fafafa;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #8a2be2;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

/* Блок управления количеством */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f0f0;
    padding: 5px 8px;
    border-radius: 30px;
    width: fit-content;
    border: 1px solid #e0e0e0;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #8a2be2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #8a2be2;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(138, 43, 226, 0.3);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.cart-item-quantity span {
    font-weight: 600;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
    color: #333;
}

/* Кнопка удаления */
.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #f5f5f5;
}

.remove-item:hover {
    color: #ff4444;
    background: #ffebee;
    transform: scale(1.1);
}

.remove-item svg {
    width: 18px;
    height: 18px;
}

.remove-item svg path {
    stroke: #999;
    transition: stroke 0.2s ease;
}

.remove-item:hover svg path {
    stroke: #ff4444;
}

/* Пустая корзина */
.empty-cart-message {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 16px;
}

/* Итого и кнопка оформления */
.cart-total {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 5px;
    color: #333;
}

.cart-total span:last-child {
    color: #8a2be2;
    font-size: 24px;
}