/* ===========================
   Overlay do Modal
   =========================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal[style*="display: block"] {
  opacity: 1;
}

/* ===========================
   Conteúdo do Modal
   =========================== */
.modal-content {
  position: relative;
  background: #ffffff;    /* Caixa branca */
  color: #333333;         /* Texto escuro */
  font-size: 1rem;
  line-height: 1.5;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  margin: 5% auto;        /* Centraliza vertical/horizontal */
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-family: 'Syne Mono', monospace;
}

/* Títulos dentro do modal */
.modal-content h2,
.modal-content h3 {
  color: #222222;
  margin-top: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-family: 'Black Ops One', cursive;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 2px dashed #e60012;
  padding-bottom: 0.5rem;
}

/* Parágrafos e itens de lista */
.modal-content p,
.modal-content li,
.modal-content dd {
  color: #444444;
  margin: 0.75em 0;
}

/* Listas */
.modal-content ul {
  padding-left: 1.2em;
}

/* ===========================
   Tabela de Medidas
   =========================== */
.modal-content .size-chart {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-family: inherit;
}

.modal-content .size-chart th,
.modal-content .size-chart td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.modal-content .size-chart th {
  background: #e60012;
  color: #ffffff;
  font-weight: bold;
  font-family: 'Black Ops One', cursive;
}

.modal-content .size-chart tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* ===========================
   Botão de Fechar
   =========================== */
.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.4rem;
  color: #333333;         /* “×” escuro */
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #e60012;
}

/* ===========================
   Desabilita scroll no body
   =========================== */
body.modal-open {
  overflow: hidden;
}
