
/* =========================
   LAYOUT GLOBAL (CRÍTICO)
========================= */

/* Container geral */
.container {
    max-width: 1000px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Títulos */
h2, h3 {
    color: #2c3e50;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Botões */
button, .btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover, .btn:hover {
    background-color: #218838;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mensagens de sucesso ou erro */
.msg {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.msg-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msg-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.toast-carrinho {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 999999;
}

.toast-carrinho.mostrar {
  opacity: 1;
  transform: translateY(0);
}



.checkout-page {
  max-width: 800px;
  margin: 40px auto;
}

.checkout-lista {
  margin-bottom: 20px;
}

.item-checkout {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.checkout-total {
  margin-top: 20px;
  font-size: 24px;
  font-weight: bold;
}


/* =========================
   CHECKOUT FIX DEFINITIVO
========================= */

.checkout-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

/* 🔥 FORÇA LAYOUT INTERNO */
.checkout-lista {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.item-checkout {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
}

.checkout-total {
  text-align: right;
  margin-top: 20px;
  font-size: 22px;
  font-weight: bold;
}

.checkout-page h1 {
  text-align: center;
}

.checkout-page button {
  display: block;
  margin: 30px auto;
}

#resumoCheckout {
  display: block !important;
}

#resumoCheckout > div {
  display: block !important;
  width: 100% !important;
}


.checkout-sucesso {
  text-align: center;
  margin-top: 50px;
}

.checkout-sucesso h2 {
  color: #28a745;
  margin-bottom: 15px;
}

.checkout-sucesso p {
  font-size: 16px;
  margin-bottom: 10px;
}

.checkout-sucesso a {
  display: inline-block;
  margin-top: 20px;
}



.metodos-pagamento {
  margin-top: 30px;
}

.metodos-pagamento label {
  display: block;
  margin: 10px 0;
  cursor: pointer;
}



#paypalModal .mbway-box h3 {
  color: #0070ba;
}





/* =========================
   CHECKOUT MELHORADO
========================= */

.checkout-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.checkout-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-checkout {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
}

.checkout-total {
  margin-top: 20px;
  font-size: 22px;
  font-weight: bold;
  text-align: right;
}

/* PAGAMENTO */
.metodos-pagamento {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}

.metodos-pagamento h3 {
  margin-bottom: 15px;
}

.metodos-pagamento label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* BOTÃO */
#btnFinalizar {
  display: block;
  margin: 30px auto;
  padding: 12px 25px;
  font-size: 16px;
}

/* MODAIS */
.mbway-box {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


table {
  margin-top: 20px;
}

table th {
  background: #eee;
}


/* =========================
   CHECKOUT SUCESSO + FATURA
========================= */

.checkout-sucesso {
  text-align: center;
  padding: 30px;
}

.checkout-sucesso h2 {
  color: #28a745;
  margin-bottom: 10px;
}

.checkout-sucesso p {
  margin: 5px 0;
  color: #555;
}

/* BOTÕES */
.checkout-sucesso .btn-primary,
.checkout-sucesso .btn-secondary {
  display: inline-block;
  margin: 10px 5px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background: #28a745;
  color: #fff;
}

.btn-secondary {
  background: #007bff;
  color: #fff;
}

/* BLOCO FATURA */
.fatura-box {
  max-width: 700px;
  margin: 20px auto;
  text-align: left;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
}

.fatura-box h3 {
  margin-bottom: 15px;
}

.fatura-box p {
  margin: 5px 0;
}

.fatura-box hr {
  margin: 15px 0;
}


/* =========================
   GRID CATEGORIAS
========================= */

.grid-categorias {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 25px;

  margin: 40px 0;
}


/* CARD */

.categoria-card {

  background: #fff;

  border-radius: 12px;

  overflow: hidden;

  box-shadow:
    0 4px 12px rgba(0,0,0,.08);

  text-align: center;

  transition: .3s;
}

.categoria-card:hover {

  transform: translateY(-4px);

  box-shadow:
    0 8px 18px rgba(0,0,0,.12);
}

/* IMAGEM */

.categoria-img {

  width: 100%;

  height: 180px;

  object-fit: contain;

  padding: 10px;

  display: block;
}


/* TITULO */

.categoria-card h3 {

  font-size: 18px;

  margin: 18px 10px 12px;
}


/* BOTÃO */

.categoria-card .btn-ver {

  display: inline-block;

  margin-bottom: 20px;

  padding: 10px 18px;

  background: #0c63ff;

  color: #fff;

  border-radius: 6px;

  text-decoration: none;

  transition: .3s;
}

.categoria-card .btn-ver:hover {

  background: #084ec7;
}


.grid-categorias{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
  margin:40px 0;
}

.categoria-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  text-align:center;
  padding-bottom:20px;
  transition:.3s;
}

.categoria-card:hover{
  transform:translateY(-4px);
}

.categoria-img{
  width:100%;
  height:220px;

  object-fit:contain;

  background:#fff;
  padding:15px;
}

.categoria-card h3{
  margin:15px 0;
  font-size:18px;
}

.btn-ver{
  display:inline-block;
  padding:10px 18px;
  background:#007bff;
  color:#fff;
  border-radius:8px;
  text-decoration:none;
}




/* =========================
   GRID EQUIPAMENTOS
========================= */

#container {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  gap: 25px;

  margin-top: 30px;
}


/* CARD */

.categoria-card {

  background: #fff;

  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 4px 14px rgba(0,0,0,0.08);

  padding: 18px;

  display: flex;

  flex-direction: column;

  align-items: center;

  transition: 0.3s;
}

.categoria-card:hover {
  transform: translateY(-4px);
}

/* IMAGEM */

.categoria-img {

  width: 100%;

  height: 220px;

  object-fit: contain;

  margin-bottom: 15px;
}

/* TITULO */

.categoria-card h3 {

  font-size: 18px;

  text-align: center;

  margin-bottom: 10px;

  min-height: 48px;
}

/* PREÇO */

.price {

  font-size: 22px;

  font-weight: bold;

  color: #0c63ff;

  margin-bottom: 15px;
}

/* BOTÃO */

.btn-ver {

  background: #0c63ff;

  color: #fff;

  padding: 10px 18px;

  border-radius: 8px;

  text-decoration: none;

  transition: 0.3s;
}

.btn-ver:hover {
  background: #094dcc;
}
