:root {
  --navy: #082b49;
  --navy-dark: #041d31;
  --blue: #0f5d8d;
  --blue-soft: #eaf4fb;
  --gold: #f4c542;
  --gold-dark: #d6a820;
  --green: #2f8b57;
  --green-soft: #eaf6ef;
  --red-soft: #fdecec;
  --text: #183247;
  --text-soft: #657786;
  --white: #ffffff;
  --surface: #f6f8fa;
  --border: #dce5eb;
  --shadow: 0 18px 45px rgba(4, 29, 49, 0.12);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 29, 49, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.topbar-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand strong {
  color: var(--white);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand span {
  margin-top: 5px;
  color: #b9c9d6;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.environment-badge {
  padding: 9px 14px;
  border: 1px solid rgba(244, 197, 66, 0.55);
  border-radius: 999px;
  background: rgba(244, 197, 66, 0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 139, 87, 0.28), transparent 26%),
    radial-gradient(circle at 20% 0%, rgba(15, 93, 141, 0.35), transparent 30%),
    linear-gradient(135deg, #041d31 0%, #083353 52%, #0a4d58 100%);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(3, 21, 35, 0.28), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 650px;
  padding: 90px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--gold);
}

.hero h2 {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 650;
  line-height: 1.35;
}

.hero-description {
  max-width: 650px;
  margin: 22px 0 0;
  color: #d9e5ec;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #1f2933;
  box-shadow: 0 12px 28px rgba(244, 197, 66, 0.22);
}

.btn-primary:hover {
  background: #ffd95e;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.access-flags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.access-flags span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe8ef;
  font-size: 0.78rem;
}


/* =========================================================
   HERO PREVIEW
   ========================================================= */

.hero-preview {
  position: relative;
}

.preview-placeholder {
  min-height: 410px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.preview-placeholder::before {
  content: "";
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--gold), #ffe89a);
  box-shadow: 0 16px 32px rgba(244, 197, 66, 0.26);
}

.preview-placeholder p {
  margin: 0;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.preview-placeholder span {
  max-width: 340px;
  margin-top: 10px;
  color: #ccdce5;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.objectives,
.roadmap {
  padding: 90px 0;
}

.objectives {
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading > span {
  color: var(--blue);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.section-heading h2 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 25px rgba(4, 29, 49, 0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #bad5e5;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}


/* =========================================================
   RESTRICTED
   ========================================================= */

.restricted {
  padding: 42px 0;
  background: #fff9df;
  border-top: 1px solid #f0dfa1;
  border-bottom: 1px solid #f0dfa1;
}

.restricted-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.restricted h2 {
  margin: 0 0 6px;
  color: #735d0b;
}

.restricted p {
  margin: 0;
  max-width: 750px;
  color: #6d6251;
}

.restricted strong {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fbe7e7;
  color: #a63636;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}


/* =========================================================
   ROADMAP
   ========================================================= */

.roadmap {
  background: var(--white);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.roadmap-item {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.roadmap-item > span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2f5;
  color: #6a7b86;
  font-weight: 900;
}

.roadmap-item h3 {
  margin: 20px 0 8px;
  color: var(--navy);
}

.roadmap-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.roadmap-item.current {
  border-color: #efd264;
  background: #fffdf2;
  box-shadow: 0 15px 32px rgba(244, 197, 66, 0.12);
}

.roadmap-item.current > span {
  background: var(--navy);
  color: var(--gold);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 34px 0;
  background: var(--navy-dark);
  color: var(--white);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-content strong {
  letter-spacing: 0.05em;
}

.footer-content p {
  margin: 0;
  color: #aebfca;
  font-size: 0.88rem;
  text-align: right;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    max-width: 760px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar-content {
    min-height: 70px;
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .brand span {
    display: none;
  }

  .environment-badge {
    font-size: 0.66rem;
  }

  .hero-grid {
    padding: 62px 0;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .preview-placeholder {
    min-height: 300px;
  }

  .objectives,
  .roadmap {
    padding: 66px 0;
  }

  .cards,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .restricted-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-content p {
    text-align: left;
  }
}


/* =========================================================
   LOGIN ADMINISTRATIVO
   ========================================================= */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(47, 139, 87, 0.28),
      transparent 28%
    ),
    radial-gradient(
      circle at 15% 10%,
      rgba(15, 93, 141, 0.38),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #041d31 0%,
      #083353 55%,
      #0a4d58 100%
    );
}

.login-main {
  min-height: calc(100vh - 78px);
  padding: 55px 20px;
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(100%, 520px);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.28);
}

.login-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 750;
}

.login-back:hover {
  text-decoration: underline;
}

.login-panel .eyebrow {
  margin-bottom: 10px;
  color: var(--gold-dark);
}

.login-panel h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
}

.login-description {
  margin: 16px 0 28px;
  color: var(--text-soft);
}

.login-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-group input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 93, 141, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 86px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  transform: translateY(-50%);
}

.field-error {
  min-height: 20px;
  color: #b42318;
  font-size: 0.82rem;
}

.login-submit {
  width: 100%;
  margin-top: 2px;
}

.login-message {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.login-message.error,
.login-message.success {
  display: block;
}

.login-message.error {
  border: 1px solid #efb5b5;
  background: var(--red-soft);
  color: #922626;
}

.login-message.success {
  border: 1px solid #b9dfc8;
  background: var(--green-soft);
  color: #236a43;
}

.login-security {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.login-security strong {
  color: var(--navy);
}

.login-security p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

@media (max-width: 680px) {
  .login-main {
    min-height: calc(100vh - 70px);
    padding: 28px 14px;
  }

  .login-panel {
    padding: 28px 22px;
    border-radius: 18px;
  }
}
/* =========================================================
   AJUSTE COMPACTO DO LOGIN — NOTEBOOK
   ========================================================= */

.login-main {
  min-height: calc(100vh - 78px);
  padding: 22px 20px;
}

.login-panel {
  width: min(100%, 430px);
  padding: 24px 28px;
  border-radius: 18px;
}

.login-back {
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.login-panel .eyebrow {
  margin-bottom: 5px;
  font-size: 0.72rem;
}

.login-panel h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.login-description {
  margin: 10px 0 18px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.login-form {
  gap: 12px;
}

.form-group {
  gap: 5px;
}

.form-group input {
  min-height: 44px;
  padding: 9px 12px;
}

.field-error {
  min-height: 16px;
  font-size: 0.76rem;
}

.login-submit {
  min-height: 44px;
  padding: 9px 18px;
}

.login-security {
  margin-top: 16px;
  padding: 12px 14px;
}

.login-security p {
  margin-top: 3px;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .login-main {
    min-height: calc(100vh - 70px);
    padding: 18px 12px;
  }

  .login-panel {
    padding: 22px 18px;
  }
}
/* AJUSTE FINAL — LOGIN MAIS COMPACTO */

.login-main {
  padding: 12px 20px;
}

.login-panel {
  width: min(100%, 390px);
  padding: 18px 24px;
  border-radius: 16px;
}

.login-back {
  margin-bottom: 8px;
}

.login-description {
  margin: 8px 0 12px;
}

.login-form {
  gap: 8px;
}

.form-group {
  gap: 3px;
}

.form-group input {
  min-height: 40px;
  padding: 7px 11px;
}

.field-error {
  min-height: 12px;
}

.login-submit {
  min-height: 40px;
  padding: 7px 16px;
}

.login-security {
  margin-top: 10px;
  padding: 9px 12px;
}

.login-security p {
  font-size: 0.78rem;
}
/* =========================================================
   PAINEL MATUTO ADMIN
   ========================================================= */

.admin-page {
  min-height: 100vh;
  background: #f3f6f8;
  color: var(--text);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.admin-header-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-header .brand {
  display: grid;
  text-decoration: none;
}

.admin-header .brand strong {
  color: var(--white);
}

.admin-header .brand span {
  color: var(--gold);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-environment {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-exit {
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}

.admin-exit:hover {
  background: rgba(255, 255, 255, 0.18);
}

.admin-main {
  padding: 34px 0 48px;
}

.admin-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-welcome .eyebrow {
  margin-bottom: 6px;
}

.admin-welcome h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.admin-welcome p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.system-status {
  flex-shrink: 0;
  padding: 9px 13px;
  border: 1px solid #b9dfc8;
  border-radius: 999px;
  background: var(--green-soft);
  color: #236a43;
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.metric-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(6, 38, 61, 0.07);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--text-soft);
}

.metric-card span {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-card strong {
  display: block;
  margin: 6px 0;
  color: var(--navy);
  font-size: 2rem;
}

.metric-card small {
  font-size: 0.8rem;
}

.admin-section {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(6, 38, 61, 0.07);
}

.admin-section-heading {
  margin-bottom: 20px;
}

.admin-section-heading span {
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.admin-section-heading h2 {
  margin: 5px 0 0;
  color: var(--navy);
}

.admin-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.admin-module {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.module-icon {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.admin-module h3 {
  margin: 0 0 7px;
  color: var(--navy);
}

.admin-module p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-module button {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #e7ecef;
  color: #657681;
  cursor: not-allowed;
  font-weight: 750;
}

.admin-notice {
  margin-top: 22px;
  padding: 17px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: #fff8df;
}

.admin-notice strong {
  color: var(--navy);
}

.admin-notice p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.admin-footer {
  padding: 20px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .admin-header-content,
  .admin-welcome {
    align-items: flex-start;
  }

  .admin-header-content {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .admin-environment {
    display: none;
  }

  .admin-welcome {
    flex-direction: column;
  }

  .admin-metrics,
  .admin-modules {
    grid-template-columns: 1fr;
  }

  .admin-section {
    padding: 18px;
  }
}
/* =========================================================
   MATUTO ADMIN — PRODUTOS
   ========================================================= */

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.admin-breadcrumb a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.admin-breadcrumb a:hover {
  text-decoration: underline;
}

.products-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.products-heading .eyebrow {
  margin-bottom: 5px;
}

.products-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.products-heading p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.readonly-badge {
  flex-shrink: 0;
  padding: 8px 13px;
  border: 1px solid #cbd5dc;
  border-radius: 999px;
  background: var(--white);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.products-toolbar {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
}

.products-toolbar label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.products-search-row {
  display: flex;
  gap: 10px;
}

.products-search-row input {
  flex: 1;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-size: 0.95rem;
}

.products-search-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 93, 141, 0.12);
}

.products-search-row button {
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  background: #d9e0e5;
  color: #788791;
  font-weight: 800;
}

.products-table-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 38, 61, 0.07);
}

.products-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.products-table-heading h2 {
  margin: 0;
  color: var(--navy);
}

.products-table-heading p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.products-table-wrapper {
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.products-table th,
.products-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.products-table th {
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.products-table td {
  color: var(--text);
  font-size: 0.88rem;
}

.products-table td:first-child {
  min-width: 300px;
  white-space: normal;
}

.products-table td strong,
.products-table td small {
  display: block;
}

.products-table td strong {
  color: var(--navy);
}

.products-table td small {
  margin-top: 4px;
  color: var(--text-soft);
}

.status-active,
.match-exact {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

.status-active {
  border: 1px solid #b9dfc8;
  background: var(--green-soft);
  color: #236a43;
}

.match-exact {
  border: 1px solid #b9d5e8;
  background: #eaf5fb;
  color: var(--blue);
}

@media (max-width: 680px) {
  .products-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .products-search-row {
    flex-direction: column;
  }
}
.module-action {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.module-action:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

/* =====================================================
   MATUTOBAY PUBLIC WEBSITE
   Public catalog and affiliate compliance page
   ===================================================== */

body.public-page {
  margin: 0;
  min-height: 100vh;
  color: #172033;
  background: #f6f8fc;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

.public-page *,
.public-page *::before,
.public-page *::after {
  box-sizing: border-box;
}

.public-page .container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: rgba(12, 18, 33, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.public-header .topbar-content {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.public-header .brand-link {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  text-decoration: none;
}

.public-header .brand-link strong {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.public-header .brand-link span {
  color: #aeb8cc;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.public-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.public-navigation a {
  color: #e8edf7;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.public-navigation a:hover,
.public-navigation a:focus-visible {
  color: #f5b942;
  transform: translateY(-1px);
}

.public-hero {
  padding: 92px 0 76px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(245, 185, 66, 0.2),
      transparent 32%
    ),
    linear-gradient(135deg, #10192d, #17294c);
}

.public-hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 64px;
}

.public-hero .eyebrow {
  margin: 0 0 14px;
  color: #f5b942;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.public-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.public-hero h1 span {
  display: block;
  color: #f5b942;
}

.public-hero h2 {
  margin: 24px 0 0;
  color: #dce5f5;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 500;
}

.public-hero .hero-description {
  max-width: 690px;
  margin: 24px 0 0;
  color: #b9c4d9;
  font-size: 1.06rem;
}

.public-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.public-page .btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.public-page .btn:hover {
  transform: translateY(-2px);
}

.public-page .btn-primary {
  color: #172033;
  background: #f5b942;
}

.public-page .btn-primary:hover {
  background: #ffd06b;
}

.public-page .btn-secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.public-page .btn-secondary:hover {
  border-color: #ffffff;
}

.public-trust-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.public-trust-flags span {
  padding: 7px 12px;
  color: #dce5f5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
}

.public-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-preview .preview-placeholder {
  position: relative;
  width: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.04)
    );
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.public-preview .preview-placeholder::before {
  content: "";
  width: 96px;
  height: 96px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, #f5b942, #dd8d22);
  border-radius: 28px 28px 48px 48px;
  transform: rotate(-8deg);
  box-shadow: 0 18px 40px rgba(245, 185, 66, 0.25);
}

.public-preview .preview-placeholder p {
  margin: 0;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.public-preview .preview-placeholder span {
  max-width: 280px;
  margin-top: 10px;
  color: #bac6da;
  font-size: 0.92rem;
}

.public-search-section {
  padding: 76px 0;
  background: #ffffff;
}

.public-search-section .section-heading,
.public-process .section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.public-page .section-heading > span {
  display: inline-block;
  margin-bottom: 9px;
  color: #b87513;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.public-page .section-heading h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.public-page .section-heading p {
  margin: 14px 0 0;
  color: #657086;
  font-size: 1rem;
}

.public-search-form {
  padding: 24px;
  background: #f7f9fc;
  border: 1px solid #e1e6ef;
  border-radius: 16px;
}

.public-search-controls {
  display: flex;
  gap: 12px;
}

.public-search-controls input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd3df;
  border-radius: 9px;
  outline: none;
  font: inherit;
}

.public-search-controls input:focus {
  border-color: #c78824;
  box-shadow: 0 0 0 4px rgba(199, 136, 36, 0.14);
}

.public-search-controls button {
  white-space: nowrap;
}

.public-search-status {
  min-height: 26px;
  margin: 18px 0;
  color: #657086;
  font-size: 0.92rem;
}

.public-search-status[data-status="success"] {
  color: #247344;
}

.public-search-status[data-status="error"] {
  color: #a33a3a;
}

.public-search-status[data-status="loading"] {
  color: #8a5a0e;
}

.public-product-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.public-product-card {
  display: flex;
  min-height: 290px;
  background: #ffffff;
  border: 1px solid #e0e5ed;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27, 39, 67, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.public-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(27, 39, 67, 0.12);
}

.public-product-card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.public-product-marketplace {
  color: #b87513;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-product-title {
  margin: 12px 0;
  color: #172033;
  font-size: 1.15rem;
  line-height: 1.35;
}

.public-product-details {
  margin-bottom: 20px;
  color: #667188;
  font-size: 0.84rem;
}

.public-product-details p {
  margin: 4px 0;
}

.public-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.public-product-price {
  color: #172033;
  font-size: 1.45rem;
}

.public-product-status {
  padding: 5px 9px;
  color: #247344;
  background: #e9f7ef;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 850;
}

.public-product-notice {
  margin: 14px 0 0;
  color: #8892a4;
  font-size: 0.78rem;
}

.public-empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  color: #657086;
  text-align: center;
  background: #f7f9fc;
  border: 1px dashed #cbd3df;
  border-radius: 14px;
}

.public-process {
  padding: 78px 0;
  background: #f3f6fa;
}

.public-step-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.public-step-cards .card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e1e6ef;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27, 39, 67, 0.06);
}

.public-step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #172033;
  background: #f5b942;
  border-radius: 12px;
  font-weight: 850;
}

.public-step-cards h3 {
  margin: 18px 0 8px;
  color: #172033;
}

.public-step-cards p {
  margin: 0;
  color: #657086;
}

.public-about {
  padding: 80px 0;
  background: #ffffff;
}

.public-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 56px;
}

.public-about h2,
.public-contact h2 {
  margin: 0 0 18px;
  color: #172033;
  font-size: clamp(2rem, 4vw, 3rem);
}

.public-about p,
.public-contact p {
  color: #657086;
}

.public-information-box {
  padding: 28px;
  color: #eaf0fa;
  background: #17294c;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(23, 41, 76, 0.18);
}

.public-information-box strong {
  display: block;
  margin-bottom: 10px;
  color: #f5b942;
  font-size: 1.15rem;
}

.public-information-box p {
  margin: 0;
  color: #d5deee;
}

.public-disclosure {
  padding: 34px 0;
  background: #fff8e9;
  border-block: 1px solid #f0ddb5;
}

.public-disclosure-content {
  color: #60481d;
}

.public-disclosure-content strong {
  display: block;
  margin-bottom: 7px;
  color: #51380d;
}

.public-disclosure-content p {
  margin: 0;
}

.public-contact {
  padding: 74px 0;
  background: #f3f6fa;
}

.public-contact-card {
  padding: 38px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e1e6ef;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(27, 39, 67, 0.07);
}

.public-contact-card a {
  color: #9d650f;
  font-weight: 750;
}

.public-footer {
  padding: 36px 0;
  color: #c7d0df;
  background: #0c1221;
}

.public-footer .footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-footer strong {
  color: #ffffff;
  letter-spacing: 0.08em;
}

.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-navigation a {
  color: #c7d0df;
  text-decoration: none;
}

.footer-navigation a:hover {
  color: #f5b942;
}

.footer-copyright {
  margin: 0;
  color: #8f9aaf;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .public-header {
    position: static;
  }

  .public-header .topbar-content {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 18px;
  }

  .public-navigation {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .public-hero .hero-grid,
  .public-about-grid {
    grid-template-columns: 1fr;
  }

  .public-hero {
    padding-top: 64px;
  }

  .public-product-results,
  .public-step-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .public-page .container {
    width: min(100% - 28px, 1120px);
  }

  .public-navigation {
    font-size: 0.86rem;
  }

  .public-hero {
    padding: 52px 0;
  }

  .public-preview .preview-placeholder {
    min-height: 260px;
  }

  .public-search-controls {
    flex-direction: column;
  }

  .public-search-controls .btn {
    width: 100%;
  }

  .public-product-results,
  .public-step-cards {
    grid-template-columns: 1fr;
  }

  .public-footer .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   MATUTOBAY PUBLIC — COMPACT LAYOUT ADJUSTMENTS
   ===================================================== */

body.public-page {
  font-size: 15px;
}

.public-header .topbar-content {
  min-height: 64px;
}

.public-header .brand-link strong {
  font-size: 1.05rem;
}

.public-header .brand-link span {
  font-size: 0.67rem;
}

.public-navigation {
  gap: 20px;
}

.public-navigation a {
  font-size: 0.84rem;
}

.public-page .public-hero {
  min-height: auto !important;
  height: auto !important;
  padding: 48px 0 44px !important;
}

.public-hero .hero-grid {
  min-height: auto !important;
  gap: 40px;
}

.public-hero .hero-content {
  padding: 0 !important;
}

.public-hero .eyebrow {
  margin-bottom: 8px;
  font-size: 0.7rem;
}

.public-hero h1 {
  max-width: 650px;
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
  line-height: 1.02;
}

.public-hero h2 {
  margin-top: 16px;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.public-hero .hero-description {
  max-width: 640px;
  margin-top: 15px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.public-page .hero-actions {
  margin-top: 22px;
}

.public-page .btn {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.88rem;
}

.public-trust-flags {
  margin-top: 18px;
}

.public-trust-flags span {
  padding: 5px 10px;
  font-size: 0.7rem;
}

.public-preview .preview-placeholder {
  min-height: 235px;
  padding: 24px;
}

.public-preview .preview-placeholder::before {
  width: 68px;
  height: 68px;
  margin-bottom: 15px;
  border-radius: 20px 20px 34px 34px;
}

.public-preview .preview-placeholder p {
  font-size: 1.25rem;
}

.public-preview .preview-placeholder span {
  font-size: 0.82rem;
}

.public-search-section,
.public-process,
.public-about,
.public-contact {
  padding: 48px 0;
}

.public-search-section .section-heading,
.public-process .section-heading {
  margin-bottom: 22px;
}

.public-page .section-heading h2,
.public-about h2,
.public-contact h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.public-page .section-heading p {
  margin-top: 8px;
}

.public-search-form {
  padding: 18px;
}

.public-search-status {
  margin: 12px 0;
}

.public-product-card {
  min-height: 235px;
}

.public-product-card-content {
  padding: 19px;
}

.public-product-title {
  margin: 8px 0;
  font-size: 1rem;
}

.public-product-details {
  margin-bottom: 12px;
}

.public-product-price {
  font-size: 1.2rem;
}

.public-step-cards .card {
  padding: 22px;
}

.public-about-grid {
  gap: 38px;
}

.public-information-box {
  padding: 22px;
}

.public-disclosure {
  padding: 25px 0;
}

.public-contact-card {
  padding: 28px;
}

.public-footer {
  padding: 25px 0;
}

@media (max-width: 900px) {
  .public-page .public-hero {
    padding: 38px 0 !important;
  }

  .public-hero .hero-grid {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .public-page .public-hero {
    padding: 32px 0 !important;
  }

  .public-preview .preview-placeholder {
    min-height: 200px;
  }

  .public-search-section,
  .public-process,
  .public-about,
  .public-contact {
    padding: 38px 0;
  }
}

/* =====================================================
   MATUTOBAY PUBLIC — HERO IMAGE AND DENSER LAYOUT
   ===================================================== */

.public-page .container {
  width: min(1040px, calc(100% - 34px));
}

.public-header .topbar-content {
  min-height: 56px;
}

.public-page .public-hero {
  min-height: 0 !important;
  padding: 28px 0 30px !important;
}

.public-hero .hero-grid {
  min-height: 0 !important;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(300px, 0.92fr);
  align-items: center;
  gap: 30px;
}

.public-hero h1 {
  font-size: clamp(1.9rem, 3.7vw, 3.15rem);
  line-height: 1;
}

.public-hero h2 {
  margin-top: 11px;
  font-size: 1.05rem;
}

.public-hero .hero-description {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.public-page .hero-actions {
  margin-top: 15px;
}

.public-page .btn {
  min-height: 38px;
  padding: 7px 15px;
  font-size: 0.79rem;
}

.public-trust-flags {
  margin-top: 12px;
  gap: 6px;
}

.public-trust-flags span {
  padding: 4px 8px;
  font-size: 0.63rem;
}

/* Imagem oficial no lado direito do banner */

.public-preview .preview-placeholder {
  min-height: 280px;
  padding: 0;
  background:
    url("../images/matutobay-hero.png")
    center center / cover no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

/* Oculta o letreiro antigo do banner */

.public-preview .preview-placeholder::before,
.public-preview .preview-placeholder p,
.public-preview .preview-placeholder strong,
.public-preview .preview-placeholder span {
  display: none;
}

/* Seção de busca mais compacta */

.public-search-section,
.public-process,
.public-about,
.public-contact {
  padding: 34px 0;
}

.public-search-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  column-gap: 28px;
  align-items: start;
}

.public-search-section .section-heading {
  grid-column: 1;
  margin-bottom: 16px;
}

.public-search-section .section-heading h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.public-search-section .section-heading p {
  font-size: 0.86rem;
}

/* Letreiro transferido para a direita da busca */

.public-search-section .section-heading::after {
  content:
    "MATUTOBAY\A"
    "Compare before you buy\A\A"
    "Review product details, marketplace availability and current offer prices in one place.";
  white-space: pre-line;
  grid-column: 2;
  display: block;
  position: absolute;
  width: 270px;
  margin-left: 730px;
  margin-top: -72px;
  padding: 20px;
  color: #e8eef9;
  background: #17294c;
  border-left: 4px solid #f5b942;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(23, 41, 76, 0.14);
  font-size: 0.8rem;
  line-height: 1.45;
}

.public-search-form,
.public-search-status,
.public-product-results {
  grid-column: 1 / -1;
}

.public-search-form {
  padding: 14px;
}

.public-search-controls input {
  min-height: 42px;
  padding: 9px 13px;
  font-size: 0.84rem;
}

.public-product-card {
  min-height: 200px;
}

.public-product-card-content {
  padding: 16px;
}

.public-product-title {
  font-size: 0.94rem;
}

.public-process .section-heading,
.public-about .section-heading {
  margin-bottom: 16px;
}

.public-step-cards {
  gap: 14px;
}

.public-step-cards .card {
  padding: 17px;
}

.public-step-number {
  width: 34px;
  height: 34px;
}

.public-step-cards h3 {
  margin: 11px 0 5px;
  font-size: 0.98rem;
}

.public-step-cards p,
.public-about p,
.public-contact p {
  font-size: 0.84rem;
}

.public-about-grid {
  gap: 25px;
}

.public-information-box,
.public-contact-card {
  padding: 19px;
}

.public-disclosure {
  padding: 18px 0;
}

.public-disclosure-content {
  font-size: 0.82rem;
}

.public-footer {
  padding: 18px 0;
}

@media (max-width: 1100px) {
  .public-search-section .section-heading::after {
    position: static;
    width: auto;
    margin: 18px 0 0;
  }
}

@media (max-width: 900px) {
  .public-hero .hero-grid,
  .public-search-section .container {
    grid-template-columns: 1fr;
  }

  .public-preview .preview-placeholder {
    min-height: 260px;
  }

  .public-search-section .section-heading,
  .public-search-form,
  .public-search-status,
  .public-product-results {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .public-preview .preview-placeholder {
    min-height: 220px;
  }
}

/* =====================================================
   MATUTOBAY — HERO IMAGE SIZE AND SEARCH CARD FIX
   ===================================================== */

/* Largura útil do conteúdo da página */
.public-page .container {
  width: min(1160px, calc(100% - 32px));
}

/* Distribuição: texto à esquerda e imagem maior à direita */
.public-hero .hero-grid {
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(480px, 1.1fr);
  gap: 28px;
}

/* Altura e largura da imagem */
.public-preview {
  width: 100%;
}

.public-preview .preview-placeholder {
  width: 100%;
  min-height: 450px;
  background-size: cover;
  background-position: center;
}

/* Mantém o banner compacto mesmo com a imagem maior */
.public-page .public-hero {
  padding: 22px 0 25px !important;
}

/* Área superior da busca em duas colunas */
.public-search-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Cabeçalho da busca: título à esquerda e quadro à direita */
.public-search-section .section-heading {
  grid-column: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: auto auto auto;
  column-gap: 30px;
  align-items: center;
  margin-bottom: 20px;
}

/* Mantém os três textos principais na esquerda */
.public-search-section .section-heading > span {
  grid-column: 1;
  grid-row: 1;
}

.public-search-section .section-heading > h2 {
  grid-column: 1;
  grid-row: 2;
}

.public-search-section .section-heading > p {
  grid-column: 1;
  grid-row: 3;
}

/* Quadro azul posicionado corretamente à direita */
.public-search-section .section-heading::after {
  grid-column: 2;
  grid-row: 1 / 4;
  position: static;
  width: auto;
  margin: 0;
  padding: 18px;
  align-self: center;
  font-size: 0.76rem;
  line-height: 1.4;
}

/* Pesquisa sempre abaixo do título e do quadro */
.public-search-form,
.public-search-status,
.public-product-results {
  grid-column: 1;
  width: 100%;
}

/* Adaptação para telas menores */
@media (max-width: 900px) {
  .public-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .public-preview .preview-placeholder {
    min-height: 150px;
  }

  .public-search-section .section-heading {
    grid-template-columns: 1fr;
  }

  .public-search-section .section-heading > span,
  .public-search-section .section-heading > h2,
  .public-search-section .section-heading > p,
  .public-search-section .section-heading::after {
    grid-column: 1;
  }

  .public-search-section .section-heading::after {
    grid-row: 4;
    margin-top: 14px;
  }
}

/* AJUSTE MANUAL — TÍTULO E QUADRO AZUL DA BUSCA */

.public-search-section .section-heading {
  max-width: none !important;
  width: 100%;

  /* 1ª medida = espaço do título
     2ª medida = largura do quadro azul */
  grid-template-columns: minmax(0, 1fr) 150px;

  /* Distância entre o título e o quadro azul */
  column-gap: 70px;
}

/* Título da busca */
.public-search-section .section-heading > h2 {
  width: 100%;
  max-width: none;
  font-size: 2.40rem;
  white-space: nowrap;
  text-align: left;
}

/* Texto menor abaixo do título */
.public-search-section .section-heading > p {
  width: 100%;
  max-width: none;
  text-align: left;
}

/* Quadro azul */
.public-search-section .section-heading::after {
  width: 200px;
  justify-self: end;
  transform: translateX(25px);
}

/* Em telas menores, volta ao formato vertical */
@media (max-width: 900px) {
  .public-search-section .section-heading {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .public-search-section .section-heading > h2 {
    white-space: normal;
  }

  .public-search-section .section-heading::after {
    width: 100%;
    transform: none;
  }
}

/* =====================================================
   MATUTOBAY — FULL SCREEN NAVIGATION SECTIONS
   ===================================================== */

html {
  scroll-behavior: smooth;
}

/*
  56px = altura do cabeçalho.
  Se o título ficar escondido, aumente para 64px.
*/
#home,
#search,
#how-it-works,
#about,
#contact {
  scroll-margin-top: 56px;
}

/*
  Cada destino do menu ocupará aproximadamente
  toda a área visível abaixo do cabeçalho.
*/
.public-page #home,
.public-page #search,
.public-page #how-it-works,
.public-page #about,
.public-page #contact {
  min-height: calc(100svh - 56px);
}

/* Centraliza verticalmente o conteúdo das seções */
.public-page #how-it-works,
.public-page #about,
.public-page #contact {
  display: flex;
  align-items: center;
}

/* Garante que o conteúdo interno use toda a largura */
.public-page #how-it-works > .container,
.public-page #about > .container,
.public-page #contact > .container {
  width: min(1160px, calc(100% - 32px));
}

/* A busca começa no alto para acomodar os resultados */
.public-page #search {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* A tela inicial permanece compacta e centralizada */
.public-page #home {
  display: flex;
  align-items: center;
}

/* Evita que partes da seção seguinte apareçam juntas */
.public-page #how-it-works,
.public-page #about,
.public-page #contact {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Ajuste para celular */
@media (max-width: 900px) {
  .public-page #home,
  .public-page #search,
  .public-page #how-it-works,
  .public-page #about,
  .public-page #contact {
    min-height: auto;
  }

  .public-page #how-it-works,
  .public-page #about,
  .public-page #contact {
    display: block;
  }
}

/* =========================================================
   AJUSTE FINAL DA PÁGINA PÚBLICA — SEÇÃO DE BUSCA
   Este bloco fica no final do arquivo para substituir, com
   segurança, os ajustes experimentais anteriores.
   ========================================================= */

/* Organiza o título e o cartão azul em duas colunas. */
.public-page #search .section-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  grid-template-rows: auto auto auto;
  gap: 8px 32px;
  width: 100%;
  max-width: none !important;
  margin: 0 0 22px;
  align-items: center;
}

.public-page #search .section-heading > span {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.public-page #search .section-heading > h2 {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.14;
  white-space: normal;
  text-align: left;
}

.public-page #search .section-heading > p {
  grid-column: 1;
  grid-row: 3;
  width: 100%;
  margin: 4px 0 0;
  font-size: 0.9rem;
  text-align: left;
}

/* Cartão azul indicado pela seta: conteúdo, posição e animação. */
.public-page #search .section-heading::after {
  content:
    "MATUTOBAY\A"
    "Compare before you buy\A\A"
    "Review product details, marketplace availability and current offer prices in one place.";
  grid-column: 2;
  grid-row: 1 / 4;
  position: static;
  display: block;
  width: 230px;
  margin: 0;
  padding: 18px 16px;
  justify-self: end;
  color: #eef4ff;
  background: linear-gradient(145deg, #17294c, #111c3d);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #f5b942;
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(23, 41, 76, 0.2);
  white-space: pre-line;
  font-size: 0.76rem;
  line-height: 1.42;
  text-align: center;
  transform-origin: center;
  animation: destaque-cartao-comparacao 1.2s ease-in-out 3;
}

@keyframes destaque-cartao-comparacao {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(23, 41, 76, 0.2);
  }

  50% {
    opacity: 0.84;
    transform: scale(1.025);
    box-shadow: 0 16px 38px rgba(20, 94, 190, 0.46);
  }
}

/* Mantém histórico, filtros, pesquisa e resultados abaixo do cabeçalho. */
.public-page #search .recent-searches,
.public-page #search .search-filter-bar,
.public-page #search .public-search-form,
.public-page #search .public-search-status,
.public-page #search .comparison-area,
.public-page #search .public-product-results {
  grid-column: 1 / -1;
  width: 100%;
}

/* Barra de pesquisa menor, centralizada e sem ocupar toda a tela. */
.public-page #search .public-search-form {
  width: min(100%, 920px);
  margin: 14px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
}

.public-page #search .public-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.public-page #search .public-search-controls input {
  min-height: 42px;
  padding: 9px 13px;
  font-size: 0.88rem;
}

.public-page #search .public-search-controls .btn {
  min-height: 42px;
  padding-inline: 22px;
}

/* Botões usados para filtrar as ofertas apresentadas. */
.public-page #search .search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.public-page #search .search-filter {
  min-height: 34px;
  padding: 6px 12px;
  color: #263750;
  background: #ffffff;
  border: 1px solid #cbd3df;
  border-radius: 999px;
  cursor: pointer;
}

.public-page #search .search-filter:hover,
.public-page #search .search-filter[aria-pressed="true"] {
  color: #ffffff;
  background: #17315b;
  border-color: #17315b;
}

/* Estrutura visual da futura tabela comparativa. */
.public-page #search .comparison-area {
  margin-top: 18px;
}

.public-page #search .comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 41, 76, 0.08);
}

.public-page #search .comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

.public-page #search .comparison-table th,
.public-page #search .comparison-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5e9f0;
  text-align: left;
  vertical-align: middle;
}

.public-page #search .comparison-table th {
  color: #ffffff;
  background: #17315b;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-page #search .comparison-table tbody tr:hover {
  background: #f7f9fc;
}

/* Adaptação da busca para notebook estreito, tablet e celular. */
@media (max-width: 900px) {
  .public-page #search .section-heading {
    grid-template-columns: 1fr;
  }

  .public-page #search .section-heading > span,
  .public-page #search .section-heading > h2,
  .public-page #search .section-heading > p,
  .public-page #search .section-heading::after {
    grid-column: 1;
  }

  .public-page #search .section-heading::after {
    grid-row: 4;
    width: min(100%, 360px);
    margin-top: 10px;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .public-page #search .public-search-controls {
    grid-template-columns: 1fr;
  }

  .public-page #search .public-search-controls .btn {
    width: 100%;
  }
}

/* Acessibilidade: remove movimento quando solicitado pelo visitante. */
@media (prefers-reduced-motion: reduce) {
  .public-page #search .section-heading::after {
    animation: none;
  }
}

/* =========================================================
   TABELA COMPARATIVA — OCUPA TODA A LARGURA
   Remove a antiga divisão dos resultados em três cartões.
   ========================================================= */

.public-page #search .public-product-results {
  display: block;
  width: 100%;
  max-width: none;
}

.public-page #search .comparison-table-wrapper {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: auto;
}

.public-page #search .comparison-table {
  width: 100%;
  min-width: 800px;
  table-layout: auto;
}

.public-page #search .comparison-table-caption {
  padding: 10px 0;
  color: #172033;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}

.public-page #search .comparison-product {
  min-width: 300px;
}

.public-page #search .comparison-product-name,
.public-page #search .comparison-product-upc {
  display: block;
}

.public-page #search .comparison-product-upc {
  margin-top: 5px;
  color: #657086;
  font-size: 0.75rem;
}
/* Data da última conferência do preço e do estoque. */
.public-page #search .comparison-product-updated {
  display: block;
  margin-top: 4px;
  color: #7c8798;
  font-size: 0.7rem;
  line-height: 1.35;
}
.public-page #search .comparison-price {
  min-width: 115px;
  font-size: 1rem;
  font-weight: 800;
}

.public-page #search .comparison-action {
  min-width: 125px;
}
/* =========================================================
   BUSCA COMPACTA — MOSTRA A COMPARAÇÃO MAIS RAPIDAMENTE
   Reduz títulos, cartão, filtros, formulário e espaços.
   ========================================================= */

/* Diminui o espaço superior e inferior da seção. */
.public-page #search {
  padding-top: 20px !important;
  padding-bottom: 28px !important;
}

/* Compacta a área do título. */
.public-page #search .section-heading {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 4px 24px;
  margin-bottom: 10px;
}

/* Letreiro pequeno BUSCA DE PRODUTOS. */
.public-page #search .section-heading > span {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
}

/* Título principal menor. */
.public-page #search .section-heading > h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.00;
}

/* Descrição abaixo do título. */
.public-page #search .section-heading > p {
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.15;
}

/* Diminui o cartão azul sem retirar sua animação. */
.public-page #search .section-heading::after {
  width: 290px;
  padding: 14px;
  font-size: 0.65rem;
  line-height: 2.3;
}

/* Compacta a área de pesquisas recentes. */
.public-page #search .recent-searches {
  margin: 5px 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.public-page #search .recent-searches strong {
  font-size: 0.78rem;
}

/* Compacta os filtros. */
.public-page #search .search-filter-bar {
  gap: 6px;
  margin: 6px 0;
  font-size: 0.76rem;
}

.public-page #search .search-filter {
  min-height: 29px;
  padding: 4px 10px;
  font-size: 0.72rem;
}

/* Barra de pesquisa menor e mais estreita. */
.public-page #search .public-search-form {
  width: min(100%, 500px);
  margin: 8px auto 0;
  padding: 6px 10px;
  border-radius: 11px;
}

/* Diminui o título Pesquisar produtos. */
.public-page #search .public-search-form label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.74rem;
}

/* Diminui a caixa de digitação. */
.public-page #search .public-search-controls input {
  min-height: 35px;
  padding: 6px 11px;
  font-size: 0.78rem;
}

/* Diminui o botão Procurar. */
.public-page #search .public-search-controls .btn {
  min-height: 35px;
  padding: 5px 17px;
  font-size: 0.76rem;
}

/* Diminui a explicação abaixo da pesquisa. */
.public-page #search .public-search-help {
  margin: 2px 0 0;
  font-size: 0.5rem;
  line-height: 1.00;
}

/* Aproxima a quantidade de ofertas da tabela. */
.public-page #search .public-search-status {
  min-height: 18px;
  margin: 4px 0;
  font-size: 0.70rem;
}

/* Compacta os títulos anteriores à tabela. */
.public-page #search .comparison-area {
  margin-top: 8px;
}

.public-page #search .comparison-heading {
  margin-bottom: 8px;
}

.public-page #search .comparison-heading > span {
  font-size: 0.64rem;
}

.public-page #search .comparison-heading h3 {
  margin: 3px 0;
  font-size: 1.05rem;
}

.public-page #search .comparison-heading p {
  margin: 3px 0;
  font-size: 0.72rem;
}

/* Diminui as células da tabela. */
.public-page #search .comparison-table th,
.public-page #search .comparison-table td {
  padding: 9px 10px;
}

.public-page #search .comparison-table th {
  font-size: 0.67rem;
}

.public-page #search .comparison-table td {
  font-size: 0.78rem;
}