/*Estilos Globais*/
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', "Marcellus", "Marcellus SC", sans-serif;
  background: #f4f4f4;
}

/*Banner de Produtos*/
.banner-products {
  background-image: url(../../assets/banner-mid3.jpg);
  background-repeat: no-repeat;
  background-size: 100%;
  height: 620px;
  border: none;
}

.title-products {
  font-size: 50px;
  font-family: "Marcellus SC", serif;
  margin: 20px 0;
  text-align: center;
  color: #F6EFDD;
}

/*Caixa de Informações*/
.box-list {
  background-color: #2B4739;
  width: 900px;
  height: 300px;
  opacity: 0.8;
  margin: 100px auto 0;
  border-radius: 0 20px 20px 20px;
  text-align: center;
}

.dt-mid {
  font-family: "Marcellus SC", serif;
  font-size: 25px;
  font-weight: 800;
  padding-top: 25px;
  padding-bottom: 30px;
  color: #F6EFDD;
}

.dd-mid {
  font-family: "Marcellus SC", serif;
  font-size: 15px;
  font-weight: 200;
  padding-top: 25px;
  color: #F6EFDD;
}

/* Título e Subtítulo Centrais */
.title-mid {
  font-family: "Marcellus SC", serif;
  font-size: 30px;
  color: #F6EFDD;
  text-shadow: 2px 4px 13px #000;
  opacity: 0.4;
  padding-bottom: 0;
}

.subtitle {
  font-size: 18px;
  font-family: "Marcellus SC", serif;
  text-shadow: 2px 4px 13px #000;
  color: #F6EFDD;
  opacity: 0.4;
  margin-top: -15px;
}

/*Grade de Produtos*/
.products-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Cada produto */
.product {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.product:hover {
  transform: scale(1.03);
}

.product-img img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

.product-name {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  color: #2B4739;
  text-transform: uppercase;
}

/*Medidas*/

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.modal-description {
  margin-top: 1rem;
  font-size: 1rem;
  color: #2B4739;
  font-family: "Marcellus SC", serif;
  text-align: center;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #2B4739;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}