:root {
  --ink: #12141a;
  --muted: #5b6475;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --line: rgba(18, 20, 26, 0.09);
  --accent: #e85d04;
  --accent-2: #f48c06;
  --brand: #151a24;
  --brand-2: #1e3a5f;
  --ok: #15803d;
  --danger: #dc2626;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(18, 20, 26, 0.08);
  --shadow-lg: 0 22px 50px rgba(18, 20, 26, 0.12);
}

*, *::before, *::after,
body, html,
input, select, textarea, button {
  font-family: 'Vazirmatn', sans-serif !important;
}

html:has(body.kiosk-body),
html.kiosk-html {
  height: 100%;
  overflow: hidden;
}

.kiosk-root-shell {
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

body.kiosk-body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background:
    radial-gradient(ellipse 70% 45% at 95% -5%, rgba(244, 140, 6, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at -5% 15%, rgba(30, 58, 95, 0.1), transparent 50%),
    linear-gradient(168deg, #f4f6f9 0%, #eef1f6 48%, #f7f3ee 100%);
  color: var(--ink);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body.drawer-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.kiosk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px 6px;
}

.kiosk-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(21, 26, 36, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.brand-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
}

.brand-subtitle {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.sep {
  opacity: 0.5;
}

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



.cart-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(21, 26, 36, 0.18);
}

.icon {
  width: 22px;
  height: 22px;
}

.count-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.kiosk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(460px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  padding: 6px 16px 12px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.menu-panel,
.cart-panel,
.side-rail {
  min-width: 0;
  min-height: 0;
}

.menu-panel {
  overflow: auto;
}

.side-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: static;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}





/* Voice needs room, but cart must keep a usable block — never crush the form. */




.side-rail .cart-shell {
  flex: 1 1 auto;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 12px 10px;
  gap: 0;
}

.side-rail .cart-head {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.side-rail .cart-empty {
  flex: 0 0 auto;
  min-height: 0;
  padding: 12px 8px;
  margin-bottom: 10px;
  gap: 4px;
  border-radius: 16px;
}

.side-rail .cart-empty-icon {
  font-size: 28px;
}

.side-rail .cart-empty-title {
  font-size: 14px;
}

.side-rail .cart-empty-text {
  font-size: 12px;
}

.side-rail .cart-items {
  flex: 1 1 auto;
  min-height: 48px;
  max-height: none;
  overflow: auto;
  margin-bottom: 10px;
  gap: 6px;
}

.side-rail .cart-form,
.side-rail .cart-summary,
.side-rail .primary-cta {
  flex: 0 0 auto;
}

.side-rail .cart-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.side-rail .form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.side-rail .form-label {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

.side-rail .form-input {
  padding: 8px 10px;
  font-size: 13px;
  min-height: 40px;
  box-sizing: border-box;
}

.side-rail .form-textarea {
  min-height: 52px;
  max-height: 80px;
  resize: none;
  line-height: 1.35;
  overflow: auto;
}

.side-rail .pay-opt {
  min-height: 44px;
  padding: 8px 10px;
}

.side-rail .pay-opt-sub {
  display: none;
}

.side-rail .cart-item {
  padding: 8px;
  border-radius: 14px;
  gap: 8px;
}

.side-rail .cart-item-image,
.side-rail .cart-item-image-fallback {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.side-rail .cart-summary {
  margin-bottom: 8px;
}

.side-rail .primary-cta {
  padding: 12px 14px;
  font-size: 15px;
}

.side-rail .panel-title {
  font-size: 18px;
}

.side-rail .panel-subtitle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.side-rail .cart-item-name {
  font-size: 13px;
}

.side-rail .cart-item-price {
  font-size: 12px;
}

.panel-shell {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-shell {
  padding: 18px 22px 16px;
  margin-bottom: 14px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

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

.panel-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: var(--accent);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.soft-chip.dark {
  background: var(--brand);
  color: #fff;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
  border-radius: 20px;
  background: rgba(21, 26, 36, 0.03);
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.meta-chip.success {
  background: #ecfdf5;
  border-color: #d1fae5;
}

.meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-value {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.category-strip-wrap {
  overflow: hidden;
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover {
  border-color: rgba(232, 93, 4, 0.35);
  transform: translateY(-1px);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(21, 26, 36, 0.22);
}

.category-chip-thumb {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 999px;
}

.category-chip-emoji {
  font-size: 18px;
  line-height: 1;
}

.menu-sections {
  display: grid;
  gap: 20px;
}

.category-section {
  padding: 18px 20px 20px;
}

.category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.category-section-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(21, 26, 36, 0.05);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.category-section-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}

.category-section-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-top: 6px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(18, 20, 26, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 93, 4, 0.28);
}

.product-card.product-card-launch {
  animation: product-launch 0.5s ease;
}

@keyframes product-launch {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(0.96); filter: brightness(1.08); }
  100% { transform: scale(1); filter: brightness(1); }
}

.product-card.voice-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.28), 0 18px 36px rgba(232, 93, 4, 0.16);
  transform: translateY(-2px);
  animation: voice-card-pulse 1.6s ease-in-out 2;
}

@keyframes voice-card-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.28), 0 18px 36px rgba(232, 93, 4, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.14), 0 18px 36px rgba(232, 93, 4, 0.2); }
}

.product-image-wrap {
  padding: 12px 12px 0;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #eef1f6;
}

.product-image-fallback {
  display: grid;
  place-items: center;
  font-size: 42px;
  background: #f4f6f9;
  border-radius: 14px;
}

.product-body {
  padding: 12px 14px 6px;
  min-width: 0;
}

.product-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
  color: var(--ink);
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.product-footer {
  margin-top: auto;
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.add-btn {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 11px 18px;
  min-width: 96px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(21, 26, 36, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(232, 93, 4, 0.22);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cart-shell {
  padding: 24px;
}

.side-rail .cart-shell {
  position: static;
  top: auto;
}

.cart-head {
  margin-bottom: 18px;
}

.cart-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  border: 2px dashed var(--line);
  background: rgba(21, 26, 36, 0.03);
  border-radius: 24px;
  padding: 34px 18px;
  margin-bottom: 18px;
}

.cart-empty.compact {
  margin: 0;
}

.cart-empty-icon {
  font-size: 42px;
}

.cart-empty-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

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

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  max-height: 340px;
  overflow: auto;
  padding-left: 2px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  transform-origin: center top;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.cart-item.cart-item-enter {
  animation: cart-item-in 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(232, 93, 4, 0.2);
}

.cart-item.cart-item-bump {
  animation: cart-item-bump 0.45s ease;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(244, 140, 6, 0.28);
}

.cart-item.cart-item-exit {
  animation: cart-item-out 0.4s ease forwards;
  pointer-events: none;
}

.cart-shell.cart-flash {
  animation: cart-shell-flash 0.75s ease;
}

@keyframes cart-item-in {
  0% { opacity: 0; transform: translateX(-28px) scale(0.86); }
  60% { opacity: 1; transform: translateX(4px) scale(1.03); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes cart-item-bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.06); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@keyframes cart-item-out {
  0% { opacity: 1; transform: translateX(0) scale(1); max-height: 140px; margin-bottom: 0; }
  100% { opacity: 0; transform: translateX(36px) scale(0.88); max-height: 0; margin-bottom: -12px; padding-top: 0; padding-bottom: 0; border-width: 0; }
}

@keyframes cart-shell-flash {
  0% { box-shadow: 0 16px 44px rgba(18, 20, 26, 0.08); }
  40% { box-shadow: 0 0 0 8px rgba(232, 93, 4, 0.22), 0 20px 48px rgba(232, 93, 4, 0.18); }
  100% { box-shadow: 0 16px 44px rgba(18, 20, 26, 0.08); }
}

.cart-fly-ghost {
  position: fixed;
  z-index: 2147483000;
  border-radius: 20px;
  background: #fff center/cover no-repeat;
  box-shadow:
    0 22px 48px rgba(18, 20, 26, 0.28),
    0 0 0 3px rgba(232, 93, 4, 0.22);
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: transform, opacity;
  /* JS drives motion via WAAPI; keep CSS keyframes as fallback only */
  animation: none;
}

.cart-fly-ghost.cart-fly-css {
  animation: cart-fly-arc 0.95s cubic-bezier(0.22, 0.82, 0.2, 1) forwards;
}

.cart-fly-emoji {
  font-size: 42px;
  line-height: 1;
}

@keyframes cart-fly-arc {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  45% {
    opacity: 1;
    transform:
      translate(calc(var(--fly-x) * 0.45), calc(var(--fly-y) * 0.35 + var(--fly-arc)))
      scale(0.78)
      rotate(-8deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--fly-x), var(--fly-y)) scale(0.22) rotate(12deg);
  }
}

.cart-shell.cart-catch,
#mobileCartButton.cart-catch {
  animation: cart-catch-pop 0.45s ease;
}

@keyframes cart-catch-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.cart-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(21, 26, 36, 0.05);
  flex-shrink: 0;
}

.cart-item-image-fallback {
  display: grid;
  place-items: center;
  font-size: 26px;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
}

.cart-item-mods {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: -2px 0 6px;
}

.cart-shell.cart-flash {
  outline: 3px solid var(--accent-2);
  box-shadow: 0 0 0 6px rgba(244, 140, 6, 0.2);
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.mobile-cart-form {
  margin-bottom: 12px;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 20, 26, 0.55);
  padding: 20px;
}

.checkout-overlay.hidden {
  display: none !important;
}

.checkout-modal {
  width: min(440px, 100%);
  border-radius: 28px;
  background: #fff;
  padding: 28px 22px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.checkout-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.checkout-state.hidden {
  display: none !important;
}

.checkout-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.checkout-amount {
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
}

.checkout-meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.checkout-hint {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.ghost-cta {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.cart-item-price {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21, 26, 36, 0.03);
  padding: 6px;
  border-radius: 16px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
}

.cart-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 14px;
  color: var(--ink);
  font-weight: 900;
}

.form-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.form-textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.summary-row strong {
  font-size: 18px;
  font-weight: 900;
}

.summary-row.muted {
  color: var(--muted);
  font-size: 13px;
}

.primary-cta {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ok), #10b981);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(21, 128, 61, 0.24);
}

.mobile-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 26, 0.48);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mobile-cart-sheet {
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 18px 18px 32px;
  max-height: 88vh;
  overflow: auto;
}

.mobile-cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-cart-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.mobile-cart-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.mobile-cart-items {
  max-height: none;
}

.mobile-cart-footer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ghost-icon-btn {
  border: 0;
  background: rgba(21, 26, 36, 0.05);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink);
}

.home-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(21, 26, 36, 0.1);
  background: rgba(21, 26, 36, 0.05);
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.home-header-btn:hover {
  background: rgba(21, 26, 36, 0.09);
  transform: translateY(-1px);
}

.home-header-btn:active {
  transform: translateY(0);
}

.home-header-btn .home-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
}

@media (max-width: 1279px) {
  .kiosk-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(400px, 1fr);
  }

  .product-title {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .kiosk-header {
    padding: 10px 16px 6px;
  }

  .kiosk-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr);
    padding: 6px 12px 10px;
  }

  .brand-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-title {
    font-size: 15px;
  }

  .product-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .product-price {
    font-size: 14px;
  }

  .add-btn {
    padding: 9px 12px;
    min-width: 72px;
    font-size: 13px;
  }

  .panel-title {
    font-size: 24px;
  }

  .category-section-title {
    font-size: 22px;
  }

  .kiosk-brand {
    align-items: flex-start;
  }

  .brand-title {
    font-size: 24px;
  }

  .brand-subtitle {
    flex-wrap: wrap;
  }

  .kiosk-header {
    flex-direction: column;
    align-items: stretch;
  }

  .kiosk-header-actions {
    justify-content: space-between;
  }
}

@media (min-width: 1025px) {
  .mobile-cart-backdrop {
    display: none !important;
  }
}

/* ── Voice Button ── */
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 12px 20px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(232, 93, 4, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.voice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(232, 93, 4, 0.4);
}

.voice-btn.listening {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: voice-pulse 1.4s ease-in-out infinite;
}

.voice-btn-icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .voice-btn-label {
    display: none;
  }
  .voice-btn {
    padding: 12px 14px;
  }
}

@keyframes voice-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* legacy overlay styles kept unused / neutralized */
.voice-overlay {
  display: none !important;
}

.voice-modal {
  position: relative;
  background: #fff;
  border-radius: 32px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.voice-overlay-close {
  position: absolute;
  top: 18px;
  left: 18px;
  border: 0;
  background: rgba(21, 26, 36, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.voice-state.hidden {
  display: none !important;
}

/* ── Waveform ── */
.voice-waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 72px;
}
.voice-waveform-inline {
  height: 24px;
}

.voice-waveform.is-live .wave-bar {
  animation: none;
  transform-origin: center bottom;
}

.wave-bar {
  display: block;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  animation: wave-dance 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s;    height: 20px; }
.wave-bar:nth-child(2) { animation-delay: 0.1s;  height: 36px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s;  height: 56px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s;  height: 72px; }
.wave-bar:nth-child(5) { animation-delay: 0.2s;  height: 56px; }
.wave-bar:nth-child(6) { animation-delay: 0.1s;  height: 36px; }
.wave-bar:nth-child(7) { animation-delay: 0s;    height: 20px; }

@keyframes wave-dance {
  0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
  50%       { transform: scaleY(1);   opacity: 1;   }
}

/* ── Spinner ── */
.voice-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px solid #e2e8f0;
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Status text ── */
.voice-status-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
}

.voice-hint {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.8;
}

/* ── Stop button ── */
.voice-stop-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 18px;
  cursor: pointer;
}

.voice-stop-icon {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #dc2626;
}

/* ── Result / Error icon ── */
.voice-result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ok), #10b981);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.28);
}

.voice-result-icon.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.28);
}



/* ── دکمه‌های جدید suggestions ── */
.voice-suggest-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.voice-suggest-retry-btn,
.voice-suggest-confirm-btn,
.voice-suggest-continue-btn {
  flex: 1;
  border: 0;
  border-radius: 16px;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.15s;
}

.voice-suggest-retry-btn {
  background: rgba(21, 26, 36, 0.05);
  color: var(--muted);
}

.voice-suggest-confirm-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 93, 4, 0.28);
}

.voice-suggest-continue-btn {
  background: rgba(21, 26, 36, 0.06);
  color: var(--brand);
}

/* ── Suggestions ── */
.voice-suggestions-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.voice-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-height: min(48vh, 420px);
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.voice-suggestion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 14px 10px;
  background: var(--surface-solid);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.voice-suggestion-card:hover {
  border-color: rgba(232, 93, 4, 0.4);
  background: #fff7ed;
}

.voice-suggestion-card.selected {
  border-color: var(--accent);
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.14);
}

.voice-suggestion-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.vsq-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.vsq-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
}

.voice-suggestion-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  background: #e2e8f0;
}

.voice-suggestion-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.4;
}

.voice-suggestion-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.voice-assistant-message {
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  background: rgba(21, 26, 36, 0.05);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.voice-assistant-message:empty {
  display: none;
}

.voice-prefs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin: 8px 0 4px;
}

.voice-prefs-chips:empty {
  display: none;
}

.voice-pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.voice-pref-chip span {
  opacity: 0.55;
  font-size: 14px;
  line-height: 1;
}

.voice-reset-session-btn {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.voice-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ==========================================================================
   [DORMANT CSS: Kept for future re-enablement of Personalize Panel Modal]
   ========================================================================== */
.personalize-btn {
  background: var(--brand);
}

.personalize-panel {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(18, 20, 26, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.personalize-panel.hidden {
  display: none;
}

.personalize-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.personalize-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}

.personalize-copy,
.personalize-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.personalize-voice-status {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  min-height: 1.4em;
  margin: 0;
}

.personalize-fields .pref-step-active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.16);
}

.personalize-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.personalize-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.personalize-fields.hidden {
  display: none;
}

/* ── Toast ── */
.voice-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 16px 28px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  z-index: 200;
  box-shadow: 0 20px 44px rgba(21, 26, 36, 0.22);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  text-overflow: ellipsis;
  overflow: hidden;
  animation: toast-in 0.25s ease;
}

.voice-toast.hidden {
  display: none !important;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Locked State while Voice Assistant is Busy ── */
body[data-voice-busy="true"] .product-card .add-btn,
body[data-voice-busy="true"] #submitOrderBtn,
body[data-voice-busy="true"] #mobileSubmitOrderBtn,
body[data-voice-busy="true"] .attract-link-btn {
  opacity: 0.68;
  cursor: wait;
}

body[data-voice-busy="true"] .category-chip {
  cursor: wait;
}

/* ── Attract landing ── */
.attract-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 15%, rgba(232, 93, 4, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30, 58, 95, 0.35), transparent 60%),
    linear-gradient(165deg, #0c0f14 0%, #151a24 45%, #1a2438 100%);
  color: #f8fafc;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.attract-screen.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.attract-glow {
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 140, 6, 0.28), transparent 68%);
  filter: blur(8px);
  animation: attract-pulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes attract-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.attract-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.attract-brand {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: 0 8px 40px rgba(232, 93, 4, 0.25);
}

.attract-headline {
  margin: 0;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 700;
  color: #e2e8f0;
}

.attract-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.attract-mic-btn {
  position: relative;
  margin-top: 12px;
  width: min(220px, 56vw);
  height: min(220px, 56vw);
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent-2), var(--accent) 55%, #c2410c);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(232, 93, 4, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attract-mic-btn:active {
  transform: scale(0.96);
}

.attract-mic-btn * {
  pointer-events: none;
}

.attract-mic-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(244, 140, 6, 0.5);
  animation: attract-ring 2.4s ease-out infinite;
}

@keyframes attract-ring {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.18); opacity: 0; }
}

.attract-mic-icon {
  width: 48px;
  height: 48px;
}

.attract-mic-label {
  font-size: 15px;
  font-weight: 800;
  max-width: 9em;
  line-height: 1.3;
}

/* ==========================================================================
   [DORMANT CSS: Kept for future re-enablement of Attract Secondary Buttons]
   ========================================================================== */
.attract-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-top: 8px;
}

.attract-link-btn {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 8px 4px;
}

.attract-link-btn:hover {
  color: #fff;
}

.kiosk-header-slim {
  padding-top: 10px;
  padding-bottom: 4px;
}

.brand-subtitle-slim {
  font-size: 13px;
}



.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;
}

.voice-result-actions,
.voice-suggest-actions {
  justify-content: center;
}
/* ── Payment toggle (replaces clipped <select>) ── */
.pay-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.pay-opt {
  min-height: 52px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: right;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pay-opt:hover {
  border-color: rgba(232, 93, 4, 0.4);
}

.pay-opt.active {
  border-color: var(--accent);
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.14);
}

.pay-opt.is-disabled,
.pay-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pay-opt-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.pay-opt-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.form-optional {
  font-weight: 600;
  color: var(--muted);
}

/* denser, zoom-safe side rail */
.kiosk-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(460px, 1fr);
}

.side-rail .panel-title {
  font-size: 17px;
}

.side-rail .primary-cta {
  min-height: 48px;
  font-size: 15px;
  border-radius: 14px;
}

.side-rail .qty-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 18px;
}

.voice-dock-shell {
  padding: 10px 10px 8px;
  border-radius: 18px;
}

.voice-dock-title {
  font-size: 14px;
}

.voice-dock-mic {
  padding: 10px 8px;
  border-radius: 14px;
  font-size: 12px;
  gap: 4px;
}

.voice-dock .voice-result-actions,
.voice-dock .voice-suggest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex-wrap: nowrap;
}



/* Suggestion picker is a popup — never inflate the cart-side dock. */
.voice-suggest-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
}
.voice-suggest-modal.hidden {
  display: none !important;
}
.voice-suggest-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}
.voice-suggest-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface-solid, #fff);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  padding: 16px 16px 14px;
}
.voice-suggest-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.voice-suggest-modal-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}
.voice-suggest-modal .voice-assistant-message {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 6px;
  margin-bottom: 14px;
}
.voice-suggest-listening-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 6px 12px;
  margin: 6px 0 2px;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.voice-suggest-listening-bar.is-speaking {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
.voice-suggest-listening-bar.is-processing {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.listening-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.5s infinite;
  flex-shrink: 0;
}
.voice-suggest-listening-bar.is-speaking .listening-pulse-dot {
  background: #94a3b8;
  animation: none;
  box-shadow: none;
}
.voice-suggest-listening-bar.is-processing .listening-pulse-dot {
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulseBlue 1.5s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes pulseBlue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.voice-suggest-modal .voice-state {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1 1 auto;
}
.voice-suggest-modal .voice-suggestions-title {
  font-size: 14px;
  font-weight: 800;
}
.voice-suggest-modal .voice-suggestions-grid {
  flex: 1 1 auto;
  min-height: 120px;
}
.voice-suggest-modal .voice-suggest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.voice-suggest-modal.confirm-ask .voice-suggestions-title {
  display: none;
}
.voice-suggest-modal.confirm-ask .voice-suggest-actions {
  grid-template-columns: 1fr 1fr;
}
.voice-suggest-modal.confirm-ask #voiceSuggestConfirmBtn,
.voice-suggest-modal.confirm-ask #voiceSuggestContinueBtn,
.voice-suggest-modal.confirm-ask #voiceSuggestRetryBtn {
  display: none !important;
}
.voice-suggest-modal.confirm-ask #voiceSuggestTalkBtn {
  grid-column: 1 / -1;
}
.voice-suggest-modal .voice-suggestion-card.confirm-mode.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.2);
  background: #fff7ed;
}

.voice-dock .voice-suggest-retry-btn,
.voice-dock .voice-suggest-confirm-btn,
.voice-dock .voice-suggest-continue-btn,
.voice-dock .voice-stop-btn,
.voice-dock .voice-reset-session-btn,
.voice-suggest-modal .voice-suggest-retry-btn,
.voice-suggest-modal .voice-suggest-confirm-btn,
.voice-suggest-modal .voice-suggest-continue-btn {
  min-height: 38px;
  border-radius: 12px;
  padding: 8px 8px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-height: 900px) {
  .kiosk-layout {
    padding-top: 4px;
    gap: 8px;
  }
  .side-rail {
    gap: 6px;
  }
  
  
  .side-rail .cart-shell {
    padding: 10px;
    min-height: 240px;
  }
  .side-rail .form-textarea {
    min-height: 48px;
    max-height: 72px;
  }
  .side-rail .pay-opt {
    min-height: 40px;
    padding: 6px 8px;
  }
  .side-rail .summary-row.muted {
    display: none;
  }
}

@media (min-width: 769px) {
  #mobileCartButton {
    display: none !important;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .kiosk-layout {
    grid-template-columns: 1fr;
  }

  .desktop-cart .cart-shell {
    display: none;
  }

  .side-rail.desktop-cart {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    height: auto;
    max-height: min(42vh, 380px);
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.92) 18%);
  }

  
}

/* ── ChatGPT Style Voice UI ── */
.ai-voice-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 16px 8px;
  background: transparent;
  width: 100%;
}

.ai-voice-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  animation: fadeIn 0.3s ease-out;
}

.ai-voice-state.hidden {
  display: none !important;
}

.ai-voice-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #111, #333);
  color: white;
  position: relative;
}

.ai-voice-orb.idle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.ai-voice-orb.listening {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: orbPulse 1.5s infinite alternate;
  width: 80px;
  height: 80px;
}

.ai-voice-orb.processing {
  background: linear-gradient(135deg, #3f3f3f, #1a1a1a);
}

/* ── Production Voice State Machine Body Indicators (Deterministic Observability) ── */
body[data-voice-state="ready"] .ai-voice-orb {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.35);
}

body[data-voice-state="greeting"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.45);
}

body[data-voice-state="listening"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.4);
}

body[data-voice-state="speech_candidate"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.55);
  transform: scale(1.04);
}

body[data-voice-state="speech_detected"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.6);
  transform: scale(1.06);
}

body[data-voice-state="speech_active"] .ai-voice-orb.listening,
body[data-voice-state="recording"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 40px rgba(5, 150, 105, 0.65);
  transform: scale(1.08);
}

body[data-voice-state="endpointing"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.55);
  transform: scale(1.03);
}

body[data-voice-state="processing"] .ai-voice-orb.processing,
body[data-voice-state="processing"] .ai-voice-orb.listening {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.45);
}

body[data-voice-state="responding"] .ai-voice-message {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

body[data-voice-state="error"] .ai-voice-orb {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.55);
}

.ai-voice-orb.small {
  width: 48px;
  height: 48px;
}
.ai-voice-orb.small svg {
  width: 20px;
  height: 20px;
}

.orb-icon {
  width: 28px;
  height: 28px;
  stroke: white;
}

.ai-voice-tooltip {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  opacity: 0.8;
  margin-top: 6px;
}
.ai-voice-tooltip.small {
  font-size: 12px;
  opacity: 0.6;
}
.ai-voice-tooltip.error {
  color: #dc2f02;
}

.ai-voice-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}

.ai-voice-btn {
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  background: var(--surface-2);
  color: var(--ink);
}

.ai-voice-btn.secondary {
  background: rgba(0,0,0,0.05);
}

.ai-voice-message {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  line-height: 1.5;
  margin-top: 10px;
  margin-bottom: 22px;
}

/* Spinner for processing */
.spinner-ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes orbPulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.4); transform: scale(0.95); }
  100% { box-shadow: 0 0 0 20px rgba(232, 93, 4, 0); transform: scale(1.05); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.voice-waveform {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.voice-waveform .wave-bar {
  width: 4px;
  height: 12px;
  background: white;
  border-radius: 2px;
  transition: height 0.1s ease;
}
.voice-waveform-inline .wave-bar {
  background: var(--accent);
}
.voice-result-icon { display: none !important; }

/* ── Silence / Mute Toggle Button ── */
.ai-silence-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 14px;
}

.ai-silence-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--surface, #ffffff);
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  user-select: none;
}

.ai-silence-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.ai-silence-toggle:active {
  transform: translateY(0);
}

.ai-silence-toggle.muted {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}

.ai-silence-toggle.muted .ai-silence-icon {
  stroke: #b91c1c;
}

/* ── Muted / Disabled Voice State ── */
.ai-voice-container.is-muted .ai-voice-orb,
.ai-voice-orb.muted,
body[data-voice-muted="true"] .ai-voice-orb {
  background: #cbd5e1 !important;
  color: #475569 !important;
  border: 2px solid #94a3b8 !important;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2) !important;
  animation: none !important;
  transform: scale(0.94) !important;
  cursor: pointer !important;
  position: relative;
}

.ai-voice-container.is-muted .ai-voice-orb svg,
.ai-voice-orb.muted svg,
body[data-voice-muted="true"] .ai-voice-orb svg {
  stroke: #475569 !important;
  color: #475569 !important;
  opacity: 0.7;
}

.ai-voice-container.is-muted .ai-voice-orb::after,
.ai-voice-orb.muted::after,
body[data-voice-muted="true"] .ai-voice-orb::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 4px;
  background: #ef4444;
  border-radius: 2px;
  transform: rotate(-45deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.ai-voice-container.is-muted .ai-voice-tooltip,
body[data-voice-muted="true"] .ai-voice-tooltip {
  color: #64748b !important;
  font-weight: 700;
  font-size: 13px;
}

/* Inline AI Suggestions Menu Section */
.ai-suggestions-section {
  border: 2px solid #86efac !important;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%) !important;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.12) !important;
  position: relative;
  margin-bottom: 24px;
  animation: fadeInDown 0.35s ease-out;
}

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

.ai-suggestion-hint {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}

.ai-suggest-card {
  position: relative;
  border: 2px solid #bbf7d0 !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-suggest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18) !important;
  border-color: #4ade80 !important;
}

.ai-card-index-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.category-chip.ai-suggest-chip {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
  font-weight: 800;
}
.category-chip.ai-suggest-chip.active {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}


