/* Componentes Visibela — vocabulário do modelo (visibela-loveble), em CSS puro
   sobre os tokens de static/css/theme.css. */

*, *::before, *::after { box-sizing: border-box; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: 0.875rem;
  height: 3rem; padding: 0 1.25rem; border: none; cursor: pointer;
  transition: filter 0.15s, background-color 0.15s; text-decoration: none;
  box-sizing: border-box;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn--primary { background-image: var(--gradient-brand); color: var(--color-primary-foreground); box-shadow: var(--shadow-card); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--secondary { background: var(--color-secondary); color: var(--color-secondary-foreground); }
.btn--coral { background: var(--color-coral); color: var(--color-coral-foreground); }
.btn--ghost { background: transparent; color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-secondary); }
.btn--outline { background: var(--color-card); color: var(--color-primary); border: 1px solid color-mix(in oklab, var(--color-primary) 25%, transparent); }
.btn--outline:hover { background: var(--color-secondary); }
.btn--danger { background: var(--color-destructive); color: var(--color-destructive-foreground); }
.btn--sm { height: 2.75rem; padding: 0 1rem; font-size: 0.8125rem; }
.btn--lg { height: 3.5rem; padding: 0 1.5rem; font-size: 1rem; }
.btn--icon { width: 2.75rem; height: 2.75rem; padding: 0; flex-shrink: 0; }
.btn--full { width: 100%; max-width: 100%; }

.card { border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-card); box-shadow: var(--shadow-card); }

.chip {
  flex-shrink: 0; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-card); color: var(--color-foreground);
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: transparent; background: var(--color-primary); color: var(--color-primary-foreground); }
.chip:hover:not([aria-pressed="true"]) { background: var(--color-secondary); }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px; padding: 0.25rem 0.625rem; font-size: 0.6875rem; font-weight: 600; }
.badge--neutral { background: var(--color-muted); color: var(--color-muted-foreground); }
.badge--brand { background: var(--color-secondary); color: var(--color-primary); }
.badge--coral { background: color-mix(in oklab, var(--color-coral) 15%, transparent); color: var(--color-coral); }
.badge--success { background: color-mix(in oklab, var(--color-success) 15%, transparent); color: var(--color-success); }

.field { display: block; margin-bottom: 1rem; }
.field__label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 500; color: var(--color-foreground); }
.field__input, .field__select, .field__textarea {
  width: 100%; height: 3rem; border-radius: var(--radius-md); border: 1px solid var(--color-input);
  background: var(--color-card); padding: 0 1rem; font-size: 1rem; color: var(--color-foreground);
}
.field__textarea { height: auto; padding: 0.75rem 1rem; min-height: 6rem; }
.field__input:focus, .field__select:focus, .field__textarea:focus { outline: none; border-color: var(--color-accent); }
.field__hint { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.field__error { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--color-destructive); }
.field--invalid .field__input, .field--invalid .field__select, .field--invalid .field__textarea { border-color: var(--color-destructive); }

.field-row--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}
.field-row--compact .field {
  flex: 0 0 auto;
  width: 6.75rem;
  margin-bottom: 0.75rem;
}
.field-row--compact .field--preco { width: 8rem; }
.field-row--compact .field__input {
  height: 2.5rem;
  padding: 0 0.625rem;
  font-size: 0.9375rem;
  text-align: right;
}

.checkbox { display: flex; align-items: center; gap: 0.75rem; padding: 0.25rem 0; font-size: 0.875rem; cursor: pointer; }
.checkbox input { width: 1.25rem; height: 1.25rem; flex-shrink: 0; accent-color: var(--color-primary); }

.skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--color-muted) 25%, var(--color-border) 37%, var(--color-muted) 63%);
  background-size: 400% 100%; animation: vb-shimmer 1.4s ease infinite;
}
@keyframes vb-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.state-block { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3rem 1.5rem; }
.state-block__emoji { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 1rem; border-radius: 999px; background: var(--color-secondary); font-size: 1.75rem; }
.state-block__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.state-block__description { margin-top: 0.25rem; max-width: 20rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.state-block__action { margin-top: 1.25rem; }

.toast {
  position: fixed; left: 1rem; right: 1rem; bottom: 6rem; z-index: 50; margin: 0 auto; max-width: 24rem;
  border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500;
  background: var(--color-primary); color: var(--color-primary-foreground); box-shadow: var(--shadow-card);
  animation: vb-fade-up 0.32s ease-out both;
}
.toast--error { background: var(--color-destructive); color: var(--color-destructive-foreground); }
@keyframes vb-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: vb-fade-up 0.32s ease-out both; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: color-mix(in oklab, var(--color-foreground) 40%, transparent); }
.sheet { width: 100%; max-width: 28rem; border-radius: 1.5rem 1.5rem 0 0; background: var(--color-card); padding: 1.25rem; box-shadow: var(--shadow-card); }
.sheet__handle { width: 2.5rem; height: 0.25rem; margin: 0 auto 1rem; border-radius: 999px; background: var(--color-border); }
.sheet__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.sheet__body { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.sheet__footer { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.sheet__footer .btn { flex: 1; }

.brand-header { background-image: var(--gradient-brand); border-radius: 0 0 1.5rem 1.5rem; padding: calc(env(safe-area-inset-top) + 1.25rem) 1.25rem 1.5rem; color: var(--color-primary-foreground); }
.brand-header__symbol { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); background: color-mix(in oklab, var(--color-card) 90%, transparent); object-fit: contain; padding: 0.25rem; }

.top-bar {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 0.5rem; padding: 0.75rem; border-bottom: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-background) 95%, transparent); backdrop-filter: blur(6px);
}
.top-bar__title { min-width: 0; text-align: center; font-size: 1rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-bar__back { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; color: var(--color-primary); background: none; border: none; text-decoration: none; }
.top-bar__back:hover { background: var(--color-secondary); }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0 auto; max-width: 520px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-card) 95%, transparent); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: var(--shadow-float); backdrop-filter: blur(6px);
}
.bottom-nav__item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.5rem 0; font-size: 0.6875rem; font-weight: 500; color: var(--color-muted-foreground); text-decoration: none; }
.bottom-nav__item.is-active { color: var(--color-primary); }
.bottom-nav__item .icon { width: 1.25rem; height: 1.25rem; }

.salao-card { display: block; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-card); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
.salao-card__capa-wrap { position: relative; }
.salao-card__capa { display: block; width: 100%; height: 9rem; object-fit: cover; background: var(--color-muted); }
.salao-card__favorito {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; background: color-mix(in oklab, var(--color-card) 90%, transparent);
  border: none; color: var(--color-primary); padding: 0; line-height: 0;
}
.salao-card__favorito .icon { width: 1.125rem; height: 1.125rem; display: block; }
.salao-card__favorito--inline {
  position: static; width: 2.75rem; height: 2.75rem;
  background: color-mix(in oklab, var(--color-card) 90%, transparent); backdrop-filter: blur(4px);
}
.salao-card__badges { position: absolute; left: 0.5rem; bottom: 0.5rem; display: flex; gap: 0.375rem; }
.salao-card__body { padding: 1rem; }
.salao-card__nome { font-size: 1rem; font-weight: 600; }
.salao-card__linha { margin-top: 0.25rem; display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--color-muted-foreground); }
.salao-card__servicos { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salao-card__preco { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); }

.wizard-steps { display: flex; gap: 0.375rem; }
.wizard-steps__item { flex: 1; height: 0.375rem; border-radius: 999px; background: var(--color-muted); }
.wizard-steps__item.is-done { background-image: var(--gradient-brand); }

.icon {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0; display: inline-block;
  vertical-align: middle; overflow: visible;
  stroke: currentColor; fill: none;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon use { pointer-events: none; }

.contato-fixo {
  position: fixed; left: 0; right: 0;
  /* Acima da bottom-nav (~3.5rem + safe-area), não por baixo dela. */
  bottom: calc(3.75rem + env(safe-area-inset-bottom));
  z-index: 35; margin: 0 auto; max-width: 520px;
  border-radius: 1.5rem 1.5rem 0 0; padding: 1rem;
  box-shadow: var(--shadow-float);
}
.contato-fixo__row {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.contato-fixo__preco { min-width: 0; flex: 0 1 auto; }
.contato-fixo__preco-label { font-size: 0.75rem; color: var(--color-muted-foreground); line-height: 1.2; }
.contato-fixo__preco-valor { font-size: 1rem; font-weight: 600; color: var(--color-primary); line-height: 1.2; }
.contato-fixo__whatsapp {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; min-width: 0;
}
@media (min-width: 768px) {
  .contato-fixo { max-width: 640px; }
}
@media (min-width: 1024px) {
  .contato-fixo {
    position: static; max-width: none; border-radius: var(--radius-lg);
    bottom: auto; box-shadow: none; padding: 1rem;
  }
  .contato-fixo__whatsapp { flex: 0 0 auto; }
}

[x-cloak] {
  display: none !important;
}
