.food-menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.menu-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-item-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.menu-item-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-title {
    margin: 0 0 10px;
    font-size: 1.25em;
}

.menu-item-description {
    margin-bottom: 15px;
    flex-grow: 1;
}

.menu-item-price {
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-order-btn {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
}

/* Cart Sidebar */
.fop-cart-sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.fop-cart-sidebar.open {
    width: 350px;
}

.fop-cart-sidebar .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    text-decoration: none;
    color: #818181;
}

.fop-cart-sidebar h2 {
    padding: 0 25px;
    font-size: 24px;
}

.fop-cart-items .cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 25px;
    border-bottom: 1px solid #f1f1f1;
}

.fop-cart-total {
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.2em;
    border-top: 2px solid #333;
}

.fop-checkout-btn {
    width: calc(100% - 50px);
    margin: 0 25px;
    padding: 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Checkout Form */
.fop-checkout-form-container {
    padding: 0 25px;
}

#fop-checkout-form p {
    margin-bottom: 15px;
}

#fop-checkout-form label {
    display: block;
    margin-bottom: 5px;
}

#fop-checkout-form input,
#fop-checkout-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fop-place-order-btn,
.fop-back-to-cart-btn {
    width: 100%;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-bottom: 10px;
}

.fop-place-order-btn {
    background-color: #5cb85c;
    color: white;
}

.fop-back-to-cart-btn {
    background-color: #f0ad4e;
    color: white;
}

/* Options Modal */
.fop-modal {
    display: none; 
    position: fixed; 
    z-index: 1001; /* Higher than cart sidebar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6);
}

.fop-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

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

.fop-modal-close:hover,
.fop-modal-close:focus {
    color: black;
}

#fop-modal-options .option-group {
    margin-bottom: 15px;
}

#fop-modal-options h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

#fop-modal-options .option-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

#fop-modal-options .option-item label {
    display: flex;
    align-items: center;
    width: 100%;
}

#fop-modal-options .option-item input {
    margin-right: 10px;
}

#fop-modal-options .option-price {
    margin-left: auto;
}

.fop-modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fop-modal-price {
    font-size: 1.2em;
    font-weight: bold;
}
