/* showing-products.css */

/* 1. Swiper container: clip overflowing slides */
.sp-swiper {
  position: relative;
  width: 100%;
  padding: 40px 0;
  overflow: hidden; /* hide slides outside viewport */
}

/* 2. Wrapper: horizontal flex row */
.sp-swiper .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
}

/* 3. Slides: exactly four per view with 20px gaps */
.sp-swiper .swiper-slide {
  flex: 0 0 calc((100% - 60px) / 4);  /* 4 slides minus 3 gaps of 20px */
  margin-right: 20px;
  box-sizing: border-box;
}
.sp-swiper .swiper-slide:last-child {
  margin-right: 0;
}

/* 4. Card styling */
.sp-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
  padding: 20px;
  text-align: center;
}

/* 5. Image */
.sp-image {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
}
.sp-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 6. Title */
.sp-title {
  font-family: 'Roboto Mono', monospace;
  font-size: 18px;
  color: #00009c;
  margin-bottom: 8px;
}

/* 7. Price */
.sp-price {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  color: #00009c;
  margin-bottom: 16px;
}

/* 8. “In winkelmand” button */
.sp-btn {
  font-family: 'Bubblegum', cursive;
  font-size: 16px;
  color: #fff;
  background-color: #ff589e;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.sp-btn:hover {
  background-color: #e43e84;
}

/* 9. Navigation arrows */
.sp-swiper .swiper-button-prev,
.sp-swiper .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00009c;
}
.sp-swiper .swiper-button-prev {
  left: 10px;
}
.sp-swiper .swiper-button-next {
  right: 10px;
}

@media only screen and (max-width: 600px) {
  .sp-swiper .swiper-slide {
    flex: none !important;
  }

  .swiper-button-prev {
    display: none !important;
  }

  .swiper-button-next {
    display: none !important;
  }

  .sp-item {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 2px;
  }
} 
