.pill-container {
  display: flex;
  flex-wrap: wrap;       /* This allows items to move to the next line */
  justify-content: center; /* Centers the pills (looks better for e-commerce) */
  gap: 10px;             /* Space between pills vertically and horizontally */
  padding: 20px;
  width: 100%;           /* Ensure it takes full width of the section */
}

.pill-item {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  background-color: #f1f1f1;
  color: #333;
  text-decoration: none;
  white-space: nowrap;   /* Keeps the text inside the pill on one line */
  transition: 0.3s;
  border: 1px solid #ddd;
}

/* Hover effect to match your orange theme */
.pill-item:hover, .pill-item.active{
  background-color: #ff9800;
  color: white;
  border-color: #e68a00;
}

.main-container {
  display: flex;
  flex-wrap: nowrap; /* Keep them side-by-side */
  gap: 20px;
  padding: 20px;
  height: 80vh; /* Limits height so left side can scroll */
}

/* Left Column: Fixed Sidebar */
.product-list {
  flex: 0 0 250px; /* Width is exactly 250px, won't grow or shrink */
  display: flex;
  flex-direction: column; /* Stack pills vertically */
  gap: 10px;
  overflow-y: auto; /* Scroll vertically if list is long */
  padding-right: 10px;
}

/* Right Column: Flexible Details Area */
.product-details {
  flex: 1; /* Take up all remaining space */
  background: #fdfdfd;
  border-radius: 15px;
  padding: 30px;
  border: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Styling the image inside details */
.details-card img1 {
  max-width: 100%;    /* Won't grow wider than the box */
  max-height: 300px;  /* Set a limit that fits your design */
  width: auto;        /* Maintains aspect ratio */
  height: auto;       /* Maintains aspect ratio */
  object-fit: contain; /* Ensures the whole image is visible inside the area */
  display: block;
  margin: 0 auto 20px auto; /* Centers the image */
}
.old-price{
	text-decoration:overline;
	text-decoration:line-through;

}
.add-to-cart:hover{
  background-color: #ff9800;
  color: white;
  border-color: #e68a00;
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column; /* Stack top to bottom */
    height: auto;
  }

  .product-list {
    flex: none;
    flex-direction: row; /* Change back to horizontal pills on mobile */
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
  }
}

/* The container inside the Details Card */
.image-slider {
  display: flex;
  flex-direction: row; /* Force horizontal */
  flex-wrap: nowrap;   /* Disable wrapping */
  overflow-x: auto;    /* Enable horizontal scroll */
  -webkit-overflow-scrolling: touch; /* Smooth swipe for iOS */
  scroll-snap-type: x mandatory; /* Snaps image into place */
  gap: 0; 
  width: 100%;
}

.image-slider img {
  flex: 0 0 100%;      /* DO NOT SHRINK: Each image stays 100% width */
  width: 100%;
  height: 300px;       /* Control the height so it doesn't overflow */
  object-fit: contain; /* Keeps the product (Fridge/Cookware) proportional */
  scroll-snap-align: start;
}

.image-slider::-webkit-scrollbar {
  display: none;
}


/* Container for dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: -15px;
  margin-bottom: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
}

.dot.active {
  background: #ff9800; /* Your theme orange */
}