﻿.cart-page {
    min-height: 80vh;
    padding: 50px 0;
    background: #f8f9fa;
}

.cart-header {
    margin-bottom: 40px;
}

    .cart-header h2 {
        color: #333;
        font-weight: bold;
    }

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.cart-empty-icon {
    font-size: 120px;
    color: #ddd;
    margin-bottom: 30px;
}

.cart-empty h3 {
    color: #666;
    margin-bottom: 15px;
}

.cart-empty p {
    color: #999;
    margin-bottom: 30px;
}

.cart-content {
    display: none;
}

.cart-items {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

    .cart-item:last-child {
        border-bottom: none;
    }

    .cart-item:hover {
        background: #fafafa;
    }

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    margin-right: 20px;
}

.item-details {
    flex: 1;
    padding-right: 20px;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.item-price {
    color: #D62300;
    font-weight: 600;
    font-size: 1.1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: #666;
}

    .quantity-btn:hover {
        border-color: #D62300;
        color: #D62300;
        background: rgba(214, 35, 0, 0.05);
    }

.quantity-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
}

.item-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-right: 30px;
    min-width: 120px;
    text-align: right;
}

.item-remove {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    padding: 10px;
}

    .item-remove:hover {
        color: #c82333;
        transform: scale(1.2);
    }

.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

    .cart-summary h4 {
        font-weight: bold;
        color: #333;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

    .summary-row.total {
        font-size: 1.3rem;
        font-weight: bold;
        color: #333;
        padding-top: 15px;
        border-top: 2px solid #f0f0f0;
        margin-top: 15px;
    }

        .summary-row.total .amount {
            color: #D62300;
        }

.btn-checkout {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #D62300 0%, #F5A623 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s;
}

    .btn-checkout:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(214, 35, 0, 0.3);
    }

.btn-continue {
    width: 100%;
    height: 55px;
    background: white;
    border: 2px solid #D62300;
    border-radius: 15px;
    color: #D62300;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* khoảng cách icon - chữ */

    margin-top: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-continue i,
    .btn-continue svg {
        font-size: 1.2rem;
        line-height: 1;
    }

    .btn-continue:hover {
        background: #D62300;
        color: white;
    }


.loading-cart {
    text-align: center;
    padding: 100px 20px;
}

.loading-spinner {
    font-size: 50px;
    color: #D62300;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .item-image {
        margin: 0 0 15px 0;
    }

    .item-details {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .item-quantity {
        margin: 15px 0;
    }

    .item-total {
        margin: 10px 0;
    }

    .cart-summary {
        position: static;
        margin-top: 30px;
    }
}
