/* Compatibility styles for frameworks like Bootstrap, Foundation, etc. */
.xzoom-source img, .xzoom-preview img, .xzoom-lens img {
  display: block;
  max-width: none;
  max-height: none;
  -webkit-transition: none;
  -moz-transition: none;
  -o-transition: none;
  transition: none;
}

/* xZoom Container */
.xzoom-container { 
  display: inline-block;
}

/* Thumbnails Styling */
.xzoom-thumbs {
  text-align: center;
  margin-bottom: 10px;
}

.xzoom-gallery, .xzoom-gallery2, .xzoom-gallery3, .xzoom-gallery4, .xzoom-gallery5 {
  border: 1px solid #cecece;
  margin-left: 5px;
  margin-bottom: 10px;
}

.xzoom-thumbs .product-block {
  width: 80px;
  padding: 0.15rem;
  display: inline-block;
  overflow: hidden;
  margin: 0 5px 15px 5px;
}

.xzoom-thumbs .product-block img.xzoom-gallery {
  margin: 0 !important;
  border: 0 !important;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .xzoom-thumbs .product-block {
    width: 60px;
    padding: 0.12rem;
    margin: 0 2px 10px 2px;
  }
}

/* xZoom Image Styling */
.xzoom {
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
}

.xzoom2, .xzoom3, .xzoom4, .xzoom5 {
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
}

img.xzoom {
  width: 100%;
  max-width: 500px;
  border: none;
  box-shadow: none;
  margin: 0 !important;
}

#xzoom-default {
  margin: 0 !important;
}

/* Hidden Elements and Lens */
.xzoom-source, .xzoom-hidden {
  display: block;
  position: static;
  float: none;
  clear: both;
}

.xzoom-hidden {
  overflow: hidden;
}

.xzoom-lens {
  border: 1px solid var(--lightgreen);
  box-shadow: -0px -0px 10px rgba(0,0,0,0.50);
  cursor: crosshair;
}

/* Preview and Loading */
.xzoom-preview {
  border: 1px solid #888;
  background: #2f4f4f;
  box-shadow: -0px -0px 10px rgba(0,0,0,0.50);
}

.xzoom-loading {
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 100%;
  opacity: .7;
  background: url(../example/images/xloading.gif);
  width: 48px;
  height: 48px;
}

/* Active Thumbnail */
.xactive {
  -webkit-box-shadow: 0px 0px 3px 0px rgba(74,169,210,1);
  -moz-box-shadow: 0px 0px 3px 0px rgba(74,169,210,1);
  box-shadow: 0px 0px 3px 0px rgba(74,169,210,1);
  border: 1px solid #4aaad2;
}

/* Caption */
.xzoom-caption {
  position: absolute;
  bottom: -43px;
  left: 0;
  background: #fff;
  width: 100%;
  text-align: left;
  border: 1px solid var(--lightgreen);
}

.xzoom-caption span {
  color: #000;
  font-family: Arial, sans-serif;
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 10px;
}

/* Ensure Consistent Max Width and Height */
.xzoom, .xzoom img {
  max-width: 100%;
  max-height: 100%;
}

/* Additional styles for Fruits N Roots */
img.xzoom {
  width: 100%;
  max-width: 500px;
  border: none;
  box-shadow: none;
  margin: 0 !important;
}
#xzoom-default {
  margin: 0 !important;
}
.xzoom-thumbs .product-block {
  width: 80px;
  padding: 0.15rem;
  display: inline-block;
  overflow: hidden;
  margin: 0 5px 15px 5px;
}
.xzoom-thumbs .product-block img.xzoom-gallery {
  margin: 0 !important;
  border: 0 !important;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .xzoom-thumbs .product-block {
    width: 60px;
    padding: 0.12rem;
    margin: 0 2px 10px 2px;
  }
}

/* Integration with Frameworks */
.xzoom {
  box-shadow: none !important;
}
