* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background-color: #da291c; /* McDonald's Red */
    color: #ffc72c; /* McDonald's Yellow */
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

header .logo {
    font-size: 2rem;
    margin-right: 1rem;
}

main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar-left {
    width: 250px;
    background-color: white;
    padding: 1.5rem;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.menu-container {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.sidebar-right {
    width: 320px;
    background-color: white;
    padding: 1.5rem;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

h2 {
    margin-bottom: 1rem;
    color: #27251f; /* McDonald's Almost Black */
    border-bottom: 2px solid #ffc72c;
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.control-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid #ffeeba;
}

.category-filters button {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #eee;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.category-filters button:hover {
    background-color: #ddd;
}

.category-filters button.active {
    background-color: #ffc72c;
    color: #27251f;
    font-weight: bold;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.menu-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.menu-item .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.menu-item .name {
    font-weight: 500;
    margin-bottom: 0.5rem;
    flex: 1;
}

.menu-item .includes {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.menu-item .price {
    color: #da291c;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.menu-item button {
    background-color: #ffc72c;
    color: #27251f;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-item button:hover {
    background-color: #e6b325;
}

/* Cart Styles */
.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #eee;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.cart-item-name {
    font-weight: 500;
}

.cart-item-price {
    font-weight: bold;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remove-btn {
    background: none;
    border: none;
    color: #da291c;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.reward-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #008000;
}

.cart-totals {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.discount-row {
    color: #da291c;
}

.final-total {
    font-size: 1.25rem;
    font-weight: bold;
    border-top: 2px solid #ccc;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.points-total {
    color: #008000;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}
