/* Slider container */
.wecp-product-slider {
  position: relative;
  margin: 20px auto;
}

/* Inner container for flex layout */
.wecp-slide-inner {
  display: flex;
  align-items: center;
  gap: 30px; /* Creates space between the image and the content */
  padding: 20px;
}

.wecp-slide-image {
  flex: 1;
  max-width: 300px; /* Adjust based on your design preference */
}

.wecp-slide-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.wecp-slide-content {
  flex: 2; /* Gives more space to the content */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wecp-title {
  font-size: 28px; /* Larger font for the title */
  margin-top: 0;
  margin-bottom: 15px;
}

.wecp-excerpt {
  font-size: 16px;
  margin-bottom: 15px;
}

.wecp-price {
  font-weight: bold;
  margin: 10px 0;
}

.wecp-link {
  display: inline-block;
  padding: 12px 28px;
  color: #ffffff;
  background-color: #f4402f;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 260px;
}

.wecp-slide-link-wrapper {
  text-decoration: none;
  color: inherit;
}

/* Responsive styles for mobile devices */
@media (max-width: 767px) {
  .wecp-slide-inner {
    /* Apply flex direction to the inner container */
    flex-direction: column;
    align-items: center;
  }

  .wecp-slide-image {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
    justify-content: center;
    display: flex;
  }

  .wecp-slide-content {
    align-items: center; /* Center content horizontally */
  }

  .wecp-link {
    align-self: center; /* Center button */
  }

  .wecp-slider-nav .wecp-prev {
    left: 10px;
  }

  .wecp-slider-nav .wecp-next {
    right: 10px;
  }
  .slick-slider button.slick-prev {
    padding-left: 10px !important;
  }
  .slick-slider button.slick-next {
    padding-right: 10px !important;
  }
}
