/* ============================================================
   RAÍZES DO NORDESTE — Design System v2
   Paleta: areia, terracota, amarelo-sol e verde-cacto
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:           #fff8ec;
  --bg-2:         #f7eddd;
  --surface:      #fffdf8;
  --surface-2:    #f3e6d2;
  --surface-3:    #e8d4b8;
  --border:       rgba(91,54,36,0.14);
  --border-soft:  rgba(91,54,36,0.08);

  --brand:        #a9432b;
  --brand-light:  #bf5231;
  --brand-dark:   #82331f;
  --brand-glow:   rgba(169,67,43,0.16);

  --amber:        #9e5e08;
  --amber-dark:   #7c4807;
  --amber-soft:   rgba(205,145,39,0.16);
  --amber-glow:   rgba(205,145,39,0.22);

  --text:         #35251f;
  --text-2:       #685044;
  --text-3:       #826d5e;
  --text-inv:     #382417;

  --success:      #39704a;
  --success-soft: rgba(57,112,74,0.12);
  --warning:      #a85f13;
  --warning-soft: rgba(230,163,37,0.18);
  --danger:       #b43c32;
  --danger-soft:  rgba(180,60,50,0.12);
  --info:         #287b91;
  --info-soft:    rgba(40,123,145,0.12);

  --radius-sm:    0.5rem;
  --radius:       0.875rem;
  --radius-lg:    1.25rem;
  --radius-xl:    1.75rem;
  --radius-pill:  999px;

  --shadow-sm:    0 2px 8px rgba(67,42,27,0.08);
  --shadow:       0 8px 24px rgba(67,42,27,0.12);
  --shadow-lg:    0 20px 48px rgba(67,42,27,0.16);
  --shadow-brand: 0 8px 24px rgba(169,67,43,0.2);
  --shadow-amber: 0 8px 24px rgba(201,130,23,0.2);

  --transition:   all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,236,0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Botões ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(169,67,43,0.26);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fffdf8;
  box-shadow: var(--shadow-amber);
}
.btn-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(201,130,23,0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--brand);
}

.btn-surface {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-surface:hover {
  background: var(--surface-3);
  border-color: var(--brand);
}

.btn-sm { font-size: 0.78rem; padding: 0.4rem 0.85rem; }
.btn-lg { font-size: 0.95rem; padding: 0.75rem 1.6rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover { border-color: rgba(169,67,43,0.25); box-shadow: var(--shadow); }
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── KPI / Metric cards ───────────────────────────────────────── */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.metric-card.amber::before { background: linear-gradient(90deg, var(--amber-dark), var(--amber)); }
.metric-card.danger::before { background: linear-gradient(90deg, #b03a3a, var(--danger)); }
.metric-card.info::before { background: linear-gradient(90deg, #2a8ab0, var(--info)); }

.metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.metric-sub {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(230,163,37,0.15), transparent 34%),
    linear-gradient(135deg, #fff8ec 0%, #f7eddd 52%, #f4e4cc 100%);
  padding: 5rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,112,74,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,163,37,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--amber-soft);
  border: 1px solid rgba(201,130,23,0.24);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span { color: var(--amber); }

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat-item { text-align: left; }
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}
.hero-stat-label { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }

/* ── Showcase card (hero right) ───────────────────────────────── */
.showcase-card {
  background: rgba(255,253,248,0.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(169,67,43,0.18);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(67,42,27,0.16);
  position: relative;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: #fffdf8;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.showcase-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.6rem; color: var(--text); }
.showcase-card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.showcase-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.showcase-card li { font-size: 0.85rem; color: var(--text-2); display: flex; align-items: center; gap: 0.5rem; }
.showcase-card li::before { content: '✓'; color: var(--success); font-weight: 700; }

.price-box { display: flex; align-items: baseline; gap: 0.75rem; }
.price-box strong { font-size: 2rem; font-weight: 900; color: var(--amber); }
.price-box del { color: var(--text-3); font-size: 0.95rem; }

/* ── Section layout ───────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.section-header { margin-bottom: 2rem; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-light);
  margin-bottom: 0.4rem;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Category cards ────────────────────────────────────────────── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.category-card:hover {
  background: var(--surface-2);
  border-color: rgba(169,67,43,0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.category-icon { font-size: 2.2rem; margin-bottom: 0.25rem; }
.category-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.category-desc { font-size: 0.8rem; color: var(--text-3); }

/* ── Product cards ─────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.products-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.catalog-category + .catalog-category { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.catalog-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.catalog-category-heading h3 { color: var(--text); font-size: 1.2rem; font-weight: 800; }
.catalog-category-heading span { color: var(--text-3); font-size: 0.8rem; white-space: nowrap; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; align-items: stretch; }
.catalog-product-grid .product-card { min-width: 0; }
.catalog-product-grid .product-info { flex: 1; display: flex; flex-direction: column; align-items: stretch; }
.catalog-product-grid .product-info h3 { min-height: 2.8em; }
.product-description { color: var(--text-2); font-size: 0.88rem; line-height: 1.5; margin: 0 0 0.65rem; }
.product-inclusions { color: var(--text-2); font-size: 0.82rem; line-height: 1.45; margin: 0 0 0.75rem; }
.product-inclusions strong { color: var(--text); }
.catalog-product-grid .product-price { flex-wrap: wrap; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(169,67,43,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-img {
  height: 140px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: grid;
  place-items: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.product-image {
  height: 170px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  overflow: hidden;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-image img { transform: scale(1.035); }

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 12rem;
}

.admin-product-cell img {
  width: 3.25rem;
  height: 2.5rem;
  border-radius: 0.4rem;
  object-fit: cover;
  flex: 0 0 auto;
}

.product-photo-upload {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--brand-light);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.product-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.product-photo-upload:focus-within {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

.admin-only-link[hidden] {
  display: none !important;
}

.product-upload-preview {
  display: block;
  width: min(100%, 20rem);
  max-height: 12rem;
  margin-top: 0.75rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: var(--amber);
  color: var(--text-inv);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-light);
  margin-bottom: 0.35rem;
}
.product-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; flex: 1; }
.product-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.75rem; }
.product-price strong { font-size: 1.3rem; font-weight: 800; color: var(--amber); }
.product-price del { font-size: 0.8rem; color: var(--text-3); }
.product-meta { font-size: 0.75rem; color: var(--text-3); margin-bottom: 0.75rem; }

/* ── Filter chips ──────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-chip:hover { background: var(--surface-3); color: var(--text); border-color: var(--brand); }
.filter-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
  appearance: none;
}

.form-control::placeholder { color: var(--text-3); }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.form-control:hover:not(:focus) { border-color: var(--surface-3); }

select.form-control {
  appearance: auto;
  cursor: pointer;
}

/* ── Table ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table-light { background: var(--surface-2); }
.table-light th { color: var(--text-2); }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border-soft); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }

tbody td { padding: 0.85rem 1rem; font-size: 0.875rem; color: var(--text); vertical-align: middle; }

/* ── Status pills ──────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill-success { background: var(--success-soft); color: var(--success); }
.pill-warning { background: var(--warning-soft); color: var(--amber); }
.pill-danger  { background: var(--danger-soft);  color: var(--danger); }
.pill-info    { background: var(--info-soft);     color: var(--info); }
.pill-muted   { background: rgba(91,54,36,0.06); color: var(--text-3); }

/* ── Progress bar ──────────────────────────────────────────────── */
.progress {
  height: 6px;
  background: var(--surface-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transition: width 0.6s ease;
}

.progress-bar.amber { background: linear-gradient(90deg, var(--amber-dark), var(--amber)); }
.progress-bar.danger { background: linear-gradient(90deg, #b03a3a, var(--danger)); }

/* ── Task / Route items ────────────────────────────────────────── */
.task-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: var(--transition);
}

.task-item:hover { border-color: rgba(169,67,43,0.25); }
.task-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.task-detail { font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.6rem; }

/* ── Cart ──────────────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-item:last-child { border-bottom: none; }
.cart-item-icon {
  width: 40px; height: 40px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cart-item-name { font-size: 0.85rem; font-weight: 600; color: var(--text); flex: 1; }
.cart-item-qty { font-size: 0.78rem; color: var(--text-3); }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--amber); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.cart-total-label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.cart-total-value { font-size: 1.3rem; font-weight: 900; color: var(--amber); }

/* ── Order mode chips ──────────────────────────────────────────── */
.order-mode-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.order-mode-chip {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}

.order-mode-chip { position: relative; }
.order-mode-chip input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.order-mode-chip:has(input:checked) {
  background: var(--brand-glow);
  border-color: var(--brand);
  color: var(--text);
}
.order-mode-chip:focus-within {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ── Region cards ──────────────────────────────────────────────── */
.region-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: var(--transition);
}

.region-card:hover { border-color: rgba(169,67,43,0.3); box-shadow: var(--shadow-sm); }
.region-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.region-card p { font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.25rem; }
.region-card .value { font-size: 1rem; font-weight: 700; color: var(--brand-light); }

/* ── Store info card ───────────────────────────────────────────── */
.store-info-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.store-info-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.store-info-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.store-info-card li { font-size: 0.8rem; color: var(--text-3); display: flex; align-items: center; gap: 0.5rem; }
.store-info-card li::before { content: '›'; color: var(--brand-light); }

/* ── Session box ───────────────────────────────────────────────── */
.session-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.85rem;
}
.session-user-name { font-weight: 700; color: var(--text); display: block; }
.session-user-email { color: var(--text-3); font-size: 0.78rem; }

/* ── Feedback / alert ──────────────────────────────────────────── */
.feedback { min-height: 20px; font-size: 0.82rem; font-weight: 500; margin-top: 0.5rem; }
.feedback.success { color: var(--success); }
.feedback.danger  { color: var(--danger);  }
.feedback.warning { color: var(--amber);   }
.feedback.info    { color: var(--info);    }

.alert {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ── Page shell ─────────────────────────────────────────────────── */
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Top card (page header) ────────────────────────────────────── */
.page-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-light);
  margin-bottom: 0.25rem;
}

.page-header-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Grid utilities ─────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

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

/* ── Flex utilities ─────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }

/* ── Spacing ─────────────────────────────────────────────────────── */
.mb-1 { margin-bottom: 0.5rem; }  .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }    .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }    .mt-4 { margin-top: 2rem; }

/* ── Text ─────────────────────────────────────────────────────────── */
.text-muted  { color: var(--text-3); }
.text-2      { color: var(--text-2); }
.text-brand  { color: var(--brand-light); }
.text-amber  { color: var(--amber); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm     { font-size: 0.82rem; }
.text-xs     { font-size: 0.72rem; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.animate-up  { animation: fadeInUp 0.45s ease both; }
.animate-in  { animation: fadeIn 0.3s ease both; }

.animate-up:nth-child(1) { animation-delay: 0.05s; }
.animate-up:nth-child(2) { animation-delay: 0.10s; }
.animate-up:nth-child(3) { animation-delay: 0.15s; }
.animate-up:nth-child(4) { animation-delay: 0.20s; }
.animate-up:nth-child(5) { animation-delay: 0.25s; }

/* ── Demo hint box ───────────────────────────────────────────────── */
.demo-hint {
  background: var(--amber-soft);
  border: 1px solid rgba(201,130,23,0.24);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
  color: var(--amber);
  margin-top: 0.75rem;
}

/* ── Loading state ───────────────────────────────────────────────── */
.loading { animation: pulse 1.4s ease infinite; }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ── Checkout summary ─────────────────────────────────────────────── */
.checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  color: var(--text-2);
}
.checkout-row strong { color: var(--text); }

/* ── Responsive layouts ───────────────────────────────────────── */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand:hover { color: var(--text); }
.navbar-brand .text-white-50 { color: var(--text-2); }
.d-block { display: block; }

.top-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.success { background: var(--success-soft); color: var(--success); }
.status-pill.warning { background: var(--warning-soft); color: var(--warning); }
.status-pill.danger { background: var(--danger-soft); color: var(--danger); }

.store-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.store-card strong { color: var(--text); }
.store-card p, .store-card li { color: var(--text-2); font-size: 0.85rem; }
.store-card p { margin: 0.4rem 0 0.65rem; }
.store-card ul { list-style: none; display: grid; gap: 0.35rem; }

.navbar-dark { color: var(--text); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.border-0 { border: 0; }
.bg-body-tertiary { background: var(--bg); }
.bg-light { background: var(--surface-2); }
.bg-success { background: var(--brand); }
.bg-success-subtle { background: var(--success-soft); }
.bg-warning { background: var(--warning); }
.text-white { color: #fff; }
.text-white-50 { color: var(--text-2); }
.text-dark { color: var(--text-inv); }
.text-uppercase { text-transform: uppercase; }
.rounded-pill { border-radius: var(--radius-pill); }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.small { font-size: 0.875em; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.h2 { font-size: 1.5rem; font-weight: 800; }
.h4 { font-size: 1.25rem; font-weight: 700; }
.h6 { font-size: 0.875rem; font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.px-3 { padding-inline: 0.75rem; }
.py-2 { padding-block: 0.5rem; }
.p-4 { padding: 1.5rem; }
.w-100 { width: 100%; }
.d-grid { display: grid; }
.btn-success {
  background: var(--brand);
  color: #fff;
}
.btn-success:hover { background: var(--brand-dark); }
.btn-outline-success {
  background: transparent;
  color: var(--brand-light);
  border: 1px solid var(--brand);
}
.btn-outline-success:hover {
  background: var(--brand-glow);
  color: var(--text);
}
.btn-outline-light {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-outline-light:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--brand);
}

.auth-layout {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: start;
}

.container {
  width: min(100% - 3rem, 1280px);
  margin-inline: auto;
}

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.h-100 { height: 100%; }

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.row > [class*="col-"] { min-width: 0; }
.col-12 { grid-column: span 12; }
.col-md-3 { grid-column: span 3; }
.col-md-4 { grid-column: span 4; }
.col-md-6 { grid-column: span 6; }
.col-lg-4 { grid-column: span 4; }
.col-lg-5 { grid-column: span 5; }
.col-lg-6 { grid-column: span 6; }
.col-lg-7 { grid-column: span 7; }
.col-lg-8 { grid-column: span 8; }

.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }

.mini-metric {
  min-width: 0;
  height: 100%;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mini-metric .label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-3);
  font-size: 0.75rem;
}

.mini-metric strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  overflow-wrap: anywhere;
}

.table-responsive {
  max-width: 100%;
  overflow-x: auto;
}

.table-responsive table { min-width: 34rem; }

@media (min-width: 768px) {
  .flex-md-row { flex-direction: row; }
  .align-items-md-center { align-items: center; }
}

@media (max-width: 991px) {
  .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8 {
    grid-column: span 12;
  }

  .auth-layout { grid-template-columns: minmax(0, 1fr); }

  .nav-inner {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); }

  .navbar .container {
    flex-direction: column;
    align-items: stretch;
  }

  .container {
    width: min(100% - 2rem, 1280px);
  }

  .nav-inner {
    flex-direction: column;
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  .nav-inner > .nav-links,
  .navbar .container > .d-flex {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links { gap: 0.4rem; }
  .nav-links .btn { max-width: 100%; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero-inner,
  .section-inner,
  .footer-inner {
    padding-inline: 1rem;
  }

  .hero-inner { gap: 2rem; }
  .hero-stats { gap: 1rem 1.5rem; }
  .page-shell { padding: 1.25rem 1rem 3rem; }
  .page-header { padding: 1.15rem; }
  .page-header-title { font-size: 1.3rem; }
  .card-body { padding: 1.15rem; }
  .card-header { padding: 1rem 1.15rem; }
  .section { padding-block: 2.5rem; }

  .col-md-3, .col-md-4, .col-md-6 {
    grid-column: span 6;
  }

  .g-3 { gap: 0.75rem; }
  .g-4 { gap: 1rem; }
}

@media (max-width: 479px) {
  .container { width: min(100% - 1.5rem, 1280px); }
  .page-shell { padding-inline: 0.75rem; }
  .page-header { align-items: flex-start; }
  .page-header-title { font-size: 1.15rem; }

  .nav-links .btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
  }

  .nav-links .nav-links { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .showcase-card { padding: 1.35rem; }
  .price-box { flex-wrap: wrap; }
  .price-box strong { font-size: 1.65rem; }
  .categories-grid,
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .catalog-product-grid .product-image { height: 125px; }
  .catalog-product-grid .product-info { padding: 0.75rem; }
  .catalog-product-grid .product-info h3 { font-size: 0.9rem; }
  .catalog-product-grid .product-price { gap: 0.25rem; }
  .catalog-product-grid .product-price strong { font-size: 1rem; }
  .catalog-product-grid .product-price small { font-size: 0.7rem; }
  .catalog-product-grid .btn { padding: 0.5rem 0.35rem; font-size: 0.75rem; }
  .col-md-3, .col-md-4, .col-md-6 {
    grid-column: span 12;
  }

  .col-md-3 { grid-column: span 6; }
  .order-mode-group { gap: 0.35rem; }
  .order-mode-chip { flex: 1 1 auto; justify-content: center; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-name { min-width: 40%; }
  .footer-inner { padding-inline: 1rem; }
}

.hero-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy { max-width: 620px; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.hero-lead { max-width: 500px; }
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text-2);
  font-size: 0.86rem;
}
.hero-highlights span span { color: var(--amber); margin-right: 0.35rem; }

.home-carousel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(91,54,36,0.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, #fffdf8, #f7eddd);
  box-shadow: 0 28px 70px rgba(67,42,27,0.16);
}
.home-carousel-track { min-height: 470px; }
.home-carousel-slide[hidden] { display: none; }
.home-carousel-image {
  position: relative;
  height: 265px;
  overflow: hidden;
  background: var(--surface-2);
}
.home-carousel-image::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(53,37,31,0.22));
  pointer-events: none;
}
.home-carousel-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.home-carousel-image .promo-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  margin: 0;
  box-shadow: 0 4px 16px rgba(67,42,27,0.18);
}
.home-carousel-content { padding: 1.4rem 1.5rem 1.2rem; }
.home-carousel-content .product-category { display: inline-block; margin-bottom: 0.35rem; }
.home-carousel-content h2 {
  color: var(--text);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 0.45rem;
}
.home-carousel-content > p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-carousel-bottom,
.home-carousel-controls,
.home-carousel-arrows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.home-carousel-bottom .price-box { flex-wrap: wrap; gap: 0.35rem 0.65rem; }
.home-carousel-bottom .price-box strong { font-size: 1.45rem; }
.home-carousel-bottom .price-box del { font-size: 0.8rem; }
.home-carousel-bottom .btn { flex: 0 0 auto; }
.home-carousel-controls { padding: 0 1.5rem 1.2rem; }
.home-carousel-dots { display: flex; align-items: center; gap: 0.5rem; }
.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--text-3);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.carousel-dot.is-active { width: 1.45rem; background: var(--amber); }
.carousel-arrow {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-arrow:hover { background: var(--brand); border-color: var(--brand); }
.carousel-arrow:focus-visible,
.carousel-dot:focus-visible,
.section-link:focus-visible,
.category-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.section-link {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.section-link:hover { color: var(--brand-dark); }
.categories-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.category-card {
  min-height: 170px;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(145deg, var(--surface), rgba(243,230,210,0.65));
}
.category-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--amber-soft);
  font-size: 1.45rem;
}
.category-desc { line-height: 1.45; }
.featured-section { padding-top: 0; }
.featured-section .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.featured-section .product-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.featured-section .product-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-product-link { margin-top: auto; }
.join-section { padding-top: 0; }
.join-card {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(169,67,43,0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 90% 10%, rgba(230,163,37,0.2), transparent 36%),
    linear-gradient(135deg, #f3e6d2, #fff8ec);
  text-align: center;
}
.join-card .eyebrow { text-align: center; }
.join-card .section-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.join-copy { max-width: 520px; margin: 0.75rem auto 1.5rem; color: var(--text-2); }
.join-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 1050px) {
  .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-section .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-copy { max-width: 720px; }
  .home-carousel { max-width: 620px; width: 100%; justify-self: center; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .hero-actions { margin-bottom: 1.5rem; }
  .hero-highlights { gap: 0.5rem 1rem; font-size: 0.78rem; }
  .home-carousel-track { min-height: 0; }
  .home-carousel-image { height: 220px; }
  .home-carousel-content { padding: 1.15rem 1.1rem 1rem; }
  .home-carousel-controls { padding: 0 1.1rem 1rem; }
  .home-carousel-bottom { align-items: flex-start; flex-direction: column; }
  .home-carousel-bottom .btn { width: 100%; justify-content: center; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .category-card { min-height: 145px; padding: 1rem; }
  .category-icon { width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
  .category-name { font-size: 0.92rem; }
  .category-desc { font-size: 0.74rem; }
  .featured-section .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .featured-section .product-image { height: 130px; }
  .featured-section .product-info { padding: 0.85rem; }
  .featured-section .product-info h3 { font-size: 0.95rem; }
  .featured-section .product-description { font-size: 0.78rem; }
  .featured-section .product-price { gap: 0.25rem; }
  .featured-section .product-price strong { font-size: 1rem; }
  .featured-section .product-price small { font-size: 0.72rem; }
  .featured-product-link { padding-inline: 0.45rem; font-size: 0.72rem; }
  .section-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 370px) {
  .categories-grid,
  .featured-section .products-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Gestão Interna (Produtos, Estoque e Financeiro) ───────────── */
.module-nav-container {
  display: flex;
  gap: 0.5rem;
  background: var(--surface-2);
  padding: 0.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.module-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.module-nav-btn:hover {
  color: var(--brand);
  background: rgba(169,67,43,0.06);
}

.module-nav-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: var(--shadow-sm);
}

.module-nav-btn .tab-badge {
  background: rgba(255,255,255,0.25);
  color: inherit;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.management-section {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.management-section.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--brand);
}

.stat-box.stat-success::before { background: var(--success); }
.stat-box.stat-amber::before { background: var(--amber); }
.stat-box.stat-danger::before { background: var(--danger); }
.stat-box.stat-info::before { background: var(--info); }

.stat-box .stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.stat-box .stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-box .stat-sub {
  font-size: 0.78rem;
  color: var(--text-2);
}

.finance-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.finance-type-pagar {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(180,60,50,0.2);
}

.finance-type-receber {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(57,112,74,0.2);
}

.stock-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

.stock-status-ok { background: var(--success-soft); color: var(--success); }
.stock-status-atencao { background: var(--warning-soft); color: var(--amber); }
.stock-status-critico { background: var(--danger-soft); color: var(--danger); }

.table-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.table-action-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.table-action-btn.btn-pay {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(57,112,74,0.25);
}

.table-action-btn.btn-pay:hover {
  background: var(--success);
  color: #fff;
}

.table-action-btn.btn-del {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(180,60,50,0.25);
}

.table-action-btn.btn-del:hover {
  background: var(--danger);
  color: #fff;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-pill-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.filter-pill-btn.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.movement-in { color: var(--success); font-weight: 700; }
.movement-out { color: var(--danger); font-weight: 700; }
.movement-adj { color: var(--amber); font-weight: 700; }

.catalog-category-select { width: auto; padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.catalog-search-input { max-width: 200px; padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.catalog-table-wrap { max-height: 580px; overflow-y: auto; }
.stock-table-wrap { max-height: 480px; overflow-y: auto; }
.movements-table-wrap { max-height: 380px; overflow-y: auto; }
.finance-table-wrap { max-height: 520px; overflow-y: auto; }
.cart-options-grid { gap: 0.75rem; margin-bottom: 0.75rem; }
.order-mode-group-spacing { margin-bottom: 0.75rem; }
.card-title-medium { font-size: 1rem; font-weight: 700; color: var(--text); }
.card-title-large { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.btn-full { width: 100%; justify-content: center; }
.auth-demo-box { background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.auth-demo-label { font-size: 0.85rem; }
.auth-demo-btn { border: 1px solid var(--border); color: var(--text); }
.product-thumb-small { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.table-action-file-label { cursor: pointer; margin: 0; }
.footer-links { display: flex; gap: 1rem; }
.footer-link { text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--brand-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
