/* =========================================================
   SOUDEN - STYLE.CSS ORGANIZADO
   Site + Cadastro de Produtos + Dashboard Administrativo
========================================================= */

/* =========================
   1. VARIÁVEIS GLOBAIS
========================= */

:root {
  --verde: #00a859;
  --verde-escuro: #006b3f;
  --vermelho: #ef3340;
  --cinza: #606266;
  --cinza-claro: #f4f6f8;
  --preto: #111418;
  --branco: #ffffff;
  --sombra: 0 18px 45px rgba(0, 0, 0, 0.12);
  --borda: rgba(96, 98, 102, 0.16);
}

/* =========================
   2. RESET / BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--preto);
  background:
    radial-gradient(circle at top right, rgba(239, 51, 64, 0.12), transparent 32%),
    radial-gradient(circle at top left, rgba(0, 168, 89, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   3. HEADER / MENU
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(96, 98, 102, 0.14);
}

.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 57px;
  max-width: 253px;
  object-fit: contain;
}

.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 24px;
  color: var(--cinza);
  letter-spacing: -1px;
}

.brand-text span {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cinza);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--cinza);
  font-weight: 700;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.2s;
}

.nav a:hover {
  background: var(--cinza-claro);
  color: var(--verde-escuro);
}

/* =========================
   4. BOTÕES GERAIS
========================= */

.btn {
  border: none;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  padding: 13px 18px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
  color: var(--branco);
  box-shadow: 0 12px 28px rgba(0, 168, 89, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 168, 89, 0.32);
}

.btn-ghost {
  background: #ffffff;
  color: var(--verde-escuro);
  border: 1px solid rgba(0, 107, 63, 0.18);
}

/* =========================
   5. HERO
========================= */

.hero {
  position: relative;
  padding: 76px 0 58px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -120px;
  width: 580px;
  height: 580px;
  background: conic-gradient(
    from 210deg,
    var(--vermelho),
    transparent 28%,
    var(--verde),
    transparent 60%,
    var(--vermelho)
  );
  opacity: 0.12;
  border-radius: 50%;
  filter: blur(8px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 168, 89, 0.1);
  color: var(--verde-escuro);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 6px rgba(0, 168, 89, 0.15);
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -3px;
  color: var(--preto);
  margin-bottom: 22px;
}

h1 span {
  color: var(--verde-escuro);
  position: relative;
}

h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 12px;
  background: rgba(239, 51, 64, 0.18);
  z-index: -1;
  border-radius: 999px;
}

.hero p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cinza);
  max-width: 620px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   6. FILTROS / FORMULÁRIOS DO SITE
========================= */

.filter-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--sombra);
  position: relative;
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-title h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
}

.live-badge {
  background: rgba(239, 51, 64, 0.1);
  color: var(--vermelho);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 900;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(96, 98, 102, 0.18);
  border-radius: 16px;
  padding: 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  color: var(--preto);
  transition: 0.2s;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.12);
}

.filter-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.result-count {
  margin-top: 18px;
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(0, 107, 63, 0.08),
    rgba(239, 51, 64, 0.08)
  );
  color: var(--cinza);
  font-size: 14px;
  font-weight: 800;
}

.result-count strong {
  color: var(--verde-escuro);
}

/* =========================
   7. SEÇÕES DO SITE
========================= */

.section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1.5px;
}

.section-head p {
  color: var(--cinza);
  max-width: 560px;
  line-height: 1.55;
}

/* =========================
   8. CADASTRO ANTIGO / PAINEL SIMPLES
========================= */

.cadastro-panel {
  background: #ffffff;
  border: 1px solid rgba(96, 98, 102, 0.12);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--sombra);
}

.cadastro-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cadastro-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.success-message {
  display: none;
  margin-top: 16px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(0, 168, 89, 0.1);
  color: var(--verde-escuro);
  font-weight: 900;
}

.success-message.active {
  display: block;
}

/* =========================
   9. PRODUTOS / CARDS
========================= */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid rgba(96, 98, 102, 0.12);
  padding: 14px;
  border-radius: 20px;
}

.toolbar small {
  color: var(--cinza);
  font-weight: 900;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(96, 98, 102, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: 0.22s;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 168, 89, 0.25);
}

.product-photo {
  width: 100%;
  height: 180px;
  background:
    radial-gradient(circle at top right, rgba(239, 51, 64, 0.1), transparent 36%),
    linear-gradient(135deg, #f4f6f8, #ffffff);
  border-bottom: 1px solid rgba(96, 98, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cinza);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  padding: 18px;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.28s;
}

.card:hover .product-photo img {
  transform: scale(1.05);
}

.card-top {
  padding: 20px;
  background:
    radial-gradient(circle at right top, rgba(239, 51, 64, 0.12), transparent 35%),
    linear-gradient(135deg, #f9fafb, #ffffff);
  border-bottom: 1px solid rgba(96, 98, 102, 0.1);
}

.code {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 89, 0.1);
  color: var(--verde-escuro);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 13px;
}

.card h3 {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.brand-name {
  color: var(--vermelho);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.desc {
  color: var(--cinza);
  line-height: 1.45;
  font-size: 14px;
  margin-bottom: 16px;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.spec {
  background: var(--cinza-claro);
  border-radius: 14px;
  padding: 12px;
}

.spec small {
  display: block;
  color: var(--cinza);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 900;
  margin-bottom: 4px;
}

.spec strong {
  color: var(--preto);
  font-size: 14px;
}

.card-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--verde-escuro);
  font-size: 14px;
}

.qty::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--verde);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0, 168, 89, 0.12);
}

.quote-btn {
  border: none;
  background: var(--preto);
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s;
}

.quote-btn:hover {
  background: var(--verde-escuro);
}

.empty {
  display: none;
  padding: 38px;
  text-align: center;
  background: #ffffff;
  border-radius: 24px;
  border: 1px dashed rgba(96, 98, 102, 0.28);
  color: var(--cinza);
  font-weight: 900;
}

.empty.active {
  display: block;
}

/* =========================
   10. CTA / RODAPÉ
========================= */

.cta {
  margin: 20px 0 60px;
  border-radius: 32px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at right top, rgba(239, 51, 64, 0.8), transparent 34%),
    linear-gradient(135deg, var(--verde-escuro), #073b2a);
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: 0 26px 60px rgba(0, 107, 63, 0.22);
}

.cta h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -1.4px;
  margin-bottom: 10px;
}

.cta p {
  opacity: 0.9;
  line-height: 1.55;
  max-width: 720px;
}

.cta .btn {
  background: #ffffff;
  color: var(--verde-escuro);
}

footer {
  padding: 30px 0;
  color: var(--cinza);
  font-weight: 800;
  border-top: 1px solid rgba(96, 98, 102, 0.12);
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   11. PÁGINA CADASTRO DE PRODUTOS
========================================================= */

.cadastro-produto-page {
  --cadastro-verde: var(--verde);
  --cadastro-verde-escuro: var(--verde-escuro);
  --cadastro-cinza: var(--cinza);
  --cadastro-cinza-escuro: #2f3437;
  --cadastro-fundo: #f4f6f8;
  --cadastro-borda: rgba(96, 98, 102, 0.16);
  --cadastro-sombra: 0 16px 48px rgba(0, 0, 0, 0.08);

  margin: 0;
  background: var(--cadastro-fundo);
  color: var(--cadastro-cinza-escuro);
}

.cadastro-produto-wrapper {
  width: 100%;
  min-height: 100vh;
  padding: 18px 14px 120px;
  overflow-x: hidden;
}

.cadastro-produto-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.cadastro-produto-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}

.cadastro-back {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--cadastro-cinza-escuro);
  border: 1px solid var(--cadastro-borda);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.cadastro-title-box {
  background: linear-gradient(
    135deg,
    var(--cadastro-verde),
    var(--cadastro-verde-escuro)
  );
  color: #ffffff;
  border-radius: 26px;
  padding: 24px 20px;
  box-shadow: var(--cadastro-sombra);
}

.cadastro-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.cadastro-title-box h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(2rem, 10vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.cadastro-title-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.45;
}

.cadastro-produto-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--cadastro-borda);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--cadastro-sombra);
}

.form-card h2 {
  margin: 0 0 16px;
  color: var(--cadastro-cinza-escuro);
  font-size: 1.1rem;
  line-height: 1.2;
}

.cadastro-produto-page .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.cadastro-produto-page .field:last-child {
  margin-bottom: 0;
}

.cadastro-produto-page .field.hidden {
  display: none;
}

.cadastro-produto-page .field label {
  color: var(--cadastro-cinza-escuro);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.cadastro-produto-page .field input,
.cadastro-produto-page .field select,
.cadastro-produto-page .field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(96, 98, 102, 0.22);
  border-radius: 16px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--cadastro-cinza-escuro);
  font: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
}

.cadastro-produto-page .field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cadastro-verde) 50%),
    linear-gradient(135deg, var(--cadastro-verde) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 23px,
    calc(100% - 16px) 23px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.cadastro-produto-page .field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
}

.cadastro-produto-page .field input:focus,
.cadastro-produto-page .field select:focus,
.cadastro-produto-page .field textarea:focus {
  border-color: var(--cadastro-verde);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.13);
}

.cadastro-produto-page .field small {
  color: var(--cadastro-cinza);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-button {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--cadastro-verde),
    var(--cadastro-verde-escuro)
  );
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 168, 89, 0.24);
}

.upload-button span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.2rem;
}

.photo-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.photo-item {
  border: 2px solid rgba(96, 98, 102, 0.16);
  border-radius: 20px;
  padding: 10px;
  background: #ffffff;
  transition: 0.2s ease;
}

.photo-item.selected {
  border-color: var(--cadastro-verde);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.12);
}

.photo-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  margin-bottom: 10px;
  background: #eef1f3;
}

.main-photo-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cadastro-cinza-escuro);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.main-photo-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--cadastro-verde);
}

.cadastro-produto-page .success-message {
  display: none;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 168, 89, 0.12);
  color: var(--cadastro-verde-escuro);
  font-weight: 900;
  text-align: center;
}

.cadastro-produto-page .success-message.active {
  display: block;
}

.mobile-form-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--cadastro-borda);
}

.btn-cadastrar,
.btn-limpar {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
}

.btn-cadastrar {
  background: linear-gradient(
    135deg,
    var(--cadastro-verde),
    var(--cadastro-verde-escuro)
  );
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 168, 89, 0.24);
}

.btn-limpar {
  background: #ffffff;
  color: var(--cadastro-cinza-escuro);
  border: 1px solid var(--cadastro-borda);
}

/* =========================================================
   12. DASHBOARD ADMINISTRATIVO
========================================================= */

.admin-page {
  --admin-verde: var(--verde);
  --admin-verde-escuro: var(--verde-escuro);
  --admin-cinza: var(--cinza);
  --admin-cinza-escuro: #2f3437;
  --admin-fundo: #f4f6f8;
  --admin-borda: rgba(96, 98, 102, 0.16);
  --admin-sombra: 0 16px 48px rgba(0, 0, 0, 0.08);

  margin: 0;
  background: var(--admin-fundo);
  color: var(--admin-cinza-escuro);
}

.admin-wrapper {
  min-height: 100vh;
  padding: 18px 14px 40px;
}

.admin-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
  padding: 24px 20px;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    var(--admin-verde),
    var(--admin-verde-escuro)
  );
  color: #ffffff;
  box-shadow: var(--admin-sombra);
}

.admin-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.admin-header h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(2.3rem, 11vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.admin-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.admin-back {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-action-card {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--admin-borda);
  background: #ffffff;
  color: var(--admin-cinza-escuro);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--admin-sombra);
}

.admin-action-card.primary {
  background: linear-gradient(
    135deg,
    var(--admin-verde),
    var(--admin-verde-escuro)
  );
  color: #ffffff;
}

.admin-action-card span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 168, 89, 0.12);
  color: var(--admin-verde);
  font-size: 1.5rem;
  font-weight: 900;
}

.admin-action-card.primary span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.admin-action-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 900;
}

.admin-action-card small {
  color: inherit;
  opacity: 0.75;
  font-weight: 700;
}

.admin-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--admin-borda);
  box-shadow: var(--admin-sombra);
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--admin-cinza);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--admin-verde);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 950;
}

.stat-card small {
  color: var(--admin-cinza);
  font-weight: 700;
}

.stat-card.alert strong {
  color: #c0392b;
}

.admin-panel {
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--admin-borda);
  box-shadow: var(--admin-sombra);
}

.admin-panel-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin: 0 0 4px;
  color: var(--admin-cinza-escuro);
  font-size: 1.25rem;
}

.admin-panel-head p {
  margin: 0;
  color: var(--admin-cinza);
  font-weight: 700;
}

.danger-small {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-search-box {
  margin-bottom: 16px;
}

.admin-search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(96, 98, 102, 0.22);
  border-radius: 16px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--admin-cinza-escuro);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.admin-search-box input:focus {
  border-color: var(--admin-verde);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.13);
}

.admin-products-list {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.admin-products-list.active {
  display: flex;
}

.product-admin-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: #f8fafb;
  border: 1px solid var(--admin-borda);
}

.product-admin-image {
  width: 100%;
  min-height: 160px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  word-break: break-word;
}

.product-admin-image.no-image {
  background: #eef1f3;
  color: var(--admin-cinza);
}

.product-admin-image.fake-image {
  background: rgba(0, 168, 89, 0.1);
  color: var(--admin-verde-escuro);
}

.product-admin-info h3 {
  margin: 10px 0;
  color: var(--admin-cinza-escuro);
  font-size: 1.12rem;
  line-height: 1.2;
}

.product-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-code {
  color: var(--admin-cinza);
  font-size: 0.8rem;
  font-weight: 900;
}

.product-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.product-status.ok {
  background: rgba(0, 168, 89, 0.12);
  color: var(--admin-verde-escuro);
}

.product-status.zero {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.product-admin-info ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--admin-cinza);
  font-size: 0.9rem;
  line-height: 1.35;
}

.product-admin-info li strong {
  color: var(--admin-cinza-escuro);
}

.product-admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.copy-btn,
.delete-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.copy-btn {
  background: var(--admin-verde);
  color: #ffffff;
}

.delete-btn {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.admin-empty,
.admin-empty-inline {
  display: none;
  padding: 28px 18px;
  border-radius: 22px;
  background: #f8fafb;
  border: 1px dashed rgba(96, 98, 102, 0.28);
  text-align: center;
}

.admin-empty.active {
  display: block;
}

.admin-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--admin-cinza-escuro);
  font-size: 1.1rem;
}

.admin-empty p {
  margin: 0 0 16px;
  color: var(--admin-cinza);
  font-weight: 700;
}

.empty-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--admin-verde);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

.admin-empty-inline {
  display: block;
  color: var(--admin-cinza);
  font-weight: 800;
}

/* =========================================================
   13. RESPONSIVO
========================================================= */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .cadastro-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .brand img {
    height: 42px;
    max-width: 180px;
  }

  .header-inner .btn {
    width: 100%;
    font-size: 14px;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    letter-spacing: -2px;
  }

  .filters,
  .filter-buttons,
  .cadastro-form {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}

/* Cadastro produto - tablet */

@media (min-width: 680px) {
  .cadastro-produto-wrapper {
    padding: 32px 20px 130px;
  }

  .cadastro-title-box {
    padding: 32px;
  }

  .form-card {
    padding: 24px;
  }

  .photo-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cadastro produto - desktop */

@media (min-width: 980px) {
  .cadastro-produto-wrapper {
    padding-bottom: 40px;
  }

  .cadastro-produto-header {
    margin-bottom: 24px;
  }

  .cadastro-produto-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .form-card {
    border-radius: 28px;
  }

  .photo-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-form-actions {
    position: static;
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-top: 0;
  }

  .btn-cadastrar,
  .btn-limpar {
    width: auto;
    min-width: 190px;
  }

  .cadastro-produto-page .success-message {
    grid-column: 1 / -1;
  }
}

/* Admin - tablet / desktop */

@media (min-width: 700px) {
  .admin-wrapper {
    padding: 28px 20px 50px;
  }

  .admin-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px;
  }

  .admin-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-panel {
    padding: 24px;
  }

  .admin-panel-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .danger-small {
    width: auto;
    padding: 0 18px;
  }

  .product-admin-card {
    flex-direction: row;
  }

  .product-admin-image {
    width: 180px;
    min-height: 180px;
    flex: 0 0 180px;
  }

  .product-admin-info {
    flex: 1;
  }

  .product-admin-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}
