/*
 * Festou — moldura das telas de compra (cabeçalho e rodapé)
 * Compartilhado por layouts/evento e pelas telas de compra.
 */
.ev-root { display: flex; flex-direction: column; min-height: 100vh; background: var(--surface); color: var(--on-surface); }

/* Cabeçalho */
.ev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-10);
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--outline-variant);
}
.ev-header__brand { display: flex; align-items: center; min-width: 0; height: 56px; }
.ev-header__brand img { width: auto; max-width: 200px; max-height: 56px; object-fit: contain; }
.ev-header__brand--festou img { max-height: 40px; }
.ev-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.ev-header__short { display: none; }

/* Rodapé */
.ev-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: auto;
  padding: var(--space-4);
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
  font-size: 12px;
  line-height: 16px;
}
.ev-footer img { width: 24px; height: auto; }

@media (max-width: 599px) {
  .ev-header { padding: var(--space-3) var(--space-4); }
  .ev-header__full { display: none; }
  .ev-header__short { display: inline; }
  .ev-header .fs-btn { padding: 0 var(--space-4); }
}

/* Rodapé completo (layouts/partials/festou-rodape-completo) */
.fs-site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-top: auto;
  padding: var(--space-8) var(--space-10);
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--outline-variant);
}
.fs-site-footer h2 { margin: 0 0 var(--space-1); color: var(--on-surface); }
.fs-site-footer p { color: var(--on-surface-variant); }
.fs-site-footer__about { display: flex; flex-direction: column; gap: var(--space-2); max-width: 360px; }
.fs-site-footer__about img { width: 56px; height: auto; }
.fs-site-footer__links,
.fs-site-footer__trust { display: flex; flex-direction: column; gap: var(--space-1); }
.fs-site-footer__links a { align-self: flex-start; color: var(--primary); }
.fs-site-footer__trust span { display: flex; align-items: center; gap: var(--space-1); color: var(--on-surface-variant); }

@media (max-width: 599px) {
  .fs-site-footer { padding: var(--space-6) var(--space-4); }
}

/* ---------- Área do cliente (layouts/cliente) ---------- */
.fs-shell {
  display: flex;
  min-height: 100vh;
  /* a faixa do menu lateral acompanha a altura toda da página */
  background: linear-gradient(to right, var(--surface-container) 88px, var(--surface) 88px);
  color: var(--on-surface);
}
.fs-shell__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fs-shell__main { flex: 1; width: 100%; }

/* Menu lateral */
.fs-rail {
  position: sticky;
  top: 0;
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  height: 100vh;
  padding: var(--space-4) 0;
  background: var(--surface-container);
}
.fs-rail__logo { display: block; margin-bottom: var(--space-3); }
.fs-rail__logo img { width: 48px; height: auto; }
.fs-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  width: 80px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-surface-variant);
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.fs-rail__item--end { margin-top: auto; }
.fs-rail__pill { display: flex; align-items: center; justify-content: center; width: 56px; height: 32px; border-radius: var(--corner-full); transition: background .12s ease; }
.fs-rail__item:hover .fs-rail__pill { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.fs-rail__item[aria-current="page"] { color: var(--on-surface); }
.fs-rail__item[aria-current="page"] .fs-rail__pill { background: var(--primary-container); color: var(--on-primary-container); }

/* Topo */
.fs-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  min-height: 64px;
  padding: var(--space-3) var(--space-10);
  background: var(--surface);
  box-shadow: inset 0 -1px 0 var(--outline-variant);
}
.fs-topbar__logo { display: none; margin-right: auto; }
.fs-topbar__logo img { width: 40px; height: auto; }
.fs-topbar__hello { color: var(--on-surface); }
.fs-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
}

/* Barra inferior (celular) */
.fs-bottomnav { display: none; }

@media (max-width: 839px) {
  .fs-shell { flex-direction: column; background: var(--surface); }
  .fs-rail { display: none; }
  .fs-topbar { padding: var(--space-3) var(--space-4); }
  .fs-topbar__logo { display: block; }
  .fs-bottomnav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    padding: var(--space-3) 0 calc(var(--space-4) + env(safe-area-inset-bottom));
    background: var(--surface-container);
  }
  .fs-bottomnav .fs-rail__item { flex: 1; width: auto; min-width: 0; }
  body:has(.fs-bottomnav) .floating-wpp { bottom: 96px !important; }
}
