/* ==========================================================================
   ON WAY – Coffee & More (Assiut) | Production Design System (120Hz Ready)
   Authentic Menu Palette: Espresso #5c4034 · Warm Menu Sand #d8c7b9 · Cream #f7f1ea
   ========================================================================== */
:root {
  --bg: #f6efe8;
  --bg-elev: #ffffff;
  --bg-soft: #ede1d5;
  --menu-sand: #d8c7b9;
  --brand: #5c4034;
  --brand-deep: #3d281f;
  --brand-light: #855e4c;
  --accent: #c4833e;
  --accent-soft: rgba(196, 131, 62, 0.14);
  --text: #2a1c15;
  --text-muted: #6e594f;
  --border: rgba(92, 64, 52, 0.14);
  --shadow-sm: 0 4px 14px rgba(61, 40, 31, 0.06);
  --shadow-md: 0 12px 30px rgba(61, 40, 31, 0.11);
  --shadow-lg: 0 22px 54px rgba(42, 28, 21, 0.18);
  --glass: rgba(246, 239, 232, 0.84);
  --success: #1f8a5b;
  --warning: #d4831a;
  --danger: #c63939;
  --info: #2563eb;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #140f0c;
  --bg-elev: #1e1612;
  --bg-soft: #291e18;
  --menu-sand: #36271f;
  --brand: #e3b786;
  --brand-deep: #f5dec2;
  --brand-light: #c48c55;
  --accent: #e09c4f;
  --accent-soft: rgba(224, 156, 79, 0.16);
  --text: #f6efe8;
  --text-muted: #b8a395;
  --border: rgba(227, 183, 134, 0.14);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.44);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.62);
  --glass: rgba(20, 15, 12, 0.84);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background-color 0.28s var(--ease-fast), color 0.28s var(--ease-fast);
  min-height: 100vh;
}

/* Custom subtle scrollbars */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(92, 64, 52, 0.26); border-radius: 99px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(227, 183, 134, 0.24); }

/* 120Hz GPU Hint */
.gpu { transform: translateZ(0); will-change: transform, opacity; }

/* Promo Top Strip */
.promo-bar {
  background: linear-gradient(90deg, #4b3228, #6b4939, #4b3228);
  color: #f9f2eb;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.1px;
  position: relative;
  z-index: 60;
}
.promo-bar.closed-alert {
  background: linear-gradient(90deg, #991b1b, #b91c1c, #991b1b);
}

/* Sticky Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease-fast);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand-logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 5px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring);
}
.brand-lockup:hover .brand-logo-wrap { transform: scale(1.05) rotate(-2deg); }
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-for-dark { display: none; }
[data-theme="dark"] .logo-for-light { display: none; }
[data-theme="dark"] .logo-for-dark { display: block; }

.brand-meta h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--brand-deep);
  line-height: 1.1;
}
.brand-meta span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--brand); }
.icon-btn:active { transform: scale(0.95); }

.btn-primary {
  background: linear-gradient(135deg, #5c4034, #7c5645);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(92, 64, 52, 0.28);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-fast), filter 0.2s;
}
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #d6a268, #b57c42);
  color: #1b120d;
  box-shadow: 0 8px 22px rgba(214, 162, 104, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s;
}
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--brand); }

/* Hero Section */
.hero {
  max-width: 1220px;
  margin: 18px auto 12px;
  padding: 0 18px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 14% 20%, rgba(196, 131, 62, 0.24), transparent 52%),
              radial-gradient(circle at 86% 85%, rgba(92, 64, 52, 0.22), transparent 55%),
              linear-gradient(135deg, #3c261d 0%, #5c4034 55%, #785341 100%);
  color: #fdf8f3;
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 24px;
}
[data-theme="dark"] .hero-card {
  background: radial-gradient(circle at 14% 20%, rgba(224, 156, 79, 0.22), transparent 52%),
              linear-gradient(135deg, #1d1410 0%, #34231b 55%, #4a3124 100%);
  border: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}
.status-dot.closed {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.28);
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.18;
}
.hero-sub {
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(253, 248, 243, 0.88);
  max-width: 540px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}
.hero-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero-logo-orb {
  width: 190px;
  height: 190px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  animation: floatSlow 5.5s ease-in-out infinite;
}
.hero-logo-orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}
.hero-slogan-en {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 242, 229, 0.82);
}

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

/* Search + Sticky Categories Bar */
.controls-bar {
  position: sticky;
  top: 71px;
  z-index: 40;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 10px;
}
.controls-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
}
.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.search-box {
  flex: 1;
  position: relative;
}
.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-box .search-ico {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
}

.filter-popular-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease-spring);
}
.filter-popular-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
[data-theme="dark"] .filter-popular-btn.active { color: #19110c; }

.cat-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-pill {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 99px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.cat-pill:hover { transform: translateY(-1px); border-color: var(--brand); }
.cat-pill.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 6px 14px rgba(92, 64, 52, 0.24);
}
[data-theme="dark"] .cat-pill.active { color: #18100b; }

/* Main Menu Container */
.menu-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 18px 120px;
}

.cat-section {
  margin-bottom: 36px;
  scroll-margin-top: 195px;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.cat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.cat-title-wrap { display: flex; align-items: center; gap: 10px; }
.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--menu-sand);
  display: grid;
  place-items: center;
  font-size: 21px;
  box-shadow: var(--shadow-sm);
}
.cat-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  color: var(--brand-deep);
  line-height: 1.15;
}
.cat-header .cat-en {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.cat-slogan {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  max-width: 520px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

/* Drink Card */
.drink-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--ease-spring), box-shadow 0.26s var(--ease-fast), border-color 0.2s;
  overflow: hidden;
}
.drink-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 131, 62, 0.45);
}
.drink-card.sold-out {
  opacity: 0.56;
  filter: grayscale(0.45);
}

.drink-media {
  position: relative;
  aspect-ratio: 380 / 320;
  width: 100%;
  border-radius: 14px;
  background: var(--menu-sand);
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
}
.drink-media img.drink-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform 0.36s var(--ease-spring);
}
.drink-card:hover .drink-media img.drink-real-photo {
  transform: scale(1.06) translateZ(0);
}

.badge-pop {
  position: absolute;
  top: 9px;
  right: 9px;
  background: linear-gradient(135deg, #c4833e, #a56422);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(165, 100, 34, 0.35);
}
.badge-soldout {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 12, 0.52);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  backdrop-filter: blur(2px);
}

.drink-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.drink-name-ar {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.drink-name-en {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.drink-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.mini-tag {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--brand-deep);
  padding: 2px 8px;
  border-radius: 8px;
}

.drink-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.price-tag {
  font-size: 17px;
  font-weight: 900;
  color: var(--brand);
}
.price-tag small { font-size: 11.5px; font-weight: 700; opacity: 0.8; }

.add-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.2s var(--ease-spring), filter 0.2s;
}
[data-theme="dark"] .add-btn { color: #19110c; }
.add-btn:hover { transform: scale(1.04); filter: brightness(1.08); }
.add-btn:active { transform: scale(0.94); }
.add-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Floating Cart Bar */
.floating-cart {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translate3d(-50%, 120px, 0);
  width: min(560px, calc(100% - 28px));
  background: linear-gradient(135deg, #3d281f, #5c4034);
  color: #fff;
  border-radius: 20px;
  padding: 13px 18px;
  box-shadow: 0 18px 44px rgba(32, 19, 13, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  z-index: 70;
  transition: transform 0.36s var(--ease-spring);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .floating-cart {
  background: linear-gradient(135deg, #d6a268, #b3783b);
  color: #19100b;
}
.floating-cart.visible { transform: translate3d(-50%, 0, 0); }
.fc-left { display: flex; align-items: center; gap: 11px; }
.fc-badge {
  min-width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}
[data-theme="dark"] .fc-badge { background: rgba(25, 16, 11, 0.16); }
.fc-title { font-size: 15px; font-weight: 800; }
.fc-sub { font-size: 12px; opacity: 0.85; }
.fc-price { font-size: 17px; font-weight: 900; }

/* Modals & Drawers */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.62);
  backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease-fast);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -44%, 0) scale(0.95);
  width: min(540px, calc(100% - 24px));
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-spring), opacity 0.22s var(--ease-fast);
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(460px, 100%);
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translate3d(-105%, 0, 0);
  transition: transform 0.34s var(--ease-spring);
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translate3d(0, 0, 0); }

.drawer-head, .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.drawer-head { padding: 18px 20px 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.close-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Form Elements */
.field-group { margin-bottom: 12px; }
.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-muted);
}
.input, select.input, textarea.input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Option Chips inside Customization Modal */
.opt-section { margin: 14px 0; }
.opt-title { font-size: 13.5px; font-weight: 800; margin-bottom: 8px; color: var(--brand-deep); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}
.chip.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
[data-theme="dark"] .chip.selected { color: #19100b; }

/* Cart Mode Toggle & Min-order Progress */
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-soft);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 9px 10px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.mode-btn.active {
  background: var(--bg-elev);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}

.min-order-box {
  background: var(--bg-soft);
  border-radius: 13px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
}
.progress-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(92, 64, 52, 0.15);
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c4833e, #1f8a5b);
  border-radius: 99px;
  transition: width 0.3s var(--ease-spring);
}

.cart-item-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 3px;
}
.qty-ctrl button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.summary-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0;
}
.sum-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 5px;
}
.sum-line.total {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--brand);
  padding-top: 7px;
  margin-top: 7px;
  border-top: 1px dashed var(--border);
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 34px 18px 92px;
  text-align: center;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo { height: 64px; object-fit: contain; }
.footer-meta { font-size: 13.5px; color: var(--text-muted); font-weight: 600; }
.manager-stealth-link {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.65;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.manager-stealth-link:hover {
  opacity: 1;
  border-color: var(--border);
  background: var(--bg-soft);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate3d(-50%, -90px, 0);
  background: #231812;
  color: #fff;
  padding: 11px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-spring);
  pointer-events: none;
}
.toast.show { transform: translate3d(-50%, 0, 0); }

/* ================= MANAGER DASHBOARD STYLES ================= */
.mgr-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 20% 20%, rgba(196, 131, 62, 0.18), transparent 45%),
              var(--bg);
}
.login-card {
  width: min(430px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card img { height: 84px; margin: 0 auto 14px; }

.mgr-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  background: var(--bg-soft);
  border-radius: 16px;
  margin-bottom: 20px;
}
.mgr-tab {
  flex: 1 0 auto;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 11px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s var(--ease-spring);
}
.mgr-tab.active {
  background: var(--bg-elev);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.kpi-val { font-size: 28px; font-weight: 900; color: var(--brand-deep); margin: 4px 0; }
.kpi-sub { font-size: 12px; font-weight: 700; color: var(--success); }

.panel-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.panel-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}
.st-new { background: rgba(37, 99, 235, 0.14); color: #2563eb; }
.st-prep { background: rgba(212, 131, 26, 0.16); color: #b45309; }
.st-out { background: rgba(147, 51, 234, 0.14); color: #7e22ce; }
.st-done { background: rgba(31, 138, 91, 0.15); color: #15803d; }
.st-cancel { background: rgba(198, 57, 57, 0.15); color: #b91c1c; }

.order-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 12px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th, .data-table td {
  text-align: right;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-soft);
}
.table-scroll { overflow-x: auto; }

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; }
  .hero-pills { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-logo-orb { width: 148px; height: 148px; }
  .panel-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .drink-card { padding: 10px; }
  .drink-name-ar { font-size: 14px; }
  .price-tag { font-size: 15px; }
  .add-btn { padding: 7px 10px; font-size: 12px; }
  .header-inner { padding: 8px 12px; }
  .brand-meta h1 { font-size: 15.5px; }
}
