:root {
    --primary-color: #FFB22C;
    --secondary-color: #000000;
    --therde:#854836;
    --text-color: #F7F7F7;
    --light-bg: #353333;
    --shadow: 0 5px 15px rgba(246, 176, 0, 0.496);
}
/* Slider container */
.slider-container {
  margin-right:70px ;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

/* Horizontal track */
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

/* Navigation buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0a3cff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.slider-btn.prev {
  left: 10px;
}
.slider-btn.next {
  right: 10px;
}

/* Card styles (نفس ما وضعناه مسبقًا) */
.car-card {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  color: white;
  background: var(--light-bg);
  overflow: hidden;
}
.card-content::before,
.card-content::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: inherit;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-content::before {
  top: -4%;
  width: 90%;
  height: 90%;
  background: #ced8ff;
  z-index: -1;
}
.card-content::after {
  top: -8%;
  width: 80%;
  height: 80%;
  background: #e7ecff;
  z-index: -2;
}
.car-card:hover {
  transform: translateY(-12px);
}
.car-card:hover .card-content::before {
  rotate: -6deg;
  top: 0;
  width: 100%;
  height: 100%;
}
.car-card:hover .card-content::after {
  rotate: 6deg;
  top: 0;
  width: 100%;
  height: 100%;
}
.car-image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
.car-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}
.car-description {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}
.car-link {
  color: #fea000;
  font-weight: bold;
  text-decoration: none;
}
.car-link:hover {
  text-decoration: underline;
}
.sale-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ff3b3b;
  color: white;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 12px;
  z-index: 2;
}
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;

  /* هذا هو المهم لتحريك السلايدر */
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px;
}

.slider-track::-webkit-scrollbar {
  display: none; /* إخفاء الشريط الجانبي */
}

@media (max-width: 768px) {
  .car-card {
    min-width: 240px;
    max-width: 100%;
  }

  .card-content {
    padding: 16px;
    gap: 12px;
  }

  .car-title {
    font-size: 18px;
  }

  .car-description,
  .car-price {
    font-size: 13px;
  }

  .car-link {
    font-size: 14px;
    padding: 6px 12px;
  }
}

