/* ===== Base global (compartilhado) ===== */

/* Tipografia/Layout básico */
html, body {
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #3e4549;
}
.container {
  max-width: 1200px;     /* mais previsível que 75% */
  padding: 0 16px;
  margin: 0 auto;
}
@media (max-width: 1200px){
  .container{ width: 100%; }
}

/* Acessibilidade */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Banner genérico (sem imagens específicas) */
.sale-banner,
.hero-banner {
  position: relative;
  width: 100%;
  padding: 20px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sale-banner { height: 40vh; }
.hero-banner { height: 75vh; }

/* Overlay padrão — cor vem do primário */
.sale-banner .overlay,
.hero-banner .overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  opacity: 0.8;
}

/* Títulos em banners */
.sale-banner h2,
.hero-banner h1 {
  z-index: 2;
  position: relative;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 auto;
}
.sale-banner h2 {
  color: #fff;
  font-size: 2.1rem;
  max-width: 80%;
}

.sale-banner {
    position: relative;
    height: 40vh;
    background-image: url('../images/banner_venda.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 20px;
    overflow: hidden;
}

.user-type-selection {
    text-align: center;
    margin: 20px 0;
    padding: 10px;

}

.user-type-selection h2{
    text-align: center;
    color: #3e4549;
    font-weight: bold;
    padding: 20px;
}

.user-type-selection button:hover {
    background-color: rgba(--color-primary);
    opacity: 0.8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Categorias de Certificados */
.category-container {
    display: none;
    text-align: center;
    padding: 20px;
}

.category-container h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3e4549;
    margin-bottom: 20px;
}

/* Container dos produtos */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

/* Cartão de produto */
.product-card {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 28px;
    margin-top: 28px;
    text-align: center;
    color: var(--color-primary);
}

/* Botão de compra */
.buy-button {
    display: block;
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: scale(1.01);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Descrição do produto */
.product-card p {
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: #3e4549;
}

.hero-banner h1 {
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 3rem;
    z-index: 2;
    position: relative;
    line-height: 1.2; 
    max-width: 100%; 
    margin: 0 auto;
}

/* Dropdown de validade */
.dropdown {
    margin-bottom: 12px;
    margin-top: 20px;
    padding: 8px;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}

.user-type-selection button {
    margin: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: var(--color-primary);
    color: white;
    transition: all 0.3s ease;
}

.product-empty-state {
  text-align: center;
  padding: 24px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  margin: 16px 0;
}
.product-empty-state.admin-hint .button {
  margin-top: 8px;
}

/* Responsividade de títulos do hero */
@media (max-width: 992px) {
  .hero-banner h1 { font-size: 1.6rem !important; max-width: 90%; }
}
@media (max-width: 768px) {
  .hero-banner h1 { font-size: 1.6rem !important; max-width: 95%; }
}
@media (max-width: 480px) {
  .hero-banner h1 { font-size: 1.6rem !important; max-width: 100%; padding: 0 10px; }
}

/* Helpers de formulário/feedback */
.form-message { border: none; display: none; border-radius: 6px !important; }
.form-message.error, .form-message.success {
  display: block; animation: form-message .4s;
}
.form-message .form-message-text {
  font-size: 14px; line-height: 20px; margin: 10px 0; padding: 15px;
  text-align: center; border-radius: 6px;
}
.form-message.success .form-message-text { background-color: #62be67; color: #fff; }
.form-message.error   .form-message-text { background-color: #f55353; color: #fff; }

.input-error { border: 1px solid red !important; }
.field-error { color: red; font-size: .875rem; margin-top: 4px; min-height: 1em; display: block; }

input.is-invalid, textarea.is-invalid {
  border: 1px solid #dc3545 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='0 0 12 12'%3e%3cpath d='M6.5 0a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0V0zM6.5 9.5a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

/* Padrões de formulário (compartilhado) */
form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-wrap: wrap; }
.form-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.input-wrapper { display: flex; flex-direction: column; flex: 1 1 300px; min-width: 250px; }
.form-group label { margin-bottom: 8px; }
.form-group input, .form-group select {
  padding: 8px; height: 50px; border: 1px solid #ccc; border-radius: 4px; width: 100%;
  background-color: #f7fdff; transition: border-color .2s ease;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--color-primary);
}
fieldset {
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 20px;
  background-color: #f7fdff;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
legend {
  font-weight: bold; font-size: 1.2rem; color: var(--color-primary);
  background-color: #f7fdff; border-radius: 4px; display: inline-block; align-self: flex-start;
  max-width: fit-content; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Botões genéricos */
.btn.checkout,
.white-box .btn-primary,
.buy-button,
.user-type-selection button,
.error-page-btn,
.checkout-page-btn,
.checkout-page-btn-outline {
  font-weight: bold; border: none; border-radius: 8px; text-decoration: none; cursor: pointer;
  transition: background-color .3s ease, color .3s ease, transform .2s ease;
}
.btn.checkout,
.white-box .btn-primary,
.buy-button,
.user-type-selection button,
.error-page-btn,
.checkout-page-btn { background-color: var(--color-primary); color: #fff; }
.checkout-page-btn-outline { background-color: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.checkout-page-btn-outline:hover { background-color: var(--color-primary); color: white; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; width: 60px; height: 60px; bottom: 80px; right: 20px;
  background-color: #25d366; color: white; border-radius: 50%; text-align: center;
  font-size: 30px; z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,.3);
  display: flex; justify-content: center; align-items: center; transition: transform .3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 28px; height: 28px; }

/* Links genéricos em cards/boxes */
.box a, .card a { color: #000; text-decoration: none; }

/* Paginação */
.pagination .page-link { color: var(--color-primary); border-radius: 5px; }
.pagination .page-item.active .page-link {
  background-color: var(--color-primary); border-color: var(--color-primary); color: #fff;
}

/* Menu fixo do classic */
#menu {
  height: 80px; display: flex; align-items: center; background-color: transparent; transition: background-color .3s;
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
}
#menu .logo img { height: 50px; }
#menu .nav-central ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
#menu .nav-central a { color: #3e4549; text-decoration: none; font-weight: 500; font-size: .85rem; }

#menu.top { background-color: transparent; }
#menu.top .logo img { 
  filter: brightness(0) invert(1);
  /* opcional: se a logo ficar muito “acinzentada”, pode reforçar:
     filter: brightness(0) invert(1) contrast(1.1);
  */
}
#menu.scrolled { background-color: rgba(255,255,255,.95); box-shadow: 0 4px 6px rgba(0,0,0,.1); }
#menu.scrolled .logo img { content: url('../images/logo-color.png'); }
#menu.scrolled .nav-central a { color: #3e4549; }

/* Toggler mobile */
.navbar-toggler { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; display: none; transition: color .3s, background-color .3s; }
.navbar-toggler i { color: #ffffff; transition: color .3s; }
.navbar-toggler.scrolled { border-radius: 5px; padding: 5px 10px; }
.navbar-toggler.scrolled i { color: #3e4549 !important; }
@media (max-width: 767.98px) { .navbar-toggler { display: block; } }

#navbarNav {
  position: absolute; top: 80px; left: 0; width: 100%;
  background-color: rgba(255,255,255,.95); box-shadow: 0 4px 6px rgba(0,0,0,.1);
  z-index: 1000; display: none;
}
#navbarNav.collapse.show { display: block; }
#navbarNav .navbar-nav { padding: 20px; }
#navbarNav .nav-item { margin-bottom: 10px; }
#navbarNav .nav-link { color: #3e4549; font-weight: 500; text-decoration: none; }
#navbarNav .nav-link:hover { color: #80e7ff; }
@media (max-width: 767.98px) {
  #menu .nav-central { display: none; }
  #menu .comprar { margin-left: auto; }
  .comprar.d-md-block { display: none !important; }
  #navbarNav .btn-primary { display: block; width: 50%; margin: 10px auto; font-size: 1rem; padding: 12px; text-align: center; }
}

/* Hero do classic (só comportamento/tamanhos; cores vêm do inline) */
.hero-banner { /* imagem vem do inline dynamic css */ }
@media (max-width: 768px) {
  .btn-comprar-mobile {
    background-color: var(--color-primary); color: #fff; font-weight: bold;
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999; border-radius: 0;
    padding: 1rem; font-size: 1.2rem; text-align: center;
  }
  .btn-comprar-mobile:hover { background-color: var(--color-primary); }
  .hero-banner { height: 50vh !important; }
}

/* Boxes */
.boxes-section { margin-top: -100px; z-index: 1; position: relative; }
.box {
  background-color: #fff; padding: 20px; text-align: center; transition: .3s; border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,.1); position: relative; overflow: hidden;
}
.box h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; transition: color .3s; }
.box-icon { height: 60px; margin: 15px 0; transition: filter .3s; }
.box .box-overlay { position: absolute; bottom: -100%; left: 0; width: 100%; height: 100%; background-color: var(--color-primary); transition: bottom .3s; z-index: 1; }
.box:hover .box-overlay { bottom: 0; }
.box img, .box h3, .box p { position: relative; z-index: 2; }
.box:hover img, .box:hover h3, .box:hover p { color: #fff; }
.box-icon{
  width:60px; height:60px; display:inline-block;
  background: var(--icon-color, var(--color-primary));
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position: center; mask-position:center;
  -webkit-mask-size: contain;   mask-size:contain;
  position: relative; 
  z-index: 2;
  transition: background .2s ease;
}
.box:hover{ --icon-color:#fff; }
.box .box-icon { position:relative; z-index:2; }


/* Seção Quem Somos (classic) */
.quem-somos-section { padding: 100px 0; background-color: #ffffff; }
.image-window { position: relative; display: flex; height: 600px; overflow: hidden; background-size: cover; background-position: center; }
.image-left   { flex: 1; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.divider-vertical { width: 10px; background-color: #fff; }
.image-right  { flex: 1; clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
.overlay-box {
  position: absolute; top: 80%; left: 60%; transform: translate(-50%, -50%);
  text-align: center; background: rgba(255,255,255,.9); padding: 10px; border-radius: 10px; z-index: 3;
}
.overlay-box .number { font-size: 5rem; font-weight: bold; color: var(--color-primary); display: block; }
.overlay-box .text { font-size: 1.2rem; font-weight: bold; color: #3e4549; display: block; }
.quem-somos-section h2 { font-size: 2rem; font-weight: bold; color: #3e4549; margin-bottom: 30px; }
.quem-somos-section p  { font-size: 1rem; color: #3e4549; margin-bottom: 70px; }

/* Contato (classic) */
.contato-section { padding: 100px 0; background-color: #f8f9fa; }
.contato-section h2 { font-size: 2rem; font-weight: bold; color: #3e4549; margin-bottom: 60px; text-align: left; }
.contact-info p {
  font-size: 1rem; color: #555; margin-bottom: 15px; display: flex; font-weight: bold; align-items: center; gap: 10px;
}
.contact-info a { color: #555; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-info i {
  font-size: 1.8rem; background-color: var(--color-secondary); color: var(--color-primary);
  padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; justify-content: center; min-width: 45px; height: 45px;
}
@media (max-width: 768px) {
  .contact-info i { font-size: 1.5rem; padding: 6px 10px; min-width: 40px; height: 40px; }
  .contact-info p { font-size: .9rem; }
}

.white-box {
  background-color: #fff; padding: 50px; border-radius: 20px; box-shadow: 0 8px 10px rgba(0,0,0,.1); margin-bottom: 30px;
}
.white-box .form-control {
  width: 100%; padding: 25px; border: none; border-radius: 2px; font-size: 1rem; background-color: #f9f9f9;
}
.white-box textarea { resize: vertical; }
.white-box .btn-primary { padding: 20px; font-size: 1rem; width: 100%; }
.white-box .btn-primary:hover { filter: brightness(.9); }

/* Footer (cores do classic) */
.footer-section { padding: 50px 0; }
.footer-section h3 { margin-bottom: 20px; font-weight: bold; color: var(--color-secondary); font-size: 1.5rem; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { color: var(--color-secondary); text-decoration: none; font-weight: 500; }
.footer-section ul li a:hover { text-decoration: underline; }
.footer-section a { color: #FFFFFF; text-decoration: none; word-break: break-word; overflow-wrap: break-word; }
.footer-section a:hover { text-decoration: underline; }
.footer-section p { margin-bottom: 10px; display: flex; align-items: center; font-size: 15px; }
.footer-section p i { margin-right: 10px; font-size: 1.2rem; }

.footer-section .footer-logo-white {
  filter: brightness(0) invert(1);
  /* opcional: se a logo ficar muito “acinzentada”, pode reforçar:
     filter: brightness(0) invert(1) contrast(1.1);
  */
  height: 42px;             
  width: auto;
}

.marcas { display: flex; flex-direction: column; gap: 15px; display: inline; }
.marcas .marca { max-width: 100%; height: auto; margin: 10px; }
.marcas .icp-logo { width: 35px; }
.marcas .iti-logo { width: 100px; }
.marcas .receita-logo { width: 50px; }

/* Container principal do checkout */
.checkout-container { max-width: 1200px; margin: 0 auto; padding-top: 25px; }

/* Botão principal do checkout */
.btn.checkout {
  display: block; margin: 20px auto; padding: 15px 30px; font-size: 18px; border-radius: 8px;
}
.btn.checkout:hover { filter: brightness(.9); }

/* Card de informações do produto (sticky) */
.produto-info-card {
  position: sticky; top: 155px;
  border: 1px solid var(--color-primary); padding: 20px; background-color: #f7fdff; border-radius: 8px;
}
.produto-info-card h2 { font-size: 1.5rem; font-weight: bold; margin-bottom: 15px; color: var(--color-primary); }
.produto-info-card p  { font-size: 1rem; color: var(--color-primary); line-height: 1.5; margin-bottom: 10px; }

/* Banner interno (quando usado fora do hero) */
.banner-area {
  height: 250px; max-height: 100vh; overflow: hidden; background-size: cover; background-position: center;
}

/* Container de finalização (página de sucesso) */
.checkout-page-container {
  max-width: 1200px; margin: 40px auto; padding: 20px; background-color: #ffffff; border-radius: 8px; text-align: center;
}
.checkout-page-title { font-size: 2rem; font-weight: bold; color: var(--color-primary); margin-bottom: 20px; }
.checkout-page-finalizacao {
  border: 1px solid var(--color-primary); border-radius: 8px; padding: 20px; background-color: #f7fdff; margin-bottom: 20px;
}
.checkout-page-finalizacao legend {
  font-size: 1.2rem; font-weight: bold; color: var(--color-primary); background-color: #f7fdff; border-radius: 4px; text-align: left;
}
.checkout-page-row { display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; }
.checkout-page-group { width: 100%; text-align: left; margin-bottom: 10px; }
.checkout-page-group label { font-weight: bold; color: #232323; display: block; margin-bottom: 5px; }
.checkout-page-dado { font-size: 1.4rem; font-weight: bold; color: var(--color-primary); margin-top: 5px; }

.checkout-page-section {
  background-color: #f7fdff; border-radius: 8px; padding: 20px; margin-top: 20px; text-align: center;
}
.checkout-page-section-title { font-size: 1.8rem; font-weight: bold; color: var(--color-primary); margin-bottom: 10px; }
.checkout-page-alert { font-size: .9rem; color: #555; margin-top: 10px; }

.checkout-page-btn { padding: 12px 25px; font-size: 1rem; }
.checkout-page-btn-info:hover { filter: brightness(.9); }
.checkout-page-btn-primary:hover { filter: brightness(.9); }

.checkout-page-btn-outline { padding: 12px 25px; }

/* Responsividade */
@media (max-width: 768px) {
  .checkout-page-container,
  .checkout-page-finalizacao,
  .checkout-page-section { padding: 15px; }
  .checkout-page-section-title { font-size: 1.5rem; }
  .checkout-page-btn { width: 100%; }
}

/* Grid/lista */
.informativo-grid { row-gap: 40px; }

.nenhum-informativo {
  text-align: center;
  font-size: 24px;
  color: var(--color-primary);
}

/* Card */
.informativo-card {
  background-color: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e0e0e0;
  box-shadow: 0 4px 8px rgba(0,0,0,.05); transition: transform .3s ease; height: 100%;
  display: flex; flex-direction: column;
}
.informativo-card:hover { transform: translateY(-5px); }
.informativo-img { width: 100%; height: 200px; object-fit: cover; }
.informativo-conteudo {
  padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.informativo-conteudo h3 { font-size: 1.25rem; font-weight: bold; color: var(--color-primary); margin-bottom: 8px; }
.informativo-conteudo h3 a { color: inherit; text-decoration: none; }
.informativo-conteudo h3 a:hover { text-decoration: underline; }
.informativo-data { font-size: .85rem; color: #888; margin-bottom: 10px; display: block; }
.informativo-conteudo p { font-size: .95rem; color: #3e4549; margin-bottom: 15px; flex-grow: 1; }
.informativo-share { display: flex; gap: 12px; margin-top: auto; }
.informativo-share a { font-size: 1.2rem; color: var(--color-primary); transition: color .3s ease; }
.informativo-share a:hover { filter: brightness(.9); }

