/* Container for cart items and order summary */
.cart-summary-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Gap between the two containers */
}

.card{
    margin-bottom: 0.5rem;
}
/* Style for the cart items container */
#cart-items-container {
    flex: 2; /* Takes up 2/3 of the space */
    background-color: #f9f9f9; /* Light background for the cart items */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* Style for the order summary container */
.total-summary {
    flex: 1; /* Takes up 1/3 of the space */
    background-color: #fff; /* White background for the summary */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* Container for each card */
.card-body-checkout {
    display: flex;
    flex-direction: row; /* Horizontal layout for desktop */
    align-items: flex-start; /* Align items at the top */
    justify-content: space-between; /* Space between image and buttons */
    text-align: center; /* Center text inside the card */
    margin-bottom: 20px; /* Space below each card */
}

/* Style for images inside cart items */
.card-body-checkout img {
    max-width: 150px; /* Limit max-width for image */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space below the image */
}

/* Title styling */
.card-title {
    margin-top: 10px; /* Space above the title */
    font-size: 1rem; /* Adjust font size */
    font-weight: bold; /* Bold text */
}

/* Container for quantity input and buttons */
.quantity-input {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;   /* Center buttons horizontally */
}


/* Center the quantity input and buttons on desktop and mobile */
.quantity-wrapper {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin-bottom: 10px; /* Optional: space below for each item */
    gap: 10px; /* Add space between the buttons and input */
}

/* Style for the buttons */
.quantity-button {
    background-color: #007bff; /* Button background color */
    color: #fff; /* Text color */
    border: none; /* No border */
    width: 40px; /* Button width */
    height: 40px; /* Button height */
    font-size: 20px; /* Larger font for + and - signs */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

/* Button hover effect */
.quantity-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Style for the input field */
.quantity-input {
    width: 60px; /* Set input width */
    height: 40px; /* Match input height with buttons */
    text-align: center; /* Center text in input */
    font-size: 16px; /* Increase font size */
    border: 1px solid #ccc; /* Light border around input */
    border-radius: 4px; /* Rounded corners */
}

/* Container for the entire quantity section */
.quantity-wrapper-container {
    display: flex;
    justify-content: center; /* Center the entire block */
    align-items: center; /* Vertically align the label and controls */
    gap: 10px; /* Space between the label and controls */
}

/* Label for the quantity */
.quantity-label {
    font-size: 16px; /* Adjust label font size */
    font-weight: bold; /* Bold for emphasis */
}

/* Existing quantity wrapper styles */
.quantity-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between the buttons and input */
}

/* Existing button styles */
.quantity-button {
    background-color: #007bff; /* Button background color */
    color: #fff; /* Text color */
    border: none; /* No border */
    width: 40px; /* Button width */
    height: 40px; /* Button height */
    font-size: 20px; /* Larger font for + and - signs */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

/* Button hover effect */
.quantity-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Style for the input field */
.quantity-input {
    width: 60px; /* Set input width */
    height: 40px; /* Match input height with buttons */
    text-align: center; /* Center text in input */
    font-size: 16px; /* Increase font size */
    border: 1px solid #ccc; /* Light border around input */
    border-radius: 4px; /* Rounded corners */
}



/* Container for the discount scroller */
.discount-scroller {
    background-color: #28a745; /* Green background for the banner */
    color: white; /* White text for contrast */
    font-size: 18px; /* Font size for the text */
    padding: 10px 0; /* Padding to give some space */
    position: relative;
    overflow: hidden; /* Hide content outside the banner */
    white-space: nowrap; /* Prevent text wrapping */
    text-align: center;
}

/* Scrolling text effect */
.discount-scroller p {
    display: inline-block;
    padding-left: 100%; /* Start scrolling from the right */
    animation: scroll-right 7s linear infinite; /* Infinite scroll animation */
}

.quantity-wrapper-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc; /* Border around the entire quantity selector */
    border-radius: 4px; /* Rounded corners */
    overflow: hidden; /* Ensures no content spills outside the border */
    /* Adjust the width here if needed */
}

.quantity-button {
    background-color: #f8f8f8; /* Light gray background */
    border: 1px solid #ccc; /* Border around buttons */
    color: #333; /* Dark text color */
    font-size: 14px; /* Button text size */
    width: 25px; /* Decrease button width */
    height: 25px; /* Decrease button height */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.2s; /* Smooth background color transition */
    padding: 0; /* Remove default padding */
}

.quantity-button:hover {
    background-color: #ddd; /* Slightly darker gray on hover */
}

.quantity-button:active {
    background-color: #ccc; /* Even darker gray when button is pressed */
}

.quantity-container {
    display: flex;
    align-items: center;
    /*border-left: 1px solid #ccc; */ /* Border between input and buttons */
    /*border-right: 1px solid #ccc;*/ /* Border between input and buttons */
    padding: 0; /* Remove padding to reduce space around input */
}

.quantity-input {
    width: 4rem; /* Decrease width to match new button width */
    height: 25px; /* Adjust height to match new button height */
    text-align: center; /* Center the text */
    border: none; /* Remove default border */
    font-size: 14px; /* Decrease font size to match button text size */
    outline: none; /* Remove default outline */
    margin: 0; /* Remove margin to eliminate extra space */
}

.quantity-input:focus {
    border: 1px solid #007bff; /* Blue border on focus */
}

/* Mobile responsiveness */


/*
@media (max-width: 768px) {
*/
/* Responsive Design */
@media (max-width: 992px) {
    .cart-summary-wrapper {
        flex-direction: column; /* Stack items vertically on small screens */
    }

    .total-summary {
        flex: none;
        order: -1; /* Place Summary Div at the top and before the product cards div */
        width: 100%; /* Full width on small screens */
        margin-bottom: 20px; /* Add margin for spacing */
    }

    .total-summary {
        margin-bottom: 0; /* Remove bottom margin for the last item */
    }
    .card{
        margin-bottom: 0.2rem;
    }

}

@media (max-width: 768px) {

    .card{
        margin-bottom: 0.2rem;
    }

    #cart-items-container
    {
        flex: none;
        width: 100%; /* Full width on small screens */
        margin-bottom: 20px; /* Add margin for spacing */
    }
    /* Center image and buttons in the card on small screens */
    .card-body-checkout {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: center;    /* Center items horizontally */
        text-align: center; /* Center text */
    }

    .card-body-checkout img {
        margin-bottom: 10px; /* Space below the image */
    }

    /* .quantity-input {
        flex-direction: row; 
    } */

    .quantity-wrapper-container {
        width: 100%; /* Full width on mobile screens */
        justify-content: center; /* Center horizontally */
    }

    .quantity-button {
        width: 35px; /* Smaller buttons on mobile */
        height: 35px;
        font-size: 18px;
    }

    .quantity-input {
        flex-direction: row; /* Align buttons horizontally on small screens */
        width: 50px; /* Slightly smaller input on mobile */
        height: 35px;
        font-size: 14px;
    }

    .quantity-label {
        font-size: 14px; /* Adjust label size for mobile */
    }

}

/* Keyframes for the scrolling effect */
@keyframes scroll-left {
    from {
        transform: translateX(100%); /* Start off-screen to the right */
    }
    to {
        transform: translateX(-100%); /* End off-screen to the left */
    }
}