/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Global Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #db2420; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b01d1a; }
* { scrollbar-width: thin; scrollbar-color: #db2420 #f1f1f1; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background: #f9fafb;
  font-size: 100%;
  color: #111827;
  line-height: 1.5;
  min-height: 100vh;
}

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

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

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Global Focus Reset ===== */
*:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f97316;
}

/* ===== Utilities ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;

  z-index: 40;
}

.site-header .container {
  padding: 0.5rem 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  height: 64px;
  width: 130px;
  object-fit: contain;
}

/* ===== Navigation Tabs ===== */
.nav-tabs {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 30;
}

.nav-tabs-inner {
  display: flex;
  overflow-x: auto;
}

.nav-tab {
  flex: 1;
  min-width: 70px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  gap: 0.25rem;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 500;
}

.nav-tab svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.nav-tab:hover {
  background: #f9fafb;
}

.nav-tab.active {
  border-bottom-color: #f97316;
  background: transparent;
}

.nav-tab.active svg {
  color: #ea580c;
}

.nav-tab.active span {
  color: #ea580c;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-tab {
    flex-direction: row;
    gap: 0.5rem;
    min-width: 80px;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .nav-tab svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== Main Content ===== */
.main-content {
  padding-bottom: 2rem;
}

.tab-content {
  padding: 1rem;
}

/* ===== Category Filter ===== */
.category-filter {
  z-index: 20;
  background: #fff;
  margin: 0 -1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.category-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.category-btn {
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.9375rem;
}

.category-btn:hover {
  background: #e5e7eb;
}

.category-btn.active {
  background: #f97316;
  color: #fff;
}

/* ===== Search Bar ===== */
.search-bar {
  position: relative;
  margin-top: 0.75rem;
}

.search-bar svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 18px;
  height: 18px;
}

.search-bar input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  outline: none;
  font-size: 0.9375rem;
  color: #6b7280;
}

.search-bar input:focus {
  box-shadow: 0 0 0 2px #f97316;
  border-color: transparent;
  color: #111827;
}

/* ===== Menu Grid ===== */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin-top: 0.875rem;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .menu-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== Menu Card ===== */
.menu-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.menu-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.menu-card-image {
  height: 170px;
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.25rem;
}

.menu-card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.menu-card-image .menu-emoji {
  font-size: 4rem;
  line-height: 1;
}

.menu-card-body {
  padding: 0.75rem 0.875rem 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.375rem;
}

.menu-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
  margin-bottom: 1rem;
}

.menu-card-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  min-height: 50px;
}

.menu-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.menu-card-rating .star {
  color: #facc15;
}

.menu-card-rating .count {
  color: #6b7280;
}

.menu-card-actions {
  margin-top: auto;
}

.add-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
  background: #f97316;
  color: #fff;
  transition: background 0.2s;
}

.add-btn:hover {
  background: #ea580c;
}

.add-btn:active {
  background: #c2410c;
}

.add-btn:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

/* Quantity Controls */
.qty-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff7ed;
  border-radius: 0.5rem;
  padding: 0.375rem 0.5rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.qty-btn.minus {
  background: #fff;
  border: 2px solid #f97316;
  color: #f97316;
}

.qty-btn.minus:hover {
  background: #fff7ed;
}

.qty-btn.plus {
  background: #f97316;
  color: #fff;
}

.qty-btn.plus:hover {
  background: #ea580c;
}

.qty-value {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  padding: 0 0.5rem;
}

/* ===== Floating Cart Button ===== */
.floating-cart {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #f97316;
  color: #fff;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
  z-index: 50;
  transition: all 0.2s;
}

.floating-cart:hover {
  background: #ea580c;
  transform: scale(1.05);
}

.floating-cart-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
}

.cart-icon-wrap {
  position: relative;
}

.cart-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-text .cart-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-text .cart-price {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ===== Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-box {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 30rem;
  width: 100%;
  animation: fadeIn 0.3s ease-out;
}

/* ===== Welcome Modal ===== */

.welcome-avatar {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.welcome-avatar span {
  color: #ea580c;
  font-weight: 700;
  font-size: 1.875rem;
}

/* Restaurant logo inside checkout gate modal circle */
.welcome-avatar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  box-sizing: border-box;
  display: block;
}

.welcome-footer {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  padding-top: 0.5rem;
}

/* ===== Auth Modal ===== */
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.auth-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.close-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  background: #e5e7eb;
}

.close-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #374151;
}

/* WCAG 2.1: screen-reader-only content (e.g. legend) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.auth-fieldset-social {
  margin-top: 0.5rem;
}

.auth-form-error {
  padding: 0.75rem 1rem;
  margin: 0.75rem 1.5rem 0;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 500;
}

/* WCAG 2.1: minimum 44x44px touch target for interactive elements */
.auth-form .auth-submit,
.auth-form .forgot-link button,
.auth-form .auth-toggle button,
.auth-form .social-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1rem;
}

.auth-form .social-btn {
  min-width: 44px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Auth modal: inputs match booking/checkout form style */
#authModal .form-group input,
#authModal input.auth-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  outline: none;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: #111827;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

#authModal .form-group input::placeholder,
#authModal input.auth-input::placeholder {
  color: #9ca3af;
}

#authModal .form-group input:focus,
#authModal input.auth-input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.35);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 20px;
  height: 20px;
}

.input-icon-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  outline: none;
}

.input-icon-wrap input:focus {
  box-shadow: 0 0 0 2px #f97316;
  border-color: transparent;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.password-toggle:hover {
  color: #4b5563;
}

.forgot-link {
  text-align: right;
}

.forgot-link button {
  font-size: 0.875rem;
  color: #ea580c;
  font-weight: 500;
}

.forgot-link button:hover {
  color: #c2410c;
}

.auth-submit {
  width: 100%;
  padding: 0.75rem;
  background: #f97316;
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s;
}

.auth-submit:hover {
  background: #ea580c;
}

.auth-toggle {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #4b5563;
}

.auth-toggle button {
  margin-left: 0.5rem;
  color: #ea580c;
  font-weight: 500;
}

.auth-toggle button:hover {
  color: #c2410c;
}

.social-divider {
  position: relative;
  padding-top: 1rem;
}

.social-divider .line {
  width: 100%;
  border-top: 1px solid #d1d5db;
}

.social-divider .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.social-btn:hover {
  background: #f9fafb;
}

.social-btn .icon {
  font-size: 1.25rem;
}

.social-btn .label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

/* ===== Cart Modal ===== */
.cart-modal {
  max-width: 42rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.cart-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clear-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-cart-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.clear-cart-btn svg {
  flex-shrink: 0;
}

.cart-header-left svg {
  width: 24px;
  height: 24px;
  color: #ea580c;
}

.cart-header-left h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.cart-count {
  background: #ffedd5;
  color: #c2410c;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  padding: 3rem 0;
}

.cart-empty svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.cart-empty .title {
  font-size: 1.125rem;
  font-weight: 500;
}

.cart-empty .subtitle {
  font-size: 0.875rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-details h3 {
  font-weight: 700;
  color: #111827;
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
}

.cart-item-modifiers {
  margin: 0.35rem 0 0.25rem;
}

.cart-item-modifiers .cart-item-opt {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0.15rem 0;
}

.cart-item-modifiers .cart-item-opt-label {
  font-weight: 600;
  color: #4b5563;
  margin-right: 0.25rem;
}

.cart-item-modifiers .cart-item-note {
  font-style: italic;
}

.cart-item-details .desc {
  font-size: 0.875rem;
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-details .price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ea580c;
  margin-top: 0.25rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-qty-btn.minus {
  background: #fff;
  border: 2px solid #ef4444;
  color: #ef4444;
}

.cart-qty-btn.minus:hover {
  background: #fef2f2;
}

.cart-qty-btn.plus {
  background: #f97316;
  color: #fff;
}

.cart-qty-btn.plus:hover {
  background: #ea580c;
}

.cart-qty-value {
  width: 40px;
  text-align: center;
  font-weight: 700;
  color: #111827;
}

.cart-item-total {
  text-align: right;
  min-width: 80px;
  font-weight: 700;
  color: #111827;
}

.cart-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem;
  background: #f9fafb;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #374151;
}

.price-row.total {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  padding-top: 0.5rem;
  border-top: 1px solid #d1d5db;
}

.price-row.total .amount {
  color: #ea580c;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: #f97316;
  color: #fff;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.checkout-btn:hover {
  background: #ea580c;
}

/* ===== Item Customization Modal ===== */
.customize-modal {
  max-width: 28rem;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
}

.customize-header {
  background: linear-gradient(to right, #f97316, #ef4444);
  border-radius: 1rem 1rem 0 0;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.customize-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.customize-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
  line-height: 1;
}

.customize-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.customize-close svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fff;
}

.customize-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.4) transparent;
}

.customize-body::-webkit-scrollbar {
  width: 6px;
}

.customize-body::-webkit-scrollbar-track {
  background: transparent;
}

.customize-body::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.4);
  border-radius: 3px;
}

.customize-body::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.6);
}

.customize-section {
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.customize-section.sizes {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.customize-section.toppings {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.customize-section.servewith {
  background: linear-gradient(135deg, #a855f7, #6366f1);
}

.customize-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.customize-section-header h3 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.mandatory-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.customize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.customize-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.customize-option {
  padding: 0.625rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  text-align: left;
}

/* High-contrast focus for keyboard/screen reader and selection state */
.customize-option:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 2px;
}

.customize-option[aria-selected="true"],
.customize-option.selected {
  outline: 3px solid currentColor;
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.customize-option.sizes-opt {
  background: rgba(251, 146, 60, 0.9);
  color: #fff;
}

.customize-option.sizes-opt:hover {
  background: rgba(251, 146, 60, 1);
}

.customize-option.sizes-opt.selected,
.customize-option.sizes-opt[aria-selected="true"] {
  background: #fff;
  color: #ea580c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  outline: 3px solid #ea580c;
  outline-offset: 2px;
}

.customize-option.toppings-opt,
.customize-option.top-opt {
  background: rgba(74, 222, 128, 0.9);
  color: #fff;
}

.customize-option.toppings-opt:hover,
.customize-option.top-opt:hover {
  background: rgba(74, 222, 128, 1);
}

.customize-option.toppings-opt.selected,
.customize-option.toppings-opt[aria-selected="true"],
.customize-option.top-opt.selected,
.customize-option.top-opt[aria-selected="true"] {
  background: #fff;
  color: #16a34a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  outline: 3px solid #16a34a;
  outline-offset: 2px;
}

.customize-option.servewith-opt,
.customize-option.sw-opt {
  background: rgba(192, 132, 252, 0.9);
  color: #fff;
}

.customize-option.servewith-opt:hover,
.customize-option.sw-opt:hover {
  background: rgba(192, 132, 252, 1);
}

.customize-option.servewith-opt.selected,
.customize-option.servewith-opt[aria-selected="true"],
.customize-option.sw-opt.selected,
.customize-option.sw-opt[aria-selected="true"] {
  background: #fff;
  color: #9333ea;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  outline: 3px solid #9333ea;
  outline-offset: 2px;
}

.customize-option .opt-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.customize-option .opt-price {
  font-size: 1rem;
  font-weight: 700;
}

.customize-option.servewith-opt,
.customize-option.sw-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.customize-option.servewith-opt .opt-name,
.customize-option.sw-opt .opt-name {
  margin-bottom: 0.25rem;
}

.customize-option.servewith-opt .opt-price,
.customize-option.sw-opt .opt-price {
  font-size: 0.875rem;
}

.customize-continue {
  width: 100%;
  background: linear-gradient(to right, #ef4444, #dc2626);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.875rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  border: none;
  cursor: pointer;
}

.customize-continue:hover {
  background: linear-gradient(to right, #dc2626, #b91c1c);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* ===== Product View Modal ===== */
.product-view-modal {
  max-width: 38rem;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pv-image-wrap {
  position: relative;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

.pv-image-wrap img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 1.5rem;
}

.pv-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  padding: 0;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.pv-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pv-close-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fff;
}

.pv-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.4) transparent;
}

.pv-body::-webkit-scrollbar {
  width: 6px;
}

.pv-body::-webkit-scrollbar-track {
  background: transparent;
}

.pv-body::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.4);
  border-radius: 3px;
}

.pv-body::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.6);
}

.pv-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.pv-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f97316;
}

.pv-price.old-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  color: inherit;
}

.pv-price.old-price-wrap .cancelled-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 400;
}

.pv-price.old-price-wrap .discount-pct {
  color: #dc2626;
  font-size: 0.8125rem;
  font-weight: 700;
}

.pv-price.old-price-wrap .actual-price {
  color: #f97316;
  font-weight: 700;
  font-size: 1.25rem;
}

.pv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3125rem 0.75rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #374151;
}

.pv-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.pv-badge.vegan {
  background: #dcfce7;
  color: #166534;
}

.pv-badge.vegetarian {
  background: #fef9c3;
  color: #854d0e;
}

.pv-badge.spice {
  background: #fee2e2;
  color: #991b1b;
}

.pv-desc-section h4,
.pv-allergens-section h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.375rem;
}

.pv-description {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}

.pv-allergens-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pv-allergen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #fff7ed;
  border-radius: 0.5rem;
  border: 1px solid #fed7aa;
  min-width: 60px;
}

.pv-allergen-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.pv-allergen-item span {
  font-size: 0.6875rem;
  color: #9a3412;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
}

.pv-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.25rem 0;
}

.pv-review {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.pv-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pv-star.filled {
  fill: #f59e0b;
  color: #f59e0b;
}

.pv-star.empty {
  fill: #d1d5db;
  color: #d1d5db;
}

.pv-rating-num {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

.pv-review-count {
  font-size: 0.8125rem;
  color: #6b7280;
}

.pv-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pv-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3f4f6;
  border-radius: 0.625rem;
  padding: 0.375rem 0.5rem;
}

.pv-qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  transition: all 0.15s;
  background: #fff;
  color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pv-qty-btn:hover {
  background: #f97316;
  color: #fff;
}

.pv-qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #111827;
}

.pv-add-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #f97316;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.625rem;
  transition: all 0.2s;
  text-align: center;
}

.pv-add-btn:hover {
  background: #ea580c;
}

.pv-add-btn.out-of-stock {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.pv-add-btn.out-of-stock:hover {
  transform: none;
}

@media (max-width: 640px) {
  .product-view-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .pv-image-wrap {
    max-height: 240px;
  }

  .pv-image-wrap img {
    max-height: 240px;
    padding: 1rem;
  }
}

/* ===== Reviews ===== */
.reviews-summary {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 1rem;
  margin-bottom: 1rem;
}

.reviews-summary h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .reviews-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.avg-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avg-rating .number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.avg-rating .stars {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.avg-rating .stars svg {
  width: 16px;
  height: 16px;
}

.avg-rating .count {
  font-size: 0.75rem;
  color: #4b5563;
  margin-top: 0.25rem;
  text-align: center;
}

.rating-dist {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rating-bar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.rating-bar-btn:hover {
  background: #f9fafb;
}

.rating-bar-btn.active {
  background: #fff7ed;
}

.rating-bar-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.rating-bar-label svg {
  width: 12px;
  height: 12px;
}

.rating-bar-track {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: #facc15;
  transition: width 0.3s;
}

.rating-bar-count {
  font-size: 0.75rem;
  color: #4b5563;
  min-width: 30px;
  text-align: right;
}

.reviews-filter {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-left svg {
  width: 16px;
  height: 16px;
  color: #4b5563;
}

.filter-left span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.filter-clear {
  font-size: 0.75rem;
  color: #ea580c;
  font-weight: 500;
}

.filter-clear:hover {
  color: #c2410c;
}

.sort-btns {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.sort-btns span {
  font-size: 0.75rem;
  color: #4b5563;
}

.sort-btn {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sort-btn.active {
  background: #f97316;
  color: #fff;
}

.sort-btn:not(.active) {
  background: #f3f4f6;
  color: #374151;
}

.sort-btn:not(.active):hover {
  background: #e5e7eb;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .reviews-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.review-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.75rem;
}

.review-date {
  font-size: 0.75rem;
  color: #6b7280;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars svg {
  width: 14px;
  height: 14px;
}

.review-text {
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.625;
  flex: 1;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.review-tag {
  padding: 0.125rem 0.375rem;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.75rem;
  border-radius: 9999px;
  border: 1px solid #fed7aa;
}

.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}

.review-action-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #4b5563;
  transition: color 0.2s;
}

.review-action-btn:hover {
  color: #ea580c;
}

.review-action-btn svg {
  width: 12px;
  height: 12px;
}

.review-action-btn span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== Table Booking ===== */
.booking-wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.booking-card {
  background: linear-gradient(135deg, #fff, #fff7ed);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #ffedd5;
  padding: 1.5rem;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s;
}

.progress-step.active {
  background: linear-gradient(to right, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.progress-step.inactive {
  background: #e5e7eb;
  color: #4b5563;
}

.progress-line {
  width: 80px;
  height: 6px;
  border-radius: 9999px;
  transition: all 0.3s;
}

.progress-line.active {
  background: linear-gradient(to right, #f97316, #ea580c);
}

.progress-line.inactive {
  background: #e5e7eb;
}

.booking-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.booking-title h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.booking-title p {
  color: #4b5563;
  font-size: 0.875rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* WCAG 2.1: fieldset/legend for booking forms (HTML5.2) */
.booking-fieldset {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 0;
  margin: 0;
  min-width: 0;
}

.booking-legend {
  font-weight: 700;
  color: #111827;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.booking-form-error {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
}

.booking-section {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-section h3 {
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.booking-section h3 svg {
  width: 20px;
  height: 20px;
  color: #ea580c;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-field .input-wrap {
  position: relative;
}

.form-field .input-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #f97316;
  width: 16px;
  height: 16px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  outline: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 2px #fb923c;
  border-color: #fb923c;
}

.form-field textarea {
  padding-left: 0.75rem;
  resize: none;
}

.booking-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.booking-notice p {
  font-size: 0.75rem;
  color: #991b1b;
  line-height: 1.625;
}

.booking-notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.booking-submit {
  width: 100%;
  padding: 0.75rem;
  min-height: 44px;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.booking-submit:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.booking-submit.orange {
  background: linear-gradient(to right, #f97316, #ea580c);
  color: #fff;
}

.booking-submit.green {
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #fff;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  color: #ea580c;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.back-btn:hover {
  color: #c2410c;
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

/* Booking Confirmed */
.booking-confirmed {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.confirmed-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
}

.confirmed-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.confirmed-icon svg {
  width: 48px;
  height: 48px;
  color: #16a34a;
}

.confirmed-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.confirmed-card > p {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.confirmed-details {
  background: #fff7ed;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.confirmed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
  font-size: 0.875rem;
}

.confirmed-grid .label {
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.confirmed-grid .value {
  font-weight: 700;
  color: #111827;
}

.confirmed-note {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.another-btn {
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  background: #f97316;
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s;
}

.another-btn:hover {
  background: #ea580c;
}

/* ===== Restaurant Info ===== */
.info-wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-hero {
  background: linear-gradient(to right, #f97316, #ea580c);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  color: #fff;
  text-align: center;
}

.info-hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.info-hero p {
  color: #fed7aa;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.info-hero .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.info-hero .status-badge svg {
  width: 20px;
  height: 20px;
}

.info-section {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
}

.info-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #ffedd5;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: #ea580c;
}

.contact-info h3 {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.contact-info p {
  color: #4b5563;
}

.contact-info a {
  color: #4b5563;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #ea580c;
}

.contact-info .subtext {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.contact-info .directions {
  color: #ea580c;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
  display: inline-block;
}

.contact-info .directions:hover {
  color: #c2410c;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: background 0.2s;
}

.hours-row.today {
  background: #fff7ed;
  border: 2px solid #fed7aa;
}

.hours-row .day {
  font-weight: 500;
  color: #111827;
}

.hours-row.today .day {
  color: #9a3412;
}

.today-badge {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  background: #f97316;
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.hours-row .time {
  color: #4b5563;
}

.hours-row.today .time {
  color: #c2410c;
  font-weight: 600;
}

.hours-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #eff6ff;
  border-radius: 0.5rem;
  border: 1px solid #bfdbfe;
}

.hours-note p {
  font-size: 0.875rem;
  color: #1e3a5f;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.social-link.facebook {
  background: #eff6ff;
}

.social-link.facebook:hover {
  background: #dbeafe;
}

.social-link.instagram {
  background: #fdf2f8;
}

.social-link.instagram:hover {
  background: #fce7f3;
}

.social-link.twitter {
  background: #f0f9ff;
}

.social-link.twitter:hover {
  background: #e0f2fe;
}

.social-link svg {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
}

.social-link.facebook svg {
  color: #2563eb;
}

.social-link.instagram svg {
  color: #db2777;
}

.social-link.twitter svg {
  color: #0284c7;
}

.social-link span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.amenity {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

.amenity h3 {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.amenity p {
  font-size: 0.875rem;
  color: #4b5563;
}

.map-placeholder {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.map-inner {
  height: 256px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-inner svg {
  width: 48px;
  height: 48px;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.map-inner .map-text {
  text-align: center;
}

.map-inner .map-label {
  color: #4b5563;
  font-weight: 500;
}

.map-inner .map-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* ===== Checkout Page ===== */
#checkoutPage {
  background: #f9fafb;
  min-height: 100vh;
}

.checkout-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.checkout-wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.checkout-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 2rem 0;
}

.checkout-form-error {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.checkout-form-error.hidden {
  display: none;
}

.checkout-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-card-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem 0;
}

.checkout-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-fields-stack .checkout-field {
  margin-bottom: 0;
}

.order-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.order-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  min-height: 44px;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: all 0.2s;
  font-weight: 500;
  cursor: pointer;
}

.order-type-btn:hover {
  border-color: #d1d5db;
}

.order-type-btn.active {
  border-color: #f97316;
  background: #fff7ed;
  color: #ea580c;
}

.order-type-btn svg {
  width: 20px;
  height: 20px;
}

.checkout-field {
  margin-bottom: 1rem;
}

.checkout-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.checkout-field .required {
  color: #ef4444;
}

.checkout-field input,
.checkout-field select,
.checkout-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.2s;
  font-size: 0.9375rem;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
}

.checkout-textarea {
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-textarea:focus {
  box-shadow: 0 0 0 2px #f97316;
  border-color: transparent;
}

.checkout-field input:disabled {
  background: #f3f4f6;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkout-row .checkout-field {
  margin-bottom: 0;
}

.checkout-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.checkout-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #f97316;
  border-radius: 0.25rem;
  cursor: pointer;
}

.checkout-checkbox-label span {
  font-size: 0.875rem;
  color: #374151;
}

/* Checkout search row (input + button) */
.checkout-search-row {
  display: flex;
  gap: 0.5rem;
}

.checkout-search-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  outline: none;
  font-size: 0.9375rem;
  box-sizing: border-box;
  transition: all 0.2s;
}

.checkout-search-row input:focus {
  box-shadow: 0 0 0 2px #f97316;
  border-color: transparent;
}

.checkout-action-btn {
  padding: 0.75rem 1.25rem;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s;
  white-space: nowrap;
  font-size: 0.9375rem;
}

.checkout-action-btn:hover {
  background: #ea580c;
}

.checkout-action-btn-dark {
  background: #374151;
}

.checkout-action-btn-dark:hover {
  background: #1f2937;
}

/* Coupon toggle link */
.coupon-toggle-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: #f97316;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.coupon-toggle-link:hover {
  color: #ea580c;
}

.coupon-toggle-link svg {
  flex-shrink: 0;
}

.coupon-card {
  transition: all 0.3s ease;
}

/* Checkout Gate Modal */
.checkout-gate-box {
  max-width: 28rem;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

.checkout-gate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.checkout-gate-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.checkout-gate-body {
  padding: 1.5rem;
}

.checkout-gate-tabs {
  display: flex;
  background: #f3f4f6;
  border-radius: 0.625rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.gate-tab {
  flex: 1;
  padding: 0.625rem 1rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.gate-tab.active {
  background: #fff;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gate-panel .checkout-field {
  margin-bottom: 1rem;
}

.gate-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.gate-error.hidden {
  display: none;
}

.gate-submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.gate-submit-btn:hover {
  background: #ea580c;
}

.gate-submit-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.gate-guest-text {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

/* Payment radio list */
.payment-radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-radio-item:hover {
  border-color: #d1d5db;
}

.payment-radio-item.active {
  border-color: #f97316;
  background: #fff7ed;
}

.payment-radio {
  width: 1rem;
  height: 1rem;
  accent-color: #f97316;
  cursor: pointer;
}

.payment-radio-item svg {
  width: 20px;
  height: 20px;
  color: #4b5563;
}

.payment-radio-label {
  font-weight: 500;
  color: #1f2937;
}

.checkout-pay-divider {
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0 1rem;
}

.payment-element-loading {
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
  padding: 1.5rem 0;
}

.payment-element-loading.hidden {
  display: none;
}

.payment-element-loading {
  color: #6b7280;
  font-size: 0.875rem;
  text-align: center;
  padding: 1.5rem 0;
}

.payment-element-loading.hidden {
  display: none;
}

.place-order-btn {
  width: 100%;
  padding: 1rem;
  min-height: 48px;
  background: linear-gradient(to right, #f97316, #ea580c);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
  transition: all 0.2s;
  cursor: pointer;
  margin-top: 0.5rem;
}

.place-order-btn:hover {
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
  transform: scale(1.02);
}

.place-order-btn:active {
  transform: scale(0.98);
}

/* ===== Star SVG Colors ===== */
.star-filled {
  fill: #facc15;
  color: #facc15;
}

.star-empty {
  fill: #e5e7eb;
  color: #e5e7eb;
}

/* ===== Customer Dashboard ===== */
.dash-mobile-menu-btn {
  display: block;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
}

.dash-mobile-menu-btn button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-weight: 500;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .dash-mobile-menu-btn {
    display: none;
  }
}

.dash-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
}

@media (min-width: 768px) {
  .dash-mobile-overlay {
    display: none !important;
  }
}

.dash-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 160px);
}

@media (min-width: 768px) {
  .dash-layout {
    flex-direction: row;
  }
}

.dash-sidebar {
  display: none;
  width: 16rem;
  background: #eaf2ff;
  flex-shrink: 0;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .dash-sidebar {
    display: flex;
  }
}

.dash-sidebar.mobile-open {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 55;
  width: 16rem;
  animation: fadeIn 0.2s ease-out;
}

.dash-sidebar-profile {
  padding: 1.5rem;
  border-bottom: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dash-sidebar-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.875rem;
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
}

.dash-sidebar-profile h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: #111827;
}

.dash-sidebar-profile p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.dash-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.dash-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  color: #1f2937;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.dash-nav-item:hover {
  background: #dbeafe;
}

.dash-nav-item.active {
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  border-left-color: #2563eb;
}

.dash-nav-logout {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.dash-nav-logout:hover {
  background: #fecaca !important;
}

.dash-main {
  flex: 1;
  background: #f9fafb;
  overflow-y: auto;
  padding: 1rem;
}

@media (min-width: 768px) {
  .dash-main {
    padding: 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .dash-main {
    padding: 2rem;
  }
}

.dash-page {
  max-width: 72rem;
  margin: 0 auto;
}

.dash-page > * + * {
  margin-top: 1.5rem;
}

#dashPage-delete {
  display: flex;
  justify-self: center;
}

/* Welcome Banner */
.dash-welcome {
  background: linear-gradient(to right, #fff7ed, #ffedd5);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.dash-welcome-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .dash-welcome-text h2 {
    font-size: 1.875rem;
  }
}

.dash-welcome-text p {
  font-size: 1rem;
  color: #374151;
}

@media (min-width: 768px) {
  .dash-welcome-text p {
    font-size: 1.125rem;
  }
}

.dash-qr {
  display: none;
  background: #fff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .dash-qr {
    display: block;
  }
}

/* Stats Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .dash-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .dash-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dash-stat {
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.dash-stat:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.dash-stat.green {
  background: #eafbf1;
}

.dash-stat.blue {
  background: #eef5ff;
}

.dash-stat.purple {
  background: #f4eeff;
}

.dash-stat-num {
  font-size: 2.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .dash-stat-num {
    font-size: 3rem;
  }
}

.dash-stat.green .dash-stat-num {
  color: #16a34a;
}

.dash-stat.blue .dash-stat-num {
  color: #2563eb;
}

.dash-stat.purple .dash-stat-num {
  color: #7c3aed;
}

.dash-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .dash-stat-label {
    font-size: 1rem;
  }
}

/* Dash Cards */
.dash-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dash-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .dash-card h3 {
    font-size: 1.25rem;
  }
}

/* Quick Actions */
.dash-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .dash-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .dash-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dash-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 2rem;
  transition: background 0.2s;
  gap: 0.75rem;
}

.dash-action-btn:hover {
  background: #f1f5f9;
}

.dash-action-btn span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

/* Orders Table */
.dash-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.dash-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.dash-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.dash-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.dash-table td {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.dash-table tbody tr:hover {
  background: #f9fafb;
}

.order-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.order-status.completed {
  background: #dcfce7;
  color: #166534;
}

.order-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.action-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #2563eb;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.125rem 0;
}

.action-link:hover {
  color: #1d4ed8;
}

.action-link.blue {
  color: #2563eb;
  font-size: 1rem;
  font-weight: 500;
}

.action-link.red {
  color: #dc2626;
  font-size: 1rem;
  font-weight: 500;
}

/* Empty State */
.dash-empty-state {
  background: #fff;
  border-radius: 0.75rem;
  padding: 3rem;
  text-align: center;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.dash-empty-state p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.dash-subtitle {
  font-size: 0.9375rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

/* Rewards */
.dash-rewards-hero {
  background: linear-gradient(to right, #faf5ff, #fdf2f8);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  border: 2px solid #e9d5ff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.dash-rewards-hero h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #581c87;
  margin-bottom: 0.75rem;
}

.rewards-points {
  font-size: 3.75rem;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 0.5rem;
}

.dash-rewards-hero p {
  font-size: 1rem;
  color: #4b5563;
}

.dash-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.reward-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.reward-req {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

/* Addresses */
.addr-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.addr-header h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.addr-default {
  background: #dcfce7;
  color: #166534;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}

.addr-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Dash Buttons */
.dash-orange-btn {
  padding: 0.75rem 2rem;
  background: #f97316;
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.dash-orange-btn:hover {
  background: #ea580c;
}

.dash-orange-btn.full-width {
  width: 100%;
}

.dash-account-submit {
  margin-top: 1rem;
}

.dash-gray-btn {
  padding: 0.75rem 2rem;
  background: #d1d5db;
  color: #4b5563;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: not-allowed;
}

/* Forms */
.dash-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
}

.dash-form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.dash-form-field input,
.dash-form-field select,
.dash-form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  box-sizing: border-box;
}

.dash-form-field input:focus,
.dash-form-field select:focus,
.dash-form-field textarea:focus {
  box-shadow: 0 0 0 2px #f97316;
  border-color: transparent;
}

/* Delete Warning */
.dash-delete-warning {
  background: #fef2f2;
  border-radius: 0.75rem;
  padding: 2rem;
  border: 2px solid #fca5a5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 40rem;
}

.dash-delete-warning h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7f1d1d;
  margin-bottom: 0.75rem;
}

.dash-delete-warning p {
  font-size: 1rem;
  color: #b91c1c;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.dash-delete-btn {
  width: 100%;
  padding: 1rem;
  background: #dc2626;
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.dash-delete-btn:hover {
  background: #b91c1c;
}

/* ===== CHECKOUT PAGE MOBILE OVERRIDES ===== */
.checkout-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.checkout-title {
  font-size: 1.5rem;
  margin: 1.5rem 0;
}

.checkout-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.checkout-card-heading {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.checkout-field {
  margin-bottom: 0.75rem;
}

.checkout-field label {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.checkout-field input,
.checkout-field select,
.checkout-textarea {
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-textarea:focus {
  border-color: #f97316;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.checkout-row {
  gap: 0.75rem;
}

.checkout-form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.order-type-grid {
  gap: 0.75rem;
}

.order-type-btn {
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.payment-radio-item {
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
}

/* Address suggestions */
.addr-suggestions {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.addr-suggestion {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  min-height: 44px;
}

.addr-suggestion:last-child {
  border-bottom: none;
}

.addr-suggestion:hover,
.addr-suggestion:focus {
  background: #fff7ed;
}

.addr-loading,
.addr-no-results {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.delivery-msg {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.delivery-msg.success {
  color: #166534;
  background: #f0fdf4;
}

.delivery-msg.error {
  color: #dc2626;
  background: #fef2f2;
}

/* Link button */
.link-btn {
  background: none;
  border: none;
  color: #f97316;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.link-btn:hover {
  color: #ea580c;
}

/* Tips */
.tip-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tip-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.625rem;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s;
}

.tip-btn:hover {
  border-color: #f97316;
}

.tip-btn.active {
  border-color: #f97316;
  background: #fff7ed;
  color: #ea580c;
}

/* Invoice pay modal — same tip row as checkout, equal-width cells */
.invoice-pay-tip-options.tip-options .tip-btn {
  flex: 1 1 0;
  min-width: 5.5rem;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Coupon */
.coupon-msg {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.coupon-msg.success {
  color: #166534;
}

.coupon-msg.error {
  color: #dc2626;
}

/* Order summary */
.order-summary-panel {
  background: #f9fafb;
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: #374151;
}

.price-row.total {
  border-top: 2px solid #e5e7eb;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
}

.price-row .amount {
  font-weight: 700;
}

/* Payment element */
#payment-element {
  min-height: 60px;
}

/* Place order button */
.place-order-btn {
  padding: 0.875rem;
  border-radius: 0.625rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.place-order-btn:hover {
  background: #ea580c;
  box-shadow: none;
  transform: none;
}

.place-order-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.field-error {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  line-height: 1.3;
}

.field-error.hidden {
  display: none;
}

.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}

/* intlTelInput overrides */
.iti {
  width: 100%;
  display: block;
}

.iti__flag-container {
  z-index: 2;
}

.iti input,
.iti input[type="tel"] {
  width: 100% !important;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.iti--separate-dial-code input,
.iti--separate-dial-code input[type="tel"] {
  padding-left: 90px !important;
}

.iti input:focus,
.iti input[type="tel"]:focus {
  border-color: #f97316;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.iti__selected-flag {
  border-radius: 8px 0 0 8px;
  padding: 0 8px;
}

/* Closed banner */
/* Discount row in order summary */
.discount-row span {
  color: #16a34a;
}

/* Out of stock */
.menu-card.out-of-stock {
  opacity: 0.55;
  pointer-events: none;
  position: relative;
}

.out-of-stock-btn {
  background: #9ca3af !important;
  cursor: not-allowed !important;
  color: #fff !important;
}

/* Restaurant closed banner */
.closed-banner {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  grid-column: 1 / -1;
}

.closed-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Old price / discount display */
.old-price-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.2;
}

.cancelled-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 400;
}

.discount-pct {
  color: #dc2626;
  font-size: 0.6875rem;
  font-weight: 700;
}

.actual-price {
  color: #111827;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Checkout Header */
.checkout-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem !important;
  min-height: 72px;
}

.checkout-header-left,
.checkout-header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.checkout-header-right {
  justify-content: flex-end;
}

.checkout-header-center {
  flex: 0 0 auto;
}

/* Checkout Back Link */
.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #4b5563;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease-in-out;
  cursor: pointer;
  padding: 0.5rem 0;
  background: none;
  border: none;
}

.checkout-back-link:hover {
  color: #f97316;
}

.checkout-back-link svg {
  color: #9ca3af;
  transition: all 0.15s ease-in-out;
}

.checkout-back-link:hover svg {
  color: #f97316;
  transform: translateX(-3px);
}

@media (max-width: 640px) {
  .checkout-back-link span {
    display: none;
  }
}

.checkout-field .select2-container--default .select2-selection--single {
  height: auto;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: #fff;
  transition: all 0.2s;
}

.checkout-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.4;
  color: #111827;
}

.checkout-field .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.75rem;
}

.checkout-field .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9ca3af;
}

.checkout-field .select2-container--default.select2-container--open .select2-selection--single,
.checkout-field .select2-container--default.select2-container--focus .select2-selection--single {
  box-shadow: 0 0 0 2px #f97316;
  border-color: transparent;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #f97316;
}

.select2-container--default .select2-dropdown {
  border-radius: 0.75rem;
  border-color: #d1d5db;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.select2-container--default .select2-results__option {
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .checkout-field .select2-container--default .select2-selection--single {
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
  }
}

/* Table label row: label + refresh + toggle */
.table-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  min-height: 1.5rem;
}

.table-label-row > label {
  margin-bottom: 0 !important;
  line-height: 1.5rem;
  white-space: nowrap;
}

.table-label-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
  flex-shrink: 0;
}

.table-refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 1.5rem;
  width: 1.5rem;
  transition: all 0.2s;
}

.table-refresh-btn:hover {
  color: #f97316;
  background: #fff7ed;
}

.table-refresh-btn.spinning svg {
  animation: spin-refresh 0.6s linear infinite;
}

@keyframes spin-refresh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.table-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.table-toggle-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #f97316;
  cursor: pointer;
}

/* Occupied table option styling */
.table-option-occupied {
  color: #9ca3af !important;
  font-style: italic;
}

.select2-container--default .select2-results__option[data-occupied="1"] {
  color: #9ca3af;
  font-style: italic;
  background: #f9fafb;
}

/* Custom tag badge */
.table-tag-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #dbeafe;
  color: #2563eb;
  vertical-align: middle;
}
