/* ========================================
   PRODUCT PREVIEW MODAL - ORIGINAL DESIGN
   ======================================== */

.preview_main {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 9999 !important;
	pointer-events: none !important;
	display: block !important;
}

.preview_main>* {
	pointer-events: auto !important;
}

.image_preview {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	height: 100vh !important;
	width: 100vw !important;
	min-width: 100%;
	z-index: 999999999 !important;
	background: rgba(0, 0, 0, 0.6) !important;
	backdrop-filter: blur(8px) !important;
	overflow: hidden !important;
	display: none;
	align-items: center !important;
	justify-content: center !important;
}

.image_preview .preview_content {
	position: relative;
	width: 95%;
	max-width: 1200px;
	max-height: 90vh;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow-y: auto;
	padding: 0;
	animation: slideUp 0.3s ease-out;
	display: block;
}

/* Desktop: Split layout - Image left, Content right */
@media (min-width: 768px) {
	.scroll_preview_content {
		height: 100%;
		overflow-y: auto;
	}

	.image_preview .preview_content {
		display: flex;
		flex-direction: row;
		max-height: 85vh;
		overflow: hidden;
	}

	/* Left side - Image carousel */
	.image_preview .preview_content>.product_carousel {
		flex-shrink: 0;
		overflow-y: auto;
		height: 100%;
	}

	/* Right side - Content wrapper */
	.image_preview .preview_content>*:not(.product_carousel):not(#preview_cancel) {
		width: 55%;
		overflow-y: auto;
		height: 100%;
		padding: 30px;
	}

	.image_preview .preview_content {
		align-items: flex-start;
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Close/Back Button */
.image_preview #preview_cancel {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	width: 40px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image_preview #preview_cancel:hover {
	background: #e8524a;
	transform: scale(1.1);
}

/* Desktop: Move close button to top-right and change to X */
@media (min-width: 768px) {
	.image_preview #preview_cancel {
		top: 20px;
		right: 20px;
		left: auto;
		height: 48px;
		width: 48px;
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
		border: 2px solid rgba(255, 255, 255, 0.3);
	}

	.image_preview #preview_cancel i {
		display: none;
	}

	.image_preview #preview_cancel::before {
		content: "×";
		font-size: 32px;
		font-weight: 300;
		line-height: 1;
	}

	.image_preview #preview_cancel:hover {
		background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
		transform: scale(1.05) rotate(90deg);
		box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
	}
}

/* Mobile Optimizations */
@media (max-width: 767px) {
	.image_preview .preview_content {
		width: 100%;
		max-width: 100%;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
		margin: 0;
	}
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
	.image_preview .preview_content {
		width: 90%;
		max-width: 900px;
	}
}

/* Large Desktop Optimizations */
@media (min-width: 1200px) {
	.image_preview .preview_content {
		max-width: 1400px;
	}
}

/* Active Product Styling */
.variant_popup_body2 {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 0 20px;
}

.variant_popup_body2 .product_item {
	position: relative;
	border: 2px solid transparent;
	border-radius: 8px;
	margin-bottom: 0;
	padding: 10px;
	transition: all 0.3s ease;
	cursor: pointer;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.variant_popup_body2 .product_item.active,
.variant_popup_body2 .product_item[data-active="true"] {
	border-color: #007bff !important;
	background-color: rgba(0, 123, 255, 0.08) !important;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
	transform: scale(1.02);
}

.variant_popup_body2 .product_item:hover {
	border-color: #007bff;
	background-color: rgba(0, 123, 255, 0.03);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Active product indicator */
.variant_popup_body2 .product_item.active::before,
.variant_popup_body2 .product_item[data-active="true"]::before {
	content: "✓";
	position: absolute;
	top: 10px;
	right: 10px;
	background: #007bff;
	color: white;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
	z-index: 10;
}

/* Product Carousel Slider Fixes */
.image_preview .product_carousel {
	position: relative;
}

.image_preview .product_carousel .carousel-inner {
	border-radius: 12px;
	overflow: hidden;
}

.image_preview .product_carousel .carousel-item img {
	object-fit: contain !important;
	width: 100% !important;
	height: 400px !important;
	background: #f8f9fa;
}

/* Carousel Controls */
.image_preview .carousel-control-prev,
.image_preview .carousel-control-next {
	width: 50px !important;
	height: 50px !important;
	background: rgba(0, 0, 0, 0.6) !important;
	border-radius: 50% !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	opacity: 0.8 !important;
	transition: all 0.3s ease !important;
}

.image_preview .carousel-control-prev {
	left: 15px !important;
}

.image_preview .carousel-control-next {
	right: 15px !important;
}

.image_preview .carousel-control-prev:hover,
.image_preview .carousel-control-next:hover {
	opacity: 1 !important;
	background: rgba(0, 0, 0, 0.8) !important;
	transform: translateY(-50%) scale(1.1) !important;
}

.image_preview .carousel-control-prev-icon,
.image_preview .carousel-control-next-icon {
	width: 24px !important;
	height: 24px !important;
}

/* Carousel Indicators */
.image_preview .carousel-indicators {
	bottom: 15px !important;
	margin-bottom: 0 !important;
}

.image_preview .carousel-indicators button {
	width: 12px !important;
	height: 12px !important;
	border-radius: 50% !important;
	margin: 0 5px !important;
	background: rgba(255, 255, 255, 0.6) !important;
	border: 2px solid rgba(255, 255, 255, 0.8) !important;
	transition: all 0.3s ease !important;
}

.image_preview .carousel-indicators button.active {
	background: #007bff !important;
	border-color: #007bff !important;
	transform: scale(1.2) !important;
}

/* Mobile carousel adjustments */
@media (max-width: 767px) {
	.image_preview .product_carousel .carousel-item img {
		height: 300px !important;
	}

	.image_preview .carousel-control-prev,
	.image_preview .carousel-control-next {
		width: 40px !important;
		height: 40px !important;
	}

	.image_preview .carousel-control-prev {
		left: 10px !important;
	}

	.image_preview .carousel-control-next {
		right: 10px !important;
	}
}

/* Provider Info (Seller By) Section Styling */
.provider_info_div {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	border: 1px solid #e9ecef;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.provider_col {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 15px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	border-left: 3px solid #007bff;
}

.provider_col:last-child {
	margin-bottom: 0;
}

.provider_col span:first-child {
	font-size: 12px;
	color: #6c757d;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.provider_col span:last-child {
	font-size: 16px;
	color: #212529;
	font-weight: 600;
	line-height: 1.4;
}

.provider_col a {
	color: #007bff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.provider_col a:hover {
	color: #0056b3;
	text-decoration: underline;
}

/* Comments Section Styling */
.comments_div {
	margin: 20px 0;
}

.comment_head {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #007bff;
	display: inline-block;
}

.comment_box {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
	border: 1px solid #e9ecef;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.comment_box_sub_1 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f1f3f4;
}

.comment_box_sub_1 img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e9ecef;
}

.comment_box_sub_1 span {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.comment_box p {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin: 0;
}

/* Fix Preview Modal Display Issues */
.image_preview {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	height: 100vh !important;
	width: 100vw !important;
	min-width: 100% !important;
	z-index: 999999999 !important;
	background: rgba(0, 0, 0, 0.6) !important;
	backdrop-filter: blur(8px) !important;
	overflow: hidden !important;
	display: none !important;
	align-items: center !important;
	justify-content: center !important;
}

.image_preview.show,
.image_preview[style*="display: block"],
.image_preview[style*="display: flex"] {
	display: flex !important;
}

.image_preview .preview_content {
	position: relative !important;
	width: 95% !important;
	max-width: 1200px !important;
	max-height: 90vh !important;
	background: #fff !important;
	border-radius: 16px !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
	overflow-y: auto !important;
	padding: 0 !important;
	animation: slideUp 0.3s ease-out !important;
	display: block !important;
}

/* Product Title and Description */
.preview_title {
	font-size: 24px;
	font-weight: 700;
	color: #333;
	margin: 20px 20px 10px 20px;
	line-height: 1.3;
}

.preview_desc {
	font-size: 16px;
	color: #666;
	line-height: 1.5;
	margin: 0 20px 20px 20px;
}

/* Policy Row Styling */
.fx-policy-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

/* Desktop/Laptop: Keep policy items in one row */
@media (min-width: 768px) {
	.fx-policy-row {
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
		gap: 15px !important;
	}

	.fx-policy-item {
		flex: 1 !important;
		min-width: auto !important;
		max-width: none !important;
	}
}

.fx-policy-item {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 150px;
	padding: 8px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 6px;
}

.fx-policy-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 4px;
}

.fx-policy-label {
	font-size: 13px;
	color: #666;
	font-weight: 500;
}

/* Mobile View Fixes */
@media (max-width: 767px) {

	/* Remove top space in modal */
	.image_preview .preview_content {
		width: 100% !important;
		max-width: 100% !important;
		height: 100vh !important;
		max-height: 100vh !important;
		border-radius: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* Fix carousel image centering - without flex to preserve slider functionality */
	.image_preview .product_carousel {
		height: 50vh !important;
		background: #f8f9fa !important;
		position: relative !important;
	}

	.image_preview .product_carousel .carousel-inner {
		height: 100% !important;
		width: 100% !important;
	}

	.image_preview .product_carousel .carousel-item {
		height: 100% !important;
		position: relative !important;
	}

	.image_preview .product_carousel .carousel-item img {
		position: absolute !important;
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
		height: auto !important;
		max-height: 90% !important;
		width: auto !important;
		max-width: 90% !important;
		object-fit: contain !important;
	}

	/* Fix policy row - reduce only left-right spacing */
	.fx-policy-row {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 6px !important;
		margin: 15px 5px !important;
		padding: 12px 8px !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}

	.fx-policy-item {
		flex: 0 0 auto !important;
		min-width: 110px !important;
		padding: 6px 4px !important;
		text-align: center !important;
		white-space: nowrap !important;
	}

	.fx-policy-icon {
		width: 18px !important;
		height: 18px !important;
		margin: 0 auto 3px auto !important;
		display: block !important;
	}

	.fx-policy-label {
		font-size: 10px !important;
		line-height: 1.1 !important;
		display: block !important;
	}

	/* Adjust content spacing - reduce only left-right padding, keep top-bottom */
	.preview_title {
		margin: 15px 5px 8px 5px !important;
		font-size: 18px !important;
	}

	.preview_desc {
		margin: 0 5px 15px 5px !important;
		font-size: 13px !important;
	}

	/* Provider info mobile adjustments - reduce only left-right padding */
	.provider_info_div {
		margin: 15px 5px !important;
		padding: 15px 8px !important;
	}

	.provider_col {
		margin-bottom: 12px !important;
		padding: 10px 6px !important;
	}

	/* Comments mobile adjustments - reduce only left-right padding */
	.comments_div {
		margin: 15px 5px !important;
	}

	.comment_box {
		margin: 0 5px 12px 5px !important;
		padding: 12px 8px !important;
	}

	/* Variant items mobile adjustments - reduce only left-right padding */
	.variant_popup_body2 {
		padding: 0 5px !important;
		gap: 12px !important;
	}

	.variant_popup_body2 .product_item {
		margin: 0 !important;
		padding: 12px 8px !important;
	}
}

/* Extra small mobile devices */
@media (max-width: 480px) {
	.fx-policy-item {
		min-width: 100px !important;
		padding: 6px 4px !important;
	}

	.fx-policy-label {
		font-size: 10px !important;
	}

	.fx-policy-icon {
		width: 18px !important;
		height: 18px !important;
	}
}

/* ========================================
   VIEW PRODUCT PAGE - FULL SCREEN STYLING
   ======================================== */

/* Full-screen view product page styling */
.view_product_page {
	height: 100vh;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Header styling */
.view_product_header {
	position: relative;
	z-index: 1000;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
	height: 60px;
}

.header_left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.back_btn {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.back_btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
}

.header_logo {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.header_title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	color: white;
}

.header_actions {
	display: flex;
	gap: 8px;
}

.share_btn_header {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.share_btn_header:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
}

/* Content area using preview styling */
.view_product_content {
	background: #fff;
	flex: 1;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 60px);
	overflow: hidden;
}

/* Apply preview content styling to view product page */
.view_product_content .preview_content {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	max-height: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
	padding: 0 !important;
	animation: none !important;
	display: flex !important;
	background: #fff !important;
	position: relative !important;
	flex: 1;
}

/* Desktop layout for view product page */
@media (min-width: 768px) {
	.view_product_content .preview_content {
		display: flex !important;
		flex-direction: row !important;
		height: 100% !important;
		overflow: hidden !important;
	}

	.view_product_content .product_carousel {
		width: 45% !important;
		flex-shrink: 0 !important;
		overflow: hidden !important;
		height: 100% !important;
		position: relative !important;
		background: #f8f9fa !important;
	}

	.view_product_content .scroll_preview_content {
		width: 55% !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		height: 100% !important;
		padding: 30px !important;
	}
}

/* Mobile layout */
@media (max-width: 767px) {
	.view_product_page {
		height: auto;
		min-height: 100vh;
		overflow: visible;
	}

	.view_product_content {
		height: auto;
		overflow: visible;
	}

	.view_product_content .preview_content {
		display: flex !important;
		flex-direction: column !important;
		height: auto !important;
		overflow: visible !important;
	}

	.view_product_content .product_carousel {
		width: 100% !important;
		height: 50vh !important;
		flex-shrink: 0 !important;
		overflow: hidden !important;
		position: relative !important;
		background: #f8f9fa !important;
	}

	.view_product_content .scroll_preview_content {
		width: 100% !important;
		flex: none !important;
		overflow: visible !important;
		padding: 20px !important;
	}
}

/* Fix carousel styling for view product page */
.view_product_content .product_carousel .carousel {
	height: 100% !important;
}

.view_product_content .product_carousel .carousel-inner {
	height: 100% !important;
	border-radius: 0 !important;
}

.view_product_content .product_carousel .carousel-item {
	height: 100% !important;
	position: relative !important;
}

.view_product_content .product_carousel .carousel-item img {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	height: auto !important;
	max-height: 90% !important;
	width: auto !important;
	max-width: 90% !important;
	object-fit: contain !important;
}

/* Ensure carousel controls are visible */
.view_product_content .carousel-control-prev,
.view_product_content .carousel-control-next {
	width: 50px !important;
	height: 50px !important;
	background: rgba(0, 0, 0, 0.6) !important;
	border-radius: 50% !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	opacity: 0.8 !important;
	transition: all 0.3s ease !important;
	z-index: 10 !important;
}

.view_product_content .carousel-control-prev {
	left: 15px !important;
}

.view_product_content .carousel-control-next {
	right: 15px !important;
}

.view_product_content .carousel-control-prev:hover,
.view_product_content .carousel-control-next:hover {
	opacity: 1 !important;
	background: rgba(0, 0, 0, 0.8) !important;
	transform: translateY(-50%) scale(1.1) !important;
}

.view_product_content .carousel-control-prev-icon,
.view_product_content .carousel-control-next-icon {
	width: 24px !important;
	height: 24px !important;
}

/* Carousel indicators */
.view_product_content .carousel-indicators {
	bottom: 15px !important;
	margin-bottom: 0 !important;
	z-index: 10 !important;
}

.view_product_content .carousel-indicators button {
	width: 12px !important;
	height: 12px !important;
	border-radius: 50% !important;
	margin: 0 5px !important;
	background: rgba(255, 255, 255, 0.6) !important;
	border: 2px solid rgba(255, 255, 255, 0.8) !important;
	transition: all 0.3s ease !important;
}

.view_product_content .carousel-indicators button.active {
	background: #007bff !important;
	border-color: #007bff !important;
	transform: scale(1.2) !important;
}

/* Mobile responsive header */
@media (max-width: 767px) {
	.header_title {
		font-size: 16px;
	}

	.header_logo {
		width: 28px;
		height: 28px;
	}

	.back_btn,
	.share_btn_header {
		width: 32px;
		height: 32px;
	}

	.view_product_content .carousel-control-prev,
	.view_product_content .carousel-control-next {
		width: 40px !important;
		height: 40px !important;
	}

	.view_product_content .carousel-control-prev {
		left: 10px !important;
	}

	.view_product_content .carousel-control-next {
		right: 10px !important;
	}
}

/* View Product Page - Provider Info Styling (same as preview modal) */
.view_product_content .provider_info_div {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	border: 1px solid #e9ecef;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view_product_content .provider_col {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 15px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	border-left: 3px solid #007bff;
}

.view_product_content .provider_col:last-child {
	margin-bottom: 0;
}

.view_product_content .provider_col span:first-child {
	font-size: 12px;
	color: #6c757d;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.view_product_content .provider_col span:last-child {
	font-size: 16px;
	color: #212529;
	font-weight: 600;
	line-height: 1.4;
}

.view_product_content .provider_col a {
	color: #007bff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.view_product_content .provider_col a:hover {
	color: #0056b3;
	text-decoration: underline;
}

/* Mobile adjustments for view product provider info */
@media (max-width: 767px) {
	.view_product_content .provider_info_div {
		margin: 15px 5px !important;
		padding: 15px 8px !important;
	}

	.view_product_content .provider_col {
		margin-bottom: 12px !important;
		padding: 10px 6px !important;
	}
}