* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
}

body {
    background: #f6f6f6;
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar {
    width: 0px;
}

header {
    background-color: #222;
    color: white;
    padding: 15px;
    text-align: center;
}

header h1 {
    font-size: 1.5em;
}

.pesquisa-container {
    display: flex;
    padding: 10px;
    justify-content: center;
}

.pesquisa-container input {
    flex: auto;
    max-width: 1200px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Catalogo */

.catalogo {
    display: flex;
    flex: auto;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px 10px;
    justify-content: flex-start; /* mantém os itens alinhados à esquerda */
    max-width: 1390px; /* define uma largura máxima */
    margin: 0 auto; /* centraliza o container na página */
}

a{
    color: black;
    height: min-content;
}

.card{
    cursor: pointer;
    width: 160px;
    height: 250px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid black;
    overflow: hidden;
    text-align: center;
    transition: 1s;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.495);
}

.card img{
    min-width: 160px;
    max-width: 160px;
    min-height: 160px;
    max-height: 160px;
    object-fit: cover;
    object-position: center center;
}

.card .title{
    position: relative;
    height: 55px;
    overflow: hidden;
    font-size: 0.85em;
    color: rgb(66, 66, 66);
}

.card .price{
    font-weight: 800;
    padding: 5px;
}
.card .price sup {
    font-size: 0.6em;
}

.card:hover {
    transform: translateY(-5px);
    
}

.card-anuncio {
    background-color: gray;
    height: 100px;
    margin-top: 10px;
    margin: 10px -10px -10px;
}


@media screen and (max-width:1390px) {
    section.catalogo {
        justify-content: center;
    }
}