@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #FF5A1F;
  --primary-hover: #E04810;
  --primary-light: #FFF0EB;
  --secondary: #1E293B;
  --accent: #F59E0B;
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border-light: #E2E8F0;
  --border-focus: #CBD5E1;
  --veg-color: #16A34A;
  --nonveg-color: #DC2626;
  --egg-color: #D97706;
  --success: #10B981;
  --danger: #EF4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-glow: 0 10px 25px -5px rgba(255, 90, 31, 0.4);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  padding-bottom: 230px;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Top Mobile Navigation Bar (Matches screenshot: Menu, Title, Search) */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.header-icon-btn {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.header-icon-btn:hover {
  background: #F1F5F9;
  border-color: var(--border-focus);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #1E293B;
  border-radius: 2px;
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #FF5A1F;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(255, 90, 31, 0.25);
  flex-shrink: 0;
}

.drawer-brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #FF5A1F;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 90, 31, 0.3);
}

.header-title-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.header-order-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.header-table-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  margin-top: 3px;
  cursor: pointer;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.badge-arrow {
  font-size: 9px;
  color: #DC2626;
}

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

/* Collapsible Search Bar */
.collapsible-search {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 0 14px;
}

.collapsible-search.open {
  max-height: 64px;
  padding: 10px 14px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  gap: 8px;
}

.search-input-wrap input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-primary);
  font-family: inherit;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
}

/* Dietary Strip */
.diet-strip {
  padding: 8px 12px 2px 12px;
  background: var(--bg-main);
}

/* Dietary Filters */
.diet-filters {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.diet-filters::-webkit-scrollbar {
  display: none;
}

.diet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.diet-btn:hover {
  border-color: var(--border-focus);
}

.diet-btn.active {
  background: var(--secondary);
  color: #FFFFFF;
  border-color: var(--secondary);
}

/* Veg / NonVeg / Egg Marks */
.fssai-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border-width: 1.5px;
  border-style: solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.fssai-icon.non-veg {
  border-color: var(--nonveg-color);
}
.fssai-icon.non-veg::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--nonveg-color);
}

.fssai-icon.egg {
  border-color: var(--egg-color);
}
.fssai-icon.egg::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--egg-color);
}

/* Sticky Category Pills Bar */
.category-nav {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-light);
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-pill:hover {
  color: var(--primary);
  border-color: #FFD2C0;
}

.cat-pill.active {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* Product Section */
.menu-container {
  padding: 12px 14px;
}

.category-block {
  margin-bottom: 24px;
}

.category-header {
  margin-bottom: 12px;
}

.category-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Constrain App Layout for Clean, Elegant Proportions on All Screens */
.topbar,
.search-wrapper,
.category-nav,
.diet-strip,
.menu-container {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* 3-Column Compact Grid on Mobile, Scaling Gracefully to 5-6 Compact Cards on Desktop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 520px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}
@media (min-width: 740px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}
@media (min-width: 940px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
}

/* Compact Product Card Box with Image on Top & Price Below (Reference Screenshot Match) */
.product-card-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 6px 6px 10px 6px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
  max-width: 160px;
  margin: 0 auto;
  width: 100%;
}

.product-card-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #E2E8F0;
}

.product-card-box:active {
  transform: scale(0.96);
}

.product-card-box.in-cart {
  border-color: #DC2626;
  background: #FFFDFD;
}

.box-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 140px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #17191F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-card-box:hover .box-img {
  transform: scale(1.05);
}

/* Dietary Dot on card box */
.box-diet-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  z-index: 2;
}

.box-diet-dot.veg { border-color: #16A34A; }
.box-diet-dot.veg::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16A34A;
}

.box-diet-dot.non-veg { border-color: #DC2626; }
.box-diet-dot.non-veg::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 6px solid #DC2626;
}

.box-diet-dot.egg { border-color: #D97706; }
.box-diet-dot.egg::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D97706;
}

/* In-cart count badge */
.box-cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
  padding: 0 4px;
  z-index: 2;
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.box-custom-tag {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.8);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Content below image */
.box-content {
  padding-top: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 2px;
  height: 30px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.box-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #DC2626;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #FED7AA;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.diet-and-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: #F1F5F9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #F1F5F9;
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

/* Action Add Button */
.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(255, 90, 31, 0.1);
}

.btn-add:hover {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(255, 90, 31, 0.25);
}

.btn-add.customizable::after {
  content: '▾';
  font-size: 11px;
}

/* Quantity Control */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(255, 90, 31, 0.3);
}

.qty-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 34px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

.qty-value {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* Floating Bottom Cart Bar (Fallback) */
.floating-cart-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 50;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 0, 0, 0.3);
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-bar-info {
  display: flex;
  flex-direction: column;
}

.cart-bar-count {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

.cart-bar-price {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
}

.cart-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.4);
}

.cart-bar-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

/* ========================================================
   DOCKED BOTTOM ORDER SUMMARY (Reference Screenshot Match)
   ======================================================== */
.order-summary-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.12);
  border-radius: 18px 18px 0 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 560px;
  margin: 0 auto;
}

/* Minimized summary bar */
.summary-collapsed-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
}

.summary-collapsed-bar.visible {
  display: flex;
}

.collapsed-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.collapsed-badge {
  background: #FEF2F2;
  color: #DC2626;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.collapsed-total {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  font-family: 'Outfit', sans-serif;
}

.collapsed-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collapsed-table-tag {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: #F8FAFC;
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-expand-summary {
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* Expanded Order Summary */
.summary-expanded-content {
  display: none;
  flex-direction: column;
}

.summary-expanded-content.visible {
  display: flex;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px 16px;
  border-bottom: 1px solid #F1F5F9;
}

.summary-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.summary-count-pill {
  background: #FEF2F2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

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

.btn-clear-order {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}

.btn-clear-order:hover {
  text-decoration: underline;
}

.btn-collapse-summary {
  background: #F1F5F9;
  border: none;
  color: #64748B;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Live Items List in Summary */
.summary-items-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}

.summary-item-left {
  flex: 1;
  min-width: 0;
}

.summary-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.summary-stepper {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.summary-stepper-btn {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  transition: background 0.15s;
}

.summary-stepper-btn:hover {
  background: #E2E8F0;
}

.summary-stepper-qty {
  min-width: 20px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
}

.summary-item-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  min-width: 60px;
  text-align: right;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
}

/* Divider & Total */
.summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px dashed #E2E8F0;
  background: #FAFAFA;
}

.total-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.total-amount {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  font-family: 'Outfit', sans-serif;
}

/* Actions Row: Table Selector & Red Charge Button */
.summary-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px 16px;
  background: #FFFFFF;
}

.btn-secondary-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-charge-action {
  flex: 1;
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.btn-charge-action:hover {
  background: #B91C1C;
}

.btn-charge-action:active {
  transform: scale(0.98);
}

.charge-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.charge-arrow {
  font-size: 16px;
  font-weight: 800;
}

/* ========================================================
   SIDE MENU DRAWER
   ======================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}

.drawer-overlay.active .side-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 16px;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-brand-logo {
  font-size: 26px;
}

.drawer-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.drawer-brand-sub {
  font-size: 11px;
  color: #94A3B8;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.drawer-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.drawer-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.drawer-card-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0 8px 0;
}

.drawer-btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  width: 100%;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.drawer-nav-item:hover {
  background: #F1F5F9;
}

.drawer-nav-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
}

.drawer-nav-item.admin-link {
  color: #DC2626;
}

.drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  font-size: 11.5px;
  color: var(--text-secondary);
  text-align: center;
}

/* Modals & Bottom Sheets */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-focus);
  border-radius: var(--radius-full);
  margin: 0 auto 16px auto;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.sheet-title {
  font-size: 19px;
  font-weight: 800;
}

.sheet-close {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.sheet-close:hover {
  background: #E2E8F0;
  color: var(--text-primary);
}

/* Customizer Sections */
.custom-section {
  margin-bottom: 18px;
}

.custom-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.custom-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.custom-option-card:hover {
  border-color: var(--border-focus);
}

.custom-option-card.selected {
  border-color: var(--primary);
  background: #FFF7ED;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.custom-option-card.selected .radio-circle {
  border-color: var(--primary);
}

.custom-option-card.selected .radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.custom-option-card.selected .checkbox-box {
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
}

.custom-option-card.selected .checkbox-box::after {
  content: '✓';
  font-size: 11px;
  font-weight: bold;
}

.option-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.option-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Cart Items & Checkout */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  gap: 12px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

/* Bill Breakdown */
.bill-summary {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.bill-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

/* Input Fields */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #FFFFFF;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

/* Order Preference Selector */
.type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.type-btn {
  padding: 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.type-btn.active {
  border-color: var(--primary);
  background: #FFF7ED;
  color: var(--primary);
}

/* Place Order Button */
.btn-primary-block {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary-block:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary-block:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Order Status Tracker View */
.order-status-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-top: 16px;
  text-align: center;
}

.status-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.status-badge-lg.created { background: #FEF3C7; color: #D97706; }
.status-badge-lg.confirmed { background: #DBEAFE; color: #2563EB; }
.status-badge-lg.preparing { background: #FFEDD5; color: #EA580C; }
.status-badge-lg.ready { background: #D1FAE5; color: #059669; }
.status-badge-lg.completed { background: #DCFCE7; color: #16A34A; }
.status-badge-lg.cancelled { background: #FEE2E2; color: #DC2626; }

/* Timeline steps */
.timeline-wrap {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--border-light);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.timeline-step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
}

.timeline-step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.2);
}

.step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease forwards;
}

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

/* Customer Feedback & Star Ratings */
.feedback-star {
  display: inline-block;
  cursor: pointer;
  color: #CBD5E1;
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: none;
}

.feedback-star:hover {
  transform: scale(1.25);
}

.feedback-star.active {
  color: #F59E0B;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   Modern Form Inputs & Feedback Modal Styles
   ========================================================================== */
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0F172A;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  background-color: #FFFFFF;
  border-color: #D90429;
  box-shadow: 0 0 0 3.5px rgba(217, 4, 41, 0.12);
}

.form-input::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  font-weight: 600;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.feedback-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  color: #D97706;
  margin-top: 6px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.btn-primary-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: linear-gradient(135deg, #D90429 0%, #B8001F 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(217, 4, 41, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 4, 41, 0.45);
}

.btn-primary-block:active {
  transform: translateY(0);
}

