:root {
  --charcoal: #1c1815;
  --charcoal-2: #262019;
  --ember: #c6362b;
  --ember-hot: #e8672f;
  --mustard: #d9a441;
  --cream: #f2eae0;
  --cream-dim: #cabfae;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'Karla', sans-serif;
  padding-bottom: 100px;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---- Top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--charcoal);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--ember), var(--mustard), var(--ember)) 1;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  max-width: 960px;
  margin: 0 auto;
}
.brand { font-size: 28px; color: var(--cream); }
.topbar__phone {
  color: var(--mustard);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* ---- Categories (yatay sekmeler) ---- */
.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 20px;
  max-width: 960px;
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories::-webkit-scrollbar { display: none; }
.category-pill {
  flex: none;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #3a332a;
  background: var(--charcoal-2);
  color: var(--cream-dim);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.category-pill.active {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--cream);
}

/* ---- Menu tablosu ---- */
.menu { max-width: 960px; margin: 0 auto; padding: 10px 20px 40px; }

.menu-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--charcoal-2);
  border: 1px solid #3a332a;
  border-radius: var(--radius);
  overflow: hidden;
}
.menu-table tr { cursor: pointer; transition: background 0.15s ease; }
.menu-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.menu-table tr:hover { background: rgba(198,54,43,0.12); }
.menu-table tr:not(:last-child) td { border-bottom: 1px solid #332c22; }
.menu-table td { padding: 14px 16px; vertical-align: middle; }
.menu-table__name { width: 100%; }
.menu-table__price {
  color: var(--mustard); font-weight: 700; white-space: nowrap; text-align: right;
}

.category-arrow {
  font-size: 18px; color: var(--mustard); transition: transform 0.2s ease;
}
.category-arrow.open { transform: rotate(90deg); }

.item-card__name { font-weight: 700; font-size: 16px; }
.item-card__desc { color: var(--cream-dim); font-size: 13px; margin-top: 2px; }

/* ---- Cart FAB ---- */
.cart-fab {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ember);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(198,54,43,0.4);
  cursor: pointer;
  z-index: 25;
  display: none;
}
.cart-fab.visible { display: block; }

/* ---- Cart drawer ---- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  z-index: 30;
}
.drawer-backdrop.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--charcoal-2);
  z-index: 31;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #3a332a;
}
.icon-btn {
  background: none; border: none; color: var(--cream);
  font-size: 18px; cursor: pointer;
}
.cart-drawer__items { padding: 10px 20px; flex: none; }
.cart-line {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #332c22; font-size: 14px;
}
.cart-line__meta { color: var(--cream-dim); font-size: 12px; }
.cart-line__remove { color: var(--ember-hot); background: none; border: none; cursor: pointer; font-size: 12px; }

.cart-drawer__checkout { padding: 16px 20px 30px; border-top: 1px solid #3a332a; }
.cart-drawer__checkout h3 { font-size: 18px; margin-bottom: 12px; color: var(--mustard); }

.order-type-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.order-type-btn {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #3a332a;
  background: var(--charcoal); color: var(--cream-dim); cursor: pointer; font-weight: 700;
}
.order-type-btn.active { background: var(--mustard); color: var(--charcoal); border-color: var(--mustard); }

.pickup-time-section { margin-bottom: 14px; }
.pickup-time-section .option-group__label { display: block; margin-bottom: 8px; }
.pickup-mode-btn {
  flex: 1; padding: 9px; border-radius: 10px; border: 1px solid #3a332a;
  background: var(--charcoal); color: var(--cream-dim); cursor: pointer; font-weight: 700; font-size: 13px;
}
.pickup-mode-btn.active { background: var(--ember); color: var(--cream); border-color: var(--ember); }
#pickupTimeField input[type="time"] {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px;
  border: 1px solid #3a332a; background: var(--charcoal); color: var(--cream); font-size: 14px;
}

.cart-drawer__checkout label {
  display: block; margin-bottom: 12px; font-size: 13px; color: var(--cream-dim);
}
.cart-drawer__checkout input,
.cart-drawer__checkout textarea {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px;
  border: 1px solid #3a332a; background: var(--charcoal); color: var(--cream);
  font-family: inherit; font-size: 14px; resize: vertical;
}
.payment-note { font-size: 12px; color: var(--cream-dim); margin: 10px 0; }

.place-order-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: var(--ember); color: var(--cream); font-weight: 700; font-size: 15px;
  cursor: pointer;
}
.place-order-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.error-msg { color: var(--ember-hot); font-size: 13px; margin-top: 10px; min-height: 16px; }

/* ---- Item modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 40;
}
.modal-backdrop.open { display: flex; }
.item-modal {
  background: var(--charcoal-2);
  width: min(480px, 100%);
  border-radius: 20px 20px 0 0;
  padding: 24px 22px 30px;
  max-height: 85vh;
  overflow-y: auto;
}
.item-modal h2 { font-size: 24px; color: var(--cream); }
.item-modal .desc { color: var(--cream-dim); font-size: 14px; margin: 6px 0 18px; }
.closed-modal { text-align: center; padding-bottom: 30px; }
.closed-modal h2 { margin-bottom: 10px; }
.option-group { margin-bottom: 16px; }
.option-group__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mustard); margin-bottom: 8px; display: block; }
.option-group__header {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; padding: 8px 0;
}
.option-group__header .option-group__label { margin-bottom: 0; }
.option-group__body { display: none; }
.option-group__body.open { display: block; margin-top: 4px; }
.option-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #332c22; font-size: 14px;
}
.item-modal textarea {
  width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #3a332a;
  background: var(--charcoal); color: var(--cream); font-family: inherit;
  font-size: 14px; resize: vertical;
}
.qty-control { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.qty-control button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3a332a;
  background: var(--charcoal); color: var(--cream); font-size: 18px; cursor: pointer;
}
.add-to-cart-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: var(--ember); color: var(--cream); font-weight: 700; font-size: 15px; cursor: pointer;
}

.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--mustard); color: var(--charcoal); padding: 10px 20px;
  border-radius: 999px; font-weight: 700; font-size: 13px;
  opacity: 0; transition: all 0.25s ease; z-index: 50; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
