/* Product Gallery Slider Styles */
.industrial-product-gallery-slider {
	max-width: 600px;
	margin: 0 auto;
}

/* Main slider container */
.industrial-product-gallery-slider .main-slider {
	width: 100%;
	margin-bottom: 15px;
	position: relative;
}

.industrial-product-gallery-slider .main-slider .slider-item {
	width: 100%;
	height: 450px; /* Adjusted to better match form height */
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.industrial-product-gallery-slider .main-slider .slider-item a {
	display: block;
	width: 100%;
	height: 100%;
}

.industrial-product-gallery-slider .main-slider .slider-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.industrial-product-gallery-slider .main-slider .slider-item:hover img {
	transform: scale(1.05);
}

/* Slick slider control buttons */
.industrial-product-gallery-slider .main-slider .slick-prev,
.industrial-product-gallery-slider .main-slider .slick-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.industrial-product-gallery-slider .main-slider .slick-prev:hover,
.industrial-product-gallery-slider .main-slider .slick-next:hover {
	background: rgba(0, 0, 0, 0.8);
}

.industrial-product-gallery-slider .main-slider .slick-prev {
	left: 15px;
}

.industrial-product-gallery-slider .main-slider .slick-next {
	right: 15px;
}

.industrial-product-gallery-slider .main-slider .slick-prev:before,
.industrial-product-gallery-slider .main-slider .slick-next:before {
	color: white;
	font-size: 20px;
	opacity: 1;
}

/* Thumbnail slider */
.industrial-product-gallery-slider .thumbnail-slider {
	width: 100%;
}

.industrial-product-gallery-slider .thumbnail-slider .thumb-item {
	padding: 0 5px;
	cursor: pointer;
}

.industrial-product-gallery-slider .thumbnail-slider .thumb-item img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	object-position: center;
	border: 2px solid transparent;
	border-radius: 4px;
	transition: all 0.3s ease;
	opacity: 0.6;
}

.industrial-product-gallery-slider .thumbnail-slider .thumb-item:hover img,
.industrial-product-gallery-slider .thumbnail-slider .slick-current.slick-active .thumb-item img {
	opacity: 1;
	border-color: #e74c3c;
}

.industrial-product-gallery-slider .thumbnail-slider .slick-track {
	display: flex;
	align-items: center;
}

/* Inquiry form styles */
.product-inquiry-form {
	margin-top: 30px;
	padding: 25px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
}

.product-inquiry-form .inquiry-form-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #333;
}

.product-inquiry-form .form-row {
	margin-bottom: 15px;
}

.product-inquiry-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #555;
	font-size: 14px;
}

.product-inquiry-form label .required {
	color: #e74c3c;
	margin-left: 2px;
}

.product-inquiry-form input[type="text"],
.product-inquiry-form input[type="email"],
.product-inquiry-form input[type="tel"],
.product-inquiry-form textarea {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: all 0.3s ease;
	background: white;
}

.product-inquiry-form input[type="text"]:focus,
.product-inquiry-form input[type="email"]:focus,
.product-inquiry-form input[type="tel"]:focus,
.product-inquiry-form textarea:focus {
	outline: none;
	border-color: #e74c3c;
	box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.product-inquiry-form textarea {
	resize: vertical;
	min-height: 100px;
}

.product-inquiry-form .inquiry-submit-btn {
	width: 100%;
	padding: 12px 25px;
	background: #e74c3c;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.product-inquiry-form .inquiry-submit-btn:hover {
	background: #c0392b;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.product-inquiry-form .inquiry-form-response {
	margin-top: 15px;
	padding: 15px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	display: none;
}

.product-inquiry-form .inquiry-form-response.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.product-inquiry-form .inquiry-form-response.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Product detail page layout optimization */
/* Product header info (category and title) above gallery */
.single-product .product-header-info {
	width: 100%;
	margin-bottom: 20px;
	clear: both;
}

.single-product .product-header-info .product_meta {
	font-size: 13px;
	color: #666;
	margin-bottom: 10px;
}

.single-product .product-header-info .product_meta a {
	color: #e74c3c;
	text-decoration: none;
}

.single-product .product-header-info .product_meta a:hover {
	text-decoration: underline;
}

.single-product .product-header-info .product_title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 15px 0;
	line-height: 1.3;
}

/* Hide sidebar on product detail page */
.single-product .sidebar,
.single-product aside,
.single-product #sidebar {
	display: none !important;
}

/* Make main content full width when sidebar is hidden */
.single-product .contentHolder,
.single-product .btContentHolder,
.single-product .woocommerce-page,
.single-product .btContent {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto;
}

/* Create a flex container for gallery and summary only */
.single-product div.product {
	display: block;
}

/* Gallery and summary container wrapper */
.single-product .industrial-product-gallery-slider,
.single-product div.product .summary.entry-summary {
	display: inline-block;
	vertical-align: top;
}

.single-product div.product .industrial-product-gallery-slider {
	width: 45%;
	float: left;
	margin-right: 5%;
	margin-top: 0;
}

.single-product div.product .summary.entry-summary {
	width: 50%;
	float: left;
	padding: 0;
	margin-top: 0;
	min-height: 600px; /* Ensure minimum height to match gallery */
}

/* Ensure top alignment */
.single-product div.product .summary.entry-summary > * {
	margin-top: 0;
}

.single-product div.product .summary.entry-summary > *:first-child {
	margin-top: 0;
	padding-top: 0;
}

/* Clear float after summary */
.single-product div.product .summary.entry-summary::after,
.single-product div.product::after {
	content: "";
	display: table;
	clear: both;
}

/* Hide short description if it somehow appears */
.single-product .woocommerce-product-details__short-description {
	/* display: none !important; */
}

/* Reduce spacing between elements in summary */
.single-product .summary.entry-summary .product_title {
	margin-bottom: 15px;
	margin-top: 0;
}

.single-product .summary.entry-summary .woocommerce-product-rating {
	margin-bottom: 15px;
	margin-top: 0;
}

.single-product .summary.entry-summary .price {
	margin: 0;
}

/* Ensure content after summary clears the floats */
.single-product .woocommerce-tabs,
.single-product .related,
.single-product .upsells {
	clear: both;
	margin-top: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
	.single-product .product-header-info .product_title {
		font-size: 22px;
	}

	.single-product div.product .industrial-product-gallery-slider,
	.single-product div.product .summary.entry-summary {
		width: 100%;
		float: none;
		margin-right: 0;
		margin-bottom: 20px;
		min-height: auto;
	}

	.industrial-product-gallery-slider .main-slider .slider-item {
		height: 350px;
	}

	.industrial-product-gallery-slider .thumbnail-slider .thumb-item img {
		height: 80px;
	}

	.product-inquiry-form {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.single-product .product-header-info .product_title {
		font-size: 20px;
	}

	.industrial-product-gallery-slider .main-slider .slider-item {
		height: 300px;
	}

	.industrial-product-gallery-slider .thumbnail-slider .thumb-item img {
		height: 60px;
	}

	.industrial-product-gallery-slider .main-slider .slick-prev,
	.industrial-product-gallery-slider .main-slider .slick-next {
		width: 30px;
		height: 30px;
	}

	.industrial-product-gallery-slider .main-slider .slick-prev:before,
	.industrial-product-gallery-slider .main-slider .slick-next:before {
		font-size: 16px;
	}
}

/* Magnific Popup - Gallery Lightbox Customization */
/* Position close button in top-right corner */
.mfp-close {
	position: fixed !important;
	top: 20px !important;
	right: 20px !important;
	left: auto !important;
	width: 44px !important;
	max-width: 44px !important;
	height: 44px;
	line-height: 44px;
	font-size: 28px;
	opacity: 0.8;
	cursor: pointer;
	background: transparent !important;
	border: none !important;
	transition: opacity 0.3s ease;
	color: #fff;
	text-align: center;
	padding: 0 !important;
}

/* Hide the ::before pseudo-element to avoid duplicate X */
.mfp-close::before {
	display: none !important;
}

/* Remove hover background and border effects */
.mfp-close:hover,
.mfp-close:active,
.mfp-close:focus {
	background: transparent !important;
	border: none !important;
	outline: none !important;
	opacity: 1;
	transform: none !important;
	width: 44px !important;
	height: 44px !important;
	color: #fff;
}

/* Override any title positioning */
.mfp-title {
	padding-right: 0;
}

/* Hide filename/title below the image */
.mfp-title,
.mfp-bottom-bar,
.mfp-counter {
	display: none !important;
}

/* Product Profile Module Styles */
.product-profile-module {
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.product-profile-header {
	background: #333;
	padding: 15px 25px;
	border-bottom: 1px solid #e5e5e5;
}

.profile-module-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	color: #fff !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-profile-content {
	padding: 25px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.profile-meta {
	font-size: 13px;
	color: #666;
	margin-bottom: 15px;
}

.profile-meta a {
	color: #e74c3c;
	text-decoration: none;
	font-weight: 500;
}

.profile-meta a:hover {
	text-decoration: underline;
}

.profile-title {
	margin-bottom: 20px;
}

.profile-title .product_title {
	font-size: 22px !important;
	font-weight: 600;
	margin: 0;
	line-height: 1.4;
	color: #333;
}

.profile-description {
	margin-bottom: 25px;
	flex: 1;
}

.profile-description p {
	font-size: 14px;
	line-height: 1.8;
	color: #555;
	margin: 0;
}

.profile-actions {
	display: flex;
	gap: 12px;
	margin-top: auto;
}

.profile-btn {
	flex: 1;
	padding: 14px 20px;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

.profile-btn-download {
	background: #fff;
	color: #333;
	border: 2px solid #333;
}

.profile-btn-download:hover {
	background: #333;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-btn-inquiry {
	background: #e74c3c;
	color: white;
}

.profile-btn-inquiry:hover {
	background: #c0392b;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Inquiry Modal Styles */
.inquiry-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.inquiry-modal.show {
	display: block;
}

.inquiry-modal-content {
	background-color: #fff;
	margin: 5% auto;
	padding: 0;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	position: relative;
	animation: slideDown 0.3s ease;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.inquiry-modal-close {
	position: absolute;
	right: 20px;
	top: 20px;
	color: #aaa;
	font-size: 32px;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
	transition: color 0.3s ease;
	z-index: 1;
	background: none;
	border: none;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.inquiry-modal-close:hover,
.inquiry-modal-close:focus {
	color: #333;
}

.inquiry-modal .product-inquiry-form {
	margin: 0;
	background: transparent;
	border: none;
	padding: 30px;
}

/* Ensure gallery and profile are equal height */
.single-product div.product .summary.entry-summary {
	display: flex;
	flex-direction: column;
}

.single-product div.product .summary.entry-summary .product-profile-module {
	min-height: 565px; /* Match gallery height: 450px slider + 100px thumbnails + 15px gap */
}

/* Responsive adjustments for Product Profile */
@media (max-width: 768px) {
	.profile-title .product_title {
		font-size: 20px !important;
	}

	.profile-actions {
		flex-direction: column;
	}

	.profile-btn {
		width: 100%;
	}

	.single-product div.product .summary.entry-summary .product-profile-module {
		min-height: auto;
	}

	.inquiry-modal-content {
		width: 95%;
		margin: 10% auto;
	}

	.inquiry-modal .product-inquiry-form {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.profile-module-title {
		font-size: 16px;
	}

	.profile-title .product_title {
		font-size: 18px !important;
	}

	.profile-description p {
		font-size: 13px;
	}

	.profile-btn {
		font-size: 14px;
		padding: 12px 16px;
	}
}

