/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');


body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #222;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid #e0e0e0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 12px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.navbar a:hover {
  background-color: #f2f2f2;
}

.navbar a.active {
  color: #FECF2F;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0px auto;
  padding: 0 20px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.search-bar input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: 15px;
  text-align: center;
}

.card-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 16px;
}

.card-text {
  font-size: 14px;
}

.card-text ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}


.card-text li.transmission {
  color: #555;
}

.btn-detail {
  display: inline-block;
  background-color: #FECF2F;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  text-align: center;
  transition: background 0.3s ease;
}

.btn-detail:hover {
  background-color: #e5ba1f;
}

.user-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: #222;
  transition: all 0.3s ease;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: black;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    padding: 15px;
  }

  .navbar.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .user-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
}