/* ===== Wrapper and Container ===== */
.fps-slider-container {
  overflow: hidden;
  width: 100%;
  margin: 0;
  max-width: 100%;
  
}

.fps-slider {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
  
}

/* ===== Product Box ===== */
.fps-item {
  flex: 0 0 calc(100% / 6); /* exactly 6 per row */
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
  border: 1px solid #ec1b1c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  margin: 0;
}

/* image */
.fps-slider-container .fps-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* content wrapper */
.fps-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* brand */
.fps-brand {
  font-size: 12px;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
}

/* title � fixed height + ellipsis for overflow */
.fps-title {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0;
  color: #222;
  line-height: 1.3em;
  height: 2.6em; /* fits roughly 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* limit to 2 lines */
  -webkit-box-orient: vertical;
}

/* price */
.fps-price {
  color: #000000;
  margin: 6px 0;
  font-size:20px;
}

/* ===== Add to Cart Button ===== */
.fps-item a.button {
  background-color: #000 !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 0;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 8px;
  border: none;
  display: inline-block;
  width: 100%;
}

.fps-item a.button:hover {
  background-color: #f88703 !important;
  color: #fff !important;
}

/* ===== Navigation Buttons ===== */
.fps-prev,
.fps-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #585f63; /* default gray */
  color: #fff; /* white arrow icon */
  border: none; width:40px; height:40px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  padding: 5px 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 50;
}

.fps-prev { left: -10px; }
.fps-next { right: -10px; }

.fps-prev:hover,
.fps-next:hover {
  background-color: #000; /* black on hover */
  color: #fff;
}
/* ===== Tablet ===== */
@media (max-width: 992px) {
  .fps-item {
    flex: 0 0 calc(100% / 3); /* 3 items per row */
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .fps-item {
    flex: 0 0 calc(100% / 2); /* 2 items per row */
  }
  
  .fps-slider-container .fps-item img {
    height: 140px; /* smaller images on mobile */
  }
  
}
