:root {
  --brand: #80B22F;
  --brand-dark: #4F7435;
  --navy: #404656;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 800; font-size: 20px; color: var(--brand); }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.cart-pill {
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 18px; font-weight: 600; font-size: 15px; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Layout helpers */
.page { padding: 28px 0 56px; }
.h1 { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 24px; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 18px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.product { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; display:flex; flex-direction:column; }
.product .thumb { aspect-ratio: 4/3; background: #eef0f3; object-fit: cover; width:100%; }
.product .info { padding: 14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.product .name { font-weight: 600; }
.product .price { color: var(--brand-dark); font-weight: 800; font-size: 18px; }
.badge { display:inline-block; font-size:12px; padding:2px 8px; border-radius:999px; background:#eef2ff; color:#3730a3; }
.badge.gray { background:#f3f4f6; color:#374151; }
.badge.danger { background:#fee2e2; color:#991b1b; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background:#fff;
}
.input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

/* Tables */
table.table { width:100%; border-collapse: collapse; }
table.table th, table.table td { padding: 12px; border-bottom: 1px solid var(--line); text-align:left; }
table.table td { vertical-align: middle; }

/* Material thumbnail (materials list) */
.material-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  background: #eef0f3; border: 1px solid var(--line); display: block;
}
.material-thumb--empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
}

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.alert-success { background:#dcfce7; color:#166534; }
.alert-error { background:#fee2e2; color:#991b1b; }

/* Auth — banner em tela cheia com o card centralizado por cima, espelha o admin.
   O banner (login-banner.png) traz a foto à esquerda e o padrão amarelo da marca
   à direita; por isso cobre a viewport inteira, em vez de uma coluna lateral. */
.auth-split { position: relative; min-height: 100vh; display: flex; }
.auth-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.auth-media-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0)); }
.auth-panel { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
/* Título das telas de auth ("Entrar", "Recuperar senha") centralizado. */
.auth-card .h1 { text-align: center; }
.center { text-align:center; }
.mt { margin-top: 16px; }
.footer { border-top:1px solid var(--line); background:#fff; padding: 24px 0; color: var(--muted); font-size: 14px; }

/* ===== Storefront home revamp ===== */

/* Hero / carousel */
.hero { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero-track { display: flex; transition: transform .45s ease; }
.hero-slide {
  position: relative; flex: 0 0 100%; min-height: 320px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff; text-decoration: none;
}
.hero-slide::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05)); }
.hero-slide--plain { background: linear-gradient(120deg, var(--brand), #0ea5e9); }
.hero-slide--plain::after { background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); }
.hero-content { position: relative; z-index: 1; padding: 40px 48px; max-width: 620px; }
.hero-title { font-size: 34px; font-weight: 800; margin: 0 0 10px; line-height: 1.1; }
.hero-subtitle { font-size: 16px; opacity: .95; margin: 0 0 18px; }
.hero-cta { background: #fff; color: var(--ink); }
.hero-cta:hover { background: #f3f4f6; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px;
  border-radius: 999px; border: 0; background: rgba(255,255,255,.85); color: var(--ink); font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hero-prev { left: 14px; } .hero-next { right: 14px; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2; display: flex; gap: 8px; justify-content: center; }
.hero-dot { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-dot.is-active { background: #fff; }
@media (max-width: 640px) { .hero-slide { min-height: 220px; } .hero-content { padding: 24px; } .hero-title { font-size: 24px; } }

/* Area quick-nav chips */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.area-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; color: var(--ink); transition: all .15s;
}
.area-chip:hover { border-color: var(--brand); color: var(--brand); }

/* Section headers */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; }
.section-title { font-size: 20px; font-weight: 800; margin: 0; }
.section-link { color: var(--brand); font-weight: 600; font-size: 14px; }

/* Product card hover lift */
.product { transition: transform .15s, box-shadow .15s; }
.product:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }

/* Material card (home) */
.material-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.material-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.material-card-thumb { aspect-ratio: 4/3; background: #eef0f3; }
.material-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.material-card-thumb--empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.material-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.material-card-name { font-weight: 600; font-size: 14px; flex: 1; }

/* Order-bump row (cart) */
.bump-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .bump-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bump-row { grid-template-columns: 1fr; } }
.bump-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.bump-thumb { width: 56px; height: 56px; border-radius: 10px; background: #eef0f3; flex-shrink: 0; overflow: hidden; }
.bump-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bump-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bump-name { font-weight: 600; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Category navigation (catalog) */
.cat-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.cat-nav .cat-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cat-nav .cat-menu .cat-menu { margin-left: 8px; }
.cat-nav li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.cat-link:hover { border-color: var(--brand); color: var(--brand); }
.cat-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-link.active .muted { color: rgba(255,255,255,.8); }
