  :root {
    --red: #DA291C;
    --yellow: #FFC72C;
    --dark: #1a1a1a;
    --light: #f5f0e8;
    --card: #ffffff;
    --border: #e8e0d0;
    --text: #1a1a1a;
    --muted: #888;
  }

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

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light);
    color: var(--text);
    min-height: 100vh;
  }

  /* BURGER PREVIEW */
  .preview-section {
    background: #e8e0d0;
    border-bottom: 2px solid var(--border);
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .burger-visual {
    width: 120px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }

  .bun-top {
    width: 100px; height: 28px;
    background: linear-gradient(180deg, #e8a020 0%, #f5c050 60%, #f0b030 100%);
    border-radius: 60px 60px 8px 8px;
    border-bottom: 2px solid #c8881a;
    position: relative; transition: all 0.3s;
  }
  .bun-top.sesame::after { content: '· · ·'; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #c8881a; letter-spacing: 3px; }
  .bun-top.lettuce-bun { background: linear-gradient(180deg, #5a9a40 0%, #7ac055 60%, #6ab048 100%); border-bottom-color: #4a8030; }

  .patty { width: 96px; height: 12px; border-radius: 4px; background: #6b3a1f; border-top: 2px solid #8b5030; transition: all 0.3s; display: none; }
  .patty.visible { display: block; }
  .patty.impossible { background: linear-gradient(90deg, #5a8050, #4a7040); border-top-color: #6a9060; }
  .patty.chicken { background: linear-gradient(90deg, #c8901a, #d8a030); border-top-color: #e8b040; }

  .toppings-layer { width: 94px; height: 8px; border-radius: 4px; background: #e8d060; display: none; }
  .toppings-layer.visible { display: block; }

  .cheese-layer { width: 100px; height: 6px; background: #f0c020; border-radius: 2px; display: none; }
  .cheese-layer.visible { display: block; }

  .bun-bottom { width: 100px; height: 16px; background: linear-gradient(0deg, #e8a020 0%, #f5c050 100%); border-radius: 8px 8px 60px 60px; border-top: 2px solid #c8881a; }

  .preview-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: var(--dark); }
  .preview-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); font-weight: 500; }
  .preview-meta span { display: flex; align-items: center; gap: 4px; }

  /* MAIN */
  main {
    max-width: 900px; margin: 0 auto;
    padding: 28px 20px 120px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  }
  @media (max-width: 640px) { main { grid-template-columns: 1fr; } }

  /* PANELS */
  .panel { background: var(--card); border-radius: 12px; overflow: hidden; border: 1.5px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
  .panel:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
  .panel-header { background: var(--dark); color: white; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
  .panel-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1.5px; color: var(--yellow); }
  .panel-icon { font-size: 18px; opacity: 0.7; }
  .panel-body { padding: 8px 0; max-height: 260px; overflow-y: auto; }
  .panel-body::-webkit-scrollbar { width: 4px; }
  .panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .option-row { display: flex; align-items: center; padding: 12px 18px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid #f0ebe0; gap: 12px; user-select: none; }
  .option-row:last-child { border-bottom: none; }
  .option-row:hover { background: #faf7f2; }
  .option-row.selected { background: #fff8f0; }
  .option-checkbox { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
  .option-row.selected .option-checkbox { background: var(--red); border-color: var(--red); }
  .option-checkbox::after { content: '✓'; color: white; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity 0.15s; }
  .option-row.selected .option-checkbox::after { opacity: 1; }
  .panel[data-type="radio"] .option-checkbox { border-radius: 50%; }
  .option-info { flex: 1; }
  .option-name { font-size: 14px; font-weight: 600; color: var(--text); }
  .option-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .option-price { font-size: 14px; font-weight: 600; color: var(--red); flex-shrink: 0; }
  .section-divider { background: #f5f0e8; padding: 8px 18px; font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 1.5px; color: var(--muted); border-bottom: 1px solid var(--border); }
  .panel.full-width { grid-column: 1 / -1; }
  .toppings-grid { display: grid; grid-template-columns: 1fr 1fr; }
  @media (max-width: 640px) { .toppings-grid { grid-template-columns: 1fr; } .panel.full-width { grid-column: 1; } }

  /* FOOTER */
  .footer-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--card); border-top: 2px solid var(--border);
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
  .footer-total { display: flex; flex-direction: column; gap: 2px; }
  .footer-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
  .footer-amount { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--dark); letter-spacing: 1px; line-height: 1; }
  .footer-calories { font-size: 13px; color: var(--muted); font-weight: 500; }
  .footer-actions { display: flex; align-items: center; gap: 10px; }
  .btn { padding: 12px 20px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all 0.15s; white-space: nowrap; }
  .btn-ghost { background: #f0ebe0; color: var(--text); }
  .btn-ghost:hover { background: #e0d8c8; }
  .btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
  .btn-outline:hover { background: #f5f0e8; }
  .btn-primary { background: var(--red); color: white; padding: 12px 28px; }
  .btn-primary:hover { background: #c02018; transform: translateY(-1px); }

  /* CART ICON IN FOOTER */
  .cart-icon-btn {
    position: relative;
    background: var(--dark);
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
    flex-shrink: 0;
  }
  .cart-icon-btn:hover { background: #333; transform: scale(1.05); }

  .cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--yellow);
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .cart-badge.visible { opacity: 1; transform: scale(1); }

  /* TOAST */
  .toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--dark); color: white; padding: 12px 24px; border-radius: 100px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 400; white-space: nowrap; }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* CART PAGE */
  .cart-page {
    position: fixed; inset: 0; background: #f5f0e8;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .cart-page.open { transform: translateX(0); }

  .cart-page-header {
    background: var(--dark);
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
  }
  .cart-back-btn {
    background: rgba(255,255,255,0.1); border: none; color: white;
    width: 38px; height: 38px; border-radius: 10px; font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s;
  }
  .cart-back-btn:hover { background: rgba(255,255,255,0.2); }
  .cart-page-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--yellow); letter-spacing: 2px; }

  .cart-page-body {
    flex: 1; overflow-y: auto;
    padding: 24px 20px;
    max-width: 480px; width: 100%; margin: 0 auto;
    display: flex; flex-direction: column; gap: 16px;
  }

  .cart-item-card {
    background: var(--card); border-radius: 14px; border: 1.5px solid var(--border);
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex; align-items: stretch;
  }
  .cart-item-visual {
    width: 110px; flex-shrink: 0;
    background: #fdf8ee;
    display: flex; align-items: center; justify-content: center;
    padding: 16px 10px; border-right: 1.5px solid var(--border);
  }
  .cart-burger-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .cb-bun-top { width: 64px; height: 20px; background: linear-gradient(180deg, #e8a020 0%, #f5c050 60%); border-radius: 40px 40px 4px 4px; border-bottom: 2px solid #c8881a; }
  .cb-bun-top.lettuce { background: linear-gradient(180deg, #5a9a40, #7ac055); border-bottom-color: #4a8030; }
  .cb-patty { width: 60px; height: 8px; background: #6b3a1f; border-radius: 3px; border-top: 1.5px solid #8b5030; }
  .cb-patty.impossible { background: #4a7040; }
  .cb-patty.chicken { background: #c8901a; }
  .cb-cheese { width: 64px; height: 4px; background: #f0c020; border-radius: 1px; display: none; }
  .cb-cheese.visible { display: block; }
  .cb-toppings { width: 60px; height: 5px; background: #e8d060; border-radius: 3px; display: none; }
  .cb-toppings.visible { display: block; }
  .cb-bun-bottom { width: 64px; height: 12px; background: linear-gradient(0deg, #e8a020, #f5c050); border-radius: 4px 4px 40px 40px; border-top: 2px solid #c8881a; }

  .cart-item-info { flex: 1; padding: 14px 14px 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }
  .cart-item-name { font-weight: 600; font-size: 14px; color: var(--text); }
  .cart-item-cal { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .cart-item-toppings { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
  .cart-item-price { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--text); letter-spacing: 0.5px; margin-top: 8px; }

  .cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
  .cart-empty-icon { font-size: 48px; margin-bottom: 12px; }
  .cart-empty-text { font-size: 16px; font-weight: 600; }
  .cart-empty-sub { font-size: 13px; margin-top: 4px; }

  .cart-total-row { background: var(--card); border-radius: 14px; border: 1.5px solid var(--border); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
  .cart-total-label { font-weight: 700; font-size: 16px; }
  .cart-total-val { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; }

  .cart-page-footer {
    padding: 16px 20px 28px;
    max-width: 480px; width: 100%; margin: 0 auto;
    display: flex; flex-direction: column; gap: 10px;
  }
  .pickup-delivery-label { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
  .fulfillment-btn { width: 100%; padding: 16px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 16px; cursor: pointer; border: none; transition: all 0.15s; }
  .fulfillment-btn.pickup { background: var(--red); color: white; }
  .fulfillment-btn.pickup:hover { background: #c02018; transform: translateY(-1px); }
  .fulfillment-btn.delivery { background: #6b7280; color: white; }
  .fulfillment-btn.delivery:hover { background: #4b5563; transform: translateY(-1px); }

  /* NAV TABLE */
  .nav-link { text-decoration: none; color: #C20830; }
  .nav-link:hover { text-decoration: underline; }