.product-slider {
  margin-top: 30px;
}

.tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.tabs li {
  margin-right: 20px;
  padding-bottom: 5px;
  cursor: pointer;
  font-weight: 500;
  color: #0056b3;
  font-size: 16px;
}

.tabs .active {
  color: #000;
  border-bottom: 2px solid #000;
  font-weight: bold;
}

.slider-container {
  position: relative;
}

.slider-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 16px;
}

.slider-wrapper::-webkit-scrollbar {
  display: none;
}

/* Add fade-in animation */
.slider-wrapper.fade {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.slider-wrapper.loaded {
  opacity: 1;
}


.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 18px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }

.latest-product-card {
  flex: 0 0 clamp(220px, 30vw, 300px); /* ✅ Responsive width */
  /*border: 1px solid #ddd;*/
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}



.pl1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.pl2 {
  width: 100px;
  height: 100px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl2 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pl3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.latest-product-card small {
  font-size: 12px;
  color: #666;
}

.latest-product-card h4 {
  margin: 5px 0;
  font-size: 15px;
  color: #0056b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-product-card p {
  font-size: 13px;
  color: #333;
  height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-view {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #0056b3;
  background: transparent;
  color: #0056b3;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
  width: 48%;
  flex: 1;
}

.quick-view:hover {
  background: #0056b3;
  color: #fff;
}

/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
  .latest-product-card {
    flex: 0 0 80%;
  }

  .tabs li {
    font-size: 14px;
    margin-right: 15px;
  }

  .slider-btn {
    display: none; /* Hide arrows on small screens */
  }

  .pl1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .pl2 {
    width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 10px;
  }

  .pl3 {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }
}