/**
 * FORNO & BRASA - TOTEM & TABLET KIOSK STYLESHEET
 * UI Ultra-touch, Dark Mode Gastronômico, Resolução Escalável para Totens e Tablets.
 */

:root {
  --bg-kiosk: #080c14;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --border-kiosk: rgba(255, 255, 255, 0.08);
  --border-focus: #f97316;
  
  --primary-orange: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.35);
  --accent-gold: #fbbf24;
  --accent-green: #10b981;
  --accent-blue: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body.kiosk-body {
  background-color: var(--bg-kiosk);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ==============================================================================
   1. SCREENSAVER / STANDBY FULLSCREEN
   ============================================================================== */
.screensaver-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #1e1b4b 0%, #030712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.screensaver-bg {
  position: absolute;
  inset: 0;
  background: url('/cardapio/hero_banner.jpg') center/cover no-repeat;
  opacity: 0.25;
  filter: blur(10px) brightness(0.6);
  transform: scale(1.05);
  animation: bgZoomFloat 25s infinite alternate ease-in-out;
}

@keyframes bgZoomFloat {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.screensaver-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screensaver-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: var(--accent-gold);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.screensaver-logo {
  width: 130px;
  height: 130px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 50px var(--primary-glow);
  margin-bottom: 28px;
  object-fit: cover;
  border: 2px solid rgba(249, 115, 22, 0.3);
}

.screensaver-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #fdba74 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.screensaver-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.touch-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.touch-icon-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  animation: touchPulse 2s infinite;
}

@keyframes touchPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 25px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.touch-prompt span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fdba74;
}

/* ==============================================================================
   2. TOP BAR DO TOTEM
   ============================================================================== */
.kiosk-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.kiosk-header {
  height: 80px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-kiosk);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 20px;
  flex-shrink: 0;
}

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

.kiosk-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.kiosk-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.kiosk-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.kiosk-search-wrap {
  flex: 1;
  max-width: 450px;
  position: relative;
  display: flex;
  align-items: center;
}

.kiosk-search-wrap svg {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
}

.kiosk-search-wrap input {
  width: 100%;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-kiosk);
  border-radius: var(--radius-xl);
  padding: 0 20px 0 48px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kiosk-search-wrap input:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.kiosk-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.kiosk-cart-btn {
  height: 52px;
  padding: 0 20px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.15s;
}

.kiosk-cart-btn:active {
  transform: scale(0.96);
}

.kiosk-cart-count {
  background: #fff;
  color: #c2410c;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ==============================================================================
   3. LAYOUT PRINCIPAL: CATEGORIAS + PRODUTOS + GAVETA
   ============================================================================== */
.kiosk-main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar de Categorias Touch */
.kiosk-categories-sidebar {
  width: 220px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-kiosk);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 10px;
  overflow-y: auto;
  flex-shrink: 0;
}

.btn-kiosk-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.btn-kiosk-category .cat-icon {
  font-size: 1.4rem;
}

.btn-kiosk-category:hover, .btn-kiosk-category.active {
  background: var(--bg-card);
  color: #fff;
  border-color: rgba(249, 115, 22, 0.4);
}

.btn-kiosk-category.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.05));
  border-color: var(--primary-orange);
  color: #fdba74;
}

/* Área de Produtos */
.kiosk-products-area {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.kiosk-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.kiosk-products-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

.products-count-badge {
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 999px;
}

.kiosk-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

/* Card de Produto Touch */
.kiosk-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-kiosk);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.kiosk-product-card:active {
  transform: scale(0.97);
  border-color: var(--primary-orange);
}

.product-card-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #0b0f19;
  overflow: hidden;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.badge-3d-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #f97316;
  color: #fdba74;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 25;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s, background 0.15s;
}

.badge-3d-tag:hover, .badge-3d-tag:active {
  transform: scale(1.1);
  background: #f97316;
  color: #fff;
}

.btn-3d-card-action {
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fdba74;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  z-index: 10;
  pointer-events: auto;
}

.btn-3d-card-action:hover, .btn-3d-card-action:active {
  background: #f97316;
  color: #fff;
  transform: scale(1.05);
}

.product-card-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.btn-add-touch {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==============================================================================
   4. GAVETA DO CARRINHO LATERAL
   ============================================================================== */
.kiosk-cart-drawer {
  width: 360px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-kiosk);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

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

.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.cart-drawer-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.btn-clear-cart {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-clear-cart:hover {
  color: #f87171;
}

.cart-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-cart-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

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

.cart-item-row {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-gold);
}

.cart-item-customizations {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-md);
}

.btn-cart-qty {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--bg-surface);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.cart-qty-val {
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-drawer-footer {
  padding: 20px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-kiosk);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cart-summary-row.total {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 800;
}

.total-highlight {
  color: var(--accent-gold);
  font-size: 1.4rem;
}

.btn-checkout-kiosk {
  height: 56px;
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s, opacity 0.2s;
}

.btn-checkout-kiosk:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-checkout-kiosk:not(:disabled):active {
  transform: scale(0.97);
}

/* ==============================================================================
   5. MODAL DE PERSONALIZAÇÃO & DIALOGS
   ============================================================================== */
.kiosk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.product-custom-dialog, .kiosk-checkout-dialog, .pix-dialog-box, .kiosk-success-box, .inactivity-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-kiosk);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.product-custom-dialog {
  width: 90vw;
  max-width: 680px;
}

.custom-dialog-header, .checkout-dialog-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-kiosk);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.custom-dialog-header h2, .checkout-dialog-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.custom-dialog-header p, .checkout-dialog-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.btn-close-modal {
  background: var(--bg-card);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-dialog-body, .checkout-dialog-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-product-hero {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.modal-product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-section-label, .step-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}

.custom-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.btn-custom-option {
  background: var(--bg-card);
  border: 1px solid var(--border-kiosk);
  padding: 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s;
}

.btn-custom-option.selected {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.05));
  border-color: var(--primary-orange);
  color: #fdba74;
}

.kiosk-input {
  width: 100%;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-kiosk);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.kiosk-input:focus {
  border-color: var(--primary-orange);
}

.custom-dialog-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-kiosk);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qty-selector-touch {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-xl);
}

.qty-selector-touch .btn-qty {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

.qty-selector-touch span {
  font-size: 1.3rem;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
}

.btn-add-modal-cart {
  flex: 1;
  height: 56px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* ==============================================================================
   6. MODAL DE CHECKOUT DO TOTEM
   ============================================================================== */
.kiosk-checkout-dialog {
  width: 90vw;
  max-width: 720px;
}

.checkout-step-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-kiosk);
}

.dining-type-selector, .payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.btn-dining-choice, .btn-payment-method {
  background: var(--bg-surface);
  border: 2px solid var(--border-kiosk);
  padding: 16px;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-dining-choice .choice-icon, .btn-payment-method .pay-icon {
  font-size: 2rem;
  margin-bottom: 2px;
}

.btn-dining-choice.active, .btn-payment-method.active {
  border-color: var(--primary-orange);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.05));
  color: #fff;
}

.checkout-total-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--primary-orange);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-total-banner span {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: block;
}

.checkout-total-banner strong {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.btn-confirm-order {
  height: 56px;
  padding: 0 32px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* ==============================================================================
   7. MODAL DE PIX & TELA DE SUCESSO
   ============================================================================== */
.pix-dialog-box {
  width: 90vw;
  max-width: 480px;
  padding: 36px;
  text-align: center;
  align-items: center;
}

.pix-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  display: inline-block;
}

.pix-qr-wrap {
  margin: 24px 0;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.pix-qr-wrap img {
  width: 220px;
  height: 220px;
}

.pix-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 10px;
}

.btn-pix-sim-paid {
  height: 50px;
  padding: 0 24px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}

.btn-pix-cancel {
  height: 50px;
  padding: 0 20px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-kiosk);
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Tela de Sucesso */
.kiosk-success-box {
  width: 90vw;
  max-width: 540px;
  padding: 48px 36px;
  text-align: center;
  align-items: center;
}

.success-checkmark-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.success-pill {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
}

.success-order-num {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  margin: 10px 0;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 4px 20px var(--primary-glow);
}

.success-msg {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

.success-auto-return {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.btn-new-order-kiosk {
  height: 52px;
  padding: 0 36px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

/* Inatividade */
.inactivity-box {
  width: 90vw;
  max-width: 440px;
  padding: 36px;
  text-align: center;
  align-items: center;
}

.inactivity-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.btn-continue-touch {
  height: 52px;
  width: 100%;
  background: #f97316;
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 20px;
}

/* ==============================================================================
   8. VISUALIZADOR 3D 360° TOUCH & SIMULAÇÃO
   ============================================================================== */
.btn-inspect-3d-hero {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fdba74;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: all 0.2s;
}

.btn-inspect-3d-hero:active {
  transform: scale(0.95);
  background: #f97316;
  color: #fff;
}

.kiosk-3d-dialog {
  width: 95vw;
  max-width: 960px;
  height: 85vh;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kiosk-3d-header {
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-kiosk);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.badge-3d-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fdba74;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 2px;
}

.kiosk-3d-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.kiosk-3d-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.kiosk-3d-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.kiosk-3d-stage {
  flex: 1;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-floating-controls {
  position: absolute;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.btn-float-control {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-float-control:hover, .btn-float-control:active {
  background: rgba(249, 115, 22, 0.3);
  border-color: #f97316;
  color: #fdba74;
}

.badge-3d-base-info {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 8px;
}

.kiosk-3d-sidebar {
  width: 300px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-kiosk);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.kiosk-3d-product-info {
  flex-shrink: 0;
}

.kiosk-3d-price {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.1;
}

.kiosk-3d-desc-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 4px;
}

.bases-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.btn-base-choice {
  background: var(--bg-card);
  border: 1px solid var(--border-kiosk);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.btn-base-choice.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(249, 115, 22, 0.05));
  border-color: var(--primary-orange);
  color: #fdba74;
}

.kiosk-qr-ar-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin: auto 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.kiosk-ar-qr-wrapper {
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.kiosk-ar-qr-wrapper:hover {
  transform: scale(1.02);
}

.kiosk-ar-qr-img {
  width: 115px;
  height: 115px;
  border-radius: 4px;
  display: block;
}

.qr-ar-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.qr-ar-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}

.qr-ar-text small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
  max-width: 240px;
}

.btn-order-from-3d {
  height: 46px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
  margin-top: auto;
}

/* Responsividade para Tablet Horizontal / Vertical */
@media (max-width: 900px) {
  .kiosk-categories-sidebar {
    width: 160px;
    padding: 10px 6px;
  }
  .btn-kiosk-category {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
  .kiosk-cart-drawer {
    width: 300px;
  }
}
