
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right,#b3dbf9, #eaf6ff, #fff6e0, #b0d9f8);
    margin: 20px;
    padding: 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Add space between elements */
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 15px;
}

.product-img {
    width: 100px;
    margin-right: 20px;
}

.product-img img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.cart-product-name {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
    flex-grow: 1; /* Allow product name to grow and take available space */
}

.cart-price-label {
    font-size: 20px;
    margin-left: auto;
    color: #333;
}

.quantity-input {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Add margin between product name and quantity button */
}

/* Styles for checkout summary header */
.checkout-summery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 15px; /* Increased border radius */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15); /* Soft shadow */
    margin-bottom: 20px;
}

.back {
    display: flex;
    align-items: center;
}

.back-button {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.summary-container {
    text-align: center;
}

.checkout-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333; /* Darker text color */
}

/* Styles for cart container */
.cart-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.cart-heading {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 15px;
}

.product-img {
    width: 100px;
    margin-right: 20px;
}

.product-img img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.cart-product-name {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.cart-price-label {
    font-size: 20px;
    margin-left: auto;
    color: #333;
}

.cart-actions {
    display: flex;
    align-items: center;
}

.remove-item-btn, .quantity-button {
    background-color: #ff6b6b; /* Soft red */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
}

.remove-item-btn {
    margin-right: 10px;
}

.remove-item-btn:hover, .quantity-button:hover {
    background-color: #ff4d4d; /* Darker red on hover */
}

.buy-now-cta {
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 24px;
    font-size: 20px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-now-cta:hover {
    background-color: #45a049;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 15px;
}

.product-img {
    width: 100px;
    margin-right: 20px;
}

.product-img img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.cart-product-name {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.cart-price-label {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.quantity-input {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Add margin between product name and quantity button */
}

.q-btn {
    background-color: #ccc;
    color: #fff;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.q-btn:hover {
    background-color: #aaa;
}

.quantity {
    padding: 8px;
    font-size: 16px;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-img {
        width: 70px;
        margin-right: 0; /* Remove margin for smaller screens */
        margin-bottom: 10px; /* Add margin-bottom for smaller screens */
    }

    .product-details {
        width: 100%; /* Make product details take full width in smaller screens */
    }

    .quantity-input {
        margin-left: 0; /* Remove margin for smaller screens */
        margin-top: 10px; /* Add margin-top for smaller screens */
    }
}


/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    
    .cart-container {
        padding: 15px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-img {
        width: 70px;
    }

    .cart-product-name,
    .cart-price-label {
        font-size: 18px;
    }
}
