.cart-main {
    margin: 20px 0px;
}

.product-card {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    gap: 5px;
}

.product-image {
    width: 100px;
    height: 100px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details {
    flex-grow: 1;
    padding-left: 10px;
}

.product-title a {
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.product-code {
    color: #888;
}

.product-rating {
    color: #888;
}

.product-price {
    font-weight: bold;
    font-size: 1.2em;
    text-align: right;
}

.buy-now-btn {
    background-color: black;
    color: white;
    border: none;
    padding: 5px 10px;
}

.select-all {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
    gap: 10px;
}

.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 1.5em;
}

.cart-summary {
    background-color: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.total {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
}

.total-price {
    color: #d9534f;
    /* Màu đỏ cho tổng giá trị */
    font-size: 20px;
}

.actions {
    display: flex;
    gap: 15px;
    width: 100%;
}

.continue-shopping-btn,
.checkout-btn,
.remove-all-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.remove-btn {
    cursor: pointer;
}

.continue-shopping-btn {
    background-color: #666666; /* Xám trung tính */
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background-color: #444444; /* Đậm hơn khi hover */
}

.remove-all-btn {
    background-color: #ff4d4d; /* Đỏ nổi bật */
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-all-btn:hover {
    background-color: #cc0000; /* Đỏ đậm hơn khi hover */
}

.checkout-btn {
    background-color: #ffffff; /* Nền trắng */
    color: #000000; /* Chữ đen */
    border: 2px solid #000000; /* Viền đen */
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #000000; /* Đổi nền đen khi hover */
    color: #ffffff; /* Chữ trắng khi hover */
}

.quantity-container,
.remove-container {
    display: flex;
    align-items: center;
    gap: 10px; 
    margin-top: 10px;
    justify-content: flex-end;
}

.quantity-btn {
    background-color: #fff; 
    border: 1px solid #ccc; 
    color: #000; 
    padding: 4px 8px; 
    font-size: 14px; 
    cursor: pointer;
    border-radius: 1px; 
    transition: background-color 0.3s, transform 0.3s;
}

.quantity-btn:hover {
    background-color: #e0e0e0; 
    transform: scale(1.05); 
}

.quantity-input {
    width: 60px; 
    text-align: center;
    font-size: 14px; 
    border: 1px solid #ccc; 
    background-color: white;
    color: #333; 
    padding: 4px;
    margin: 0;
    font-weight: bold;
    transition: border-color 0.3s;
}

.quantity-input:focus {
    border-color: #999; 
    outline: none;
}

.empty-cart {
    text-align: center;
    padding: 20px;
}

.empty-cart-image {
    margin-bottom: 10px;
}

.empty-cart-message {
    margin-top: 20px;
    font-size: 16px;
    color: #555;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.product-price .new-price {
    font-weight: bold;
    color: #ff5733;
}

.remove-container button {
    border: none;
    outline: none;
    font-size: 14px;
    background-color: transparent;
    color: #f03005;
}

.fw-bold {
    font-weight: bold;
}
.fs-5 { font-size: 1.25rem; }
.fs-4 { font-size: 1.5rem; }

@media (max-width: 768px) {
    .cartList {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-card {
        flex: 0 0 auto;
        margin-right: 16px;
        width: 800px;
        box-sizing: border-box;
    }

    .cart-summary {
        padding: 10px;
    }

    .total {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .total-price {
        font-size: 18px;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }

    .continue-shopping-btn,
    .checkout-btn {
        width: 100%;
        padding: 12px 0;
    }
}