/* Professional neutral background + white surfaces */
:root {
	--qw-bg: #f6f8fb; /* page background */
	--qw-panel: #ffffff; /* surface */
	--qw-border: rgba(17, 24, 39, 0.08);
	--qw-shadow: 0 6px 24px rgba(17, 24, 39, 0.06);
	--qw-muted: #6b7280;
	--qw-heading: #111827;
}

body {
	background: var(--qw-bg);
	color: #1f2937;
}

/* White panel sections */
.section-soft > .container {
	background: var(--qw-panel);
	border: 1px solid var(--qw-border);
	border-radius: 16px;
	box-shadow: var(--qw-shadow);
	padding: 16px 16px;
}
@media (min-width: 992px) {
	.section-soft > .container {
		padding: 24px 28px;
	}
}

/* Headings and subtle separators */
.section-soft h3,
.section-soft h4 {
	color: var(--qw-heading);
}
.section-soft .mb-6 + .category-slider {
	margin-top: 0.25rem;
}

/* Card polish */
.card.card-product {
	border: 1px solid var(--qw-border);
	border-radius: 12px;
}
.card.card-product .card-body {
	padding: 14px;
}
.card.card-product img {
	border-radius: 8px;
}
.card.card-product:hover {
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

/* Sliders spacing harmony */
.category-slider .item {
	padding: 0.25rem;
}

/* Utility: muted small text */
.text-muted-600 {
	color: var(--qw-muted) !important;
}

/* Warm and cool variants (toggle via body class) */
body.theme-warm {
	--qw-bg: #fbf7f3;
	--qw-panel: #ffffff;
}
body.theme-cool {
	--qw-bg: #f5f9ff;
	--qw-panel: #ffffff;
}

/* Hero: subtle hover scale + smooth transitions */
.hero-link {
	display: block;
	overflow: hidden;
	border-radius: 12px;
}
.hero-link .hero-img {
	transform: scale(1);
	transition: transform 0.6s ease, filter 0.4s ease;
	will-change: transform;
}
.hero-link:hover .hero-img {
	transform: scale(1.03);
}
@media (hover: none) {
	.hero-link:hover .hero-img {
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.hero-link .hero-img {
		transition: none;
	}
}

/* ==================== Product Details – Amazon-like ==================== */
.pd-amazon .pd-thumbs {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.pd-amazon .pd-thumb {
	width: 64px;
	height: 64px;
	padding: 2px;
	border: 1px solid var(--qw-border);
	border-radius: 8px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.pd-amazon .pd-thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
}
.pd-amazon .pd-thumb.active {
	outline: 2px solid #ea5824;
}

.pd-amazon .pd-thumb-sm {
	width: 60px;
	height: 60px;
	padding: 2px;
	border: 1px solid var(--qw-border);
	border-radius: 8px;
	background: #fff;
}
.pd-amazon .pd-thumb-sm img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
}
.pd-amazon .pd-thumb-sm.active {
	outline: 2px solid #ea5824;
}

/* Modern Product Image Container */
.pd-main-modern {
	border: 1px solid var(--qw-border);
	border-radius: 12px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: 360px;
	position: relative;
	transition: all 0.3s ease;
}

.pd-main-modern:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pd-main-modern img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
	transition: opacity 0.2s ease;
}

/* Zoom Lens */
.zoom-lens {
	position: absolute;
	width: 150px;
	height: 150px;
	border: 2px solid #ea5824;
	border-radius: 50%;
	background: rgba(234, 88, 36, 0.1);
	backdrop-filter: blur(2px);
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity 0.2s ease;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
		inset 0 0 20px rgba(234, 88, 36, 0.2);
}

.pd-main-modern:hover .zoom-lens {
	opacity: 1;
}

/* Zoom Hint */
.zoom-hint {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.75);
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 6px;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 5;
}

.pd-main-modern:hover .zoom-hint {
	opacity: 1;
}

/* Lightbox Modal */
.zoom-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	animation: fadeIn 0.3s ease;
}

.zoom-lightbox.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.zoom-lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90vh;
	animation: zoomIn 0.3s ease;
}

.zoom-lightbox-content img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transition: opacity 0.15s ease;
}

.zoom-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #333;
	transition: all 0.2s ease;
	z-index: 10000;
}

.zoom-lightbox-close:hover {
	background: white;
	transform: scale(1.1);
}

.zoom-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #333;
	transition: all 0.2s ease;
	z-index: 10000;
}

.zoom-lightbox-nav:hover {
	background: white;
	transform: translateY(-50%) scale(1.1);
}

.zoom-lightbox-nav.prev {
	left: 20px;
}

.zoom-lightbox-nav.next {
	right: 20px;
}

.zoom-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.9);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	color: #333;
}

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

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.pd-amazon .pd-main {
	border: 1px solid var(--qw-border);
	border-radius: 12px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: 200% 200%;
	background-position: center;
	overflow: hidden;
	min-height: 360px;
}
.pd-amazon .pd-main img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

@media (max-width: 767.98px) {
	.pd-amazon .pd-thumbs {
		display: none;
	}
}

/* Add to Cart hover: match breadcrumb's blackish tone */
.addToCartBtn:hover,
.addToCartBtn:focus,
.addToCartBtn:active {
	background-color: var(--bs-breadcrumb-item-active-color, #5c6c75) !important;
	border-color: var(--bs-breadcrumb-item-active-color, #5c6c75) !important;
	color: #fff !important;
}

/* ==================== Quantity Pills (.btn-qty) ==================== */
.btn-qty {
	--qw-accent: #ea5824;
	background: #ffffff;
	color: var(--qw-accent);
	border: 2px solid var(--qw-accent);
	width: 38px;
	height: 38px;
	padding: 0;
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(234, 88, 36, 0.25);
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease,
		transform 0.15s ease;
}
.btn-qty:hover,
.btn-qty:focus {
	background: var(--qw-accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(234, 88, 36, 0.35);
	transform: translateY(-2px);
}
.btn-qty:active {
	background: #c74618;
	border-color: #c74618;
	color: #fff;
	transform: translateY(0);
}
.btn-qty:disabled,
.btn-qty[disabled] {
	opacity: 0.55;
	filter: grayscale(0.2);
	cursor: not-allowed;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.btn-qty {
		transition: none;
	}
}
