:root {
	--loading-grey: #ededed;
}

/* Slider Wrapper */
.ultimate-product-slider-wrapper {
    width: 45%;
    max-width: 45%;
    min-width: 45%;
    position: relative;
    aspect-ratio: 1 / 1; 
}

/* Main Slider */
.ultimate-product-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 60px;
}

.ultimate-product-slider .slide{
    height: 100%;
}

.ultimate-product-slider .slick-slide{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ultimate-product-slider .slick-slide > div {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ultimate-product-slider .slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    
}

/* Image Counter */
.image-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    z-index: 5;
}


.ultimate-product-thumbnails-wrapper{
    position: absolute;
    top: 15%;
    left: 50px;
    height: 50px;
    width: 70%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transform: rotate(90deg);
    transform-origin: top left;
}

/* Thumbnails */
.ultimate-product-thumbnails {
    width: 100%;
}

.ultimate-product-thumbnails .slick-slide{
    width: 50px;
    height: 50px;
}

.ultimate-product-thumbnails .thumb-slide {
    padding: 1px;
    width: 50px !important;
    height: 50px !important;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.ultimate-product-thumbnails .thumb-slide img {
    width: 100%;
    cursor: pointer;
    border-radius: 7px;
    transform: rotate(-90deg);
}

/* Slick Slider Styles */
.slick-slide {
    outline: none;
}

.slick-arrow {
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

@media (max-width: 768px) {
    .slick-arrow {
        display: none;
    }
}

/* Adjust zoom window position */
.zoomWindow {
    z-index: 9999;
}


/* Loader Styles */
.slider-loader {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.slider-loader .loading-img {
    width: 100%;
    height: 100%;
}

/* Hide the slider content initially */
.slider-content {
    display: none;
    height: 100%;
    position: relative;
}

.mfp-wrap{
    z-index: 9999999;
}

.mfp-fade{
    z-index: 9999999;
}


.slick-prev {
    height: 40px;
    left: 10px;
    top: 50%;
    transform: translate(0, -50%);
    width: 40px;
    z-index: 10;
}

.slick-prev::before {
    display: none;
}

.slick-next {
    height: 40px;
    left: inherit;
    right: 10px;
    top: 50%;
    transform: translate(0, -50%);
    width: 40px;
    z-index: 10;
}

.slick-next::before {
    display: none;
}

.slick-arrow {
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex !important;
    justify-content: center;
    transition: 0.3s ease-in-out;
}

.slick-arrow:hover {
    background-color: #ddd;
    color: #fff;
}


.ultimate-product-thumbnails .slick-prev{
    left: -50px;
    border: none;
}

.ultimate-product-thumbnails .slick-next{
    right: -50px;
    border: none;
}

.ultimate-product-thumbnails .slick-current .thumb-slide {
    border: 1px solid #135B8E;
}

.slick-arrow.slick-disabled {
    display: none !important;
}

@media (max-width: 1024px) {
    .ultimate-product-slider-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        margin-left: 0;
    }
    .ultimate-product-thumbnails{
        display: none !important;
    }
    .ultimate-product-slider{
        margin-left: 0px !important;
    }

    .image-counter{
        top: inherit;
        right: inherit;
        bottom: 10px;
        left: 10px;
    }
}



.ultimate-product-slider-wrapper .loading-wave {
	animation: 1s loading ease-in-out infinite;
	background: linear-gradient(100deg,
	rgba(255, 255, 255, 0) 40%,
	rgba(255, 255, 255, 0.5) 50%,
	rgba(255, 255, 255, 0) 60%)
		var(--loading-grey);
	background-color: var(--loading-grey);
	background-position-x: 180%;
	background-size: 200% 100%;
}

@keyframes loading {
	to {
		background-position-x: -20%;
	}
}
