@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #0f172a;
  --color-primary-foreground: #ffffff;
  --color-secondary: #1e293b;
  --color-accent: #f97316;
  --color-button: #0f172a;
  --color-button-text: #ffffff;
  --color-background: #ffffff;
  --color-surface: #f8fafc;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --button-radius: 0.5rem;
  --radius-card: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Afasta todo o conteúdo das páginas (hero, seções, banners) da borda da
   tela, um pouco só, pra não ficar colado no vidro do navegador. Cabeçalho
   e rodapé ficam de fora de propósito — eles já têm sua própria faixa de
   cor/fundo pensada pra ir até a borda. */
main {
  padding: 0 0.75rem;
}

/* Banner principal da home: volta a encostar nas bordas da tela, desfazendo
   só pra ele o espaçamento acima (pedido explícito do usuário — os outros
   banners/seções continuam com a borda). */
.hero--full-bleed {
  margin: 0 -0.75rem;
}

/* ===== Tela de carregamento falsa (só na home) ===== */

.site-loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  background: rgba(10, 15, 28, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.4s ease;
}

.site-loading[hidden] {
  display: none;
}

.site-loading--hiding {
  opacity: 0;
  pointer-events: none;
}

.site-loading__logo {
  height: 100px;
  width: auto;
}

.site-loading__logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.site-loading__bar {
  width: 140px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.site-loading__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--color-accent);
  animation: site-loading-fill 3.8s ease forwards;
}

@keyframes site-loading-fill {
  from { width: 0%; }
  to { width: 100%; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   Ícones inline (sem dependência de biblioteca)
   ============================================================ */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.accent-bar {
  width: 100%;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(6px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header:has(.accent-bar) {
  box-shadow: none;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.site-header__logo img {
  width: auto;
  object-fit: contain;
}

.site-header__logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: var(--color-surface);
}

.mobile-menu-btn .icon {
  width: 22px;
  height: 22px;
  position: absolute;
}

.mobile-menu-btn__icon-close {
  opacity: 0;
  transform: rotate(-45deg);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mobile-menu-btn__icon-open {
  opacity: 1;
  transform: rotate(0deg);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mobile-menu-btn--open .mobile-menu-btn__icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

.mobile-menu-btn--open .mobile-menu-btn__icon-open {
  opacity: 0;
  transform: rotate(45deg);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav {
  display: block;
  border-top: 1px solid var(--color-border);
  background: #fff;
  padding: 0.75rem 0;
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav .container {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-nav a {
  padding: 0.65rem 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: 0.4rem;
}

.mobile-nav a:hover {
  background: var(--color-surface);
  color: var(--color-accent);
}

.site-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: color 0.15s ease;
  position: relative;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.site-header__search {
  flex: 1;
  min-width: 160px;
  max-width: 420px;
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}

.site-header__search input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-header__search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
  background: #fff;
}

.site-header__search button {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: var(--color-muted);
  display: flex;
  cursor: pointer;
}

.site-header__search .icon {
  width: 16px;
  height: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--color-text);
  transition: background-color 0.15s ease;
}

.header-cart-btn:hover {
  background: var(--color-surface);
}

.header-cart-btn .icon {
  width: 21px;
  height: 21px;
}

.header-cart-btn__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.header-cart-btn__badge--pulse {
  animation: cart-badge-pulse 0.4s ease;
}

@keyframes cart-badge-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-button);
  color: var(--color-button-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-surface);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
  opacity: 0.92;
}

/* ============================================================
   Hero / Banner
   ============================================================ */
.hero {
  position: relative;
  background: var(--color-secondary);
  color: #ffffff;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.hero__video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border: none;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.1) 100%);
}

/* Reaproveita o mesmo container (mesma margem lateral do logo, do menu e
   dos títulos de seção) para o texto do banner ficar alinhado com o resto
   do site, em vez de um espaçamento solto e diferente. */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero__inner .btn {
  flex: none;
}

.hero__content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  max-width: 32rem;
  letter-spacing: -0.02em;
}

.hero__content p {
  font-size: 1.1rem;
  max-width: 32rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

/* ============================================================
   Banner "Conheça a empresa" (home) — foto + texto, clicável, leva
   pra Quem Somos (ou o link configurado no banner)
   ============================================================ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  color: var(--color-text);
}

.about-teaser__image {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.about-teaser:hover .about-teaser__image img {
  transform: scale(1.04);
}

.about-teaser__body h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.about-teaser__desc {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.about-teaser__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

.about-teaser:hover .about-teaser__link {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Quem Somos: bloco de endereço + mapa, lado a lado no desktop e
   empilhado no mobile. */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================================
   Banners secundários (home)
   ============================================================ */
.secondary-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.secondary-banner {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
  line-height: 0;
}

.secondary-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.secondary-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.15) 70%, rgba(15, 23, 42, 0) 100%);
}

.secondary-banner__content h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.secondary-banner__content p {
  font-size: 0.85rem;
  opacity: 0.92;
  margin: 0;
  max-width: 20rem;
}

/* ============================================================
   Seções e grids
   ============================================================ */
.section {
  padding: 3.5rem 0;
}

.section__title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  text-align: center;
}

/* ===== Barra de busca/filtros do Catálogo ===== */

.catalog-toolbar {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.catalog-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.catalog-search {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
}

.catalog-search > .icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--color-muted);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.catalog-search__clear {
  position: absolute;
  right: 0.9rem;
  display: flex;
  color: var(--color-muted);
}

.catalog-search__clear .icon {
  width: 16px;
  height: 16px;
}

.catalog-search__clear:hover {
  color: var(--color-text);
}

.catalog-toolbar__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.catalog-toolbar__selects select.form-control {
  width: auto;
  min-width: 150px;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
}

.catalog-toolbar__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  white-space: nowrap;
}

.catalog-toolbar__submit .icon {
  width: 16px;
  height: 16px;
}

.catalog-result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.catalog-result-bar__count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.catalog-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.filter-chip .icon {
  width: 11px;
  height: 11px;
}

.filter-chip:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.catalog-result-bar__clear {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .catalog-toolbar__form {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-search {
    flex: 1 1 auto;
  }

  .catalog-toolbar__selects {
    flex-direction: column;
  }

  .catalog-toolbar__selects select.form-control {
    width: 100%;
  }

  .catalog-toolbar__submit {
    justify-content: center;
  }

  .catalog-filter-chips {
    margin-left: 0;
  }
}

#catalogResults {
  transition: opacity 0.15s ease;
}

.catalog-results--loading {
  opacity: 0.5;
  pointer-events: none;
}

.catalog-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  justify-items: center;
}

/* Produtos em destaque (home): sempre exatamente 2 colunas no mobile, em
   vez de deixar o navegador decidir (1 ou 2 dependendo da largura da tela). */
@media (max-width: 768px) {
  .grid.grid--2col-mobile {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Grade de cards com ícone/foto + título + descrição (Certificados, Vagas):
   sempre centralizada, no máximo 5 colunas no desktop e 3 no mobile — com
   poucos itens a linha fica centralizada em vez de "grudada" à esquerda. */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.icon-grid > * {
  flex: 0 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

@media (min-width: 640px) {
  .icon-grid > * {
    flex-basis: calc(20% - 1.2rem);
    max-width: calc(20% - 1.2rem);
  }
}

.card--center .card__body {
  align-items: center;
  text-align: center;
}

/* Vagas (Trabalhe Conosco): cards maiores e mais legíveis que o icon-grid
   genérico (que foi feito pra ícone+rótulo curto, não pra descrição de vaga
   + contato). Mostra o e-mail/WhatsApp como informação de contato — não
   como botão de ação. */
.jobs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.job-card {
  flex: 0 1 calc(33.333% - 1rem);
  min-width: 260px;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.job-card:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.job-card__image {
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.job-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
}

.job-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.job-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.job-card__desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex: 1;
}

.job-card__apply {
  border-top: 1px solid var(--color-border);
  padding-top: 1.1rem;
  margin-top: auto;
}

.job-card__apply-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.job-card__contact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.job-card__contact:last-child {
  margin-bottom: 0;
}

.job-card__contact:hover {
  color: var(--color-accent);
}

.job-card__contact .icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .job-card {
    flex-basis: 100%;
    max-width: 420px;
  }
}

/* Página Quem Somos: imagem de topo (com placeholder quando nenhuma imagem
   foi enviada pelo admin) e grade de cards de missão/visão/valores. */
.about-hero-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-hero-image .icon {
  width: 56px;
  height: 56px;
  color: #94a3b8;
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.brand-card {
  flex: 0 1 calc(25% - 1.15rem);
  max-width: calc(25% - 1.15rem);
  min-width: 180px;
  aspect-ratio: 2 / 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.brand-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand-card {
    flex-basis: calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    min-width: 0;
  }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.value-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-card);
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.value-card p {
  margin: 0;
  opacity: 0.92;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   Cards (produtos, categorias, certificados, vagas)
   ============================================================ */
.card {
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.card__image {
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: 0.7rem 0.8rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.card__title {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.card__brand {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.card__sku {
  font-size: 0.68rem;
  color: var(--color-muted);
}

.card__badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.card__badges .badge {
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
}

.card__body .badge {
  padding: 0.12rem 0.5rem;
  font-size: 0.62rem;
}

.card__add-form {
  margin-top: 0.3rem;
}

.card__add-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--button-radius);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.card__add-btn .icon {
  width: 13px;
  height: 13px;
}

.card__add-btn:hover {
  opacity: 0.9;
}

/* Card em promoção: fundo escuro, cores invertidas (igual ao card padrão do site) */
.card--promo {
  background: #0a0a0a;
  border-color: #0a0a0a;
}

.card--promo .card__title,
.card--promo .card__price {
  color: #fff;
}

.card--promo .card__brand,
.card--promo .card__sku,
.card__price-old {
  color: rgba(255, 255, 255, 0.65);
}

.card--promo .card__add-btn {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

/* Estado "Pronto" depois de clicar em Adicionar (card do catálogo/home e
   botão da página do produto) — some sozinho depois de alguns segundos. */
.card__add-btn.add-to-cart-btn--done,
.btn.add-to-cart-btn--done {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  animation: add-to-cart-pop 0.3s ease;
}

.card--promo .card__add-btn.add-to-cart-btn--done {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

@keyframes add-to-cart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.card__price-old {
  display: block;
  text-decoration: line-through;
  font-size: 0.68rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ============================================================
   Categorias em formato circular (linha na home)
   ============================================================ */
.category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: calc(33.333% - 0.75rem);
  max-width: 144px;
  text-align: center;
}

@media (min-width: 640px) {
  .category-circle {
    width: calc(20% - 1rem);
  }
}

.category-circle__image {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease;
  color: var(--color-primary);
}

.category-circle__image .icon {
  width: 2rem;
  height: 2rem;
}

@media (min-width: 640px) {
  .category-circle__image {
    width: 144px;
    height: 144px;
  }

  .category-circle__image .icon {
    width: 3.25rem;
    height: 3.25rem;
  }
}

.category-circle:hover .category-circle__image {
  transform: scale(1.06);
}

.category-circle__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-circle__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.category-circle:hover .category-circle__label {
  color: var(--color-accent);
}

@media (min-width: 640px) {
  .category-circle__label {
    font-size: 0.9rem;
  }
}

/* ============================================================
   Galeria de imagens do produto (zoom no hover + miniaturas)
   ============================================================ */
.product-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  cursor: zoom-in;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-gallery__main:hover img {
  transform: scale(1.25);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-gallery__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  background: var(--color-surface);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--color-primary);
}

/* Página do produto: galeria + informações lado a lado no desktop,
   empilhadas no mobile (antes era um grid fixo de 2 colunas que espremia
   tudo numa tela estreita). */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Trilha "Catálogo › Categoria › Produto" no topo da página do produto. */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  opacity: 0.6;
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 600;
  opacity: 1;
}

/* Coluna de informações do produto — tipografia com mais respiro. */
.product-info__brand {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.product-info__title {
  margin: 0 0 0.75rem;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--color-primary);
}

.product-info__desc {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.product-info__price {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  margin: 0 0 1.5rem;
}

.product-info__price--small {
  font-size: 1.3rem;
  color: var(--color-text);
}

.product-info__heading {
  margin: 2.25rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
}

.product-info__description {
  color: var(--color-muted);
  line-height: 1.7;
}

/* Caixa de compra: agrupa quantidade + botões num bloco destacado, bem
   separado do resto do conteúdo, pra deixar óbvio "é aqui que eu compro". */
.product-buybox {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-buybox__row {
  display: flex;
  gap: 0.75rem;
}

.product-buybox .add-to-cart-btn {
  flex: 1;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.product-buybox .add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.product-buybox__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-buybox__divider::before,
.product-buybox__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.product-buybox__whatsapp {
  width: 100%;
  padding: 0.8rem 1.25rem;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.product-buybox__whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

/* Seletor de quantidade com botões − / +, em vez de um campo numérico cru. */
.qty-stepper {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--button-radius);
  overflow: hidden;
  background: #fff;
}

.qty-stepper__btn {
  width: 40px;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.qty-stepper__btn:hover {
  background: var(--color-surface);
}

.qty-stepper__input {
  width: 46px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  -moz-appearance: textfield;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper__input:focus {
  outline: none;
}

@media (max-width: 420px) {
  .product-buybox__row {
    flex-wrap: wrap;
  }

  .product-buybox .add-to-cart-btn {
    flex-basis: 100%;
  }
}

/* ============================================================
   Badges (etiquetas pequenas — disponibilidade, destaque, etc.)
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  width: fit-content;
}

.badge-accent { background: rgba(249, 115, 22, 0.12); color: #c2410c; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: var(--color-surface); color: var(--color-muted); }
.badge-new { background: #bbf7d0; color: #15803d; }
.badge-promo { background: #0a0a0a; color: #ffffff; }
.badge-featured { background: #facc15; color: #0a0a0a; }

/* ============================================================
   Formulários
   ============================================================ */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--button-radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

textarea.form-control {
  resize: vertical;
}

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--button-radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-secondary);
  color: #cbd5e1;
  padding: 3.5rem 0 1.75rem;
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
}

.site-footer a {
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top__logo {
  display: flex;
  align-items: center;
}

.footer-top__logo span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.footer-top__slogan {
  font-size: 0.8rem;
  color: #94a3b8;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-top__totop {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.footer-top__totop:hover {
  color: #ffffff;
}

.footer-top__totop .icon {
  width: 1rem;
  height: 1rem;
}

.footer-columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 2rem;
}

.footer-column h4 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.footer-column a {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 2rem;
}

.footer-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-contact p {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.footer-social__btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.footer-social__btn .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-bottom__links a {
  font-size: 0.8rem;
}

/* ============================================================
   Botão flutuante do WhatsApp
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5);
}

/* No mobile vira só o ícone (círculo), pra cobrir bem menos conteúdo da
   tela — antes ficava com o texto todo em cima de tabelas e botões. */
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    padding: 0.85rem;
  }

  .whatsapp-float__text {
    display: none;
  }
}

/* ============================================================
   Admin
   ============================================================ */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: var(--color-surface);
  font-family: 'Inter', system-ui, sans-serif;
}

.admin-sidebar {
  width: 250px;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
  padding: 1.75rem 1.1rem;
}

.admin-sidebar .brand {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.admin-sidebar .slogan {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1.75rem;
}

.admin-sidebar nav a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-main {
  flex: 1;
  padding: 2.25rem;
  max-width: 100%;
  overflow-x: auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.88rem;
}

.table th {
  background: var(--color-surface);
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.table tbody tr:hover {
  background: var(--color-surface);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.panel {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--color-primary);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.panel-subtitle {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

/* ===== Super Promoção: carrossel infinito na home ===== */

.super-promo-section {
  background: var(--super-promo-color, #dc2626);
  padding: 3rem 0;
  overflow: hidden;
}

.super-promo-section__title {
  color: #fff;
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.super-promo-section__desc {
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}

.super-promo-carousel {
  overflow: hidden;
  width: 100%;
}

.super-promo-carousel__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  transition: transform 0.6s ease;
}

.super-promo-carousel__item {
  flex: 0 0 auto;
  width: 270px;
}

@media (max-width: 900px) {
  .super-promo-carousel__item {
    width: 220px;
  }
}

@media (max-width: 560px) {
  .super-promo-carousel__item {
    width: 180px;
  }
}

/* ===== Popup de entrada ===== */

.entry-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-popup[hidden] {
  display: none;
}

.entry-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}

.entry-popup__box {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.entry-popup__box img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 0.6rem;
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(0, 0, 0, 0.35));
}

.entry-popup__close {
  position: absolute;
  top: -0.85rem;
  right: -0.85rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.panel-empty {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   Dashboard — grids, cards de estatística e gráfico
   ============================================================ */
.dash-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dash-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dash-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dash-grid--split { grid-template-columns: 1fr 1fr; align-items: start; }

@media (max-width: 1100px) {
  .dash-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .dash-grid--3 { grid-template-columns: 1fr; }
  .dash-grid--split { grid-template-columns: 1fr; }
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-card--icon {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon .icon {
  width: 20px;
  height: 20px;
}

.icon-bg-primary { background: rgba(15, 23, 42, 0.08); color: var(--color-primary); }
.icon-bg-success { background: rgba(37, 211, 102, 0.15); color: #128c4a; }
.icon-bg-accent { background: rgba(249, 115, 22, 0.12); color: #c2410c; }
.icon-bg-info { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }

.stat-card__body {
  min-width: 0;
}

.stat-card__value {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.stat-card__label {
  font-size: 0.76rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
  font-weight: 500;
}

.stat-card__trend {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

.trend-up { color: #16a34a; }
.trend-down { color: #dc2626; }

.dash-chart-panel {
  margin-bottom: 1rem;
}

.dash-chart-wrap {
  height: 260px;
  margin-top: 0.5rem;
}

.table--compact th,
.table--compact td {
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-field__swatch {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  cursor: pointer;
  background: none;
}

.color-field__swatch::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-field__swatch::-webkit-color-swatch {
  border-radius: 0.3rem;
  border: none;
}

.color-field__text {
  flex: 1;
}

/* ============================================================
   Tela de carregamento de upload (foto/vídeo)
   ============================================================ */
.upload-overlay[hidden] {
  display: none;
}

.upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.upload-overlay__box {
  background: #fff;
  border-radius: 1rem;
  padding: 2.25rem 2.5rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.upload-overlay__spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 999px;
  animation: upload-spin 0.8s linear infinite;
}

@keyframes upload-spin {
  to { transform: rotate(360deg); }
}

.upload-overlay__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.upload-overlay__hint {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 1rem 0 0;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 1.5rem;
}

.login-box {
  background: #fff;
  padding: 2.75rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.maintenance-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-background);
}

.maintenance-page__logo {
  max-height: 72px;
  width: auto;
  margin-bottom: 2rem;
}

.maintenance-page__brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.maintenance-page__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 0.85rem;
}

.maintenance-page__text {
  max-width: 440px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.maintenance-page__whatsapp {
  padding: 0.8rem 1.5rem;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .admin-sidebar {
    display: none;
  }

  .hero__content {
    padding: 1.75rem;
  }

  .hero__content h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}
