




/* Main Cart Container */
.cart-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.cart-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 30px; /* Space between the two main sections */
}

/* Cart Items Section */
.cart-items {
    flex: 2; /* Takes more space */
    min-width: 300px; /* Minimum width before wrapping */
}

.cart-item-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.item-image {
    flex-shrink: 0; /* Prevents image from shrinking */
    width: 120px; /* Fixed width for the image container */
    height: 120px; /* Fixed height for the image container */
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0; /* Placeholder background */
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    display: block;
}

.item-details {
    flex-grow: 1; /* Allows details to take remaining space */
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align top for title and button */
    margin-bottom: 5px;
}

.item-header h2 {
    font-size: 1.3em;
    margin: 0;
    color: #333;
    line-height: 1.2;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

.remove-item-btn:hover {
    color: #e74c3c;
    background-color: #fbecec;
}

.item-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 0;
    margin-bottom: 15px;
}

.item-quantity-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-control button {
    background-color: #f8f8f8;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1em;
    color: #555;
    transition: background-color 0.2s;
}

.quantity-control button:hover {
    background-color: #eee;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1em;
    -moz-appearance: textfield; /* Hide arrows for Firefox */
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Hide arrows for Chrome, Safari, Edge */
    margin: 0;
}

.item-price {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

/* Bill Summary Section */
.bill-summary-card {
    flex: 1; /* Takes remaining space, but can grow */
    min-width: 280px; /* Minimum width before wrapping */
    background-color: #f7f3ff; /* Light purple background for the card */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.bill-summary-card h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #6a4c9c; /* Purple for summary title */
}

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 5px;
}

.bill-item-qty {
    margin-left: auto; /* Push quantity to the left of price */
    margin-right: 10px;
    font-weight: 500;
}

.bill-item-price {
    font-weight: 600;
    color: #333;
}

.bill-item-note {
    font-size: 0.85em;
    color: #777;
    margin-top: 0;
    margin-bottom: 20px;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #555;
    margin-top: 25px;
    margin-bottom: 20px;
}

.terms-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #3498db; /* Accent color for the checkbox */
}

/* Buttons */
.complete-reservation-btn,
.update-cart-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.complete-reservation-btn {
    background-color: #e6ff70; /* Greenish-yellow from screenshot */
    color: #333;
    margin-bottom: 15px;
}

.complete-reservation-btn:hover {
    background-color: #d8f560;
}

.update-cart-btn {
    background-color: #6a4c9c; /* Purple from screenshot */
    color: #fff;
    margin-bottom: 25px;
}

.update-cart-btn:hover {
    background-color: #5b4285;
}

.paw-icon {
    font-size: 1.2em;
}

/* Payment Logos */
.payment-methods,
.credit-card-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.payment-methods img,
.credit-card-logos img {
    height: 28px; /* Adjust size as needed */
    width: auto;
}

.payment-methods {
    margin-top: 30px; /* More space above these */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-container {
        padding: 15px;
    }



    .cart-content-wrapper {
        flex-direction: column; /* Stack sections vertically */
        gap: 20px;
    }

    .cart-item-card {
        flex-direction: column; /* Stack image and details vertically */
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .item-image {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }

    .item-details {
        width: 100%; /* Take full width */
    }

    .item-header {
        flex-direction: column;
        align-items: center;
    }

    .item-header h2 {
        font-size: 1.2em;
        margin-bottom: 5px;
    }

    .remove-item-btn {
        margin-top: 5px;
    }

    .item-quantity-price {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .item-price {
        font-size: 1.2em;
    }

    .bill-summary-card {
        padding: 20px;
    }

    .payment-methods,
    .credit-card-logos {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .item-quantity-price {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .quantity-control {
        margin-bottom: 10px;
    }
}

