:root {
  --mcd-red: #FF0000;
  --mcd-yellow: #FFD700;
  --mcd-dark: #0a0a0c;
  --text-light: #ffffff;
  --bg-dark: #0a0a0c;
  --bg-light: #f5f5f7;
  --text-dark: #1a1a1a;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  transition: all 0.3s;
}

.header {
  background: linear-gradient(160deg, var(--mcd-red), #CC0000);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  margin: 0 0 3rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo {
  font-size: 4.5rem;
  margin: 0;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.subheader {
  font-size: 1.8rem;
  opacity: 0.9;
  margin-top: 1rem;
}

#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 1000;
}

.total-box {
  position: fixed;
  right: 20px;
  top: 120px;
  width: 320px;
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 999;
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.category {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 1.5rem;
}

.item {
  background: rgba(255,255,255,0.08);
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.15);
}

.item.selected {
  background: var(--mcd-yellow) !important;
  color: #000 !important;
  border-color: var(--mcd-red) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

body.light-mode {
  background: var(--bg-light);
  color: var(--text-dark);
}

body.light-mode .category,
body.light-mode .total-box {
  background: rgba(0,0,0,0.05);
}

body.light-mode .item {
  background: rgba(0,0,0,0.08);
}

body.light-mode .item:hover {
  background: rgba(0,0,0,0.15);
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 20, 0.95);
  padding: 2rem;
  border-radius: 15px;
  color: white;
  z-index: 10000;
  width: 90%;
  max-width: 500px;
  text-align: center;
  border: 2px solid var(--mcd-yellow);
}

.modal-close {
  background: var(--mcd-red);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
}

#submit-order {
  background: var(--mcd-yellow);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
  width: 100%;
}

#submit-order:hover {
  background: #ffcc00;
}

.shipping-costs {
  color: var(--mcd-yellow);
  font-size: 0.9em;
  margin-top: 5px;
}

@media (max-width: 1200px) {
  .total-box {
    position: static;
    width: 90%;
    margin: 2rem auto;
  }
  
  .menu-container {
    margin-right: 0;
    padding: 1rem;
  }
}