
/* General styles for the modal background */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animations for fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal content styles */
.cart-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 30px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: zoomIn 0.4s ease-in-out;
}

/* Close button styles */
.cart-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    z-index: 999; /* Đảm bảo nút đóng luôn hiển thị trên các phần tử khác */
}

.cart-content .close:hover {
    transform: rotate(90deg) scale(1.2);
    color: #e74c3c;
}

/* Heading styles */
.cart-content h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeIn 0.8s ease-in-out;
}

/* Product list styles */
.cart-content .product-list {
    margin: 20px 0;
}

.cart-content .product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #eeeeee);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1), -3px -3px 10px rgba(255, 255, 255, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cart-content .product-item:hover {
    transform: scale(1.02);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2), -5px -5px 20px rgba(255, 255, 255, 0.7);
}

/* Product details */
.cart-content .product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-content .product-info img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-content .product-info p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* Price and quantity */
.cart-content .product-price,
.cart-content .product-quantity {
    font-size: 15px;
    font-weight: bold;
    color: #555;
    text-align: center;
}

/* Total price styles */
.cart-content .total-price {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    color: #333;
    margin-top: 20px;
    border-top: 2px solid #ddd;
    padding-top: 10px;
}

/* Buttons */
.cart-content .btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff; /* Màu chữ trắng */
    background-color: #000; /* Nền nút màu đen */
    border-radius: 12px;
    margin-top: 20px;
    margin-right: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.cart-content .btn:hover {
    transform: translateY(-3px);
    background-color: #fff; /* Nền nút chuyển sang trắng khi hover */
    color: #000; /* Màu chữ chuyển sang đen khi hover */
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3);
}


/* Scrollbar styles */
.cart-content::-webkit-scrollbar {
    width: 10px;
}

.cart-content::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #000, #fff);
    border-radius: 10px;
}

.cart-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #fff, #000);
}


  

