/* cart.css */

/* Cart Section */
#cart {
    padding: 50px 20px;
    background-color: #fff;
}

#cart h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

#cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; /* Increased padding for more space */
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px; /* Increased margin for more space */
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 120px; /* Increased image size */
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
    margin-left: 20px; /* Increased margin for more space */
}

.cart-item-details h3 {
    margin: 0;
    font-size: 24px; /* Increased font size */
    color: #333;
}

.cart-item-details p {
    margin: 10px 0; /* Increased margin for more space */
    font-size: 20px; /* Increased font size */
    color: #777;
}

.cart-item-controls {
    display: flex;
    align-items: center;
}

.cart-item-controls input[type="number"] {
    width: 50px; /* Narrower width */
    padding: 5px; /* Adjusted padding */
    text-align: center;
    margin: 0 5px; /* Adjusted margin */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 20px; /* Increased font size */
    height: 40px; /* Match the height of the buttons */
    width: 60px;
    box-sizing: border-box; /* Ensure padding doesn't affect the height */
}

.cart-item-controls .quantity-btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    width: 40px; /* Ensure the buttons have the same width */
    height: 40px; /* Ensure the buttons have the same height */
}

.cart-item-controls .quantity-btn:hover {
    background-color: #e65c00;
}

.cart-item-remove {
    color: rgb(161, 161, 161);
    cursor: pointer;
    font-weight: bold;
    font-size: 24px; /* Increased font size */
    margin-left: 20px; /* Added margin to move it away from the quantity controls */
}

#cart-summary {
    margin-top: 40px;
    text-align: right;
    font-size: 20px; /* Increased font size */
}

#cart-summary p {
    margin: 10px 0;
}

#grand-total {
    font-size: 24px; /* Increased font size */
    font-weight: bold;
    color: #333;
}

/* Cart Buttons */
.cart-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.cart-buttons .btn-light {
    background-color: #ccc;
    color: #333;
    font-size: 20px; /* Increased font size */
    padding: 10px 20px; /* Increased padding */
}

.cart-buttons .btn-light:hover {
    background-color: #bbb;
}

.cart-buttons .btn {
    font-size: 20px; /* Increased font size */
    padding: 10px 20px; /* Increased padding */
}

/* Checkout Form */
#checkout {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

#checkout h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

#checkout form {
    max-width: 600px;
    margin: 0 auto;
}

#checkout label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

#checkout input[type="text"],
#checkout input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#checkout .btn {
    font-size: 18px;
    width: 100%;
}


/* Hide the arrows on number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Checkout Form */
#checkout {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 30px;
}

#checkout h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

#checkout label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

#checkout input[type="text"],
#checkout input[type="email"],
#checkout select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#checkout .btn {
    font-size: 18px;
    width: 100%;
    background-color: #ff6600;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#checkout .btn:hover {
    background-color: #e65c00;
}

.contact-warning {
    font-size: 14px;
    color: red;
    margin-top: -10px;
    margin-bottom: 10px;
}
