

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #111;
  color: white;
}

.details-header {
  text-align: center;
  padding: 20px;
  background: #1a1a1a;
}

.details-header h1 {
  margin: 10px 0;
  color: #ffcc00;
}

.back-btn {
  display: inline-block;
  text-decoration: none;
  color: #ffcc00;
  font-weight: bold;
}

.details-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.swiper {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-info {
  text-align: center;
  margin-top: 20px;
}

#car-name {
  font-size: 2rem;
  color: #ffcc00;
}

#car-price {
  font-size: 1.5rem;
  color: #ccc;
}

#car-description {
  margin-top: 10px;
  line-height: 1.6;
  color: #ddd;
}


/* ===== Navbar Styling ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #222;
  text-decoration: none;
}
.logo span {
  color: #ffcc00;
}

.nav-link {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-link li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link li a:hover,
.nav-link li a.active {
  color: #ffcc00;
}

.nav-btn {
  background: #ffcc00;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.nav-btn:hover {
  background: #ffcc00;
}

/* ===== Responsive Menu ===== */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-icon span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  transition: 0.3s;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-link {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  #menu-toggle:checked ~ .nav-link {
    display: flex;
  }

  .nav-btn {
    display: none;
  }
}

/* Prevent content from hiding behind navbar */
body {
  margin: 0;
  padding-top: 80px;
  font-family: "Poppins", sans-serif;
}


/* ===== Navbar Styling ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 50px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo span {
  color: #ffcc00;
}

.nav-link {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
}
.nav-link li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link li a:hover,
.nav-link li a.active {
  color: #ffcc00;
}

/* Explore Cars Button */
.nav-btn {
  background: #ffcc00;
  color: #000;
  border: none;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 20px;
}
.nav-btn:hover {
  background: #e6b800;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-link {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}
