*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #e8b86d;
  --accent2: #c8832a;
  --text: #ffffff;
  --text2: rgba(255,255,255,0.65);
  --card-bg: rgba(10,10,10,0.78);
  --card-border: rgba(255,255,255,0.1);
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 14px;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  min-height: 100vh;
  background: #111;
  background-image: url('../bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-bottom: 100px;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 0;
  pointer-events: none;
}

header, nav, main, footer,
.cart-bar, .cart-backdrop, .cart-drawer, .order-success {
  position: relative;
  z-index: 1;
}

/* HEADER */
.header {
  text-align: center;
  padding: 28px 20px 16px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 200;
  position: relative;
}
.restaurant-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}
.restaurant-sub { font-size: 12px; color: var(--text2); margin-bottom: 14px; }
.lang-bar { display: flex; justify-content: center; gap: 8px; }
.lang-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.15s;
}
.lang-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }




.cat-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.cat-btn.active { background: rgba(232,184,109,0.2); color: var(--accent); font-weight: 600; border-color: rgba(232,184,109,0.4); }
.cat-btn:hover { background: rgba(232,184,109,0.15); color: var(--accent); }

/* MENU */
.menu { padding: 0 16px; max-width: 900px; margin: 0 auto; }
.category-section { padding: 28px 0 8px; }
.category-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--card-border);
}

/* DISH CARDS */
.dishes { display: flex; flex-direction: column; gap: 14px; }

.dish-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.dish-card:hover { transform: translateY(-2px); border-color: rgba(232,184,109,0.3); }

.dish-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.dish-body { padding: 16px 18px 18px; }
.dish-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.dish-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.dish-price { font-size: 17px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.dish-desc { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }

.allergens { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.allergen {
  font-size: 15px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 3px 8px;
}

/* ADD BUTTON & QTY */
.dish-actions { display: flex; align-items: center; gap: 10px; }
.add-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.add-btn:hover { background: var(--accent2); }
.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 6px 14px;
}
.qty-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 20px;
  text-align: center;
}
.qty-num { font-size: 15px; font-weight: 600; min-width: 16px; text-align: center; }

/* FLOATING CART BAR */
.cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  border-radius: 100px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 260px;
  max-width: 500px;
  width: 90%;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}
.cart-bar:hover { background: var(--accent2); }
.cart-bar-left { display: flex; align-items: center; gap: 10px; }
.cart-bar-count {
  background: #000;
  color: var(--accent);
  border-radius: 100px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.cart-bar-total { font-weight: 700; }

/* CART BACKDROP */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  display: none;
}
.cart-backdrop.open { display: block; }

/* CART DRAWER */
.cart-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #111;
  border-top: 1px solid var(--card-border);
  border-radius: 20px 20px 0 0;
  z-index: 400;
  padding: 20px 20px 40px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cart-drawer.open { transform: translateY(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-header h3 { font-family: var(--font-display); font-size: 20px; }
.cart-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}
.cart-table-info {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}
.cart-items { margin-bottom: 20px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}
.cart-item-name { flex: 1; }
.cart-item-qty { color: var(--text2); margin: 0 12px; }
.cart-item-price { font-weight: 600; color: var(--accent); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 16px;
  margin-left: 10px;
}
.cart-footer { border-top: 1px solid var(--card-border); padding-top: 16px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.place-order-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.place-order-btn:hover { background: var(--accent2); }

/* ORDER SUCCESS */
.order-success {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.success-box {
  background: #111;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}
.success-icon {
  width: 60px; height: 60px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-box h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.success-box p { color: var(--text2); font-size: 14px; margin-bottom: 24px; }
.success-box button {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  cursor: pointer;
}

/* FOOTER */
.menu-footer { text-align: center; padding: 32px 20px 20px; font-size: 13px; color: var(--text2); }
.powered-by { margin-top: 6px; font-size: 12px; }
.powered-by a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* DESKTOP */
@media (min-width: 600px) {
  .dishes { display: grid; grid-template-columns: repeat(2, 1fr); }
  .dish-img { height: 220px; }
  .restaurant-name { font-size: 32px; }
}

@media (min-width: 900px) {
  .dishes { grid-template-columns: repeat(3, 1fr); }
  .dish-img { height: 200px; }
  .menu { padding: 0 24px; }
  .cart-drawer { max-width: 480px; left: auto; right: 20px; border-radius: 20px; bottom: 20px; }
}