body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    position: static;
    padding: 10px;
    background-color: #fff;
    box-shadow: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden; /* Ensure internal scrolling */
}

@media screen and (max-width: 768px) {
    header {
        position: static;
        padding: 10px;
        background-color: #fff;
        box-shadow: none;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .container {
        margin: 0;
        padding: 0;
        background-color: none;
        box-shadow: none;
        border-radius: 0;
    }
}

header .search-container {
    flex: 1;
    margin-right: 20px;
}

#search {
    width: 100%; /* Full width of its container */
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.cart-button {
    background-color: #90CAF9;
    color: #000000;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.cart-button:hover {
    background-color: #64B5F6;
}

.content {
    margin-top: 80px; /* Add margin-top equal to the height of the fixed header */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.list-container {
    flex: 1; /* Takes up remaining space */
    overflow-y: auto; /* Enable vertical scrolling */
}

.items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.item {
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin: 10px 0;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item h2 {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}

.item button {
    background-color: #90CAF9;
    color: #000000;
    border: none;
    padding: 14px 26px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1em;
    display: flex;
    align-items: center;
}

.item button i {
    margin-right: 5px;
}

.item button:hover {
    background-color: #64B5F6;
}

.cart {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 1000;
    width: 350px;
}

@media screen and (max-width: 768px) {
    .cart {
        width: 80%;
        max-width: 100%;
    }
}

.cart.open {
    transform: translateX(0);
}

.cart h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 1.1em;
}

.cart-item button {
    background-color: #90CAF9;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.cart-item button:hover {
    background-color: #64B5F6;
}

.cart-total {
    text-align: right;
    font-size: 1.3em;
    color: #333;
    margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.5s forwards;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: slideIn 0.5s forwards;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px);}
    to {transform: translateY(0);}
}

@keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
}

@keyframes slideOut {
    from {transform: translateY(0);}
    to {transform: translateY(-50px);}
}

.modal-content h2 {
    font-size: 1.5em;
    margin-top: 0;
}

.modal-content input {
    width: 50px;
    padding: 5px;
    text-align: center;
}

.modal-content button {
    margin-top: 10px;
    background-color: #90CAF9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
}

.modal-content button:hover {
    background-color: #64B5F6;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Add this to your existing CSS */

.quantity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.quantity-container button {
    background-color: #90CAF9;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-container input {
    width: 50px;
    padding: 5px;
    text-align: center;
    margin: 0 5px;
    font-size: 1.2em;
}

.item p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

