body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* Menu Bar Styling */
.menu-bar {
    background-color: #FFD700;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-icon, .cart-icon {
    width: 24px;
    height: 24px;
    background-color: #33333304;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
}

.menu-icon {
    transition: background-image 0.3s ease;
}

.menu-icon.closed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
}

.menu-icon.open {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
}

.cart-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E") no-repeat 50% 50%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E") no-repeat 50% 50%;
    background-color: #333;
}

/* Side Menu Styling */
.side-menu {
    position: fixed;
    top: 54px;
    left: -250px;
    width: 250px;
    height: calc(100% - 54px);
    background-color: #fffffff7;
    transition: left 0.3s ease-in-out;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.side-menu ul {
    list-style-type: none;
    padding: 20px;
    margin: 0;
}

.side-menu ul li {
    padding: 15px 0;
    border-bottom: 1px solid #f5e60f;
}

.side-menu ul li:last-child {
    border-bottom: none;
}

.side-menu ul li a {
    text-decoration: none;
    color: #2a2929;
    display: block;
    font-size: 16px;
    transition: color 0.2s;
}

.side-menu ul li a:hover {
    color: #ff6347;
}

/* Container Styling */
.container {
    max-width: 1000px;
    margin: 20px auto;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

/* Pizza Section Styling */
.pizza-section {
    flex: 3;
}

/* Header Styling */
.header {
    margin-bottom: 20px;
    text-align: center;
}

.greeting {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

/* Search Bar Styling */
.search-bar {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Pizza Grid Styling */
.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.pizza-item {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pizza-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pizza-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.pizza-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    flex-grow: 1;
}

.pizza-price {
    color: #888;
    margin-bottom: 10px;
}

.buy-button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    align-self: center;
}

.buy-button:hover {
    background-color: #ff4500;
}

/* Add-ons Page Styling */
.add-ons-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-bottom: 120px; /* Adjusted to accommodate the sticky order summary */
}

.add-ons-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.add-on-item {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s, background-color 0.3s;
    position: relative;
}

.add-on-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.add-on-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.add-on-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.add-on-price {
    color: #888;
    margin-bottom: 10px;
}

.add-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.add-button:hover {
    background-color: #45a049;
}

.add-button.selected {
    background-color: #ff6347;
}

/* Order Summary Sticky Bottom Bar */
.order-summary {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: #f9f9f9e5;
    padding: 15px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.884);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.order-summary h3 {
    margin: 0 0 10px 0;
    margin-left: 30px;
    font-size: 18px;
}

.selected-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.selected-addon-item {
    display: flex;
    justify-content:space-between;
    color: yellowgreen;
    width: 95%;
    margin-left: 5%;
}

.total {
    font-weight: bold;
    font-size: 16px;
    text-align: right;
    margin-bottom: 10px;
}

.checkout-button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 25px;
    cursor: pointer;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 50%;
}

.checkout-button:hover {
    background-color: #ff4500;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .menu-bar {
        padding: 10px 15px;
    }

    .greeting {
        font-size: 22px;
    }

    .add-ons-container {
        flex-direction: column;
        padding-bottom: 120px; /* Adjusted to accommodate the sticky order summary */
    }

    .order-summary {
        padding: 15px 20px;
        left: -20px;
    }
    
.order-summary h3 {
    margin: 0 0 10px 0;
    margin-left: 15px;
    font-size: 18px;
}
}

@media (max-width: 600px) {
    .pizza-grid, .add-ons-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .order-summary {
        padding: 10px 15px;
    }

    .order-summary h3 {
        font-size: 16px;
    }

    .selected-addons {
        flex-direction: column;
    }

    .checkout-button {
        font-size: 14px;
    }

    .add-ons-container {
        padding-bottom: 130px; /* Adjust if needed */
    }}