/* ============================================================
   ZAHARA — Botanical Architect Design System
   Primary: #334f2b | Background: #fcf9f4
   Fonts: Manrope (headlines) + Inter (body)
   Icons: Material Symbols Outlined (wght 300)
   ============================================================ */

/* ── Material Symbols base config ───────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.mat-fill {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.mat-sm {
  font-size: 16px !important;
}
.mat-xs {
  font-size: 13px !important;
}
.mat-lg {
  font-size: 28px !important;
}

/* ── Body/font defaults ──────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background-color: #fcf9f4;
  color: #1c1c19;
  -webkit-font-smoothing: antialiased;
  min-height: max(884px, 100dvh);
}
h1, h2, h3, .font-headline {
  font-family: 'Manrope', sans-serif;
}

/* ── Glassmorphism nav (bottom bar) ──────────────────────── */
.glass-nav {
  background: rgba(252, 249, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Botanical gradient (hero/cards) ─────────────────────── */
.bg-botanical-gradient {
  background: linear-gradient(135deg, #334f2b 0%, #4a6741 100%);
}

/* ── Safe-area bottom padding ────────────────────────────── */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pb-nav {
  padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
}

/* ── No-scrollbar ────────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Card press animation ────────────────────────────────── */
.card-press {
  transition: transform 0.15s ease;
}
.card-press:active {
  transform: scale(0.98);
}

/* ── Page slide-in ───────────────────────────────────────── */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: slideInUp 0.22s ease;
}

/* ── Status corner tag ───────────────────────────────────── */
.status-corner {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 10px;
  border-bottom-left-radius: 0.5rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Toggle switch (pill) ────────────────────────────────── */
[role="switch"] { transition: background-color 0.2s ease; }
[role="switch"] span { transition: transform 0.2s ease; }

/* ── Input: no border, tonal fill ────────────────────────── */
input[type="text"], input[type="email"],
input[type="tel"], input[type="number"],
input[type="search"], select, textarea {
  background-color: #e5e2dd;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  color: #1c1c19;
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(51, 79, 43, 0.2) !important;
}
input::placeholder, textarea::placeholder {
  color: #73796f;
}

/* ── Bottom nav active state ─────────────────────────────── */
.nav-active {
  background-color: #f0ede8;
  border-radius: 0.75rem;
  color: #334f2b !important;
}
.nav-active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ── Filter chip active ──────────────────────────────────── */
.chip-active {
  background-color: #334f2b !important;
  color: #ffffff !important;
}

/* ── Qty stepper (pill style) ────────────────────────────── */
.qty-pill {
  display: flex;
  align-items: center;
  background-color: #f0ede8;
  border-radius: 99px;
  padding: 2px 8px;
}
.qty-pill button {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ── Toast ───────────────────────────────────────────────── */
#toast {
  transition: opacity 0.2s;
}
#toast.visible { opacity: 1; }
#toast.fading  { opacity: 0; }

/* ── Scrollbar slim ──────────────────────────────────────── */
::-webkit-scrollbar       { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3c8bd; border-radius: 99px; }

/* ── Dashed divider ──────────────────────────────────────── */
.divider-dashed {
  border-top: 1px dashed rgba(195, 200, 189, 0.4);
}

/* ── Step bar ────────────────────────────────────────────── */
.step-bar {
  height: 3px;
  border-radius: 99px;
  background: #e5e2dd;
  overflow: hidden;
}
.step-bar-fill {
  height: 100%;
  background: #334f2b;
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ── WhatsApp green ──────────────────────────────────────── */
.wa-btn {
  background: rgba(37, 211, 102, 0.12);
  color: #075E54;
}
.wa-btn:hover {
  background: rgba(37, 211, 102, 0.22);
}

/* ── Pulse dot ───────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.dot-pulse { animation: pulse-dot 1.6s infinite; }
