/* ========================================
   LATEST TRACTORS CAROUSEL
======================================== */

.tractor-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 50px 50px 50px;
  margin: 0;
}

/* Prevent slider overflow problems */
.tractor-swiper {
  width: 100%;
  overflow: hidden;
}

/* Each slide */
.tractor-swiper .swiper-slide {
  height: auto;
}

/* ========================================
   TRACTOR CARD
======================================== */

.homepage-tractor-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.homepage-tractor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ========================================
   IMAGE
======================================== */

.homepage-tractor-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 260px;
  padding: 15px;
  background: #ffffff;
  overflow: hidden;
}

.homepage-tractor-image img {
  display: flex;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: center; */
}

/* No image */
.tractor-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f7f7f7;
  color: #777777;
}

/* ========================================
   CONTENT
======================================== */

.homepage-tractor-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  border-top: 1px solid #eeeeee;
  background: #ffffff;
}

.homepage-tractor-content h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
}

.homepage-tractor-content h3 a {
  color: #172642;
  text-decoration: none !important;
}

.homepage-tractor-content h3 a:hover {
  color: #d71920;
}

/* ========================================
   SPECS
======================================== */

.homepage-tractor-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
  color: #555555;
  font-size: 15px;
  font-weight: 500;
}

/* ========================================
   PRICE
======================================== */

.homepage-tractor-price {
  margin-bottom: 18px;
  color: #172642;
  font-size: 17px;
  font-weight: 700;
}

/* ========================================
   BUTTONS
======================================== */

.homepage-tractor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.homepage-view-button,
.homepage-compare-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.homepage-view-button {
  border: 1px solid #d71920;
  color: #d71920 !important;
}

.homepage-view-button:hover {
  background: #d71920;
  color: #ffffff !important;
}

.homepage-compare-button {
  border: 1px solid #172642;
  color: #172642 !important;
}

.homepage-compare-button:hover {
  background: #172642;
  color: #ffffff !important;
}

/* ========================================
   PREVIOUS / NEXT BUTTONS
======================================== */

.tractor-slider-prev,
.tractor-slider-next {
  position: absolute;
  top: 42%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d71920;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
}

.tractor-slider-prev {
  left: 0;
}

.tractor-slider-next {
  right: 0;
}

.tractor-slider-prev:hover,
.tractor-slider-next:hover {
  background: #b9151b;
}

/* ========================================
   PAGINATION DOTS
======================================== */

.tractor-slider-pagination {
  position: relative !important;
  margin-top: 24px;
  text-align: center;
}

.tractor-slider-pagination .swiper-pagination-bullet-active {
  background: #d71920;
}

/* ========================================
   VIEW ALL BUTTON
======================================== */

.tractor-view-all-wrapper {
  margin-top: 25px;
  text-align: center;
}

.tractor-view-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 5px;
  background: #d71920;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.tractor-view-all-button:hover {
  background: #b9151b;
  color: #ffffff !important;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 921px) {
  .tractor-carousel-wrapper {
    padding: 0 42px;
  }

  .homepage-tractor-image {
    height: 240px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
  .tractor-carousel-wrapper {
    padding: 0 35px;
  }

  .homepage-tractor-image {
    height: 230px;
  }

  .tractor-slider-prev,
  .tractor-slider-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .homepage-tractor-actions {
    flex-direction: column;
  }

  .homepage-view-button,
  .homepage-compare-button {
    width: 100%;
  }
}
