/* style.css */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

h1, h5 {
  font-weight: bold;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #212529;
}

header input[type="search"] {
  width: 250px;
}

footer h5 {
  margin-top: 1rem;
}

footer ul {
  padding-left: 0;
}

footer ul li {
  list-style: none;
  margin-bottom: 6px;
  font-size: 14px;
}

footer p {
  font-size: 13px;
}

.card {
  border: none;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.card img {
  object-fit: cover;
  height: 150px;
}

.btn-category {
  background-color: #6c757d;
  color: white;
  margin-bottom: 10px;
  width: 100%;
}

.modal-content {
  border-radius: 12px;
}

/* ===================== MEDIA QUERIES ===================== */

/* Telas menores que 480px (smartphones pequenos) */
@media (max-width: 480px) {
  header input[type="search"] {
    width: 100%;
    font-size: 14px;
  }

  .card img {
    height: 120px;
  }

  footer ul li {
    font-size: 12px;
  }

  footer p {
    font-size: 12px;
  }

  .btn-category {
    font-size: 13px;
  }
}

/* Telas entre 481px e 768px (smartphones médios/grandes) */
@media (min-width: 481px) and (max-width: 768px) {
  header input[type="search"] {
    width: 180px;
  }

  .card img {
    height: 130px;
  }

  footer ul li {
    font-size: 13px;
  }

  .btn-category {
    font-size: 14px;
  }
}

/* Telas entre 769px e 1024px (tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
  header input[type="search"] {
    width: 220px;
  }

  .card img {
    height: 140px;
  }

  .btn-category {
    font-size: 15px;
  }
}

/* Telas entre 1025px e 1440px (laptops) */
@media (min-width: 1025px) and (max-width: 1440px) {
  header input[type="search"] {
    width: 250px;
  }

  .card img {
    height: 150px;
  }

  .btn-category {
    font-size: 16px;
  }
}

/* Telas acima de 1441px (monitores grandes) */
@media (min-width: 1441px) {
  header input[type="search"] {
    width: 280px;
  }

  .card img {
    height: 170px;
  }

  footer ul li {
    font-size: 15px;
  }

  .btn-category {
    font-size: 17px;
  }
}
