/* frontend-style.css */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.woocommerce-product-gallery {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.main-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
	height: 400px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.main-image img {
    position: absolute;
    transition: transform 0.3s, left 0.3s, top 0.3s;
}

.zoom-icon {
    color: #000000;
    position: absolute;
    top: 10px;
    right: 45px;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
	transition: transform 0.3s, background 0.3s;
}

.zoom-icon:hover{
	transform: scale(1.1);
}

.nav-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
	transition: opacity 0.3s, transform 0.3s;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

.left-arrow-text {
	transition: transform 0.3s;
}

.right-arrow-text {
	transition: transform 0.3s;
}

.left-arrow:hover .left-arrow-text {
	transform: scale(2.1);
}

.right-arrow:hover .right-arrow-text {
	transform: scale(2.1);
}


.main-image-container:hover .nav-arrow {
    opacity: 1;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.lightbox-content {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
    position: absolute;
    max-height: 80%;
    text-align: center;
	width: 450px; /* Replace 800px with your desired static width */
    max-width: 450px; /* Optional: Ensures it won't exceed this width */
    margin: 0 auto; /* Centers the lightbox horizontally */
	background: rgba(0, 0, 0, 1.0);
}

.lightbox-content img {
  max-width: 80%;
}

.close-lightbox {
    color: #000000;
    position: absolute;
    top: 10px;
    right: 45px;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 25px;
	font-weight: bold;
	z-index: 1001; /* Ensure it stays on top */
}

.lightbox-nav-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
	height: 100%;
    width: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-left-arrow {
    left: 0;
}

.lightbox-right-arrow {
    right: 0;
}

/* .lightbox-content,
.main-image-container { touch-action: none; } */

/* 
REMOVED DUE TO CONFLICT
#mainImage {
    height: 400px;
    width: 100%;       
    object-fit: cover;
} */

.main-image-item{
	height: 400px;
    width: 100%;       /* Ensures the width is fully responsive */
	display: flex;
	justify-content: Center;
}

.main-image-item video {
	height: 100%;
}


/* NEW CSS */

/* Thumbnail images */

.thumbnail {
    width: calc(25% - 20px);
    margin: 10px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.6);
	display: block;
	height: 80px;
	width: 80px;
}


.thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    margin: auto;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
	object-fit: cover;
}

.thumbnail img:hover {
    transform: scale(1.1);
}

.thumbnail:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-thumbnail-int{
	height: 100%;
	width: 100%;
	display: flex; 
	justify-content: center; 
	align-items: center; 
	background-color: #000; 
	color: #fff; 
	border: 1px solid #ccc; 
	text-align: center; 
	font-size: 14px; 
	font-weight: bold;
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.active-thumbnail {
    border: 2px solid white; /* Highlight color */
    opacity: 0.5; /* Slightly dim non-active thumbnails */
}



/* Thumbnail Layouts */

.product-image-gallery.vertical-layout {
    display: flex;
    align-items: flex-start;
}

.vertical-thumbnail-container {
	width:150px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
	position: relative; /* Ensure the container is the reference point for arrow positioning */
	max-width: 100px; /* Set the max width of the thumbnail list */
}

 
.thumbnail-scroller {
	width:100%;
	height:400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-y: scroll;
	scrollbar-width: none;
	scroll-behavior: smooth; /* Smooth scroll for modern browsers */
   -ms-overflow-style: none;
}

.thumbnail-scroller::-webkit-scrollbar {
  display: none;
}

.variation-thumbnails-container{
display:flex;
	align-items:center;
	justify-content:center;
}


.variation-thumbnail-container{
	width: calc(25% - 20px);
    margin: 10px;
    overflow: hidden;
    position: relative;
	height: 115px;
	width: 115px;
    display: block;
    margin: auto;
    cursor: pointer;
}

.variation-thumbnail-container img{
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
	object-fit: cover;

	
}

.variation-thumbnail-container img:hover {
	transform: scale(1.1);
}



/* horizontal layout */

.horizontal-thumbnail-container {
	width:100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
	position: relative; /* Ensure the container is the reference point for arrow positioning */
	max-width: 100%;
	height:100px; /* Set the max width of the thumbnail list */
	margin-top: 0px;
}


.horizontal-thumbnail-container-x {
  flex-wrap: nowrap;
  height: 100px;
  margin-top: 0px;
}

.horizontal-thumbnail-scroller {
  display: flex;
  flex-direction: row; /* Ensures horizontal layout */
  align-items: center;
  overflow-x: scroll; /* Enables horizontal scrolling */
  overflow-y: hidden; /* Hides vertical overflow */
  scrollbar-width: none; /* Modern browsers: no scrollbar */
  scroll-behavior: smooth; /* Smooth scroll for modern browsers */
  -ms-overflow-style: none; /* Hides scrollbar for IE/Edge */

}

.horizontal-thumbnail-scroller::-webkit-scrollbar {
  display: none;
}


.horizontal-thumbnail {
	display: inline-block;
}



/* Scroll arrows for thumbnails */

.thumbnail-scroll {
    position: absolute; /* Position arrows over the list */
    width: 100px;
    height: 15px;
    /* background-color: var(--nav-arrow-bg-color, rgba(0, 0, 0, 0.6)); /* Use nav arrow colors */
    color: var(--nav-arrow-color, white);
	background-color: var(--nav-arrow-bg-color, rgba(50, 205,50, 0.8));
	transition: transform 0.3s, background 0.3s;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    line-height: 15px; /* Vertically center the text */
    z-index: 2; /* Ensure it stays above other elements */
    /*border-radius: 5px;*/
    user-select: none;
}

.thumbnail-scroll:hover {
    background-color: var(--nav-arrow-hover-bg-color, rgba(0, 0, 0, 0.8)); /* Highlight effect on hover */
}

.thumbnail-scroll.top-arrow {
    top: 0; /* Position at the top of the list */
}

.thumbnail-scroll.bottom-arrow {
    bottom: 0; /* Position at the bottom of the list */
}

.horizontal-thumbnail-scroll {
    position: absolute; /* Position arrows over the list */
    width: 15px;
    height: 100px;
    /* background-color: var(--nav-arrow-bg-color, rgba(0, 0, 0, 0.6)); /* Use nav arrow colors */
    color: var(--nav-arrow-color, white);
	background-color: var(--nav-arrow-bg-color, rgba(50, 205,50, 0.8));
	transition: transform 0.3s, background 0.3s;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    line-height: 15px; /* Vertically center the text */
    z-index: 2; /* Ensure it stays above other elements */
    /*border-radius: 5px;*/
    user-select: none;	
}


.horizontal-thumbnail-scroll.left-scroll-arrow {
    left: 0; /* Position at the top of the list */
	line-height: 100px;
}

.horizontal-thumbnail-scroll.right-scroll-arrow {
    right: 0; /* Position at the bottom of the list */
	line-height: 100px;
}






/* --- HARD OVERRIDE: fit images inside Woo gallery, no cropping --- */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .woocommerce-product-gallery__wrapper,
.woocommerce div.product .woocommerce-product-gallery__image {
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important; /* respects whatever height your gallery has */
}

/* Center the image box and let the image size itself inside it */
.woocommerce div.product .woocommerce-product-gallery__image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Nuke any absolute positioning/zoom the plugin applies */
.woocommerce div.product .woocommerce-product-gallery__image img,
.main-image img,
.main-image-container img,
.main-image-item img {
  position: static !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;

  /* cancel anything a zoom script set */
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin: 0 !important;
  /* some themes force max-width:none; explicitly undo that */
  /* note: max-width above already handles it */
}


