body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.background-image {
    background-image: url('images/BgImg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    width: 100%;
}

h1 {
    text-align: center;
    margin-top: 20px;
}

.cart-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.cart {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checkout-form {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checkout-form label {
    display: block;
    margin: 10px 0 5px;
}

.checkout-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

button {
    padding: 8px 16px;
    cursor: pointer;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.cart p {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

#cart-total {
    color: #e91e63;
    font-size: 24px;
}

/* Payment options horizontal layout */
.payment-options {
    display: flex;
    justify-content: space-between; /* Ensure equal spacing */
    margin: 10px 0;
}

.payment-options label {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

/* Center the Place Order button */
.checkout-form button {
    display: block;
    margin: 20px auto; /* Center the button */
}

/* Quantity buttons styling */
.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: black;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #333;
}

.remove-btn {
    background-color: black;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.remove-btn:hover {
    background-color: #333;
}

/* Popup styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-popup:hover {
    color: #333;
}
