html,
body {
  font-family: 'Inter', sans-serif;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

.mobile-safe-nav {
  padding-bottom: max(0.375rem, env(safe-area-inset-bottom));
}

.mobile-safe-drawer {
  padding-bottom: env(safe-area-inset-bottom);
}

@media (pointer: coarse) {
  button,
  [data-product-card] {
    touch-action: manipulation;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sync Status Indicators */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s ease;
}

.sync-pill--synced {
  background-color: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sync-pill--synced-light {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.sync-pill--pending {
  background-color: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sync-pill--pending-light {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sync-pill--syncing {
  background-color: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.sync-pill--syncing-light {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.sync-pill--error {
  background-color: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.sync-pill--error-light {
  background-color: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.sync-pill--local {
  background-color: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.sync-pill--local-light {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.sync-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  display: inline-block;
  flex-shrink: 0;
}

.sync-dot--pulse {
  animation: syncPulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.sync-mode-btn {
  flex: 1;
  padding: 0.5rem 0.625rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background-color: transparent;
  transition: all 0.15s ease;
  text-align: center;
}

.sync-mode-btn:hover {
  color: #0f172a;
}

.sync-mode-btn--active {
  background-color: #ffffff;
  color: #047857;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.auth-gate-backdrop {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 45%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.14), transparent 45%),
    #0f172a;
}

@keyframes syncPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #print-area,
  #print-area * {
    visibility: visible;
  }
  #print-area {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
    padding: 16px;
    box-shadow: none !important;
  }
}
