/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #f5f7fb;
  color: #111;
}

/* ========== HEADER ========== */
.header {
  background: #ffffff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #d32f2f;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a:hover {
  color: #d32f2f;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
  url("images/cars.jpg") center/cover no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  margin-bottom: 25px;
  font-size: 18px;
}

/* SEARCH BOX */
.search-box {
  background: #fff;
  max-width: 900px;
  margin: auto;
  padding: 15px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.search-box input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.search-box button {
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.search-box button:hover {
  background: #b71c1c;
}

/* ========== CATEGORIES ========== */
.categories {
  padding: 60px 40px;
}

.categories h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card h3 {
  padding: 15px;
  text-align: center;
  font-size: 18px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* ========== FOOTER ========== */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }

  nav {
    display: none;
  }
}
