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

:root {
  --primary: #FF6B35;
  --primary-hover: #E85A24;
  --primary-light: #FFF8F4;
  --bg: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --text: #222222;
  --text-secondary: #666666;
  --text-light: #999999;
  --success: #2EC4B6;
  --success-light: #E6F9F8;
  --danger: #E63946;
  --danger-light: #FFEBEB;
  --border: #EAEAEA;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --modal-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1100px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Base Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Area */
.restaurant-hero {
  position: relative;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 50%, #FFAF87 100%);
  height: 180px;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.restaurant-info-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: -80px;
  position: relative;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

.restaurant-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.restaurant-meta {
  flex-grow: 1;
}

.restaurant-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.restaurant-cuisine {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.restaurant-logo {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  background-color: var(--primary-light);
  border: 3px solid var(--bg);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.restaurant-logo svg {
  width: 40px;
  height: 40px;
  fill: var(--primary);
}

.restaurant-details-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-badge {
  background-color: #FFF9E6;
  color: #FFB300;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.time-badge {
  background-color: #F0F9FF;
  color: #0284C7;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Search Box styling */
.search-container {
  position: relative;
  width: 100%;
  margin-top: 8px;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-secondary);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  background-color: var(--bg);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
}

/* Sticky Category Navigation */
.category-nav-wrapper {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--header-shadow);
  margin-top: 24px;
}

.category-nav-scroll {
  display: flex;
  overflow-x: auto;
  padding: 14px 20px;
  gap: 10px;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.category-nav-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.category-pill {
  white-space: nowrap;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-pill.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

/* Product Listing Layout */
.menu-section {
  padding: 24px 0 120px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #F0F0F0;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

/* Badge styling */
.veg-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.veg-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #2EC4B6;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veg-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #2EC4B6;
  border-radius: 50%;
  display: block;
}

.non-veg-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #E63946;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.non-veg-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid #E63946;
  display: block;
  transform: translateY(-0.5px);
}

.product-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* Buttons and Morphing Controls */
.btn-add {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-add:hover {
  background-color: var(--primary);
  color: var(--bg);
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  color: var(--bg);
  overflow: hidden;
  width: 90px;
  height: 33.5px;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.2);
}

.btn-qty {
  background: none;
  border: none;
  color: var(--bg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  width: 30px;
  height: 100%;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.qty-text {
  font-size: 13px;
  font-weight: 700;
  width: 30px;
  text-align: center;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.empty-state svg {
  width: 60px;
  height: 60px;
  stroke: var(--text-light);
  margin-bottom: 8px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 14px;
  color: var(--text-light);
}

/* Floating Cart Styling */
.floating-cart {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 40px);
  max-width: 500px;
  background-color: var(--primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.floating-cart.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-cart:hover {
  background-color: var(--primary-hover);
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-cart-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cart-icon-wrapper svg {
  width: 20px;
  height: 20px;
  fill: var(--bg);
}

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

.floating-cart-count {
  font-size: 14px;
  font-weight: 700;
}

.floating-cart-price {
  font-size: 12px;
  opacity: 0.9;
}

.floating-cart-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.floating-cart-right svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.5;
}

/* Modals & Popups backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Cart Bottom Sheet (Mobile) & Modal (Desktop) */
.cart-modal {
  position: fixed;
  background-color: var(--bg);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
}

/* Mobile defaults */
@media (max-width: 767px) {
  .cart-modal {
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  }
  
  .cart-modal.open {
    transform: translateY(0);
  }
}

/* Desktop styles overrides */
@media (min-width: 768px) {
  .cart-modal {
    top: 50%;
    left: 50%;
    width: 480px;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--modal-shadow);
  }
  
  .cart-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}

.modal-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--bg-secondary);
}

.modal-close-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 20px;
  display: block;
  width: 100%;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

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

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

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

.cart-modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-secondary);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.summary-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.summary-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.btn-submit-order {
  width: 100%;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--bg);
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

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

.btn-submit-order:active {
  transform: translateY(0);
}

.modal-empty-cart {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.modal-empty-cart svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-light);
}

.modal-empty-cart p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Success Popup Styling */
.success-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 420px;
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 1200;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--modal-shadow);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-popup.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.success-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: var(--success-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.success-icon-wrapper svg {
  width: 36px;
  height: 36px;
  stroke: var(--success);
}

.success-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.success-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

.receipt-box {
  width: 100%;
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px dashed var(--border);
  margin-bottom: 24px;
}

.receipt-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.receipt-item-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

.receipt-item-qty {
  font-weight: 600;
  color: var(--text);
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.btn-close-success {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-close-success:hover {
  background-color: var(--border);
  color: var(--text);
}

/* Tablet Media Queries */
@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .restaurant-hero {
    height: 220px;
  }
  
  .restaurant-info-card {
    margin-top: -100px;
    padding: 32px;
  }
  
  .restaurant-name {
    font-size: 28px;
  }
}

/* Desktop/Laptop Media Queries */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .restaurant-hero {
    height: 260px;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
  }
  
  .restaurant-info-card {
    margin-top: -120px;
    padding: 32px;
  }
  
  .restaurant-name {
    font-size: 32px;
  }
  
  .restaurant-logo {
    width: 90px;
    height: 90px;
  }
  
  .restaurant-logo svg {
    width: 50px;
    height: 50px;
  }
}

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

/* Screen Reader only helper */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Session Banner styling */
.session-banner {
  background-color: var(--success);
  color: var(--bg);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(46, 196, 182, 0.2);
}

.session-banner-pulse {
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  animation: pulse-white 1.5s infinite;
}

@keyframes pulse-white {
  0% { transform: scale(0.85); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(0.85); opacity: 1; }
}

/* Landing Page (QR Scanner Simulation) */
.landing-view {
  background-color: #FAF8F6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.landing-card {
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--modal-shadow);
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-logo-wrapper {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.landing-logo-wrapper svg {
  width: 36px;
  height: 36px;
  fill: var(--primary);
}

.landing-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.landing-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.scanner-box {
  width: 180px;
  height: 180px;
  border: 4px solid var(--primary);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFF;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.scanner-box svg {
  width: 130px;
  height: 130px;
  stroke: var(--text-secondary);
  fill: none;
  opacity: 0.8;
}

.scanner-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  top: 0;
  animation: scan 2s infinite ease-in-out;
}

@keyframes scan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.landing-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 16px 0;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-divider::before,
.landing-divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--border);
  margin: 0 12px;
}

.table-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}

.btn-select-table {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.btn-select-table:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-open-dashboard {
  width: 100%;
  background-color: var(--text);
  color: var(--bg);
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-open-dashboard:hover {
  background-color: #333333;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--modal-shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slide-in-right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.95;
}

@keyframes slide-in-right {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 0.95; }
}

/* Simulator Control Widget */
.simulator-widget {
  position: fixed;
  bottom: 96px; /* Floating above the cart */
  right: 20px;
  z-index: 490;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 200px;
}

.simulator-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-simulate {
  background-color: var(--primary-light);
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-simulate:hover {
  background-color: var(--primary);
  color: var(--bg);
  border-style: solid;
}

/* Guest Name Prompt Modal */
.name-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.95);
  width: 90%;
  max-width: 440px;
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--modal-shadow);
  padding: 32px 24px 28px 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.name-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.name-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.name-modal-icon svg {
  width: 32px;
  height: 32px;
}

.name-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.name-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

#name-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.name-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-secondary);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.name-input:focus {
  border-color: var(--primary);
  background-color: var(--bg);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

.name-error-msg {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
  text-align: left;
  display: none;
}

.btn-save-name {
  width: 100%;
  padding: 14px;
  background-color: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

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

/* Edit Name button in session banner */
.btn-edit-name {
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-edit-name:hover {
  background: var(--primary);
  color: var(--bg);
}

/* Modal Header Actions & View in Detail Toggle */
.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-toggle-detail {
  background-color: var(--primary-light);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-toggle-detail:hover {
  background-color: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-toggle-detail.active {
  background-color: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Detailed Guest Breakdown List Styles */
.cart-items-detail-list {
  padding: 16px 20px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-top: 8px;
  margin-bottom: 4px;
}

.detail-item-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.detail-item-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.guest-attribution-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-chip {
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.guest-chip-count {
  color: var(--primary);
  font-weight: 700;
}

.guest-summary-card {
  background-color: #FFF9F5;
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 107, 53, 0.2);
  padding-bottom: 6px;
}

.guest-summary-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.guest-summary-subtotal {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.guest-summary-items {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}



