/* ==========================================================================
   HOTEL ANARK A1 — MENU STYLESHEET
   Supports Dual Themes:
     1. [data-theme="neo-brutalism"] (Bold retro-pop, thick borders, punchy shadows)
     2. [data-theme="premium"] (Royal Navy & Gold dining, glassmorphism, Playfair Display)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES / DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root,
body[data-theme="neo-brutalism"] {
  --bg: #FFF7E6;
  --surface: #FFFFFF;
  --surface-alt: #F4EAD4;
  --surface-muted: #EBE1CB;
  --text: #000000;
  --text-muted: #555555;
  --text-dim: #777777;
  --primary: #FF4E00; /* Vibrant Orange/Red */
  --secondary: #00D084; /* Punchy Veg Green */
  --accent-yellow: #FFD500;
  --border-color: #000000;
  --border-width: 3px;
  --shadow: 4px 4px 0px var(--border-color);
  --shadow-sm: 2px 2px 0px var(--border-color);
  --shadow-hover: 6px 6px 0px var(--border-color);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-full: 999px;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --header-bg: #FFD500;
  --header-border: 3px solid #000000;
  --veg-color: #00D084;
  --nonveg-color: #FF4E00;
  --drawer-bg: #FFFDF8;
  --drawer-footer-bg: #EAE3D2;
}

body[data-theme="premium"] {
  --bg: #07122a;
  --surface: #0b1a3d;
  --surface-alt: rgba(255, 255, 255, 0.045);
  --surface-muted: #061126;
  --text: #FFF8EE;
  --text-muted: #AEBBD8;
  --text-dim: #7C8BAA;
  --primary: #D4AF37; /* Royal Gold */
  --secondary: #53D39A; /* Emerald Veg */
  --accent-yellow: #F1D58A;
  --border-color: rgba(212, 175, 55, 0.28);
  --border-width: 1px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 35px rgba(212, 175, 55, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --header-bg: rgba(7, 18, 42, 0.92);
  --header-border: 1px solid rgba(212, 175, 55, 0.22);
  --veg-color: #53D39A;
  --nonveg-color: #EF6B72;
  --drawer-bg: linear-gradient(180deg, #0b1b3e 0%, #061026 100%);
  --drawer-footer-bg: rgba(4, 11, 26, 0.95);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-theme="premium"] {
  background:
    radial-gradient(circle at 10% 8%, rgba(35, 91, 190, 0.32), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(217, 174, 85, 0.12), transparent 26%),
    #07122a;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   3. STICKY HEADER & THEME SWITCHER
   -------------------------------------------------------------------------- */
.menu-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  border-bottom: var(--header-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.menu-header__back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.3px;
  transition: transform 0.2s, color 0.2s;
}

body[data-theme="premium"] .menu-header__back {
  font-family: var(--font-heading);
  color: var(--accent-yellow);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
}

.menu-header__back:hover {
  transform: translateX(-2px);
}

.menu-header__title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

body[data-theme="premium"] .menu-header__title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: none;
}

.menu-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Dropdown Wrap */
.theme-dropdown-wrap {
  position: relative;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

body[data-theme="premium"] .theme-btn {
  font-weight: 600;
  text-transform: none;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-yellow);
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-btn:hover {
  transform: translateY(-1px);
}

.theme-btn:active {
  transform: translate(2px, 2px);
}

.theme-btn__arrow {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.theme-dropdown-wrap.open .theme-btn__arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu Popover */
.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
  animation: fadeInMenu 0.18s ease forwards;
}

.theme-dropdown-wrap.open .theme-menu {
  display: flex;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.theme-menu__title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 10px 4px;
  color: var(--text-muted);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  color: var(--text);
  border: 1px solid transparent;
}

.theme-option:hover {
  background: var(--surface-alt);
}

body[data-theme="premium"] .theme-menu {
  background: #0b1a3d;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

body[data-theme="premium"] .theme-option:hover {
  background: rgba(212, 175, 55, 0.12);
}

.theme-option.active {
  background: var(--surface-alt);
  border-color: var(--border-color);
}

body[data-theme="premium"] .theme-option.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.4);
}

.theme-option__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.neo-dot {
  background: #FFD500;
  border: 2px solid #000;
}

.premium-dot {
  background: #D4AF37;
  box-shadow: 0 0 8px #D4AF37;
}

.theme-option__info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.theme-option__name {
  font-size: 0.92rem;
  font-weight: 700;
}

.theme-option__desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.theme-option__check {
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
}

/* Cart Button & Badge */
.menu-header__cart-btn {
  position: relative;
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1.2rem;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
  color: var(--text);
}

body[data-theme="premium"] .menu-header__cart-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-header__cart-btn:hover {
  transform: translateY(-1px);
}

.menu-header__cart-btn:active {
  transform: translate(2px, 2px);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: var(--border-width) solid var(--border-color);
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-theme="premium"] .cart-badge {
  background: #C15C3D;
  border: 1px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cart-badge.show {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   4. VEG / NON-VEG TOGGLE
   -------------------------------------------------------------------------- */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 5vw;
  position: sticky;
  top: 68px;
  z-index: 90;
  background: var(--bg);
  border-bottom: var(--border-width) solid var(--border-color);
  transition: background 0.3s;
}

body[data-theme="premium"] .toggle-wrapper {
  background: rgba(7, 18, 42, 0.88);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toggle-label {
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  transition: opacity 0.25s, color 0.25s;
}

body[data-theme="premium"] .toggle-label {
  font-family: var(--font-heading);
  text-transform: none;
  font-size: 1.15rem;
}

.toggle-label.active-veg { color: var(--veg-color); }
.toggle-label.active-nonveg { color: var(--nonveg-color); }
.toggle-label.inactive { opacity: 0.35; }

.toggle-switch {
  position: relative;
  width: 62px;
  height: 32px;
  cursor: pointer;
  border: var(--border-width) solid var(--border-color);
  border-radius: 50px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

body[data-theme="premium"] .toggle-switch {
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(2, 13, 39, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  transition: all 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 4px;
  background: var(--veg-color);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-theme="premium"] .toggle-slider::before {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(28px);
  background: var(--nonveg-color);
}

/* --------------------------------------------------------------------------
   4b. SEARCH BOX
   -------------------------------------------------------------------------- */
.search-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 5vw 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}

body[data-theme="premium"] .search-box {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

body[data-theme="premium"] .search-box:focus-within {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12), 0 6px 22px rgba(0, 0, 0, 0.35);
}

.search-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 4px 0;
  min-width: 0;
}

body[data-theme="premium"] .search-input {
  color: #fff;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.search-clear {
  background: var(--surface-alt);
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

body[data-theme="premium"] .search-clear {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-yellow);
}

.search-clear:hover {
  transform: scale(1.1);
  background: var(--primary);
  color: #fff;
}

.search-no-results {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.search-no-results strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
}

body[data-theme="premium"] .search-no-results strong {
  color: var(--accent-yellow);
}

.search-highlight {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 3px;
  padding: 0 2px;
}

body[data-theme="neo-brutalism"] .search-highlight {
  background: #FFD50055;
}

/* --------------------------------------------------------------------------
   5. MENU CONTAINER & ACCORDIONS
   -------------------------------------------------------------------------- */
.menu-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 5vw 120px;
}

.accordion-category {
  margin-bottom: 20px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

body[data-theme="premium"] .accordion-category {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: #E8E8E8;
  border-bottom: var(--border-width) solid var(--border-color);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s;
}

body[data-theme="premium"] .accordion-header {
  background: linear-gradient(135deg, rgba(217, 174, 85, 0.15), rgba(11, 45, 120, 0.35));
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: none;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--accent-yellow);
}

.accordion-header:hover {
  background: #D8D8D8;
}

body[data-theme="premium"] .accordion-header:hover {
  background: linear-gradient(135deg, rgba(217, 174, 85, 0.22), rgba(18, 63, 154, 0.45));
}

.accordion-category:not(.open) .accordion-header {
  border-bottom: none;
}

.accordion-icon {
  font-size: 1rem;
  transition: transform 0.3s;
  color: inherit;
}

.accordion-category.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-category.open .accordion-body {
  max-height: 6000px;
}

/* --------------------------------------------------------------------------
   6. DISH CARDS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
.dish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: var(--border-width) solid var(--border-color);
  background: var(--surface);
  transition: background 0.2s ease;
}

body[data-theme="premium"] .dish-card {
  background: transparent;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.dish-card:last-child {
  border-bottom: none;
}

body[data-theme="premium"] .dish-card:hover {
  background: rgba(212, 175, 55, 0.04);
}

.dish-info {
  flex: 1;
  padding-right: 18px;
}

.dish-name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}

.dish-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.35;
}

body[data-theme="premium"] .dish-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

/* Veg / Non-Veg Badge */
.veg-badge,
.nonveg-badge {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border-width: 2px;
  border-style: solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.veg-badge {
  border-color: var(--veg-color);
}
.veg-badge::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--veg-color);
}

.nonveg-badge {
  border-color: var(--nonveg-color);
}
.nonveg-badge::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--nonveg-color);
}

.dish-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.dish-price {
  font-weight: 800;
  font-size: 1.15rem;
  margin-right: 16px;
  white-space: nowrap;
}

body[data-theme="premium"] .dish-price {
  font-family: var(--font-heading);
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Add Button (+) */
.fab-add {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}

body[data-theme="premium"] .fab-add {
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  color: var(--accent-yellow);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.fab-add:hover {
  transform: scale(1.08);
}

body[data-theme="premium"] .fab-add:hover {
  background: linear-gradient(135deg, #F1D58A, #D4AF37);
  color: #071a4a;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.fab-add:active {
  transform: scale(0.96);
}

/* Quantity Controls */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border-color);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

body[data-theme="premium"] .qty-btn {
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.qty-btn:hover {
  background: var(--surface-alt);
}

body[data-theme="premium"] .qty-btn:hover {
  background: var(--primary);
  color: #071a4a;
}

.qty-count {
  font-weight: 800;
  font-size: 1.05rem;
  min-width: 24px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   7. REDESIGNED CART DRAWER (GENEROUS SPACING & NO SLIT-SQUEEZE)
   -------------------------------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Base Drawer Layout */
.cart-drawer {
  position: fixed;
  z-index: 201;
  background: var(--drawer-bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  color: var(--text);
}

/* Desktop & Tablet: Right Flyout Panel (Full 100vh height, 470px wide) */
@media (min-width: 768px) {
  .cart-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    border-left: var(--border-width) solid var(--border-color);
    border-top: none;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body[data-theme="premium"] .cart-drawer {
    border-left: 1px solid rgba(212, 175, 55, 0.35);
  }

  .cart-overlay.open + .cart-drawer,
  .cart-drawer.open {
    transform: translateX(0);
  }
}

/* Mobile: Bottom Sheet with High 92vh Coverage */
@media (max-width: 767px) {
  .cart-drawer {
    bottom: 0;
    left: 0;
    right: 0;
    height: 92vh;
    max-height: 92vh;
    border-top: var(--border-width) solid var(--border-color);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body[data-theme="premium"] .cart-drawer {
    border-top: 1px solid rgba(212, 175, 55, 0.35);
  }

  .cart-overlay.open + .cart-drawer,
  .cart-drawer.open {
    transform: translateY(0);
  }
}

/* Cart Header */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--header-bg);
  border-bottom: var(--border-width) solid var(--border-color);
  flex-shrink: 0;
}

body[data-theme="premium"] .cart-drawer__header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.cart-drawer__header-title h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-theme="premium"] .cart-drawer__header-title h3 {
  font-family: var(--font-heading);
  text-transform: none;
  color: var(--accent-yellow);
}

.cart-drawer__item-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-close {
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform 0.15s, background 0.15s;
}

body[data-theme="premium"] .cart-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--accent-yellow);
}

.cart-close:hover {
  transform: scale(1.06);
}

/* Cart Body (Unified Smooth Scroll Container) */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

body[data-theme="premium"] .cart-section-title {
  color: var(--accent-yellow);
  font-family: var(--font-heading);
  text-transform: none;
  font-size: 1rem;
}

/* Cart Items Section */
.cart-drawer__items-section {
  display: flex;
  flex-direction: column;
}

.cart-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body[data-theme="premium"] .cart-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.98rem;
  flex: 1;
  line-height: 1.35;
}

.cart-item-qty {
  font-weight: 800;
  background: var(--surface-alt);
  padding: 4px 10px;
  border: var(--border-width) solid var(--border-color);
  border-radius: 6px;
  margin: 0 14px;
  font-size: 0.9rem;
}

body[data-theme="premium"] .cart-item-qty {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-yellow);
}

.cart-item-price {
  font-weight: 800;
  font-size: 1.05rem;
}

body[data-theme="premium"] .cart-item-price {
  font-family: var(--font-heading);
  color: var(--accent-yellow);
}

.cart-empty-msg {
  text-align: center;
  padding: 40px 16px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Customer Details Form in Cart */
.cart-form {
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

body[data-theme="premium"] .cart-form {
  border-top: 1px dashed rgba(212, 175, 55, 0.28);
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-field {
  flex: 1;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--text);
}

body[data-theme="premium"] .form-field label {
  color: var(--text-muted);
}

.field-opt {
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
}

.form-field input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.2s;
}

body[data-theme="premium"] .form-field input {
  background: rgba(2, 13, 39, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: none;
  color: #fff;
}

.form-field input:focus {
  outline: none;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--border-color);
}

body[data-theme="premium"] .form-field input:focus {
  transform: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-error {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.76rem;
  margin-top: 4px;
  display: none;
}

body[data-theme="premium"] .form-error {
  color: #EF6B72;
}

.form-error.show {
  display: block;
}

/* Cart Footer */
.cart-drawer__footer {
  padding: 20px 24px;
  background: var(--drawer-footer-bg);
  border-top: var(--border-width) solid var(--border-color);
  flex-shrink: 0;
}

body[data-theme="premium"] .cart-drawer__footer {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-theme="premium"] .cart-total {
  font-family: var(--font-heading);
  text-transform: none;
  font-size: 1.4rem;
}

.cart-total span:last-child {
  background: var(--accent-yellow);
  color: #000;
  padding: 4px 14px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

body[data-theme="premium"] .cart-total span:last-child {
  background: linear-gradient(135deg, var(--gold-light), var(--primary));
  color: #071a4a;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.cart-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: #25D366;
  color: #000;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}

body[data-theme="premium"] .cart-whatsapp-btn {
  border: none;
  color: #fff;
  background: #00994f;
  box-shadow: 0 8px 25px rgba(0, 153, 79, 0.35);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cart-whatsapp-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--border-color);
}

body[data-theme="premium"] .cart-whatsapp-btn:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.menu-footer {
  border-top: var(--border-width) solid var(--border-color);
  background: var(--surface);
  padding: 28px 5vw;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

body[data-theme="premium"] .menu-footer {
  background: rgba(4, 11, 26, 0.85);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  color: var(--text-muted);
}

.menu-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[data-theme="premium"] .menu-footer a {
  color: var(--accent-yellow);
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .menu-header {
    padding: 12px 4vw;
  }
  .menu-header__title {
    display: none;
  }
  .theme-btn__text {
    display: none;
  }
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  .dish-card {
    padding: 16px 18px;
  }
  .dish-name {
    font-size: 0.98rem;
  }
}

/* --------------------------------------------------------------------------
   10. FLOATING VIEW CART BAR (Swiggy/Zomato Style)
   -------------------------------------------------------------------------- */
.floating-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5vw;
  background: var(--primary);
  color: #000;
  font-weight: 800;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              visibility 0.3s ease;
}

.floating-cart-bar.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Neo-Brutalism theme */
body[data-theme="neo-brutalism"] .floating-cart-bar {
  background: #FFD500;
  border-top: 3px solid #000;
  box-shadow: 0 -4px 0px #000;
}

/* Premium theme */
body[data-theme="premium"] .floating-cart-bar {
  background: linear-gradient(135deg, #1a3a7a 0%, #0d2254 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.floating-cart-bar__info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.floating-cart-bar__count {
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body[data-theme="premium"] .floating-cart-bar__count {
  font-family: var(--font-heading);
  text-transform: none;
  color: #fff;
  font-size: 1rem;
}

.floating-cart-bar__divider {
  opacity: 0.4;
  font-weight: 300;
}

.floating-cart-bar__total {
  font-weight: 800;
  font-size: 1.15rem;
}

body[data-theme="premium"] .floating-cart-bar__total {
  font-family: var(--font-heading);
  color: var(--accent-yellow);
  font-size: 1.2rem;
}

.floating-cart-bar__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #000;
  color: #FFD500;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 2px solid #000;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.03em;
}

body[data-theme="premium"] .floating-cart-bar__btn {
  background: linear-gradient(135deg, #F1D58A, #D4AF37);
  color: #071a4a;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  text-transform: none;
  font-family: var(--font-heading);
  font-weight: 700;
}

.floating-cart-bar__btn:hover {
  transform: scale(1.04);
}

body[data-theme="premium"] .floating-cart-bar__btn:hover {
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
}

.floating-cart-bar__btn:active {
  transform: scale(0.97);
}

.floating-cart-bar__arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.floating-cart-bar__btn:hover .floating-cart-bar__arrow {
  transform: translateX(3px);
}

/* Pulse animation on cart update */
@keyframes floatingCartPulse {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.015); }
  100% { transform: translateY(0) scale(1); }
}

.floating-cart-bar.pulse {
  animation: floatingCartPulse 0.35s ease;
}

/* Responsive: make it stack nicely on very small screens */
@media (max-width: 400px) {
  .floating-cart-bar {
    padding: 12px 4vw;
  }
  .floating-cart-bar__btn {
    padding: 9px 16px;
    font-size: 0.9rem;
  }
  .floating-cart-bar__count {
    font-size: 0.85rem;
  }
  .floating-cart-bar__total {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   11. DISH CARD TAP-TO-ADD ENHANCEMENT
   -------------------------------------------------------------------------- */
.dish-card {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dish-card:active {
  transform: scale(0.985);
}

body[data-theme="premium"] .dish-card:active {
  background: rgba(212, 175, 55, 0.08);
}

/* Added-to-cart flash animation */
@keyframes addFlash {
  0% { background: rgba(212, 175, 55, 0.2); }
  100% { background: transparent; }
}

body[data-theme="premium"] .dish-card.just-added {
  animation: addFlash 0.4s ease;
}

body[data-theme="neo-brutalism"] .dish-card.just-added {
  animation: addFlashNeo 0.4s ease;
}

@keyframes addFlashNeo {
  0% { background: rgba(255, 213, 0, 0.25); }
  100% { background: var(--surface); }
}
