/* ============================================================
   TGAD Distribuidora — Design System (MVP demonstração)
   Paleta derivada da logo: azul-marinho institucional + vermelho
   de destaque + grafite, sobre fundos claros premium.
   ============================================================ */

:root {
  /* Marca */
  --navy-900: #0b2135;
  --navy-800: #0e2942;
  --navy-700: #123454;
  --navy-600: #173a5e;
  --navy-500: #1f4e7a;
  --red-600: #a5301f;
  --red-500: #c0392b;
  --red-400: #d84636;
  --graphite: #2b3038;
  --gold: #c9a24b;
  --gold-soft: #e4cf9c;
  --gold-dark: #9a7b2e;

  /* Neutros premium */
  --paper: #f8f6f1;      /* fundo quente off-white */
  --paper-2: #f1ede4;
  --white: #ffffff;
  --ink: #1c2530;
  --muted: #5b6470;
  --muted-2: #5f6875;
  --line: #e6e1d7;
  --line-2: #d8d2c5;

  /* Feedback */
  --green: #2e7d52;
  --green-soft: #e5f2ea;

  /* Sistema */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(14, 41, 66, .06);
  --shadow: 0 10px 30px rgba(14, 41, 66, .10);
  --shadow-lg: 0 24px 60px rgba(14, 41, 66, .16);
  --maxw: 1200px;
  --header-h: 132px;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--navy-800); letter-spacing: .2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--red-500);
  display: inline-block; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section-sub { color: var(--muted); max-width: 620px; margin-top: 12px; font-size: 1.05rem; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 50px; font-weight: 600; font-size: .96rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--red-500); color: #fff; box-shadow: 0 8px 20px rgba(192,57,43,.28); }
.btn--primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(192,57,43,.34); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--navy-800); background: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Reserva o espaco do cabecalho antes de o JS injeta-lo — sem isto a pagina "pula" ao carregar */
#site-header { min-height: 200px; display: block; }
@media (max-width: 680px) { #site-header { min-height: 231px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(248,246,241,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* Barra de contexto B2C/B2B */
.context-bar { background: var(--paper-2); color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line); }
.context-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.context-bar__info { display: flex; align-items: center; gap: 8px; }
.context-bar__info b { color: var(--navy-800); }
.context-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 50px; padding: 3px; }
.context-toggle a { display: inline-flex; }
.context-toggle a { padding: 10px 16px; min-height: 40px; align-items: center; border-radius: 50px; font-weight: 600; font-size: .8rem; color: var(--muted); transition: .18s; }
.context-toggle a.is-active { background: var(--red-500); color: #fff; }
.context-toggle a:not(.is-active):hover { color: var(--navy-800); }

.header-main .container { display: flex; align-items: center; gap: 22px; min-height: 88px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 74px; width: auto; }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input {
  width: 100%; padding: 12px 18px 12px 44px; border: 1.5px solid var(--line-2);
  border-radius: 50px; background: var(--white); color: var(--ink); transition: .18s;
}
.header-search input:focus { border-color: var(--navy-500); outline: none; box-shadow: 0 0 0 4px rgba(31,78,122,.10); }
.header-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 50px; color: var(--navy-800); font-weight: 600; font-size: .9rem; transition: background .18s; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.cart-count {
  position: absolute; top: 2px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--red-500); color: #fff; border-radius: 50px; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* Navegação */
.site-nav { border-top: 1px solid var(--line); background: var(--white); }
.site-nav .container { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.site-nav .container::-webkit-scrollbar { display: none; }
.site-nav a { padding: 15px 16px; min-height: 46px; display: inline-flex; align-items: center; font-size: .92rem; font-weight: 600; color: var(--graphite); white-space: nowrap; border-bottom: 3px solid transparent; transition: .18s; }
.site-nav a:hover { color: var(--red-500); }
.site-nav a.is-active { color: var(--navy-800); border-bottom-color: var(--red-500); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%); color: var(--ink); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 90% 8%, rgba(201,162,75,.10), transparent 42%),
  radial-gradient(circle at 4% 98%, rgba(192,57,43,.05), transparent 42%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 74px; padding-bottom: 74px; }
.hero__eyebrow { color: var(--red-500); letter-spacing: 3px; text-transform: uppercase; font-size: .82rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; line-height: 1.5; }
/* as praças ficam sempre na própria linha: o texto completo não cabe numa linha
   só na coluna do hero, e um "·" solto no começo da segunda linha fica órfão */
.hero__eyebrow-cds { white-space: nowrap; flex: 0 0 100%; }
@media (max-width: 680px) { .hero__eyebrow { letter-spacing: 1.6px; font-size: .76rem; gap: 2px 8px; } }
@media (max-width: 380px) { .hero__eyebrow { letter-spacing: .3px; font-size: .7rem; } }
/* abaixo disso a linha das praças não cabe inteira: deixa quebrar em vez de vazar */
@media (max-width: 330px) { .hero__eyebrow-cds { white-space: normal; } }
.hero h1 { color: var(--navy-800); font-size: clamp(2.2rem, 5vw, 3.7rem); margin: 18px 0; line-height: 1.08; }
.hero h1 em { color: var(--gold-dark); font-style: italic; }
.hero p.lead { font-size: 1.14rem; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.hero__badge { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--graphite); font-weight: 500; }
.hero__badge svg { width: 22px; height: 22px; stroke: var(--red-500); flex-shrink: 0; }
.hero__art { position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero__art .plate { width: 100%; height: 100%; }
.hero__tag { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); color: var(--graphite); padding: 12px 18px; border-radius: 12px; font-size: .85rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hero__tag b { color: var(--navy-800); display: block; font-family: var(--serif); font-size: 1.05rem; }

/* Faixa de vantagens */
.usp-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.usp-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 22px; }
.usp { display: flex; align-items: center; gap: 13px; color: var(--graphite); }
.usp svg { width: 30px; height: 30px; stroke: var(--red-500); flex-shrink: 0; }
.usp b { display: block; color: var(--navy-800); font-size: .95rem; }
.usp span { font-size: .8rem; color: var(--muted); }

/* ---------- Categorias (home) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 38px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .22s ease, box-shadow .22s ease; display: block; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card__art { position: absolute; inset: 0; }
.cat-card__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; background: linear-gradient(to top, rgba(11,33,53,.86) 12%, rgba(11,33,53,.18) 55%, transparent); color: #fff; }
.cat-card__body .icon { font-size: 1.7rem; }
.cat-card__body h3 { color: #fff; font-size: 1.15rem; margin-top: 6px; text-shadow: 0 1px 4px rgba(11,33,53,.6); }
.cat-card__body span { font-size: .82rem; color: #eaf0f7; text-shadow: 0 1px 3px rgba(11,33,53,.7); }

/* ---------- Grid de produtos ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; }
.toolbar__count { color: var(--muted); font-size: .92rem; }
.toolbar .spacer { flex: 1; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 50px; border: 1.5px solid var(--line-2); background: var(--white); font-weight: 600; font-size: .85rem; color: var(--graphite); transition: .16s; }
.chip:hover { border-color: var(--navy-500); }
.chip.is-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.select {
  padding: 10px 38px 10px 14px; border-radius: 50px; border: 1.5px solid var(--line-2);
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6470' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center;
  font-weight: 600; color: var(--graphite); appearance: none; cursor: pointer;
}

.layout-catalog { display: grid; grid-template-columns: 258px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 14px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.filters h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.filters .filter-group + .filter-group { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 11px 0; min-height: 44px; color: var(--graphite); cursor: pointer; font-size: .93rem; }
.filter-opt input { width: 19px; height: 19px; flex-shrink: 0; accent-color: var(--red-500); cursor: pointer; }
.filter-opt .qtd { margin-left: auto; color: var(--muted-2); font-size: .8rem; }
.range-val { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 8px; }
input[type="range"] { width: 100%; accent-color: var(--red-500); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.product-grid--home { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--paper-2); }
.card__media a { display: block; height: 100%; }
.card__media .prod-img img { transition: transform .5s ease; }
.card:hover .card__media .prod-img img { transform: scale(1.06); }
.card__flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.flag { font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 50px; color: #fff; }
.flag--novo { background: var(--green); }
.flag--destaque { background: var(--gold); color: var(--navy-900); }
.flag--b2b { background: var(--navy-800); }
.card__fav { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.card__fav svg { width: 19px; height: 19px; stroke: var(--graphite); fill: none; }
.card__body { padding: 15px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red-500); }
.card__name { font-family: var(--serif); font-size: 1.06rem; margin: 5px 0 4px; color: var(--navy-800); line-height: 1.25; }
.card__name a:hover { color: var(--red-500); }
.card__origin { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.card__origin svg { width: 13px; height: 13px; stroke: var(--muted-2); }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { line-height: 1.1; }
.price .unit { font-size: .78rem; color: var(--muted); display: block; }
.price .val { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy-800); }
.price .val .cents { font-size: .9rem; }
.price--b2b .val { color: var(--red-600); }
.price .b2c-strike { font-size: .82rem; color: var(--muted-2); text-decoration: line-through; }
.price .save { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 7px; border-radius: 50px; margin-top: 3px; }
.add-btn { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-800); color: #fff; display: grid; place-items: center; transition: .18s; }
.add-btn:hover { background: var(--red-500); transform: scale(1.06); }
.add-btn svg { width: 20px; height: 20px; stroke: #fff; }

/* Foto de produto */
.prod-img { position: relative; width: 100%; height: 100%; min-height: 100%; margin: 0; overflow: hidden; background: var(--paper-2); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-img.is-fallback { background: radial-gradient(circle at 34% 28%, var(--fb1, #1f4e7a), var(--fb2, #0e2942)); }
.prod-img.is-fallback::after { content: ""; position: absolute; inset: 0; background: no-repeat center/44% url("assets/logo-white.png"); opacity: .32; }
.img-demo { position: absolute; bottom: 8px; right: 8px; font-size: .58rem; letter-spacing: .5px; text-transform: uppercase; background: rgba(11,33,53,.82); color: #fff; font-weight: 600; padding: 3px 8px; border-radius: 50px; backdrop-filter: blur(3px); }
/* compat: contextos antigos que referenciam .plate */
.plate { position: relative; width: 100%; height: 100%; }

/* ---------- Banner promo / editorial ---------- */
.editorial { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-sm); }
.editorial__art { min-height: 340px; }
.editorial__body { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.editorial__body h2 { color: var(--navy-800); font-size: 2rem; }
.editorial__body p { color: var(--muted); margin: 14px 0 24px; }

.promo-band { background: var(--paper-2); color: var(--graphite); text-align: center; padding: 15px; font-weight: 600; font-size: .95rem; letter-spacing: .3px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promo-band b { color: var(--red-500); }

/* ---------- Página de produto ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); padding: 20px 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--red-500); }
.crumbs span { color: var(--muted-2); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 14px); }
.pdp__main-img { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.pdp__thumb { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); cursor: pointer; transition: .16s; }
.pdp__thumb.is-active { border-color: var(--red-500); }
.pdp h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 6px 0 10px; }
.pdp__origin { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.pdp__price-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 24px 0; box-shadow: var(--shadow-sm); }
.pdp__price-box .val { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--navy-800); }
.pdp__price-box.is-b2b .val { color: var(--red-600); }
.pix-line { color: var(--green); font-weight: 600; font-size: .95rem; margin-top: 4px; }
.b2b-note { margin-top: 12px; font-size: .86rem; color: var(--muted); background: var(--paper-2); padding: 10px 14px; border-radius: 10px; border-left: 3px solid var(--navy-600); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 50px; overflow: hidden; }
.qty button { width: 42px; height: 46px; font-size: 1.3rem; color: var(--navy-800); }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 46px; text-align: center; border: none; font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp__desc { color: var(--graphite); font-size: 1.04rem; line-height: 1.75; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table td:last-child { font-weight: 600; color: var(--ink); }
.pdp-perk { display: inline-flex; align-items: center; gap: 6px; }
.pdp-perk svg { width: 15px; height: 15px; stroke: var(--red-500); flex-shrink: 0; }
.harmony { background: linear-gradient(120deg, #fbf7ee, #f6efe0); border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 22px; margin-top: 24px; }
.harmony h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.harmony h3 .ic { font-size: 1.4rem; }
.harmony p { color: var(--graphite); margin-top: 8px; }
.pdp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 34px; }
.pdp-tabs button { padding: 12px 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.pdp-tabs button.is-active { color: var(--navy-800); border-bottom-color: var(--red-500); }
.tab-panel { padding-top: 22px; }
.tab-panel[hidden] { display: none; }

/* ---------- Carrinho & Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 34px; align-items: start; }
.cart-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-item__img { width: 92px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.cart-item__name { font-family: var(--serif); font-size: 1.05rem; color: var(--navy-800); }
.cart-item__meta { font-size: .82rem; color: var(--muted); }
.cart-item__price { font-weight: 700; color: var(--navy-800); font-family: var(--serif); font-size: 1.15rem; }
.cart-item__remove { color: var(--muted-2); font-size: .82rem; margin-top: 6px; }
.cart-item__remove:hover { color: var(--red-500); }
.cart-empty { text-align: center; padding: 70px 20px; }
.cart-empty .ic { font-size: 3.4rem; }

.summary { position: sticky; top: calc(var(--header-h) + 14px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.summary h3 { font-size: 1.3rem; margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--graphite); font-size: .96rem; }
.summary__row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 1.25rem; font-weight: 700; color: var(--navy-800); font-family: var(--serif); }
.summary__row .free { color: var(--green); font-weight: 700; }
.summary__row.discount span:last-child { color: var(--green); font-weight: 700; }

.ship-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; background: var(--white); }
.ship-box h4 { font-family: var(--sans); font-size: .95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cep-row { display: flex; gap: 10px; }
.cep-row input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; }
.ship-opts { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ship-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; transition: .16s; }
.ship-opt:hover { border-color: var(--navy-500); }
.ship-opt.is-active { border-color: var(--red-500); background: #fdf3f1; }
.ship-opt input { accent-color: var(--red-500); width: 18px; height: 18px; }
.ship-opt__body { flex: 1; }
.ship-opt__body b { display: block; font-size: .95rem; color: var(--navy-800); }
.ship-opt__body span { font-size: .82rem; color: var(--muted); }
.ship-opt__price { font-weight: 700; color: var(--navy-800); }
.ship-opt__price.free { color: var(--green); }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.pay-method { padding: 14px; border: 1.5px solid var(--line-2); border-radius: 10px; text-align: center; cursor: pointer; font-weight: 600; font-size: .9rem; transition: .16s; color: var(--graphite); }
.pay-method:hover { border-color: var(--navy-500); }
.pay-method.is-active { border-color: var(--red-500); background: #fdf3f1; color: var(--navy-800); }
.pay-method .ic { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.pay-method small { display: block; color: var(--green); font-weight: 700; font-size: .72rem; margin-top: 2px; }

/* ---------- Portal B2B ---------- */
.b2b-hero { background: linear-gradient(180deg, #fff, var(--paper)); color: var(--ink); border-bottom: 1px solid var(--line); }
.b2b-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: 64px 22px; }
.b2b-hero h1 { color: var(--navy-800); font-size: clamp(2rem, 4.5vw, 3.2rem); }
.b2b-hero p { color: var(--muted); font-size: 1.12rem; margin: 16px 0 26px; max-width: 520px; }
.b2b-feats { display: grid; gap: 14px; margin-top: 26px; }
.b2b-feat { display: flex; gap: 12px; align-items: flex-start; }
.b2b-feat svg { width: 24px; height: 24px; stroke: var(--red-500); flex-shrink: 0; margin-top: 2px; }
.b2b-feat b { color: var(--navy-800); }
.b2b-feat span { color: var(--muted); font-size: .9rem; }

.login-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); color: var(--ink); }
.login-card h2 { font-size: 1.6rem; }
.login-card p.sub { color: var(--muted); margin: 6px 0 22px; font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--graphite); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--white); transition: .16s; }
.field input:focus, .field select:focus { border-color: var(--navy-500); outline: none; box-shadow: 0 0 0 4px rgba(31,78,122,.1); }
.demo-hint { background: var(--paper-2); border-radius: 10px; padding: 12px 14px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; border-left: 3px solid var(--gold); }
.demo-hint b { color: var(--navy-800); }

/* Painel B2B */
.panel-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.panel-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.panel-side__head { padding: 20px; background: var(--navy-800); color: #fff; }
.panel-side__head b { display: block; font-family: var(--serif); font-size: 1.1rem; }
.panel-side__head span { font-size: .8rem; color: #b9c6d6; }
.panel-side nav a { display: flex; align-items: center; gap: 11px; padding: 13px 20px; color: var(--graphite); font-weight: 600; font-size: .93rem; border-left: 3px solid transparent; transition: .16s; cursor: pointer; }
.panel-side nav a:hover { background: var(--paper); }
.panel-side nav a.is-active { border-left-color: var(--red-500); color: var(--navy-800); background: var(--paper); }
.panel-side nav a svg { width: 18px; height: 18px; stroke: currentColor; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat b { font-family: var(--serif); font-size: 1.8rem; color: var(--navy-800); display: block; }
.stat span { font-size: .82rem; color: var(--muted); }
.panel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.panel-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.panel-panel[hidden] { display: none; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 12px; border-bottom: 2px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table tr:hover td { background: var(--paper); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 50px; font-size: .74rem; font-weight: 700; }
.badge--paid { background: var(--green-soft); color: #1f5b39; }
.badge--transit { background: #fff3e0; color: #8a5200; }
.badge--boleto { background: #eef2f8; color: var(--navy-600); }

/* ---------- Institucional / Sobre ---------- */
.about-hero { background: linear-gradient(180deg, #fff, var(--paper)); color: var(--ink); text-align: center; padding: 78px 0; border-bottom: 1px solid var(--line); }
.about-hero h1 { color: var(--navy-800); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.about-hero p { color: var(--muted); max-width: 640px; margin: 16px auto 0; font-size: 1.14rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.pillar .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; margin: 0 auto 16px; }
.pillar .ic svg { width: 28px; height: 28px; stroke: var(--red-500); }
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric { text-align: center; }
.metric b { font-family: var(--serif); font-size: 2.6rem; color: var(--red-500); display: block; }
.metric span { color: var(--muted); font-size: .92rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-900); color: #b9c6d6; padding: 58px 0 26px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: #aab9c9; max-width: 300px; }
.footer-col h4 { font-family: var(--sans); color: #fff; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col li { display: block; padding: 8px 0; font-size: .9rem; color: #c2cfdc; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; align-items: center; gap: 9px; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--gold-soft); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #9dadbe; }
.footer-bottom a:hover { color: #fff; }
.lgpd-badge { display: inline-flex; align-items: center; gap: 7px; }

/* Botoes dentro do rodape: a cor herdada do link nao pode apagar o texto do botao */
.site-footer .btn--gold, .footer-col a.btn--gold { color: var(--navy-900) !important; font-weight: 700; padding: 11px 20px; }
.site-footer .btn--gold:hover { background: var(--gold-soft); color: var(--navy-900) !important; }
.site-footer .btn--primary, .site-footer .btn--navy { color: #fff !important; }
.site-footer .btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.45); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy-800); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 340px;
  animation: toastIn .3s ease; border-left: 4px solid var(--green);
}
.toast svg { width: 22px; height: 22px; stroke: var(--gold-soft); flex-shrink: 0; }
.toast b { display: block; font-size: .92rem; }
.toast span { font-size: .82rem; color: #cbd6e2; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Drawer do carrinho ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(11,33,53,.5); backdrop-filter: blur(2px); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--paper); z-index: 100; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; }
.drawer__head { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer__head h3 { font-size: 1.25rem; }
.drawer__close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--graphite); }
.drawer__close:hover { background: var(--paper-2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.drawer__foot { padding: 20px 22px; border-top: 1px solid var(--line); background: var(--white); }
.drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer-item__img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.drawer-item__name { font-size: .92rem; font-weight: 600; color: var(--navy-800); line-height: 1.3; }
.drawer-item__meta { font-size: .8rem; color: var(--muted); }
.drawer-item__price { font-weight: 700; color: var(--navy-800); font-size: .95rem; }
.mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 50px; margin-top: 4px; }
.mini-qty button { width: 26px; height: 26px; color: var(--navy-800); font-size: 1rem; }
.mini-qty span { width: 28px; text-align: center; font-size: .85rem; font-weight: 700; }

/* ---------- Utilitários ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.demo-ribbon { background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, var(--paper) 10px, var(--paper) 20px); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 14px; font-size: .82rem; color: var(--muted); text-align: center; }
.hide { display: none !important; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid--home { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  :root { --header-h: 118px; }
  .hero .container, .b2b-hero .container, .editorial { grid-template-columns: 1fr; }
  .editorial__art { min-height: 220px; }
  .hero__art { max-width: 460px; }
  .layout-catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp__gallery { position: static; }
  .panel-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-strip .container { grid-template-columns: 1fr 1fr; }
  .pillars, .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .header-main .container { min-height: 66px; gap: 12px; flex-wrap: wrap; }
  .header-search { order: 3; flex: 1 0 100%; max-width: none; margin-bottom: 10px; }
  .header-search input { padding: 11px 16px 11px 42px; font-size: .95rem; }
  .brand img { height: 54px; }
  .icon-btn span { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid, .product-grid--home { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .context-bar__info span.hide-sm { display: none; }
  .metrics, .pillars { grid-template-columns: 1fr 1fr; }
  .editorial__body { padding: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .drawer { width: 100vw; }
}
@media (max-width: 420px) {
  .product-grid, .product-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .card__name { font-size: .92rem; }
  .card__origin { font-size: .74rem; }
  .price .val { font-size: 1.05rem; }
}
@media (max-width: 340px) {
  .product-grid, .product-grid--home { grid-template-columns: 1fr; }
}

/* ============================================================
   MÓDULOS AVANÇADOS — escrow, rastreamento, admin, IoT,
   pick-to-light, marketing IA, segurança.
   ============================================================ */
:root { --warn: #8a5200; --warn-soft: #fff3e0; --alert: #c0392b; --alert-soft: #fdecea; }

/* Selo "simulado / integração pendente" */
.tag-sim { display:inline-flex; align-items:center; gap:6px; font-size:.7rem; font-weight:700; letter-spacing:.3px; text-transform:uppercase; color:#8a5200; background:var(--warn-soft); border:1px solid #f0d9b3; padding:3px 9px; border-radius:50px; }

/* ---------- Escrow timeline ---------- */
.escrow-timeline { position:relative; margin:6px 0 4px; padding-left:6px; }
.escrow-step { position:relative; display:flex; gap:14px; padding:0 0 20px 0; }
.escrow-step::before { content:""; position:absolute; left:15px; top:30px; bottom:-2px; width:2px; background:var(--line-2); }
.escrow-step:last-child::before { display:none; }
.escrow-dot { flex-shrink:0; width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:var(--white); border:2px solid var(--line-2); color:var(--muted-2); font-weight:700; font-size:.85rem; z-index:1; }
.escrow-dot svg { width:16px; height:16px; }
.escrow-step.is-done .escrow-dot { background:var(--green); border-color:var(--green); color:#fff; }
.escrow-step.is-done::before { background:var(--green); }
.escrow-step.is-current .escrow-dot { border-color:var(--red-500); color:var(--red-500); }
.escrow-body b { display:block; color:var(--navy-800); font-size:.98rem; }
.escrow-step.is-pending .escrow-body b { color:var(--muted-2); }
.escrow-body span { font-size:.85rem; color:var(--muted); }
.pulse { width:11px; height:11px; border-radius:50%; background:var(--red-500); box-shadow:0 0 0 0 rgba(192,57,43,.5); animation:pulse 1.6s infinite; }
@keyframes pulse { 70%{ box-shadow:0 0 0 9px rgba(192,57,43,0);} 100%{ box-shadow:0 0 0 0 rgba(192,57,43,0);} }
.escrow-note { margin-top:8px; font-size:.85rem; color:var(--graphite); background:var(--paper-2); border-radius:10px; padding:12px 14px; border-left:3px solid var(--green); }

/* ---------- Meus Pedidos ---------- */
.orders-layout { display:grid; grid-template-columns:320px 1fr; gap:24px; align-items:start; }
.orders-list { display:flex; flex-direction:column; gap:10px; position:sticky; top:calc(var(--header-h) + 14px); }
.order-item { text-align:left; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; cursor:pointer; transition:.16s; }
.order-item:hover { border-color:var(--navy-500); }
.order-item.is-active { border-color:var(--red-500); box-shadow:0 0 0 3px rgba(192,57,43,.08); }
.order-item__top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.order-item__top b { color:var(--navy-800); font-size:.95rem; }
.order-item__meta { font-size:.82rem; color:var(--muted); margin-top:4px; }
.order-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.order-items { display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 6px; }
.order-chip { font-size:.8rem; background:var(--paper-2); border:1px solid var(--line); border-radius:50px; padding:5px 12px; color:var(--graphite); }

/* ---------- Rastreamento GPS ---------- */
.track-card { padding:0; overflow:hidden; }
.track-head { display:flex; justify-content:space-between; align-items:center; padding:18px 22px 12px; }
.track-head h3 { font-size:1.15rem; }
.live-dot { display:inline-flex; align-items:center; gap:7px; font-size:.72rem; font-weight:700; letter-spacing:.5px; color:var(--red-500); }
.live-dot span { width:8px; height:8px; border-radius:50%; background:var(--red-500); animation:pulse 1.4s infinite; }
.track-grid { display:grid; grid-template-columns:1.4fr 1fr; }
.track-map { min-height:300px; position:relative; }
.gps-map { position:absolute; inset:0; width:100%; height:100%; }
.map-street { stroke:#dfe6da; stroke-width:.5; }
.map-river { fill:none; stroke:#cfe0ec; stroke-width:3; opacity:.6; stroke-linecap:round; }
.gps-route-bg { fill:none; stroke:#fff; stroke-width:3.4; stroke-linecap:round; stroke-linejoin:round; }
.gps-route { fill:none; stroke:var(--navy-700); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:3 2.4; }
.gps-cd circle { fill:var(--navy-800); stroke:#fff; stroke-width:1; }
.gps-dest path { fill:var(--red-500); stroke:#fff; stroke-width:.6; }
.map-lbl { font-size:3px; font-weight:700; fill:var(--navy-800); text-anchor:middle; font-family:var(--sans); }
.gps-driver circle:first-child { fill:var(--red-500); stroke:#fff; stroke-width:1.2; filter:drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.track-info { padding:22px; border-left:1px solid var(--line); }
.eta-big { font-family:var(--serif); font-size:3rem; line-height:1; color:var(--navy-800); font-weight:800; }
.eta-big small { font-size:1rem; color:var(--muted); font-weight:400; margin-left:4px; }
.eta-label { color:var(--muted); font-size:.85rem; margin-bottom:16px; }
.track-driver { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); }
.driver-avatar { width:42px; height:42px; border-radius:50%; background:var(--navy-800); color:#fff; display:grid; place-items:center; font-weight:700; font-size:.9rem; }
.track-driver b { display:block; color:var(--navy-800); font-size:.95rem; }
.track-driver span { font-size:.8rem; color:var(--muted); }
.track-progress { height:7px; background:var(--line); border-radius:50px; overflow:hidden; margin:16px 0 6px; }
.track-progress__bar { height:100%; background:linear-gradient(90deg,var(--navy-600),var(--red-500)); border-radius:50px; transition:width .8s linear; }
.track-steps { display:flex; justify-content:space-between; font-size:.72rem; color:var(--muted); }

/* ============================================================
   CONSOLE ADMINISTRATIVO
   ============================================================ */
.admin-body { background:var(--paper); }
/* Login */
.admin-login { min-height:100vh; display:grid; place-items:center; padding:24px; background:linear-gradient(135deg,var(--navy-900),var(--navy-700)); position:relative; }
.admin-login__card { width:100%; max-width:420px; background:var(--white); border-radius:var(--radius-lg); padding:36px; box-shadow:var(--shadow-lg); }
.admin-login__brand { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.admin-badge { font-size:.68rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--navy-700); background:var(--paper-2); padding:5px 11px; border-radius:50px; }
.admin-login__card h1, .admin-login__card .admin-login__title { font-size:1.5rem; }
.admin-login__card .sub { color:var(--muted); margin:4px 0 20px; font-size:.92rem; }
.field-err { display:block; color:var(--alert); font-size:.8rem; margin-top:5px; min-height:16px; }
input.is-invalid { border-color:var(--alert) !important; box-shadow:0 0 0 3px rgba(192,57,43,.1) !important; }
.mfa-inputs { display:flex; gap:10px; justify-content:space-between; margin-bottom:6px; }
.mfa-inputs input { width:100%; aspect-ratio:1; text-align:center; font-size:1.5rem; font-weight:700; border:1.5px solid var(--line-2); border-radius:12px; }
.mfa-inputs input:focus { border-color:var(--navy-500); outline:none; box-shadow:0 0 0 3px rgba(31,78,122,.12); }
.link-back { color:var(--muted); font-size:.85rem; margin-bottom:8px; }
.link-back:hover { color:var(--navy-800); }
.admin-login__exit { position:absolute; top:20px; left:22px; color:#fff; font-size:.9rem; font-weight:600; padding:10px 14px; min-height:44px; display:inline-flex; align-items:center; border-radius:8px; background:rgba(255,255,255,.12); }
.admin-login__exit:hover { background:rgba(255,255,255,.22); }
.admin-login__exit:hover { color:#fff; }

/* Shell */
.admin-shell { display:grid; grid-template-columns:250px 1fr; min-height:100vh; }
.admin-sidebar { background:var(--navy-900); color:#b9c6d6; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.admin-sidebar__brand { display:flex; align-items:center; gap:10px; padding:20px; border-bottom:1px solid rgba(255,255,255,.08); color:#fff; font-weight:600; }
#admin-nav { flex:1; padding:12px 0; overflow-y:auto; }
#admin-nav a { display:flex; align-items:center; gap:12px; padding:13px 20px; color:#b9c6d6; font-weight:600; font-size:.92rem; cursor:pointer; border-left:3px solid transparent; }
#admin-nav a svg { width:19px; height:19px; stroke:currentColor; }
#admin-nav a:hover { background:rgba(255,255,255,.05); color:#fff; }
#admin-nav a.is-active { background:rgba(192,57,43,.16); border-left-color:var(--red-500); color:#fff; }
.admin-sidebar__foot { padding:16px 20px; border-top:1px solid rgba(255,255,255,.08); }
.admin-user { display:flex; align-items:center; gap:10px; }
.admin-user__avatar { width:38px; height:38px; border-radius:50%; background:var(--red-500); color:#fff; display:grid; place-items:center; font-weight:700; font-size:.85rem; }
.admin-user b { display:block; color:#fff; font-size:.9rem; }
.admin-user span { font-size:.78rem; color:#8ba0b5; }
.admin-sidebar__foot .btn--ghost { color:#dfe7ef; border-color:rgba(255,255,255,.22); }
.admin-sidebar__foot .btn--ghost:hover { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.4); color:#fff; }
.admin-main { min-width:0; }
.admin-topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:14px; background:var(--white); border-bottom:1px solid var(--line); padding:14px 26px; }
.admin-topbar h1 { font-size:1.3rem; flex:1; }
.admin-menu-btn { display:none; color:var(--navy-800); }
.admin-content { padding:26px; max-width:1200px; }

/* KPIs */
.kpi-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; margin-bottom:22px; }
.kpi { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow-sm); }
.kpi__label { font-size:.76rem; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; font-weight:600; }
.kpi__val { display:block; font-family:var(--serif); font-size:1.55rem; color:var(--navy-800); margin:4px 0 2px; }
.kpi__sub { font-size:.76rem; color:var(--muted); }
.kpi__sub .up, .up { color:var(--green); font-weight:700; }

/* Charts */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.pc-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.pc-head h3 { font-size:1.1rem; }
.chart { width:100%; height:auto; }
.chart-grid { stroke:var(--line); stroke-width:1; }
.chart-axis { font-size:10px; fill:var(--muted); font-family:var(--sans); }
.chart-donut { width:180px; height:180px; flex-shrink:0; }
.donut-center { font-family:var(--serif); font-size:16px; font-weight:700; fill:var(--navy-800); }
.donut-sub { font-size:9px; fill:var(--muted); }
.donut-wrap { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.chart-legend { display:flex; gap:14px; flex-wrap:wrap; margin-top:10px; }
.chart-legend.col { flex-direction:column; gap:8px; }
.lg-item { display:flex; align-items:center; gap:7px; font-size:.82rem; color:var(--graphite); }
.lg-item i { width:11px; height:11px; border-radius:3px; flex-shrink:0; }
.export-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:8px; }

/* Gauge */
.gauge { width:100%; max-width:200px; margin:0 auto; display:block; }
.gauge-val { font-family:var(--serif); font-size:22px; font-weight:700; fill:var(--navy-800); }
.gauge-unit { font-size:9px; fill:var(--muted); }
.sparkline { width:100%; height:42px; }

/* IoT */
.iot-banner { display:flex; align-items:center; gap:10px; padding:12px 16px; border-radius:var(--radius); font-size:.92rem; margin-bottom:18px; }
.iot-banner.is-ok { background:var(--green-soft); color:var(--green); }
.iot-banner.is-alert { background:var(--alert-soft); color:var(--alert); font-weight:600; animation:pulse 1.6s infinite; }
.iot-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.iot-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow-sm); }
.iot-card.is-alert { border-color:var(--alert); box-shadow:0 0 0 3px rgba(192,57,43,.08); }
.iot-card__head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:6px; }
.iot-card__head b { color:var(--navy-800); font-size:.98rem; }
.iot-status { font-size:.7rem; font-weight:700; padding:3px 10px; border-radius:50px; }
.iot-status.ok { background:var(--green-soft); color:var(--green); }
.iot-status.bad { background:var(--alert-soft); color:var(--alert); }
.iot-metrics { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:8px 0; }
.iot-metrics span { font-size:.75rem; color:var(--muted); display:block; }
.iot-metrics b { font-size:1.15rem; color:var(--navy-800); }
.iot-metrics b.bad { color:var(--alert); }
.iot-metrics small { font-size:.7rem; color:var(--muted-2); }
.iot-spark { margin:6px 0; }
.iot-sensor { font-size:.74rem; color:var(--muted-2); border-top:1px solid var(--line); padding-top:8px; }

/* Pick-to-Light */
.pl-legend { display:flex; gap:16px; flex-wrap:wrap; font-size:.85rem; color:var(--graphite); }
.pl-legend span { display:flex; align-items:center; gap:7px; }
.pl-dot { width:12px; height:12px; border-radius:50%; display:inline-block; }
.pl-dot.green{ background:#2e7d52 } .pl-dot.yellow{ background:#e0a400 } .pl-dot.red{ background:#c0392b } .pl-dot.blue{ background:#1f6fd6 }
.pl-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin:18px 0; }
.pl-cell { position:relative; border-radius:10px; padding:12px; color:#fff; overflow:hidden; min-height:84px; display:flex; flex-direction:column; justify-content:space-between; }
.pl-cell .pl-led { position:absolute; top:10px; right:10px; width:12px; height:12px; border-radius:50%; background:rgba(255,255,255,.9); box-shadow:0 0 8px rgba(255,255,255,.9); }
.pl-sku { font-size:.68rem; opacity:.85; letter-spacing:.5px; }
.pl-name { font-size:.82rem; font-weight:600; line-height:1.2; }
.pl-qty { font-size:.72rem; opacity:.9; }
.pl-green { background:linear-gradient(135deg,#2e7d52,#245f40); }
.pl-yellow { background:linear-gradient(135deg,#c98a00,#a06f00); }
.pl-red { background:linear-gradient(135deg,#c0392b,#8e2a20); }
.pl-blue { background:linear-gradient(135deg,#1f6fd6,#134a91); }
.pl-cell.is-picking { animation:blink .6s steps(1) infinite; box-shadow:0 0 0 3px rgba(31,111,214,.4); }
@keyframes blink { 50%{ filter:brightness(1.5);} }

/* Marketing */
.sug-list { display:flex; flex-direction:column; gap:12px; }
.sug { display:flex; gap:12px; padding:12px; border-radius:10px; background:var(--paper-2); border-left:3px solid var(--muted-2); }
.sug--otimizar { border-color:var(--green); } .sug--alerta { border-color:var(--alert); }
.sug--criativo { border-color:var(--navy-600); } .sug--oportunidade { border-color:var(--gold); }
.sug-ic { font-size:1.1rem; }
.sug b { font-size:.92rem; color:var(--navy-800); } .sug p { font-size:.83rem; color:var(--muted); margin-top:2px; }
.ad-out { display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.ad-var { border:1px solid var(--line); border-radius:10px; padding:12px; background:var(--white); }
.ad-var__n { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--red-500); }
.ad-var b { display:block; color:var(--navy-800); margin:3px 0; } .ad-var p { font-size:.86rem; color:var(--graphite); }
.ad-var__cta { display:inline-block; margin-top:8px; font-size:.78rem; font-weight:700; color:#fff; background:var(--red-500); padding:5px 12px; border-radius:50px; }

/* Segurança */
.sec-list { display:flex; flex-direction:column; gap:12px; }
.sec-list li { display:flex; gap:12px; }
.sec-ok { flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--green); color:#fff; display:grid; place-items:center; }
.sec-plan { flex-shrink:0; width:22px; height:22px; border-radius:50%; border:2px dashed var(--line-2); margin-top:1px; }
.sec-list b { color:var(--navy-800); font-size:.92rem; } .sec-list p { font-size:.82rem; color:var(--muted); margin-top:2px; }

.toast--alert { border-left-color:var(--alert); }
.toast--alert svg { stroke:var(--alert); }

/* ---------- Responsivo módulos ---------- */
@media (max-width: 900px) {
  .orders-layout { grid-template-columns:1fr; }
  .orders-list { position:static; flex-direction:row; overflow-x:auto; }
  .order-item { min-width:220px; }
  .track-grid { grid-template-columns:1fr; }
  .track-info { border-left:none; border-top:1px solid var(--line); }
  .grid-2 { grid-template-columns:1fr; }
  .kpi-grid { grid-template-columns:repeat(3,1fr); }
  .iot-grid { grid-template-columns:1fr; }
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { position:fixed; z-index:60; width:250px; transform:translateX(-100%); transition:transform .25s; }
  .admin-console.nav-open .admin-sidebar, .nav-open .admin-sidebar { transform:none; }
  .admin-menu-btn { display:inline-flex; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns:repeat(2,1fr); }
  .mfa-inputs input { font-size:1.15rem; }
  .admin-content { padding:16px; }
}
