/* AUTOMIX - Autoatendimento (Terminal de Vendas Expressas) 
 * Mobile-First & Clean Light Theme Stylesheet
 */
:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: rgba(5, 150, 105, 0.35);

  --brand-green: #059669;
  --brand-green-hover: #047857;
  --brand-green-light: #ecfdf5;
  --brand-green-glow: rgba(5, 150, 105, 0.22);

  --accent-cyan: #0284c7;
  --accent-cyan-light: #f0f9ff;
  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-rose: #e11d48;
  --accent-rose-light: #fff1f2;
  --accent-blue: #2563eb;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
  --shadow-bottom-bar: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(5, 150, 105, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 92%, rgba(2, 132, 199, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Light Helpers */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* Header */
.pos-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.brand-logo-img {
  height: 38px;
  max-height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}

.machine-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: #047857;
  background: var(--brand-green-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

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

.btn-customer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-customer:hover {
  background: #e2e8f0;
  border-color: var(--brand-green);
}

.btn-cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-green);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--brand-green-glow);
  white-space: nowrap;
}

.btn-cart-toggle:hover,
.btn-cart-toggle:active {
  background: var(--brand-green-hover);
  transform: translateY(-1px);
}

.cart-badge {
  background: #ffffff;
  color: var(--brand-green);
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main POS Container */
.pos-container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 14px 100px;
  flex: 1;
}

/* Scanner & Search Section */
.scanner-section {
  margin-bottom: 16px;
}

.scanner-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.scanner-box:focus-within {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

.scanner-icon {
  font-size: 1.3rem;
  color: var(--brand-green);
}

.scanner-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
}

.scanner-input::placeholder {
  color: var(--text-dim);
}

.scanner-hint-badge {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Categories / Filter Pills */
.categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.category-pill:hover,
.category-pill.active {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
  font-weight: 700;
  box-shadow: 0 4px 12px var(--brand-green-glow);
}

/* Dynamic Products Grid - Mobile-first 2 columns */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 680px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

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

/* Product Card - Clean White Elevation */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}

.product-image-container {
  width: 100%;
  height: 125px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

.product-img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-placeholder-icon {
  font-size: 2.8rem;
  opacity: 0.8;
}

.product-stock-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-stock-tag.in-stock {
  color: #047857;
  background: var(--brand-green-light);
  border-color: #a7f3d0;
}

.product-stock-tag.low-stock {
  color: #b45309;
  background: var(--accent-amber-light);
  border-color: #fde68a;
}

.product-ean {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: monospace;
  margin-bottom: 3px;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-green);
  letter-spacing: -0.3px;
}

.btn-add-item {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-green-light);
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-add-item:hover,
.btn-add-item:active {
  background: var(--brand-green);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 3px 10px var(--brand-green-glow);
}

/* Floating Bottom Bar (Mobile Cart Summary) */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 18px;
  z-index: 35;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-bottom-bar);
  animation: slideUp 0.25s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-cart-bar.visible {
  display: flex;
}

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

.mobile-cart-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mobile-cart-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-green);
}

/* Cart Offcanvas Drawer / Mobile Bottom-Sheet */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-left: 1px solid var(--border-subtle);
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.12);
}

.cart-overlay.open .cart-drawer {
  transform: translateX(0);
}

@media (max-width: 640px) {
  .cart-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    transform: translateY(100%);
  }

  .cart-overlay.open .cart-drawer {
    transform: translateY(0);
  }
}

.cart-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.cart-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.btn-close {
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.btn-close:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.cart-item-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

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

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--brand-green);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qty-btn:hover {
  background: #f1f5f9;
  border-color: var(--brand-green);
}

.qty-value {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: var(--text-main);
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--accent-rose);
  padding: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.75;
}

.btn-remove-item:hover {
  opacity: 1;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

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

.total-row.grand-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.grand-total-amount {
  color: var(--brand-green);
}

.cart-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-checkout-pix {
  background: var(--brand-green);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--brand-green-glow);
}

.btn-checkout-pix:hover,
.btn-checkout-pix:active {
  background: var(--brand-green-hover);
  transform: translateY(-1px);
}

.btn-checkout-later {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-checkout-later:hover {
  background: #f1f5f9;
  border-color: var(--accent-cyan);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  padding: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  background: #ffffff;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

.btn-primary {
  width: 100%;
  background: var(--brand-green);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--brand-green-glow);
}

.btn-primary:hover {
  background: var(--brand-green-hover);
}

.btn-secondary {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 11px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-quick-demo {
  background: var(--brand-green-light);
  border: 1px dashed var(--brand-green);
  color: #047857;
  padding: 11px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.btn-quick-demo:hover {
  background: #d1fae5;
}

/* Pix Modal Display */
.pix-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pix-qr-wrapper {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.pix-qr-img {
  width: 210px;
  height: 210px;
  display: block;
}

.pix-copia-cola-box {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pix-code-text {
  flex: 1;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.btn-copy {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn-copy:hover {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
}

.pix-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--brand-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Success Celebratory State */
.success-card {
  text-align: center;
  padding: 24px 16px;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  background: var(--brand-green-light);
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px var(--brand-green-glow);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.receipt-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 18px 0;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.receipt-row strong {
  color: var(--text-main);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 400px;
  margin: 0 auto;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInDown 0.25s ease forwards;
  pointer-events: auto;
}

.toast.success { border-left: 4px solid var(--brand-green); }
.toast.error { border-left: 4px solid var(--accent-rose); }
.toast.info { border-left: 4px solid var(--accent-cyan); }

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

/* Mobile-First Deep Responsiveness */
@media (max-width: 480px) {
  .pos-header {
    padding: 8px 12px;
  }
  .brand-logo-img {
    height: 32px;
    max-width: 110px;
  }
  .machine-badge {
    max-width: 100px;
    font-size: 0.62rem;
    padding: 1px 6px;
  }
  .header-actions {
    gap: 6px;
  }
  .btn-customer {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  .btn-cart-toggle {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }
  .cart-badge {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
  .pos-container {
    padding: 10px 10px 85px;
  }
  .scanner-box {
    padding: 6px 10px;
  }
  .scanner-hint-badge {
    display: none;
  }
  .categories-bar {
    gap: 6px;
    margin-bottom: 12px;
  }
  .category-pill {
    padding: 6px 12px;
    font-size: 0.76rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    padding: 10px;
  }
  .product-image-container {
    height: 105px;
  }
  .product-title {
    font-size: 0.8rem;
    line-height: 1.25;
  }
  .product-price {
    font-size: 1.05rem;
  }
  .btn-add-item {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }
  .mobile-cart-bar {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-cart-total {
    font-size: 1.1rem;
  }
}

@media (max-width: 360px) {
  .brand-logo-img {
    height: 28px;
    max-width: 85px;
  }
  #header-cart-total {
    display: none;
  }
  .products-grid {
    gap: 8px;
  }
  .product-card {
    padding: 8px;
  }
}
