/**
 * Vendaffacil — tema SaaS (azul + verde + neutros)
 */
:root {
  --vf-primary: #2563eb;
  --vf-primary-dark: #1d4ed8;
  --vf-primary-soft: #eff6ff;
  --vf-success: #16a34a;
  --vf-success-soft: #dcfce7;
  --vf-warning: #d97706;
  --vf-warning-soft: #fef3c7;
  --vf-danger: #dc2626;
  --vf-danger-soft: #fee2e2;
  --vf-body: #f4f6f9;
  --vf-surface: #ffffff;
  --vf-border: #e5e7eb;
  --vf-text: #111827;
  --vf-muted: #6b7280;
  --vf-sidebar: #0f172a;
  --vf-sidebar-hover: #1e293b;
  --vf-radius: 0.65rem;
  --vf-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --vf-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.08);
}

body.vf-body {
  background: var(--vf-body);
  color: var(--vf-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.vf-site-hero {
  background: linear-gradient(135deg, var(--vf-primary) 0%, #0ea5e9 55%, var(--vf-success) 100%);
  color: #fff;
}

.vf-app-wrapper {
  display: flex;
  min-height: 100vh;
}

.vf-sidebar {
  width: 260px;
  background: var(--vf-sidebar);
  color: #e2e8f0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1040;
  transition: transform 0.25s ease;
}

/* Sidebar recolhida (desktop): só ícones */
@media (min-width: 992px) {
  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar {
    width: 76px;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .nav-link {
    justify-content: center;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .nav-link i {
    margin-right: 0;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .nav-link,
  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .vf-submenu-toggle {
    gap: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .nav-link {
    font-size: 0;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .nav-link i {
    font-size: 1.05rem;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .vf-sidebar-brand {
    font-size: 0;
    padding: 1.25rem 0.5rem;
    text-align: center;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .vf-sidebar-brand i {
    font-size: 1.1rem;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .vf-sidebar-brand span,
  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .vf-sidebar-brand .small {
    display: none !important;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .vf-sidebar-brand img {
    width: 34px !important;
    height: 34px !important;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .vf-submenu-content {
    display: none !important;
  }

  .vf-app-wrapper.vf-sidebar-collapsed .vf-sidebar .vf-submenu-chevron {
    display: none !important;
  }
}

.vf-sidebar .nav-link {
  color: #94a3b8;
  border-radius: var(--vf-radius);
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vf-sidebar .nav-link:hover,
.vf-sidebar .nav-link:focus {
  background: var(--vf-sidebar-hover);
  color: #fff;
}

.vf-sidebar .nav-link.active {
  background: rgba(37, 99, 235, 0.25);
  color: #fff;
  font-weight: 600;
}

.vf-sidebar .submenu .nav-link {
  padding-left: 2rem;
  font-size: 0.85rem;
}

.vf-sidebar .vf-submenu-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  justify-content: space-between;
}

.vf-sidebar .vf-submenu-chevron {
  transition: transform 0.15s ease;
}

.vf-sidebar .vf-submenu-toggle[aria-expanded="true"] .vf-submenu-chevron {
  transform: rotate(90deg);
}

.vf-sidebar-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.vf-sidebar-brand span {
  color: #38bdf8;
}

.vf-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vf-topbar {
  background: var(--vf-surface);
  border-bottom: 1px solid var(--vf-border);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--vf-shadow);
}

.vf-content {
  padding: 1.25rem;
  flex: 1;
}

@media (max-width: 991.98px) {
  .vf-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
  }
  .vf-sidebar.vf-sidebar-open {
    transform: translateX(0);
    box-shadow: var(--vf-shadow-lg);
  }
  .vf-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1035;
  }
  .vf-sidebar-backdrop.show {
    display: block;
  }
}

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

/* Página do produto — foto principal (aspect-ratio evita altura 0 no Safari / webviews) */
.vf-produto-pagina-foto--hero {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: var(--vf-surface, #fff);
}

.vf-produto-pagina-foto__frame {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #e9ecef;
  aspect-ratio: 1 / 1;
}

/* Fallback antigo sem aspect-ratio (Safari muito antigo) */
@supports not (aspect-ratio: 1 / 1) {
  .vf-produto-pagina-foto__frame {
    height: 0;
    padding-bottom: 100%;
    aspect-ratio: auto;
  }
}

.vf-produto-pagina-foto__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.vf-produto-pagina-foto__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
}

/* Página do produto — compartilhar (espaçamento e toque no celular) */
.vf-produto-share {
  row-gap: 0.6rem;
  column-gap: 0.55rem;
}

@media (min-width: 768px) {
  .vf-produto-share {
    column-gap: 0.85rem;
    row-gap: 0.65rem;
  }
}

.vf-produto-share .vf-produto-share__btn {
  min-height: 2.9rem;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  flex: 1 1 auto;
}

@media (min-width: 576px) {
  .vf-produto-share .vf-produto-share__btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 768px) {
  .vf-produto-share .vf-produto-share__btn {
    min-height: 2.75rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
  }
}

.vf-produto-share .vf-produto-share__ico {
  font-size: 1.4rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .vf-produto-share .vf-produto-share__ico {
    font-size: 1.3rem;
  }
}

@media (max-width: 575.98px) {
  .vf-produto-share .vf-produto-share__label {
    font-size: 0.82rem;
  }
}

/* Fluxo de compra (vitrine): Cardápio → Carrinho → Checkout → Pedido */
.vf-compra-fluxo--painel {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.vf-produto-wa-loja-btn {
  min-height: 2.85rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 600;
}

/* Vitrine — produto: Personalizar (celular = 1 coluna; tablet+ = 2) */
.vf-personalizar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .vf-personalizar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
}

.vf-personalizar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  margin: 0;
  background: #f2f3f5;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
  min-height: 3rem;
}

.vf-personalizar-card:hover {
  background: #ebecef;
}

.vf-personalizar-card:focus-within {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.vf-personalizar-card:has(.vf-personalizar-input:checked) {
  border-color: var(--bs-success);
  background: rgba(25, 135, 84, 0.09);
}

.vf-personalizar-card--retirar:has(.vf-personalizar-input:checked) {
  border-color: var(--bs-warning);
  background: rgba(255, 193, 7, 0.12);
}

.vf-personalizar-nome {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--vf-text);
  min-width: 0;
  flex: 1;
  word-break: break-word;
}

.vf-personalizar-btn {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  border: none;
  padding: 0;
  pointer-events: none;
}

.vf-personalizar-btn--add {
  background: var(--vf-success);
  color: #fff;
}

.vf-personalizar-card:has(.vf-personalizar-input:checked) .vf-personalizar-btn--add {
  background: #157347;
}

.vf-personalizar-btn--retirar {
  background: #fff;
  color: var(--vf-warning);
  border: 2px solid var(--vf-warning);
}

.vf-personalizar-card--retirar:has(.vf-personalizar-input:checked) .vf-personalizar-btn--retirar {
  background: var(--vf-warning);
  color: #fff;
  border-color: var(--vf-warning);
}

.vf-personalizar-ico-off {
  display: none;
}

.vf-personalizar-card:has(.vf-personalizar-input:checked) .vf-personalizar-ico-on {
  display: none;
}

.vf-personalizar-card:has(.vf-personalizar-input:checked) .vf-personalizar-ico-off {
  display: inline-block;
}

/* Limites (mín./máx.) no cartão Personalizar */
.vf-card-personalizar-produto .vf-personalizar-limites-no-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  max-width: 100%;
  text-align: right;
}

@media (min-width: 768px) {
  .vf-card-personalizar-produto .vf-personalizar-limites-no-card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.vf-personalizar-limite-chip {
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid var(--vf-border, #dee2e6);
  background: rgba(0, 0, 0, 0.035);
  font-size: 0.78rem;
  line-height: 1.3;
}

/* Vitrine — acréscimos com stepper (− / qtd / +) */
.vf-acrescimo-stepper-grid .vf-escolha-card {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.vf-escolha-card-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 3rem;
  background: #f2f3f5;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  overflow: hidden;
  position: relative;
}

@media (max-width: 767.98px) {
  .vf-acrescimo-stepper-grid .vf-escolha-card-inner,
  .vf-retirar-stepper-grid .vf-escolha-card-inner {
    min-height: 3.35rem;
  }

  .vf-escolha-stepper {
    padding: 0.5rem 0.45rem;
    gap: 0.4rem;
  }

  .vf-escolha-btn {
    width: 2.45rem;
    height: 2.45rem;
  }
}

.vf-escolha-thumb-wrap {
  flex-shrink: 0;
  align-self: stretch;
  padding: 0.45rem 0 0.45rem 0.45rem;
  display: flex;
  align-items: center;
  min-width: 3rem;
}

.vf-escolha-thumb-ing {
  display: block;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0.35rem;
}

@media (min-width: 768px) {
  .vf-escolha-thumb-wrap {
    min-width: 3.25rem;
    padding: 0.5rem 0 0.5rem 0.5rem;
  }

  .vf-escolha-thumb-ing {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
  }
}

/* Miniatura discreta de adicional (acréscimo pago) na vitrine */
.vf-escolha-thumb-wrap--adicional {
  padding: 0.3rem 0 0.3rem 0.3rem;
  min-width: 0;
  align-items: center;
}

.vf-escolha-thumb-ing--adicional {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  opacity: 0.88;
  box-shadow: none;
}

@media (min-width: 768px) {
  .vf-escolha-thumb-ing--adicional {
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
  }
}

.vf-adicional-thumb-admin {
  opacity: 0.85;
}

.vf-escolha-card-inner--retirar-chk {
  flex-wrap: nowrap;
  align-items: center;
  min-height: 3.35rem;
  overflow: visible;
  gap: 0.35rem;
}

.vf-retirar-checkbox-grid .vf-escolha-card-inner--retirar-chk {
  overflow: visible !important;
}

.vf-retirar-checkbox-grid .vf-retirar-chk-wrap {
  flex: 1;
  min-width: 0;
}

.vf-retirar-checkbox-grid .vf-retirar-chk {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin-top: 0.15rem !important;
  margin-left: 0 !important;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #ea580c;
}

.vf-retirar-checkbox-grid .form-check-label {
  font-size: 0.95rem;
  line-height: 1.35;
  padding-top: 0.05rem;
}

.vf-acrescimo-checkbox-grid .vf-acrescimo-chk {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin-top: 0.15rem !important;
  margin-left: 0 !important;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #16a34a;
}

/* Retirar (checkbox): mesmo ritmo — 1 coluna até md (herda .vf-personalizar-grid) */
@media (min-width: 768px) {
  .vf-retirar-checkbox-grid.vf-personalizar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.vf-escolha-bar {
  width: 4px;
  flex-shrink: 0;
  background: transparent;
  align-self: stretch;
}

.vf-escolha-textos {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.5rem 0.65rem 0.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.vf-escolha-badge {
  display: none;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c2410c;
  background: rgba(251, 146, 60, 0.35);
  border-radius: 0.25rem;
  padding: 0.15rem 0.45rem;
  width: fit-content;
  line-height: 1.2;
}

.vf-escolha-card--ativo .vf-escolha-card-inner {
  background: #fff9e6;
  border-color: rgba(234, 179, 8, 0.45);
}

.vf-escolha-card--ativo .vf-escolha-bar {
  background: #dc2626;
}

.vf-escolha-card--ativo .vf-escolha-badge {
  display: inline-flex;
  align-items: center;
}

/* Retirar ingrediente — mesmo stepper dos acréscimos; destaque âmbar quando ativo */
.vf-escolha-card--retirar.vf-escolha-card--ativo .vf-escolha-card-inner {
  background: rgba(254, 243, 199, 0.85);
  border-color: rgba(217, 119, 6, 0.4);
}

.vf-escolha-card--retirar.vf-escolha-card--ativo .vf-escolha-bar {
  background: #ea580c;
}

.vf-escolha-badge--retirar {
  color: #9a3412;
  background: rgba(251, 191, 36, 0.5);
}

.vf-escolha-stepper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  flex-shrink: 0;
}

.vf-escolha-qty-wrap {
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vf-escolha-qty-disp {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.vf-escolha-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: none;
  border-radius: 0.35rem;
  background: var(--vf-success);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vf-escolha-btn:hover:not(:disabled) {
  filter: brightness(0.92);
}

.vf-escolha-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.vf-card-stat {
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.vf-card-stat.vf-card-stat--clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.vf-card-stat.vf-card-stat--clickable:hover {
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.08);
  border-color: var(--vf-border-strong, #c5ccd6);
}

.vf-card-stat.vf-card-stat--clickable:focus-visible {
  outline: 2px solid var(--bs-primary, #0d6efd);
  outline-offset: 2px;
}

.vf-card-stat.vf-card-stat--clickable.vf-card-stat--disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.vf-card-stat.vf-card-stat--clickable.vf-card-stat--disabled:hover {
  box-shadow: var(--vf-shadow);
  border-color: var(--vf-border);
}

.vf-card-stat .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.vf-chart-fake {
  height: 220px;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 1rem 0 0;
}

.vf-chart-fake > .bar {
  flex: 1;
  align-self: flex-end;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--vf-primary) 0%, #38bdf8 100%);
  min-height: 8%;
  opacity: 0.85;
}

.vf-chart-fake-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.vf-chart-fake-col-chart {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.vf-chart-fake-col .bar {
  flex: 0 0 auto;
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--vf-primary) 0%, #38bdf8 100%);
  min-height: 8%;
  opacity: 0.85;
}

.vf-chart-fake-label {
  font-size: 0.6875rem;
  line-height: 1.15;
  text-align: center;
  color: var(--vf-muted);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}

.vf-chart-fake-valor {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--vf-text, #0f172a);
  white-space: nowrap;
}

.vf-chart-fake-dia {
  font-size: 0.65rem;
  color: var(--vf-muted);
}

.vf-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vf-muted);
  border-bottom-width: 1px;
  white-space: nowrap;
}

.vf-filter-bar {
  background: var(--vf-surface);
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius);
  padding: 0.85rem 1rem;
}

.vf-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25em 0.55em;
  border-radius: 6px;
}

.vf-footer-site {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.vf-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--vf-primary-soft) 0%, var(--vf-body) 45%, #e0f2fe 100%);
  padding: 2rem 1rem;
}

.vf-auth-card {
  max-width: 440px;
  width: 100%;
}

.vf-publico-header {
  background: var(--vf-surface);
  border-bottom: 1px solid var(--vf-border);
}

/* Rodapé da loja pública: fixo na base do ecrã (conteúdo com margem inferior para não ficar por baixo) */
footer.vf-publico-footer--fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.07);
}

body.vf-body--public-footer-fixed main {
  padding-bottom: calc(17rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.vf-body--public-footer-fixed main {
    padding-bottom: calc(15rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 992px) {
  /* Carrinho: coluna do resumo acompanha o scroll */
  .vf-carrinho-sidebar-sticky {
    position: sticky;
    top: 0.75rem;
    z-index: 1;
  }
}

/* Nome + selo alinhados ao centro vertical da logo (evita “grudado” no topo) */
.vf-store-brand-text {
  min-height: 66px;
  justify-content: center;
}

.vf-store-brand-logo-placeholder {
  font-size: 2rem;
  line-height: 1;
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Unidade atual (vitrine) vs outra filial no topo: destaque + hover */
.vf-store-brand--unidade-atual {
  border-radius: 0.375rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.vf-store-brand--unidade-atual:hover {
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.22);
}

.vf-store-brand--outra-unidade {
  opacity: 0.74;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.vf-store-brand--outra-unidade:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0.2rem 0.65rem rgba(15, 23, 42, 0.1);
  background-color: rgba(var(--bs-primary-rgb), 0.07);
}
a.vf-store-brand--outra-unidade:hover {
  color: inherit;
}

/* Configurações da empresa: salvar fixo no celular (formulário longo) */
.vf-config-save-mobile {
  z-index: 1020;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.vf-loja-aberta-group .btn-check:checked + .btn-outline-success {
  color: #fff;
  background-color: var(--bs-success);
  border-color: var(--bs-success);
}

.vf-loja-aberta-group .btn-check:checked + .btn-outline-danger {
  color: #fff;
  background-color: var(--bs-danger);
  border-color: var(--bs-danger);
}

.vf-loja-status-card {
  border-left: 4px solid rgba(13, 110, 253, 0.35);
}

.vf-store-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.05;
}

.vf-loja-status-badge {
  font-weight: 600;
}

/* Aberta / Fechada: neutro (como a filial “foscada”); verde ou vermelho só ao passar o rato no bloco da marca */
.vf-store-brand-link .vf-loja-status-badge--aberta,
.vf-store-brand--outra-unidade .vf-loja-status-badge--aberta {
  color: rgba(var(--bs-body-color-rgb), 0.72);
  background-color: rgba(var(--bs-secondary-rgb), 0.14);
  border: 1px solid rgba(var(--bs-secondary-rgb), 0.24);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vf-store-brand-link:hover .vf-loja-status-badge--aberta,
.vf-store-brand--outra-unidade:hover .vf-loja-status-badge--aberta {
  color: #fff;
  background-color: var(--bs-success);
  border-color: var(--bs-success);
  box-shadow: 0 0.12rem 0.4rem rgba(var(--bs-success-rgb), 0.35);
}

.vf-store-brand-link .vf-loja-status-badge--fechada,
.vf-store-brand--outra-unidade .vf-loja-status-badge--fechada {
  color: rgba(var(--bs-body-color-rgb), 0.72);
  background-color: rgba(var(--bs-secondary-rgb), 0.14);
  border: 1px solid rgba(var(--bs-secondary-rgb), 0.24);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vf-store-brand-link:hover .vf-loja-status-badge--fechada,
.vf-store-brand--outra-unidade:hover .vf-loja-status-badge--fechada {
  color: #fff;
  background-color: var(--bs-danger);
  border-color: var(--bs-danger);
  box-shadow: 0 0.12rem 0.4rem rgba(var(--bs-danger-rgb), 0.35);
}

/* Sem hover (telemóvel): manter verde/vermelho sempre visível */
@media (hover: none) {
  .vf-store-brand-link .vf-loja-status-badge--aberta,
  .vf-store-brand--outra-unidade .vf-loja-status-badge--aberta {
    color: #fff;
    background-color: var(--bs-success);
    border-color: var(--bs-success);
    box-shadow: none;
  }

  .vf-store-brand-link .vf-loja-status-badge--fechada,
  .vf-store-brand--outra-unidade .vf-loja-status-badge--fechada {
    color: #fff;
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    box-shadow: none;
  }
}

@media (max-width: 575.98px) {
  .vf-store-name {
    font-size: clamp(0.78rem, 3.6vw, 0.95rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vf-loja-status-badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
  }
}

.vf-product-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vf-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vf-shadow-lg);
}

.vf-loja-adicional-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-theme .vf-sidebar {
  background: #020617;
}

.admin-theme .vf-sidebar .nav-link.active {
  background: rgba(22, 163, 74, 0.25);
}

/* —— Landing (home) —— */
.bv-landing-section {
  scroll-margin-top: 5rem;
}

.bv-mockup-wrap {
  perspective: 800px;
}

.bv-mockup-phone {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-radius: 2.25rem;
  padding: 0.7rem;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateY(-6deg) rotateX(4deg);
}

@media (max-width: 991.98px) {
  .bv-mockup-phone {
    transform: none;
    margin-top: 1rem;
  }
}

.bv-mockup-notch {
  width: 100px;
  height: 22px;
  background: #0f172a;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 0.5rem;
}

.bv-mockup-screen {
  background: var(--vf-surface);
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bv-step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vf-primary), var(--vf-success));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bv-pain-card {
  border-left: 4px solid var(--vf-danger);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bv-pain-card:hover {
  transform: translateX(4px);
  box-shadow: var(--vf-shadow-lg);
}

.bv-pricing-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--vf-border);
}

.bv-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vf-shadow-lg);
}

.bv-pricing-card.bv-pricing-featured {
  border: 2px solid var(--vf-primary);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.bv-cta-final {
  background: linear-gradient(120deg, var(--vf-primary-dark) 0%, var(--vf-primary) 40%, #059669 100%);
  color: #fff;
  border-radius: var(--vf-radius);
  position: relative;
  overflow: hidden;
}

.bv-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Banner / carrossel da LOJA PÚBLICA (vf-loja-banner-*)
   — Imagem inteira visível (object-fit: contain), sem cortar logo/texto.
   — Regras SOMENTE neste escopo: NÃO usamos .carousel img global para não
     quebrar outros carrosséis Bootstrap do sistema.
   -------------------------------------------------------------------------- */
.vf-loja-banner-card {
  max-width: 100%;
  overflow: hidden;
}

.vf-loja-banner-media {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Carrossel: altura compacta original (clamp); imagem com contain encaixa dentro sem cortar */
.vf-loja-banner-carousel.vf-loja-banner-media {
  --vf-loja-banner-h: clamp(168px, 26vw, 240px);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.vf-loja-banner-carousel .carousel-inner {
  flex: 1 1 auto;
  min-height: 0;
  height: var(--vf-loja-banner-h, clamp(168px, 26vw, 240px));
  max-height: var(--vf-loja-banner-h, clamp(168px, 26vw, 240px));
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
  background-color: #eef2f7;
}

/* Remove float/margem negativa do Bootstrap neste carrossel (altura vem do frame + contain) */
.vf-loja-banner-carousel .carousel-item {
  float: none;
  margin-right: 0;
  width: 100%;
}

.vf-loja-banner-slide-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--vf-loja-banner-h, clamp(168px, 26vw, 240px));
  max-height: var(--vf-loja-banner-h, clamp(168px, 26vw, 240px));
  overflow: hidden;
  background-color: #eef2f7;
}

.vf-loja-banner-slide-frame .vf-loja-banner-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Fallback (só texto, sem imagem): não força altura de banner promocional */
.vf-loja-banner-fallback.vf-loja-banner-media {
  overflow: hidden;
  min-height: 0;
}

.vf-loja-banner-scrim {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.15) 55%, transparent);
  pointer-events: none;
}

.vf-loja-banner-scrim a {
  pointer-events: auto;
}

.vf-loja-banner-scrim--category {
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 65%, transparent);
}

.vf-loja-banner-carousel .carousel-control-prev,
.vf-loja-banner-carousel .carousel-control-next {
  width: 2.75rem;
  opacity: 1;
  z-index: 5;
}

.vf-loja-banner-carousel .carousel-control-prev-icon,
.vf-loja-banner-carousel .carousel-control-next-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  background-size: 55% 55%;
}

/* Banner carrossel: troca automática + fade; camadas “fogo” + burst na troca */
.vf-loja-banner-carousel.carousel-fade .carousel-item {
  transition-duration: 0.75s;
  transition-timing-function: ease-in-out;
}

.vf-loja-banner-scrim--carousel {
  z-index: 4;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12) 55%, transparent);
}

.vf-loja-banner-carousel--fire .carousel-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.38;
  background:
    radial-gradient(ellipse 85% 60% at 50% 105%, rgba(255, 55, 0, 0.5) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 22% 98%, rgba(255, 160, 40, 0.42) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 78% 98%, rgba(255, 90, 0, 0.38) 0%, transparent 52%);
  mix-blend-mode: screen;
  animation: vfBannerFireAmbient 2.8s ease-in-out infinite;
}

@keyframes vfBannerFireAmbient {
  0%,
  100% {
    opacity: 0.32;
    transform: translateY(0) scaleY(1);
    filter: saturate(1);
  }
  50% {
    opacity: 0.48;
    transform: translateY(-1px) scaleY(1.01);
    filter: saturate(1.35);
  }
}

.vf-loja-banner-carousel--fire .carousel-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 110% 85% at 50% 115%, rgba(255, 40, 0, 0.65) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 200, 60, 0.45) 0%, transparent 55%);
  mix-blend-mode: screen;
}

.vf-loja-banner-carousel--fire.vf-loja-banner--ignite .carousel-inner::after {
  animation: vfBannerFireBurst 0.78s ease-out forwards;
}

@keyframes vfBannerFireBurst {
  0% {
    opacity: 0;
    transform: scaleY(0.92);
    filter: brightness(1);
  }
  35% {
    opacity: 0.95;
    transform: scaleY(1.02);
    filter: brightness(1.35) saturate(1.75);
  }
  100% {
    opacity: 0;
    transform: scaleY(1);
    filter: brightness(1);
  }
}

.vf-loja-banner-carousel--fire.vf-loja-banner--ignite .carousel-item.active .vf-loja-banner-img {
  animation: vfBannerImgFlare 0.75s ease-out;
}

@keyframes vfBannerImgFlare {
  0% {
    filter: brightness(1) saturate(1);
  }
  40% {
    filter: brightness(1.22) saturate(1.35) contrast(1.05);
  }
  100% {
    filter: brightness(1) saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vf-loja-banner-carousel--fire .carousel-inner::before,
  .vf-loja-banner-carousel--fire .carousel-inner::after {
    animation: none !important;
    opacity: 0.22 !important;
  }

  .vf-loja-banner-carousel.carousel-fade .carousel-item {
    transition-duration: 0.01ms !important;
  }
}

.vf-loja-banner:focus-visible .vf-loja-banner-media {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}
