@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hide scrollbar for horizontal category chips etc. */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Screen transition */
.screen {
  animation: fadeSlideIn 0.22s ease-out;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card shine effect */
.crystal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
  border: 1px solid rgba(13, 91, 217, 0.08);
  box-shadow: 0 4px 14px rgba(10, 63, 168, 0.08);
}

.brand-gradient {
  background: linear-gradient(135deg, #0a3fa8 0%, #0d5bd9 50%, #3fc7f4 100%);
}

.brand-gradient-text {
  background: linear-gradient(135deg, #0a3fa8, #3fc7f4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bottom tab bar */
.tab-bar-shadow {
  box-shadow: 0 -4px 20px rgba(10, 63, 168, 0.12);
}

.tab-item.active {
  color: #0d5bd9;
}
.tab-item.active .tab-icon-wrap {
  background: linear-gradient(135deg, #0d5bd9, #3fc7f4);
  color: white;
  box-shadow: 0 4px 12px rgba(13, 91, 217, 0.35);
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(13, 91, 217, 0.15);
  border-top-color: #0d5bd9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* WhatsApp floating button pulse */
.wa-pulse {
  animation: waPulse 2.4s infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Product image skeleton */
.img-skeleton {
  background: linear-gradient(90deg, #eef4fb 25%, #f8fbff 37%, #eef4fb 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Toast */
.toast {
  animation: toastIn 0.25s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Modal backdrop */
.modal-backdrop {
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Line clamp fallback */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

input, textarea, select, button {
  font-family: 'Poppins', system-ui, sans-serif;
}

/* Safe area for iOS */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}
.safe-top {
  padding-top: env(safe-area-inset-top);
}
