/* ==========================================================================
   BASTIÓN • Cervecería Artesanal & Taproom
   Mobile-First Gastropub Menu Stylesheet
   Modern, Dark Amber & Carbon Architecture
   ========================================================================== */

:root {
  /* Carbon & Slate Deep Palette */
  --bg-app: #0B0B0E;
  --bg-surface: #131318;
  --bg-card: #181820;
  --bg-card-hover: #20202B;
  --bg-elevated: #242432;
  --bg-input: #1C1C26;

  /* Craft Amber & Golden Beer Palette */
  --amber-primary: #F59E0B;
  --amber-hover: #D97706;
  --amber-dark: #92400E;
  --amber-glow: rgba(245, 158, 11, 0.16);
  --amber-subtle: rgba(245, 158, 11, 0.08);
  --amber-border: rgba(245, 158, 11, 0.35);

  /* Cream & White High Contrast Typography */
  --text-main: #F4F4F7;
  --text-secondary: #B4B4C2;
  --text-muted: #7E7E91;
  --text-gold: #FCD34D;
  --text-on-amber: #000000;

  /* Architectural Borders & Dividers */
  --border-subtle: #232330;
  --border-card: #282838;
  --border-focus: #F59E0B;

  /* Accents */
  --badge-green-bg: #064E3B;
  --badge-green-text: #6EE7B7;
  --badge-red-bg: #4C0519;
  --badge-red-text: #FDA4AF;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Fonts */
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-sheet: 0 -8px 36px rgba(0, 0, 0, 0.85);

  /* Transition speeds */
  --trans-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-medium: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100%;
}

body.app-body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 90px; /* Space for sticky order bar */
  margin: 0 auto;
  max-width: 680px; /* Ideal mobile & tablet width */
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

/* Screen Reader Only Utility */
.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;
}

/* ==========================================================================
   1. Header / Hero Section
   ========================================================================== */
.taproom-header {
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 1.5px solid var(--border-subtle);
}

.header-banner {
  position: relative;
  background-image: url('../assets/images/hero-taproom.webp'), url('../assets/images/hero-taproom.jpg');
  background-size: cover;
  background-position: center 35%;
  padding: 18px 18px 24px 18px;
  color: #FFFFFF;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 14, 0.75) 0%,
    rgba(11, 11, 14, 0.88) 55%,
    rgba(11, 11, 14, 0.98) 100%
  );
  pointer-events: none;
}

.header-top-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-pill-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: rgba(28, 28, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-pill-info:hover, .btn-pill-info:focus-visible {
  background-color: var(--bg-card-hover);
  border-color: var(--amber-primary);
  transform: translateY(-1px);
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.status-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: rgba(6, 78, 59, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.status-live-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
}

.header-brand-content {
  position: relative;
  z-index: 2;
}

.brand-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.craft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-primary);
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--amber-border);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.icon-hop {
  width: 13px;
  height: 13px;
}

.happy-hour-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #6EE7B7;
  background-color: rgba(6, 78, 59, 0.6);
  border: 1px solid rgba(110, 231, 183, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.brand-tagline {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.brand-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-divider {
  color: var(--border-subtle);
}

/* ==========================================================================
   2. Sticky Navigation & Live Search Bar
   ========================================================================== */
.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.nav-controls-container {
  padding: 12px 16px 8px 16px;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.search-icon-slot {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-icon-slot svg {
  width: 100%;
  height: 100%;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--trans-fast);
}

.search-input:focus {
  border-color: var(--amber-primary);
  background-color: #171720;
  box-shadow: 0 0 0 3px var(--amber-glow);
}

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

.clear-search-btn {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
}

.clear-search-btn:hover {
  color: var(--text-main);
  background-color: var(--border-subtle);
}

.categories-nav {
  position: relative;
  overflow: hidden;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 4px;
  padding-right: 16px;
}

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

.cat-tab-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all var(--trans-fast);
}

.cat-tab-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
  border-color: #373748;
}

.cat-tab-btn:active {
  transform: scale(0.96);
}

.cat-tab-btn.active {
  background-color: var(--amber-primary);
  border-color: var(--amber-primary);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
}

.cat-tab-icon {
  font-size: 1rem;
}

/* ==========================================================================
   3. Main Content & Taps Banner
   ========================================================================== */
.menu-main-content {
  padding: 16px 16px 32px 16px;
}

.taps-status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1C1914 0%, #15141B 100%);
  border: 1.5px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.taps-banner-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.taps-banner-text {
  display: flex;
  flex-direction: column;
}

.taps-banner-text strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-gold);
}

.taps-banner-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Empty Search Results */
.empty-results-state {
  text-align: center;
  padding: 48px 20px;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 340px;
  margin: 0 auto 18px auto;
}

.btn-reset-search {
  background-color: var(--amber-primary);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--trans-fast);
}

.btn-reset-search:active {
  transform: scale(0.97);
}

/* ==========================================================================
   4. Section Headers & Product Layouts
   ========================================================================== */
.menu-category-section {
  margin-bottom: 36px;
  scroll-margin-top: 130px;
}

.category-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-icon-lead {
  font-size: 1.3rem;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
}

.category-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.category-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: -10px 0 16px 0;
  line-height: 1.4;
}

/* Product Cards Container */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   5. SPECIAL BEER CARD STYLING (Craft Beer Tap Style)
   ========================================================================== */
.beer-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--trans-fast);
  overflow: hidden;
}

.beer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--amber-primary);
  opacity: 0.7;
}

.beer-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--amber-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

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

.beer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.beer-meta-group {
  flex-grow: 1;
}

.beer-tap-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-gold);
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--amber-border);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  margin-bottom: 4px;
}

.beer-style-text {
  display: block;
  font-size: 0.78rem;
  color: var(--amber-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.beer-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.beer-thumb-box {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.beer-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--trans-medium);
}

.beer-card:hover .beer-thumb-img {
  transform: scale(1.08);
}

/* Fallback badge when no image */
.beer-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1C1914 0%, #2A241C 100%);
  color: var(--amber-primary);
}

.beer-thumb-fallback svg {
  width: 32px;
  height: 32px;
}

.beer-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* High Contrast Specs Pills: IBU & ABV */
.beer-specs-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
  background-color: #242434;
  border: 1px solid #37374C;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.spec-pill.highlight {
  background-color: rgba(245, 158, 11, 0.16);
  border-color: var(--amber-border);
  color: var(--text-gold);
}

.beer-card-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.beer-price-main {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-gold);
}

.beer-format-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.beer-tap-action-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   6. FOOD PRODUCT CARDS (Burgers, Pizzas, Tapas, Desserts)
   ========================================================================== */
.food-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  gap: 16px;
  transition: all var(--trans-fast);
  overflow: hidden;
}

.food-card:hover {
  background-color: var(--bg-card-hover);
  border-color: #3B3B4F;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

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

.food-card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.food-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.food-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.badge-gold {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--text-gold);
  border: 1px solid var(--amber-border);
}

.food-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
}

.food-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.food-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.food-card-right {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  align-self: center;
}

.food-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--trans-medium);
}

.food-card:hover .food-thumb-img {
  transform: scale(1.08);
}

/* Small Tag Badges (e.g. Vegetariano, Masa Madre) */
.food-tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   7. Bottom Sheet (Mobile) & Modal (Desktop)
   ========================================================================== */
[hidden],
.modal-backdrop[hidden],
.bottom-sheet[hidden],
.empty-results-state[hidden],
.clear-search-btn[hidden],
.app-toast[hidden] {
  display: none !important;
}

.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-medium);
  display: none;
}

.bottom-sheet-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-medium);
}

.modal-backdrop:not([hidden]) {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  max-width: 680px;
  margin: 0 auto;
  max-height: 88vh;
  background-color: var(--bg-surface);
  border-top: 1.5px solid var(--amber-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-handle-bar {
  width: 100%;
  padding: 10px 0 6px 0;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.handle-line {
  width: 44px;
  height: 4.5px;
  background-color: #383848;
  border-radius: var(--radius-full);
}

.sheet-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(28, 28, 38, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  z-index: 5;
  transition: all var(--trans-fast);
}

.sheet-close-btn:hover {
  background-color: var(--bg-card-hover);
  transform: scale(1.05);
}

.sheet-scroll-content {
  overflow-y: auto;
  padding: 6px 20px 28px 20px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sheet-media-box {
  position: relative;
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-card);
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

.sheet-product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.sheet-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: var(--amber-primary);
  color: #000;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sheet-body-header {
  margin-bottom: 16px;
}

.sheet-category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sheet-category-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sheet-style-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-primary);
}

.sheet-product-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 8px;
}

.sheet-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sheet-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-gold);
}

.sheet-format {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Detailed Beer Specs in Bottom Sheet */
.beer-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.spec-value {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

.sheet-desc-box {
  margin-bottom: 18px;
}

.sheet-section-heading {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.sheet-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.sheet-extra-details {
  background-color: rgba(28, 28, 38, 0.5);
  border-left: 3px solid var(--amber-primary);
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sheet-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.sheet-tag-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.sheet-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.btn-action-jot {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--amber-primary);
  border: none;
  border-radius: var(--radius-md);
  color: #000000;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all var(--trans-fast);
}

.btn-action-jot:hover {
  background-color: var(--amber-hover);
  transform: translateY(-1px);
}

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

.btn-action-jot.added {
  background-color: #10B981;
  color: #FFFFFF;
}

.icon-btn {
  width: 20px;
  height: 20px;
}

.sheet-waiter-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   8. Floating Order Note Bar (Tray)
   ========================================================================== */
.quick-tray-bar {
  position: fixed;
  bottom: 14px;
  left: 16px;
  right: 16px;
  max-width: 648px;
  margin: 0 auto;
  z-index: 50;
  background-color: #1A1A24;
  border: 1.5px solid var(--amber-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tray-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 16px;
}

.tray-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tray-count-badge {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--amber-primary);
  color: #000000;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 50%;
}

.tray-labels {
  display: flex;
  flex-direction: column;
}

.tray-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.tray-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-tray-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(245, 158, 11, 0.16);
  border: 1px solid var(--amber-border);
  color: var(--text-gold);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-tray-view:hover {
  background-color: var(--amber-primary);
  color: #000;
}

.btn-tray-view svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   9. Modals (Wi-Fi, Tray)
   ========================================================================== */
.wifi-card-dialog,
.tray-modal-dialog {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
  animation: zoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.wifi-icon-header {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(245, 158, 11, 0.14);
  border: 1.5px solid var(--amber-border);
  border-radius: 50%;
  color: var(--amber-primary);
  font-size: 1.5rem;
}

.wifi-icon-header svg {
  width: 26px;
  height: 26px;
}

.wifi-card-dialog h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.wifi-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.wifi-field-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  text-align: left;
}

.wifi-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wifi-field-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.wifi-field-value.code {
  color: var(--text-gold);
  letter-spacing: 0.05em;
}

.wifi-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn-copy-pass {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--amber-primary);
  border: none;
  border-radius: var(--radius-md);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-copy-pass:hover {
  background-color: var(--amber-hover);
}

.btn-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
}

.btn-modal-close:hover {
  color: var(--text-main);
}

/* Table Input Wrap */
.table-input-wrap {
  margin: 16px 0 8px 0;
}

.table-num-input {
  width: 120px;
  height: 60px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-gold);
  background-color: var(--bg-input);
  border: 2px solid var(--amber-border);
  border-radius: var(--radius-md);
  outline: none;
}

.table-num-input:focus {
  border-color: var(--amber-primary);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

/* Tray Modal Dialog */
.tray-modal-dialog {
  max-width: 480px;
  text-align: left;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

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

.tray-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.tray-header-table {
  font-size: 0.78rem;
  color: var(--amber-primary);
  font-weight: 600;
}

.modal-btn-x {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.tray-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
}

.tray-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.tray-item-info {
  display: flex;
  flex-direction: column;
}

.tray-item-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
}

.tray-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tray-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tray-item-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-gold);
}

.btn-remove-item {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

.tray-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: #101015;
}

.tray-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.tray-total-label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.tray-total-amount {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-gold);
}

.tray-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn-clear-tray {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-clear-tray:hover {
  color: #EF4444;
  border-color: #EF4444;
}

/* ==========================================================================
   10. Toast Notification
   ========================================================================== */
.app-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: #1F1F2B;
  color: #FFFFFF;
  border: 1.5px solid var(--amber-primary);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  color: var(--amber-primary);
  font-weight: 900;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.menu-footer {
  margin-top: 30px;
  text-align: center;
}

.footer-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-gold);
  margin-bottom: 8px;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

.footer-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   12. Responsive Adjustments & Accessibility
   ========================================================================== */

/* Tablets & Desktop View: Centered device format */
@media (min-width: 768px) {
  body.app-body {
    margin: 20px auto 40px auto;
    border-radius: 28px;
    border: 1.5px solid var(--border-card);
  }

  .taproom-header {
    border-radius: 28px 28px 0 0;
    overflow: hidden;
  }

  .bottom-sheet {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -46%) scale(0.94);
    left: 50%;
    right: auto;
    width: 92%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--amber-border);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .bottom-sheet.open {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
