*{box-sizing:border-box}
body{
  margin:0;
  color:#222;
  background:#fff;
  font-family:Arial,Helvetica,sans-serif;
}
a{color:inherit;text-decoration:none}
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 5%;
  border-bottom:1px solid #e5e5e5;
  flex-wrap:wrap;
  gap:20px;
}
.brand{
  color:#c51e25;
  font-size:27px;
  font-weight:800;
}
nav{display:flex;gap:24px}
main{
  max-width:1320px;
  margin:auto;
  padding:32px 24px 60px;
  min-height:65vh;
}
h1{font-size:30px;margin:0 0 24px}
.search-form{
  display:flex;
  max-width:760px;
  gap:10px;
}
.search-form input{
  flex:1;
  min-width:0;
  border:1px solid #ccc;
  border-radius:5px;
  padding:14px;
  font-size:16px;
}
button{
  border:0;
  border-radius:5px;
  background:#c51e25;
  color:white;
  padding:14px 24px;
  cursor:pointer;
  font-size:15px;
}
button:hover{background:#a4171d}
#summary{color:#666;margin:25px 0}
.product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}
.product-card{
  border:1px solid #e5e5e5;
  border-radius:6px;
  overflow:hidden;
}
.product-card:hover{border-color:#c51e25}
.product-card img{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  object-fit:contain;
  background:#f7f7f7;
}
.product-card h2{
  font-size:15px;
  line-height:1.5;
  margin:15px;
}
#more{display:block;margin:30px auto}
#more[hidden]{display:none}
footer{
  background:#171717;
  color:#fff;
  padding:30px;
  text-align:center;
}
@media(max-width:900px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  main{padding:24px 14px}
  h1{font-size:24px}
  nav{gap:15px}
  .product-card h2{font-size:14px;margin:10px}
}
