/* Ensure the carousel is inside a proper container */
.wp-block-group .owl-carousel {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Ensure owl items display properly */
.wp-block-group .owl-carousel .owl-item {
    float: none;
    display: inline-block;
    vertical-align: top;
    min-height: 1px;
    width: auto;
}

/* Image styling */
.wp-block-group .owl-carousel .owl-item img {
    width: auto;
    max-width: 100%;
    height: auto;
}
/* Image styling */
.wp-block-group .owl-carousel .owl-item img {
    width: 100%;  /* Set width to fill the container */
    height: 250px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image fills the space without distortion */
}


/* Fix navigation button positioning */
.wp-block-group .owl-nav .owl-prev,
.wp-block-group .owl-nav .owl-next {
    position: absolute;
    transform: translateY(-100%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    z-index: 10;
}

.wp-block-group .owl-nav .owl-prev {
    left: 10px;
}

.wp-block-group .owl-nav .owl-next {
    right: 10px;
}

/* Dots styling */
.wp-block-group .owl-dot span {
    background-color: #000 !important;
    opacity: 0.5;
}

.wp-block-group .owl-dot.active span {
    opacity: 1;
}

/* Ensure lazy loading works */
.wp-block-group .owl-carousel .owl-item .owl-lazy {
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

/* Video Play Icon Fix */
.wp-block-group .owl-carousel .owl-video-play-icon {
    background: url('your-new-play-icon.png') no-repeat center center;
    background-size: contain;
}

/* Fix text overlay on slides */
.wp-block-group .details-layer-title {
    display: block !important;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    z-index: 10;
    position: relative;
}

/* Owl Carousel Core Styles */
.owl-carousel {
    display: none;
    width: 100%;
    z-index: 1;
}

.owl-carousel .owl-stage {
    position: relative;
}

.owl-carousel .owl-item img {
    display: block;
    width: 100%;
}

.owl-carousel .owl-dots.disabled,
.owl-carousel .owl-nav.disabled {
    display: none;
}

/* Navigation */
.owl-nav .owl-next {
    position: absolute;
    bottom: 50%;
    right: 10px;
}

.owl-nav .owl-prev {
    position: absolute;
    bottom: 50%;
    left: 10px;
}

/* Lazy loading */
.owl-carousel .owl-item .owl-lazy {
    opacity: 0;
    transition: opacity .4s ease;
}



/* Owl Carousel Container */
.owl-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Individual Slide Items */
.owl-carousel .item {
    background: var(--wp--preset--color--background); /* Uses theme background */
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}

/* .owl-carousel .item:hover {
    transform: translateY(-5px);
} */

/* Carousel Navigation Buttons */
.owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.owl-nav button {
    background: var(--wp--preset--color--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

/* .owl-nav button:hover {
    background: var(--wp--preset--color--contrast);
} */

/* Carousel Dots */
.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    width: 12px;
    height: 12px;
    background: var(--wp--preset--color--contrast);
    display: inline-block;
    margin: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.owl-dot.active {
    background: var(--wp--preset--color--primary);
    width: 14px;
    height: 14px;
}


#btn-addtocart {
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    text-decoration: none;
    text-decoration-thickness: auto;
    width: 173px;
    height: 37px;
    font-size: var(--wp--preset--font-size--small) !important;
  }

#sale-price,
#regular-price {
    display: inline-block;
    margin-right: 5px; /* Adjust spacing as needed */
    vertical-align: middle;
    
}
#regular-price {
    text-decoration: none;
}
#btn-addtocart {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center;
    /* width: 100%; Ensure full width for responsiveness */
}

#btn-addtocart button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 80%;
    max-width: 300px; /* Adjust max width as needed */
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0073aa; /* WooCommerce default blue */
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap; 
    overflow: hidden;
    /* border-radius: 9999px; */
}

#btn-addtocart button:hover {
    background-color: #005177; /* Darker blue on hover */
}



@media (max-width: 1820px) {
    /* Center the container */
    #btn-addtocart {
      text-align: center;
      width: 100%;
    }
    /* Ensure the button is treated as an inline-block element */
    #btn-addtocart button {
      /* display: inline-block; */
      white-space: nowrap; /* Keeps text on one line */
    }
  }



  .wp-block-group .owl-nav .owl-next {
    right: -14px;
  }

  .wp-block-group .owl-nav .owl-prev {
    left: -14px;
  }