/* Card especial para ITENS SEM ESTOQUE */
.card-sem-estoque {
  background: linear-gradient(145deg, var(--brand), #0fb8a9) !important;
  color: #fff !important;
  border: none !important;
}

    :root {
      --bg: #f3f7f7;
      --ink: #122127;
      --muted: #5d6b70;
      --brand: #0e8f83;
      --brand-strong: #096b62;
      --accent: #ee7f3b;
      --card: #ffffff;
      --line: rgba(18, 33, 39, 0.1);
      --shadow: 0 20px 45px rgba(9, 41, 49, 0.12);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Manrope', sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 5%, rgba(14, 143, 131, 0.18), transparent 28%),
        radial-gradient(circle at 95% 10%, rgba(238, 127, 59, 0.16), transparent 24%),
        linear-gradient(180deg, #f8fbfb 0%, var(--bg) 75%);
      min-height: 100vh;
      overflow-x: hidden;
    }

    .shell {
      width: min(1140px, 94%);
      margin: 0 auto;
      min-width: 0;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(8px);
      background: rgba(248, 251, 251, 0.78);
      border-bottom: 1px solid var(--line);
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
      font-family: 'Sora', sans-serif;
      font-weight: 700;
      letter-spacing: 0.2px;
    }

    .brand-badge {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: linear-gradient(145deg, var(--brand), #0fb8a9);
      color: #fff;
      font-weight: 800;
    }

    nav {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      overflow-x: hidden !important;
      width: 100%;
      justify-content: flex-end;
    }

    nav a,
    nav button {
      text-decoration: none;
      color: var(--ink);
      padding: 9px 13px;
      border-radius: 999px;
      font-size: 0.95rem;
      font-weight: 600;
      font-family: inherit;
      background: none;
      border: 0;
      line-height: 1.2;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }

    nav a:hover,
    nav button:hover {
      background: rgba(14, 143, 131, 0.13);
      color: var(--brand-strong);
    }

    nav a:focus-visible,
    nav button:focus-visible {
      outline: 2px solid rgba(14, 143, 131, 0.55);
      outline-offset: 2px;
    }

    .hero {
      padding: 72px 0 54px;
      display: grid;
      gap: 26px;
      grid-template-columns: 1.1fr 0.9fr;
      align-items: center;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(14, 143, 131, 0.26);
      color: var(--brand-strong);
      background: rgba(14, 143, 131, 0.08);
      font-weight: 700;
      font-size: 0.84rem;
      margin-bottom: 14px;
    }

    .hero h1 {
      font-family: 'Sora', sans-serif;
      font-size: clamp(2rem, 4vw, 3.35rem);
      line-height: 1.08;
      letter-spacing: -0.8px;
      max-width: 17ch;
      margin-bottom: 16px;
    }

    .hero p {
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.7;
      max-width: 54ch;
    }

    .cta-row {
      margin-top: 28px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .btn {
      border: 0;
      text-decoration: none;
      padding: 12px 18px;
      border-radius: 11px;
      font-weight: 800;
      font-size: 0.92rem;
      letter-spacing: 0.2px;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .btn-main {
      color: #fff;
      background: linear-gradient(135deg, var(--brand), #0cac9c);
      box-shadow: 0 12px 26px rgba(14, 143, 131, 0.25);
    }

    .btn-main:hover {
      transform: translateY(-2px);
    }

    .btn-soft {
      color: var(--brand-strong);
      background: rgba(14, 143, 131, 0.1);
      border: 1px solid rgba(14, 143, 131, 0.25);
    }

    .btn-soft:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 22px rgba(14, 143, 131, 0.14);
    }

    .showcase {
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 22px;
      background: linear-gradient(180deg, #ffffff, #f7fbfb);
      box-shadow: var(--shadow);
      display: grid;
      gap: 14px;
      min-width: 0;
    }

    .showcase-title {
      font-family: 'Sora', sans-serif;
      font-size: 1.15rem;
      font-weight: 700;
    }

    .kpis {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .kpi {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
      padding: 14px;
    }

    .kpi strong {
      font-family: 'Sora', sans-serif;
      display: block;
      font-size: 1.4rem;
      margin-bottom: 2px;
    }

    .kpi span {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .timeline {
      border: 1px dashed rgba(9, 107, 98, 0.3);
      border-radius: 12px;
      padding: 12px;
      background: rgba(14, 143, 131, 0.06);
      color: #1a5851;
      font-size: 0.92rem;
      line-height: 1.55;
    }

    .benefits {
      padding: 24px 0 62px;
    }

    .benefits h2 {
      font-family: 'Sora', sans-serif;
      font-size: clamp(1.5rem, 3vw, 2.15rem);
      margin-bottom: 22px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--card);
      padding: 18px;
      box-shadow: 0 8px 20px rgba(8, 37, 44, 0.06);
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .card.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .card h3 {
      font-family: 'Sora', sans-serif;
      font-size: 1.02rem;
      margin-bottom: 9px;
    }

    .card p {
      color: var(--muted);
      line-height: 1.6;
      font-size: 0.95rem;
    }

    .sales-cta {
      margin: 16px 0 62px;
      border-radius: 18px;
      padding: 26px;
      background: linear-gradient(120deg, #123f4a 0%, #0b6b64 60%, #0f8e80 100%);
      color: #f5ffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .sales-cta h3 {
      font-family: 'Sora', sans-serif;
      font-size: 1.4rem;
      margin-bottom: 6px;
    }

    .sales-cta p {
      max-width: 56ch;
      color: rgba(245, 255, 255, 0.88);
      line-height: 1.6;
    }

    .sales-cta .btn-main {
      background: linear-gradient(130deg, var(--accent), #f69b63);
      box-shadow: 0 12px 28px rgba(220, 99, 24, 0.32);
      color: #fff;
    }

    footer {
      border-top: 1px solid var(--line);
      padding: 24px 0 30px;
      color: var(--muted);
      font-size: 0.9rem;
      text-align: center;
    }

    @media (max-width: 980px) {
      .hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
      }

      .showcase {
        max-width: 620px;
      }

      .grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 1180px) {
      .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
      }

      nav {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: hidden;
        -webkit-overflow-scrolling: auto;
        scroll-snap-type: none;
        padding-bottom: 4px;
      }

      nav a,
      nav button {
        white-space: nowrap;
        flex: 0 0 auto;
        scroll-snap-align: start;
      }
    }

    @media (max-width: 640px) {
      .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
      }

      nav {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: hidden;
        -webkit-overflow-scrolling: auto;
        scroll-snap-type: none;
        padding-bottom: 4px;
        justify-content: flex-end;
      }

      nav a,
      nav button {
        font-size: 0.9rem;
        padding: 8px 11px;
        white-space: nowrap;
        flex: 0 0 auto;
        scroll-snap-align: start;
      }

      .hero {
        padding-top: 36px;
      }

      .cta-row .btn {
        width: 100%;
      }

      .showcase,
      .sales-cta {
        padding: 18px;
      }

      .shell {
        width: min(100%, calc(100% - 20px));
      }

      .grid {
        grid-template-columns: 1fr;
      }

      .kpis {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 420px) {
      main {
        padding: 28px 0 44px;
      }

      .showcase,
      .sales-cta {
        padding: 14px;
      }

      h1 {
        font-size: 1.6rem;
      }
    }

    /* ===== BLOCO HISTÓRICO (PROMO) ===== */
    .hist-section {
      margin: 0 0 40px;
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .hist-section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .hist-card {
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 28px;
      background: linear-gradient(180deg, #ffffff, #f7fbfb);
      box-shadow: var(--shadow);
      min-width: 0;
    }

    .hist-card > .pill { margin-bottom: 12px; }

    .hist-card h2 {
      font-family: 'Sora', sans-serif;
      font-size: clamp(1.5rem, 3vw, 2rem);
      margin-bottom: 10px;
      line-height: 1.15;
    }

    .hist-card > p {
      color: var(--muted);
      line-height: 1.65;
      margin-bottom: 20px;
      max-width: 65ch;
    }

    .hist-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 18px;
    }

    .hist-kpi-card {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 13px;
      background: #fff;
    }

    .hist-kpi-card span {
      color: var(--muted);
      font-size: 0.84rem;
      display: block;
      margin-bottom: 5px;
    }

    .hist-kpi-card strong {
      font-family: 'Sora', sans-serif;
      font-size: 1.3rem;
      display: block;
      margin-bottom: 3px;
    }

    .hist-kpi-card small {
      color: #156157;
      font-weight: 700;
      font-size: 0.8rem;
    }

    .hist-mini-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 18px;
    }

    .hist-mini-item {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 13px;
    }

    .hist-mini-item strong {
      display: block;
      font-family: 'Sora', sans-serif;
      margin-bottom: 4px;
    }

    .hist-mini-item span {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .hist-content-stack {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      min-width: 0;
    }

    .hist-panel {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      padding: 16px;
      min-width: 0;
    }

    .hist-panel h3 {
      font-family: 'Sora', sans-serif;
      font-size: 1.05rem;
      margin-bottom: 6px;
    }

    .hist-panel p {
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.65;
      margin-bottom: 10px;
    }

    .hist-table-wrap {
      overflow-x: hidden;
      max-width: 100vw;
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 12px;
      max-width: 100%;
    }

    .hist-table-wrap table {
      width: 100%;
      border-collapse: collapse;
      min-width: 700px;
      background: #fff;
    }

    .hist-table-wrap th,
    .hist-table-wrap td {
      text-align: left;
      padding: 10px 11px;
      border-bottom: 1px solid var(--line);
      font-size: 0.88rem;
      white-space: nowrap;
    }

    .hist-table-wrap th {
      background: rgba(14, 143, 131, 0.1);
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      color: #194149;
    }

    .hist-table-wrap tr:last-child td { border-bottom: 0; }

    .hist-badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 3px 8px;
      font-weight: 800;
      font-size: 0.74rem;
    }

    .hist-badge-in  { color: #0a6359; background: rgba(14,143,131,0.14); }
    .hist-badge-out { color: #954518; background: rgba(238,127,59,0.2); }
    .hist-stock-good  { color: #0a6a5f; font-weight: 800; }
    .hist-stock-alert { color: #a44d1b; font-weight: 800; }

    .hist-panel-info {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 20px;
      background:
        radial-gradient(circle at 95% 0%, rgba(14,143,131,0.1), transparent 42%),
        linear-gradient(180deg, #ffffff, #f7fbfb);
      min-width: 0;
    }

    .hist-panel-info .eyebrow {
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(14,143,131,0.26);
      background: rgba(14,143,131,0.08);
      color: var(--brand-strong);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.2px;
      margin-bottom: 8px;
    }

    .hist-panel-info h3 {
      font-family: 'Sora', sans-serif;
      font-size: 1.2rem;
      margin-bottom: 8px;
    }

    .hist-panel-info > p {
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.7;
      margin-bottom: 14px;
    }

    .hist-list { display: grid; gap: 10px; margin-bottom: 14px; }

    .hist-list-item {
      display: grid;
      grid-template-columns: 30px 1fr;
      align-items: start;
      gap: 10px;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px;
      background: #fff;
      box-shadow: 0 6px 14px rgba(8,37,44,0.05);
    }

    .hist-list-icon {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: linear-gradient(130deg, var(--brand), #0fb8a9);
      color: #fff;
      box-shadow: 0 8px 16px rgba(14,143,131,0.28);
      flex-shrink: 0;
    }

    .hist-list-icon svg {
      width: 15px; height: 15px;
      stroke: currentColor; fill: none;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    }

    .hist-list-item strong {
      display: block;
      margin-bottom: 4px;
      font-size: 0.92rem;
      font-family: 'Sora', sans-serif;
      color: #16353c;
    }

    .hist-list-item span {
      color: var(--muted);
      font-size: 0.89rem;
      line-height: 1.55;
    }

    .hist-highlight-note {
      border: 1px solid rgba(14,143,131,0.32);
      border-radius: 14px;
      padding: 14px;
      background: linear-gradient(120deg, rgba(14,143,131,0.12), rgba(14,143,131,0.04));
      color: #144e47;
      font-size: 0.92rem;
      line-height: 1.62;
      font-weight: 600;
    }

    @media (max-width: 820px) {
      .hist-kpi-grid   { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .hist-mini-grid  { grid-template-columns: 1fr; }
    }

    @media (max-width: 560px) {
      .hist-kpi-grid   { grid-template-columns: 1fr; }
      .hist-list-item  { grid-template-columns: 1fr; }
      .hist-card, .hist-panel, .hist-panel-info { padding: 16px; }
      .hist-table-wrap table { min-width: 620px; }
    }

    @media (max-width: 420px) {
      .hist-card, .hist-panel, .hist-panel-info { padding: 12px; }
      .hist-table-wrap table { min-width: 540px; }
      .hist-table-wrap th,
      .hist-table-wrap td {
        padding: 9px 10px;
        font-size: 0.82rem;
      }
    }
  