.product-detail-modern {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: linear-gradient(135deg, #fafbfd 0%, #f8fafc 100%);
	min-height: 100vh;
	padding: 16px 0;
}

.Product-Detail-card {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 16px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.02);
	overflow: hidden;
}


.product-img-section-md {
	position: relative;
	padding: 0 12px;
	align-self: stretch;
	position: static;
	top: auto;
}

.product-gallery-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.product-gallery-main {
	width: 100%;
	max-height: 620px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.product-gallery-main .swiper,
.product-gallery-main .swiper-container {
	width: 100%;
	max-height: inherit;
	height: 520px;
	position: relative;
}


.product-img-section-md .mySwiper-preview {
	width: 100% !important;
	max-width: 100% !important;
	height: 520px !important;
	min-height: 520px;
	border-radius: 24px;
	overflow: hidden;
	position: relative;
}

.product-img-section-md .mySwiper-preview .swiper-wrapper,
.product-img-section-md .mySwiper-preview .swiper-slide {
	width: 100% !important;
	min-height: 500px;
}

.product-gallery-main .swiper-slide .zoomWrapper,
.product-gallery-main .swiper-slide .zoomWrapper .zoomWrapper {
	position: static !important;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
	backface-visibility: hidden;
}

.product-gallery-main .swiper-slide .zoomWrapper img {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
}

.product-gallery-thumbs {
	width: 100%;
}

.mySwiper-preview .swiper-slide,
.mySwiper .swiper-slide {
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-gallery-main .swiper-button-next,
.product-gallery-main .swiper-button-prev {
	color: #0f172a;
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
	border: 1px solid rgba(15, 23, 42, 0.08);
	z-index: 5;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.product-gallery-main .swiper-button-next::after,
.product-gallery-main .swiper-button-prev::after {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	opacity: 1 !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
	display: block !important;
	font-family: 'Segoe UI', 'Arial', sans-serif !important;
}

.product-gallery-main .swiper-button-next::after {
	content: '\00bb' !important;
}

.product-gallery-main .swiper-button-prev::after {
	content: '\00ab' !important;
}

.product-gallery-main .swiper-button-next,
.product-gallery-main .swiper-button-prev {
	transform: translateY(-50%);
	top: 50%;
}

.product-img-section-md .mySwiper-preview .swiper-slide {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 500px;
	padding-top: 0;
}

.mySwiper-preview .swiper-slide img,
.mySwiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.5s ease;
	object-position: top center;
}

.product-img-section-md .mySwiper-preview .swiper-slide img {
	max-height: 720px;
}

.product-img-section-md .mySwiper-preview .swiper-slide:hover img,
.mySwiper .swiper-slide:hover img {
	transform: scale(1.02);
}

.image-Thumbnail-container {
	margin-top: 8px;
	width: 100%;
	padding-bottom: 8px;
}

.image-Thumbnail-container .swiper {
	padding: 0;
}

/* Override legacy thumb container that forces large heights (e.g. 400px) */
.mySwiper-thumb,
.gallery-thumbs-1,
.image-Thumbnail-container .mySwiper-thumb {
	height: auto !important;
	max-height: 120px !important; /* keep thumbnails compact */
	box-sizing: border-box !important;
}

.mySwiper-thumb .swiper-wrapper {
	align-items: center !important; /* center thumbs vertically */
}

.mySwiper-thumb .swiper-slide {
	height: 96px !important;
	width: 96px !important;
	max-height: 96px !important;
}

.image-Thumbnail-container .swiper-slide {
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid transparent;
	transition: all .3s;
	cursor: pointer;
	width: 96px;
	height: 96px;
	flex: 0 0 auto;
}

.image-Thumbnail-container .swiper-slide:hover,
.image-Thumbnail-container .swiper-slide-thumb-active {
	border-color: var(--primary-color);
	transform: none;
	z-index: 6;
	box-shadow: 0 6px 18px rgba(var(--primary-color-rgb, 97, 51, 189), 0.18);
}

.image-Thumbnail-container .product-swiper-slide img {
	width: 100%;
	max-height: 90px;
	object-fit: contain;
	border-radius: 10px;
}

.image-Thumbnail-container .xzoom-thumbs {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 6px;
}


.image-Thumbnail-container .swiper-wrapper {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 8px;
	max-width: 100%;
	box-sizing: border-box;
}

.image-Thumbnail-container .swiper,
.image-Thumbnail-container .mySwiper-thumb,
.image-Thumbnail-container .gallery-thumbs-1 {
	overflow: hidden !important;
}

.image-Thumbnail-container .swiper-slide {
	flex: 0 0 auto !important;
	width: 96px !important;
	max-width: 96px !important;
}

/* Small, subtle scrollbar styling for webkit browsers; optional and unobtrusive. */
.image-Thumbnail-container .xzoom-thumbs::-webkit-scrollbar,
.image-Thumbnail-container .swiper-wrapper::-webkit-scrollbar {
	height: 8px;
}
.image-Thumbnail-container .xzoom-thumbs::-webkit-scrollbar-thumb,
.image-Thumbnail-container .swiper-wrapper::-webkit-scrollbar-thumb {
	background: rgba(15,23,42,0.08);
	border-radius: 8px;
}
/* Thumbnail strip visual fixes: restore top border and prevent cropping */
.image-Thumbnail-container {
	/* give a small gap and visible top border so the thumb row doesn't look cut-off */
	margin-top: 12px;
	padding-top: 16px;
	background: transparent;
	border-top: 1px solid rgba(15, 23, 42, 0.04);
	border-radius: 0 0 12px 12px;
	box-sizing: border-box;
	position: relative;
	z-index: 3; /* sit above the preview's rounded edge */
}

/* Ensure swiper wrapper for thumbs can be visible and not clipped */
.image-Thumbnail-container .swiper,
.product-gallery-main .product-gallery-thumbs {
	position: relative;
	z-index: 3;
	overflow: visible !important;
}

/* Reduce potential overlap from the preview by avoiding extra bottom margin on preview */
.product-img-section-md .mySwiper-preview {
	margin-bottom: 0 !important;
}

/* If parent container applies overflow:hidden (card), keep the thumb visuals elevated */
.product-gallery-main {
	position: relative;
}
.product-page-details .btn-group>.btn {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-weight: 600;
	color: #334155;
	transition: all .3s;
}

.product-page-details .btn-group>.btn.active,
.product-page-details .btn-group>.btn:active,
.product-page-details .btn-group>.btn:focus-visible {
	background-color: var(--primary-color);
	color: white !important;
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 97, 51, 189), 0.3);
}

.product-page-details h1 {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 4px;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.product-page-details .brand-title {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 8px;
}

.rating-loading {
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
	margin-bottom: 8px;
}

.price {
	font-size: 22px;
	font-weight: 800;
	color: var(--primary-color);
	margin-bottom: 8px !important;
	letter-spacing: -0.025em;
}

.special-price.striped-price s {
	color: #64748b;
	font-size: 20px;
	font-weight: 500;
}

.quickview-variant-sec {
	background: rgba(248, 250, 252, 0.8);
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.quickview-variant-sec li:first-child {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
	width: 100%;
}

.color-swatch .product-color {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all .3s;
	cursor: pointer;
	position: relative;
}

.color-swatch .product-color:hover,
.color-swatch:has(input:checked) .product-color {
	transform: scale(1.1);
	box-shadow: 0 0 0 3px var(--primary-color);
}

.color-swatch input:focus + .product-color,
.image-swatch input:focus + .color-swatch-img,
.default-swatch input:focus + label {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.image-swatch .color-swatch-img {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid #e2e8f0;
	transition: all .3s;
	cursor: pointer;
}

.image-swatch .color-swatch-img:hover,
.image-swatch:has(input:checked) .color-swatch-img {
	border-color: var(--primary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 97, 51, 189), 0.2);
}

.image-swatch .swatche-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.default-swatch label {
	background: rgba(255, 255, 255, .9);
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all .3s;
	display: inline-block;
}

.default-swatch label:hover,
.default-swatch:has(input:checked) label {
	background: rgba(var(--primary-color-rgb, 97, 51, 189), 0.1);
	border-color: var(--primary-color);
	color: var(--primary-color);
	transform: translateY(-1px);
}

.product-add-section {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	padding: 12px;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	margin-top: 10px;
}

.add-btn,
.btn-primary {
	background: linear-gradient(135deg, var(--primary-color), var(--primary-color)) !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 10px 20px !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	transition: all .4s !important;
	box-shadow: 0 4px 16px rgba(var(--primary-color-rgb, 97, 51, 189), 0.3) !important;
	text-transform: uppercase;
	width: 100%;
}

.add-btn:hover,
.btn-primary:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 24px rgba(var(--primary-color-rgb, 97, 51, 189), 0.4) !important;
	filter: brightness(1.1) !important;
}

.input-group {
	border-radius: 6px;
	overflow: hidden;
	border: none !important;
	background: rgba(248, 250, 252, 0.8);
	margin-bottom: 10px;
}

.plus-minus-input {
	border: none !important;
}

.input-group .form-control,
.input-group-field {
	border: none !important;
	background: transparent;
	text-align: center;
	font-weight: 600;
	color: #0f172a;
	box-shadow: none !important;
}

.input-group .btn,
.input-group-button .button {
	background: rgba(248, 250, 252, 0.9) !important;
	border: none !important;
	color: #64748b !important;
	font-weight: 700;
	transition: all .3s;
	border-radius: 6px !important;
}

.input-group .btn:hover,
.input-group-button .button:hover {
	background: rgba(var(--primary-color-rgb, 97, 51, 189), 0.1) !important;
	color: var(--primary-color) !important;
}

@media (max-width: 768px) {
	.Product-Detail-card {
		padding: 16px;
		border-radius: 16px;
	}

	.product-page-details h1 {
		font-size: 22px;
	}

	.price {
		font-size: 20px;
	}

	.quickview-variant-sec {
		padding: 12px;
	}

	.product-add-section {
		padding: 16px;
	}
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.product-description {
	background: rgba(248, 250, 252, 0.6);
	border-radius: 8px;
	padding: 8px 10px;
	margin-bottom: 10px;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-description p {
	color: #64748b;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 0;
}

.product-description,
.product-description p,
.product-descriptions,
.product-descriptions p,
.product-short-description,
.product-short-description p,
.item-detail,
.item-detail p,
.product-page-details .text-muted,
.p-3.default-cursor .text-muted,
.product-page-details .product-short-description,
.p-3.default-cursor .product-short-description {
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-wrap: break-word !important;
	word-break: break-word !important;
	hyphens: auto !important;
	box-sizing: border-box !important;
	max-width: 100% !important;
}

.product-page-details .text-muted {
	display: block !important;
}

.whatsapp {
	background: linear-gradient(135deg, #25d366, #128c7e) !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 10px 16px !important;
	font-weight: 600 !important;
	color: white !important;
	transition: all .3s !important;
	font-size: 13px !important;
}

.whatsapp:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3) !important;
	filter: brightness(1.1) !important;
}

.btn-success {
	background: linear-gradient(135deg, #22c55e, #16a34a) !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 10px 16px !important;
	font-weight: 600 !important;
	transition: all .3s !important;
	font-size: 13px !important;
}

.btn-success:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3) !important;
}

.compare-share-btn {
	background: rgba(248, 250, 252, 0.8);
	border-radius: 8px;
	margin: 8px 0;
	border: 1px solid rgba(0, 0, 0, 0.04);
	padding: 6px 8px;
}

.compare-share-btn ul li a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: 6px;
	transition: all .3s;
	color: #64748b !important;
	font-weight: 500;
	font-size: 13px;
}

.compare-share-btn ul li a:hover {
	background: rgba(var(--primary-color-rgb, 97, 51, 189), 0.1);
	color: var(--primary-color) !important;
}

.delivery-service {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	padding: 8px 12px;
}

.delivery-service ul li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	font-size: 12px;
}

.delivery-service ul li:last-child {
	border-bottom: none;
}

.delivery-service ul li img {
	width: 24px;
	height: 24px;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.product-page-details .text-muted small {
	background: rgba(34, 197, 94, 0.1);
	color: #16a34a !important;
	padding: 4px 8px;
	border-radius: 6px;
	font-weight: 500;
}

.text-success {
	border-color: #22c55e !important;
	background: rgba(34, 197, 94, 0.1) !important;
}

.text-danger {
	border-color: #ef4444 !important;
	background: rgba(239, 68, 68, 0.1) !important;
}

.form-control {
	border: 2px solid #e2e8f0 !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	font-weight: 500;
	transition: all .3s;
}

.form-control:focus {
	border-color: var(--primary-color) !important;
	box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 97, 51, 189), 0.1) !important;
}

#error_box p {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	padding: 8px 12px;
	border-left: 4px solid;
	font-weight: 500;
}

iframe,
video {
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Mobile gallery sizing */
@media (max-width: 991.98px) {
	.product-detail-modern .swiper.mySwiper .swiper-slide {
		min-height: 360px;
	}

	.product-detail-modern .swiper.mySwiper .swiper-slide img {
		max-width: 100%;
		width: auto;
		height: auto;
		max-height: 480px;
		object-fit: contain;
	}

	.image-Thumbnail-container .product-swiper-slide img {
		max-height: 64px;
	}
}

@media (max-width: 1199.98px) {
	.product-img-section-md .mySwiper-preview .swiper-slide {
		min-height: 440px;
	}

	.product-img-section-md .mySwiper-preview .swiper-slide img {
		max-height: 520px;
	}

	.image-Thumbnail-container .swiper-slide {
		width: 80px;
		height: 80px;
	}
}
