/* carousel-plus.css */

/* Ensure the carousel items don't wrap */
.owl-stage {
    display: flex !important; /* Make the stage a flex container */
    flex-wrap: nowrap !important; /* Prevent wrapping */
}

/* Prevent the items from shrinking */
.owl-item {
    flex-shrink: 0 !important; /* Do not shrink items */
}

/* Add your custom CSS styles here */
.carousel-plus-container {
    position: relative; /* Required for positioning the arrows */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible !important;
}

/* Remove underline from all links in the carousel */
.carousel-plus-container a {
  text-decoration: none !important;
}

.carousel-plus-item {
    /* Add styles for each item in the carousel */
    padding: 6px !important;
    margin: 6px !important;
    margin-bottom: 40px !important;
}

/* Pulsegear Custom Product Cards */
.custom-product-card {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.custom-product-card .product-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  width: 100%;
}

.custom-product-card .product-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0px;
  padding: 8px !important;
}

.custom-product-card .product-new-sticker {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #23252a;
  color: white;
  padding: 4px 8px;
  margin: 8px 4px;
  border-radius: 4px;
  font-size: 0.7rem !important;
  font-weight: bold !important;
}

.custom-product-card .product-description-wrapper {
  background-color: #ddd;
  overflow: hidden;
  padding: 8px 12px;
}

.custom-product-card .product-description {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1.2em * 2);
}

.custom-product-card .product-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background-color: #fff;
  /*font-size: 0.95rem !important;*/
}

.custom-product-card .product-price {
  font-size: 1rem !important;
  color: #23252a !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border: 0;
}

.custom-product-card .product-condition {
  background-color: #9c4191;
  color: white;
  padding: 6px 8px 0px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
}

.custom-product-card .woocommerce-LoopProduct-link {
  display: block;
  height: 100%;
}

/* Custom Slides Styling */
.carousel-plus .custom-slide {
    display: flex;
    flex-direction: column;
    align-items: center; /* Vertically align items */
    text-align: center;
    margin: 0 5px; /* Reduce gap between slides */
}

.carousel-plus .custom-slide img {
    /* The image styling is now done inline in includes/functions.php */
}

.carousel-plus .custom-slide h3 {
    margin-top: 0.5em;
    font-size: 1em;
}

/* Navigation Arrows */
.owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.owl-prev,
.owl-next {
    background-color: rgba(0, 0, 0, 0.5) !important; /* Semi-transparent background */
    color: white !important;
    border-radius: 50% !important; /* Rounded shape */
    width: 30px !important; /* Adjust size as needed */
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5em !important; /* Adjust arrow size */
    line-height: 0 !important; /* Remove extra line-height */
    padding: 0 !important;
    margin: 0 10px !important; /* Add some horizontal spacing */
    transition: background-color 0.2s ease-in-out !important;
}

.owl-prev:hover,
.owl-next:hover {
    background-color: rgba(0, 0, 0, 0.8) !important; /* Darker on hover */
}

.owl-prev:before,
.owl-next:before {
    /*  content: '\f104'; /* Left chevron */
    font-family: FontAwesome !important; /* Use FontAwesome icons */
}

.owl-next:before {
    /*content: '\f105'; /* Right chevron */
}
