/* ── C21 Precios Mobile Theme ─────────────────────────────────────────── */
:root {
  --c21-bg: #f8fafc;
  --c21-card: #ffffff;
  --c21-header: #0f172a;
  --c21-header-text: #ffffff;
  --c21-primary: #2563eb;
  --c21-primary-dark: #1d4ed8;
  --c21-gold: #f59e0b;
  --c21-success: #10b981;
  --c21-warning: #f59e0b;
  --c21-danger: #ef4444;
  --c21-text: #1e293b;
  --c21-muted: #64748b;
  --c21-border: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--c21-bg);
  color: var(--c21-text);
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── App Header ───────────────────────────────────────────────────────────── */
.app-header {
  background-color: var(--c21-header);
  color: var(--c21-header-text);
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.brand-badge {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ── Sticky Active Store & Round Bar ──────────────────────────────────────── */
.active-context-bar {
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 0.85rem;
}

.active-store-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fef08a;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s;
}

.active-store-btn:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.97);
}

/* ── Search Bar ───────────────────────────────────────────────────────────── */
.search-container {
  background: #ffffff;
  border-bottom: 1px solid var(--c21-border);
  position: sticky;
  top: 96px;
  z-index: 1010;
}

.search-input-group {
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
}

.search-input-group input {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  outline: none;
  box-shadow: none;
}

/* ── Category Chips ───────────────────────────────────────────────────────── */
.category-chips-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--c21-border);
  scrollbar-width: none;
}

.category-chips-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex-shrink: 0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.cat-chip.active {
  background: var(--c21-primary);
  color: #ffffff;
  border-color: var(--c21-primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.subcat-chips-scroll {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--c21-border);
  scrollbar-width: none;
}

.subcat-chip {
  flex-shrink: 0;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.subcat-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ── Product Card ─────────────────────────────────────────────────────────── */
.product-card {
  background: var(--c21-card);
  border: 1px solid var(--c21-border);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
}

.product-card:active {
  transform: scale(0.985);
  background-color: #f1f5f9;
}

.product-card.has-quote {
  border-left: 4px solid var(--c21-success);
  background: #f0fdf4;
}

.product-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.product-info {
  flex-grow: 1;
  min-width: 0;
}

.product-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quote-badge-pill {
  font-size: 0.72rem;
  border-radius: 12px;
  padding: 2px 8px;
  font-weight: 600;
}

/* ── PIN Keypad Screen ────────────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #1e293b, #0f172a);
  color: #ffffff;
  padding: 20px;
}

.pin-dots {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.pin-dot.filled {
  background-color: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
  transform: scale(1.15);
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 300px;
}

.keypad-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.keypad-btn:active {
  background: rgba(251, 191, 36, 0.3);
  transform: scale(0.92);
}

/* ── Fast Quote Bottom Sheet / Modal ──────────────────────────────────────── */
.quote-sheet {
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

.currency-toggle-btn {
  border-radius: 12px;
  font-weight: 700;
  padding: 10px;
  font-size: 1.05rem;
  transition: all 0.2s;
}

.status-choice-btn {
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.status-choice-btn i {
  font-size: 1.25rem;
}

.quick-inc-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.quick-inc-btn:active {
  background: #e2e8f0;
}

/* ── Sync Floating Toast / Pill ───────────────────────────────────────────── */
.sync-pill {
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
