/* Quick View Button on Product Grid */
/* .quick-view-button {
margin-top: 10px;
width: calc(100% - 20px);
margin-left: 10px;
display: block;
text-align: center;
} */

/* Popup Wrapper & Overlay */
#qv-popup-wrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
}

#qv-popup-wrapper.is-open {
	display: block;
}

.qv-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

/* Popup Container */
#qv-popup-container {
	position: fixed;
	top: 0;
	right: -100%;
	/* Start off-screen */
	width: 100%;
	max-width: 500px;
	height: 100%;
	background: #fff;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
	transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	overflow-y: auto;
	z-index: 100001;
	display: flex;
	flex-direction: column;
}

#qv-popup-wrapper.is-open #qv-popup-container {
	right: 0;
}

/* Popup Content */
.qv-popup-content {
	display: flex;
    flex-direction: column;
	position: relative;
	flex-grow: 1;
}

.loading-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: translate(-50%, -50%) rotate(0deg);
	}

	100% {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* Header */
.qv-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding: 15px;
}

.qv-header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
}

.qv-close-button {
	background-color: white !important;
	color: black !important;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0 5px;
	color: #555;
}

/* Image Gallery Slider */
.qv-image-slider {
	position: relative;
	overflow: hidden;
	margin-bottom: 20px;
}

.qv-slider-inner {
	display: flex;
	transition: transform 0.3s ease-in-out;
}

.qv-slider-inner img {
	width: 100%;
	flex-shrink: 0;
	height: auto;
}

.qv-image-slider .swiper-slide{
    padding: 0 2px;
}

.qv-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 10px;
	box-sizing: border-box;
	pointer-events: none;
	/* Let clicks pass through to buttons */
}

.qv-slider-prev, .qv-slider-next {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	pointer-events: all;
	/* Make buttons clickable */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.qv-popup-content .swiper-button-prev , .qv-popup-content .swiper-button-next{
    display: none;
}

.qv-slider-prev:disabled, .qv-slider-next:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Product Details */
.qv-product-details {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
}

.qv-product-details h1 {
	font-size: 20px;
	margin: 0 15px 0 0;
	line-height: 1.3;
	font-weight: 500;
}

.qv-product-price {
	font-size: 16px;
	font-weight: 400;
	color: #4CAF50;
	white-space: nowrap;
	margin-left: 15px;
}

/* Variations */
.qv-variations {
	margin: 0 15px 20px 0;
}

.qv-variations h3 {
	font-size: 16px;
	margin: 0 0 10px 0;
    display: none;
}

.qv-size-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.qv-size-option {
	border-bottom: 1px solid #cccccc73;
	padding: 8px 15px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.qv-size-option.selected {
	background-color: #333;
	color: #fff;
	border-color: #333;
}

.qv-size-option.out-of-stock {
	background-color: #f5f5f5;
	color: #aaa;
	border-color: #eee;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Description & Link */
.qv-description {
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	margin-right: 12px;
	font-weight: 400;
}

.qv-product-link {
	display: inline-block;
	margin-bottom: 25px;
	font-size: 14px;
	margin-right: 15px;
    font-weight: 400;
    text-decoration: underline;
}

form.qv-add-to-cart-form {
    display: flex;
    align-items: flex-end;
    flex: 1;
    position: sticky;
    bottom: 0;
    margin-top: auto;
}

.qv-add-to-cart-button {
	width: 100%;
	padding: 15px;
	background-color: #28a745;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	font-family: 'heebo' !important;
	transition: background-color 0.2s ease;
}

.qv-add-to-cart-button:hover:not(:disabled) {
	background-color: #4f4f4f;
}

.qv-add-to-cart-button:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
}






/* Image Gallery Slider (Swiper) */
.qv-image-slider {
	position: relative;
	margin-bottom: 20px;
	aspect-ratio: 2 / 1;
	background-color: #f7f7f7;
}

.qv-image-slider .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

.qv-image-slider img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

/* Style Swiper navigation buttons */
.qv-image-slider .swiper-button-next,
.qv-image-slider .swiper-button-prev {
	--swiper-navigation-color: #333;
	--swiper-navigation-size: 25px;
}
