body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #111;
  color: #fff;
}

header {
  background: #222;
  padding: 8px;
  text-align: center;
}

header h1 {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 28px;
  margin: 0;
}

header h1 .moto {
  color: red;
}

header h1 .ride {
  color: #fff;
}

header h1 .shop {
  color: #fff;
}

.moto-card {
  border: 1px solid #444;
  padding: 15px;
  margin: 15px;
  display: inline-block;
  width: 220px;
  text-align: center;
  background: #1a1a1a;
  border-radius: 8px;
  transition: transform 0.3s;
}

.moto-card:hover {
  transform: scale(1.05);
}

.moto-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.fa-star {
  font-size: 24px;
  cursor: pointer;
}

.fa-star.filled {
  color: gold;
}

.cart-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 350px;
  height: 100%;
  background: #222;
  color: #fff;
  padding: 20px;
  transition: right 0.5s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.cart-panel.open {
  right: 0;
}

.cart-panel ul li {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.cart-panel ul li div button {
  margin: 0 3px;
  padding: 5px 10px;
  background: #f44336;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
}

.cart-panel ul li div button:hover {
  background: #d32f2f;
}

#order-animation {
  display: none;
  text-align: center;
  font-size: 24px;
  color: limegreen;
  animation: fadeIn 2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ff9800, #f44336);
  box-shadow: 0 6px 15px rgba(255, 152, 0, 0.6);
}

#openCartBtn {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

#openCartBtn:hover {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

#confirmBtn {
  background: linear-gradient(135deg, #4caf50, #388e3c);
}

#confirmBtn:hover {
  background: linear-gradient(135deg, #81c784, #4caf50);
}

#closeCartBtn {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

#closeCartBtn:hover {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}




body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #111;
  color: #fff;
}

.moto-card {
  border: 1px solid #444;
  padding: 15px;
  margin: 15px;
  display: inline-block;
  width: 220px;
  text-align: center;
  background: #1a1a1a;
  border-radius: 8px;
  transition: transform 0.3s;
}

.moto-card:hover {
  transform: scale(1.05);
}

.moto-card img {
  width: 100%;
  border-radius: 8px;
}





.fa-star {
  font-size: 24px;
  cursor: pointer;
}

.fa-star.filled {
  color: gold;
}

.cart-panel,
.fav-panel {
  position: fixed;
  top: 0;
  width: 350px;
  height: 100%;
  background: #222;
  color: #fff;
  padding: 20px;
  transition: 0.5s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.cart-panel {
  right: -400px;
}

.cart-panel.open {
  right: 0;
}

.fav-panel {
  left: -400px;
}

.fav-panel.open {
  left: 0;
}

.cart-panel ul li,
.fav-panel ul li {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  align-items: center;
}

.cart-panel ul li div button,
.fav-panel ul li button {
  margin: 0 3px;
  padding: 5px 10px;
  background: #f44336;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
}

.cart-panel ul li div button:hover,
.fav-panel ul li button:hover {
  background: #d32f2f;
}

.moto-card {
  border: 1px solid #444;
  padding: 15px;
  margin: 15px;
  display: inline-block;
  width: 220px;
  text-align: center;
  background: #1a1a1a;
  border-radius: 8px;
  transition: transform 0.3s;
}

.moto-card:hover {
  transform: scale(1.05);
}

.moto-card img {
  width: 100%;
  border-radius: 8px;
}

.fa-star {
  font-size: 24px;
  cursor: pointer;
}

.fa-star.filled {
  color: gold;
}

#searchInput {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #555;
  margin-left: 12px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background-color: #1a1a1a;
  color: #fff;
  transition: all 0.3s ease;
  outline: none;
}

#searchInput::placeholder {
  color: #aaa;
  font-style: italic;
}

#searchInput:focus {
  border-color: #f44336;
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.8);
  background-color: #222;
}


.section-title {
  text-align: center;
  font-size: 28px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #f44336;
  margin-bottom: 20px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #f44336;
  margin-bottom: 20px;
}

#moto-list h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
}


#moto-list {
  text-align: center;
}


#moto-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
  justify-content: center;
  margin: 20px auto;
}

.section-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 28px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #f44336;
  margin-bottom: 20px;
}

.moto-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}




.cart-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 350px;
  height: 100%;
  background: #222;
  color: #fff;
  padding: 20px;
  transition: right 0.5s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.cart-panel.open {
  right: 0;
}

.fav-panel {
  position: fixed;
  left: -400px;
  top: 0;
  width: 350px;
  height: 100%;
  background: #222;
  color: #fff;
  padding: 20px;
  transition: left 0.5s ease;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
}

.fav-panel.open {
  left: 0;
}

@media (max-width: 768px) {
  #moto-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .moto-card {
    width: 90%;
    margin: 0 auto;
  }
}
