/* Reference single-product design mapped to dynamic Techmanstore/WooCommerce markup. */
body.single-product .tmpp-product-page {
	--tm-ref-ink: #111827;
	--tm-ref-muted: #6b7280;
	--tm-ref-line: #e5e7eb;
	--tm-ref-pink: #ec174c;
	--tm-ref-blue: #1689f4;
	--tm-ref-cyan: #19c7cf;
	overflow: visible !important;
	background: #fff !important;
	color: var(--tm-ref-ink) !important;
}

body.single-product .tm-single-product-main,
body.single-product .wp-site-blocks > .tm-single-product-main {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product .tmpp-product-page .tmpp-document-downloads,
body.single-product .tmpp-product-page .tmpp-breadcrumb {
	display: none !important;
}

body.single-product .tmpp-product-page .tmpp-shell {
	width: min(1180px, calc(100% - 40px)) !important;
	max-width: none !important;
	margin-inline: auto !important;
}

body.single-product .tmpp-product-page .tmpp-product-hero {
	display: grid !important;
	grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.82fr) !important;
	gap: 52px !important;
	align-items: start !important;
	min-height: 0 !important;
	padding: 64px 0 28px !important;
}

body.single-product .tmpp-product-page .tmpp-gallery {
	display: grid !important;
	grid-template-columns: 78px minmax(0, 1fr) !important;
	gap: 20px !important;
	position: static !important;
	top: auto !important;
	align-items: start !important;
}

body.single-product .tmpp-product-page .tmpp-thumbnails {
	display: flex !important;
	flex-direction: column !important;
	gap: 18px !important;
	max-height: 520px !important;
	padding: 0 !important;
	overflow-y: auto !important;
}

body.single-product .tmpp-product-page .tmpp-thumbnail {
	flex: 0 0 74px !important;
	width: 74px !important;
	height: 74px !important;
	margin: 0 !important;
	padding: 5px !important;
	border: 1px solid transparent !important;
	border-radius: 8px !important;
	background: #fff !important;
	box-shadow: none !important;
}

body.single-product .tmpp-product-page .tmpp-thumbnail:hover,
body.single-product .tmpp-product-page .tmpp-thumbnail.is-active {
	border-color: var(--tm-ref-ink) !important;
	transform: translateY(-1px) !important;
}

body.single-product .tmpp-product-page .tmpp-thumbnail img {
	width: 100% !important;
	height: 100% !important;
	border-radius: 5px !important;
	object-fit: cover !important;
}

body.single-product .tmpp-product-page .tmpp-main-media {
	display: grid !important;
	place-items: center !important;
	width: 100% !important;
	height: 520px !important;
	min-height: 520px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #f5f5f5 !important;
	overflow: hidden !important;
}

body.single-product .tmpp-product-page .tmpp-main-image {
	display: block !important;
	width: 100% !important;
	height: 520px !important;
	min-height: 520px !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
}

body.single-product .tmpp-product-page .tmpp-share--gallery {
	top: 16px !important;
	right: 16px !important;
	width: 38px !important;
	height: 38px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.92) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.11) !important;
	color: #111 !important;
}

body.single-product .tmpp-product-page .tmpp-gallery-arrow {
	width: 34px !important;
	height: 38px !important;
	opacity: 0 !important;
	color: var(--tm-ref-pink) !important;
}

body.single-product .tmpp-product-page .tmpp-gallery:hover .tmpp-gallery-arrow {
	opacity: 1 !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 4px 0 0 !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-title-line h1 {
	max-width: 570px !important;
	font-size: clamp(31px, 3vw, 46px) !important;
	font-weight: 800 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.035em !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-title-toggle {
	margin: 14px 0 8px !important;
	color: #111 !important;
	font-size: 12px !important;
	font-weight: 500 !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-summary-copy {
	max-width: 570px !important;
	margin: 0 0 14px !important;
	color: var(--tm-ref-muted) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	letter-spacing: 0 !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-price-line {
	margin: 8px 0 6px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-price {
	color: #101010 !important;
	font-size: 30px !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-tax-note {
	margin: 6px 0 16px !important;
	color: var(--tm-ref-muted) !important;
	font-size: 11px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-field-label,
body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-option-label,
body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-quantity-line > label {
	color: #4b5563 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-colour-picker {
	margin-bottom: 18px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-colour-list {
	flex-wrap: wrap !important;
	gap: 9px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary button.tmpp-colour-swatch {
	width: 21px !important;
	min-width: 21px !important;
	height: 21px !important;
	min-height: 21px !important;
	padding: 0 !important;
	border: 2px solid #fff !important;
	box-shadow: 0 0 0 1px #d1d5db !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary button.tmpp-colour-swatch.is-active {
	outline: 0 !important;
	box-shadow: 0 0 0 2px var(--tm-ref-ink) !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-quantity-line {
	gap: 18px !important;
	margin-bottom: 16px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-quantity-control {
	grid-template-columns: 36px 40px 36px !important;
	width: 112px !important;
	min-width: 112px !important;
	height: 38px !important;
	min-height: 38px !important;
	border: 1px solid var(--tm-ref-line) !important;
	border-radius: 4px !important;
	background: #fff !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-quantity-control > button {
	width: 36px !important;
	min-width: 36px !important;
	height: 38px !important;
	min-height: 38px !important;
	background: #fff !important;
	font-size: 13px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-quantity-control .tmpp-quantity-value {
	width: 40px !important;
	min-width: 40px !important;
	height: 38px !important;
	min-height: 38px !important;
	background: #fff !important;
	font-size: 13px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-action-grid {
	grid-template-columns: 1fr 1fr !important;
	gap: 12px !important;
	margin-bottom: 58px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-action-grid button {
	height: 46px !important;
	min-height: 46px !important;
	border-radius: 4px !important;
	background: linear-gradient(90deg, var(--tm-ref-blue), var(--tm-ref-cyan)) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	box-shadow: 0 8px 20px rgba(18, 154, 221, 0.15) !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-action-grid .tmpp-buy-now {
	background: linear-gradient(90deg, #4ba9ee, #57d1d5) !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-offers-title {
	margin-bottom: 10px !important;
	font-size: 12px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-offer-card {
	min-height: 0 !important;
	padding: 18px !important;
	border-color: #cfd3d9 !important;
	border-radius: 7px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-offer-card strong {
	color: var(--tm-ref-pink) !important;
	font-size: 14px !important;
}

body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-offer-card p {
	margin-top: 5px !important;
	color: var(--tm-ref-muted) !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
}

body.single-product .tmpp-product-page .tmpp-guarantees {
	max-width: 720px !important;
	margin: 60px auto 8px !important;
	padding: 0 !important;
}

body.single-product .tmpp-product-page .tmpp-guarantees > h2 {
	display: none !important;
}

body.single-product .tmpp-product-page .tmpp-guarantee-grid {
	grid-template-columns: repeat(3, 1fr) !important;
	max-width: none !important;
	gap: 20px !important;
}

body.single-product .tmpp-product-page .tmpp-guarantee-grid article {
	justify-content: flex-start !important;
	gap: 14px !important;
	padding: 8px 18px !important;
	border-right: 1px solid var(--tm-ref-line) !important;
}

body.single-product .tmpp-product-page .tmpp-guarantee-grid article:last-child {
	border-right: 0 !important;
}

body.single-product .tmpp-product-page .tmpp-anchor-nav {
	position: sticky !important;
	top: 0 !important;
	z-index: 20 !important;
	min-height: 48px !important;
	background: #050505 !important;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

body.single-product .tmpp-product-page .tmpp-anchor-nav > div {
	justify-content: center !important;
	width: 100% !important;
}

body.single-product .tmpp-product-page .tmpp-anchor-nav a {
	min-width: 150px !important;
	min-height: 48px !important;
	padding: 0 20px !important;
	color: #ddd !important;
	font-size: 11px !important;
}

body.single-product .tmpp-product-page .tmpp-anchor-nav a.is-active,
body.single-product .tmpp-product-page .tmpp-anchor-nav a:hover {
	color: #fff !important;
}

body.single-product .tmpp-product-page .tmpp-anchor-nav a.is-active::after {
	background: var(--tm-ref-pink) !important;
}

body.single-product .tmpp-product-page .tmpp-story-section {
	padding: 42px 0 30px !important;
	background: #f7f7f7 !important;
}

body.single-product .tmpp-product-page .tmpp-overview-accordion {
	width: min(1060px, calc(100% - 40px)) !important;
	border-radius: 11px !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04) !important;
}

body.single-product .tmpp-product-page .tmpp-overview-accordion > summary {
	min-height: 62px !important;
	padding: 18px 24px !important;
	font-size: 17px !important;
}

body.single-product .tmpp-product-page .tmpp-overview-image-grid {
	grid-template-columns: 1fr 1fr !important;
	gap: 14px !important;
	width: min(1060px, calc(100% - 40px)) !important;
	margin: 24px auto 0 !important;
}

body.single-product .tmpp-product-page .tmpp-overview-image-item img,
body.single-product .tmpp-product-page .tmpp-rich-description img {
	border-radius: 4px !important;
	object-fit: cover !important;
}

body.single-product .tmpp-product-page .tmpp-overview-image-grid:not(.is-expanded) > :nth-child(n+5) {
	display: none !important;
}

body.single-product .tmpp-product-page .tmpp-overview-images-toggle {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 190px !important;
	min-height: 46px !important;
	margin: 20px auto 0 !important;
	padding: 10px 22px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: linear-gradient(90deg, var(--tm-ref-blue), var(--tm-ref-cyan)) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	box-shadow: 0 8px 20px rgba(18, 154, 221, 0.18) !important;
}

body.single-product .tmpp-product-page .tmpp-fallback-story {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 14px !important;
	width: min(1060px, calc(100% - 40px)) !important;
	margin-inline: auto !important;
}

body.single-product .tmpp-product-page .tmpp-fallback-story::before {
	content: "Overview";
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	min-height: 62px;
	margin-bottom: 8px;
	padding: 18px 24px;
	border: 1px solid #ececec;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
	color: var(--tm-ref-ink);
	font-size: 17px;
	font-weight: 700;
}

body.single-product .tmpp-product-page .tmpp-feature-panel {
	display: block !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 4px !important;
	background: #eee !important;
	overflow: hidden !important;
}

body.single-product .tmpp-product-page .tmpp-feature-copy {
	display: none !important;
}

body.single-product .tmpp-product-page .tmpp-feature-media img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 !important;
	margin: 0 !important;
	object-fit: cover !important;
	filter: none !important;
	transform: none !important;
}

body.single-product .tmpp-product-page .tmpp-specifications,
body.single-product .tmpp-product-page .tmpp-review-section {
	width: min(1060px, calc(100% - 40px)) !important;
	max-width: none !important;
}

body.single-product .tmpp-product-page .tmpp-specifications {
	padding: 30px 180px 62px !important;
}

body.single-product .tmpp-product-page .tmpp-specification-heading h2 {
	color: var(--tm-ref-pink) !important;
	font-size: 17px !important;
	letter-spacing: 0.11em !important;
}

body.single-product .tmpp-product-page #specifications .tmpp-spec-table {
	width: 100% !important;
}

body.single-product .tmpp-product-page #specifications .tmpp-spec-row {
	display: flex !important;
	min-height: 0 !important;
	padding: 15px 0 !important;
}

body.single-product .tmpp-product-page #specifications .tmpp-spec-row strong {
	flex: 0 0 150px !important;
	padding: 0 !important;
	font-size: 12px !important;
}

body.single-product .tmpp-product-page #specifications .tmpp-spec-row span {
	flex: 1 1 auto !important;
	padding: 0 !important;
	color: #777 !important;
	font-size: 11px !important;
	line-height: 1.5 !important;
	text-align: right !important;
}

body.single-product .tmpp-product-page .tmpp-review-section {
	padding: 28px 18px 64px !important;
	border-top: 2px solid #202020 !important;
}

body.single-product .tmpp-product-page .tmpp-review-title-row h2 {
	font-size: 20px !important;
	letter-spacing: 0.11em !important;
}

body.single-product .tmpp-product-page #customer-reviews .tmpp-review-summary {
	display: flex !important;
	min-height: 180px !important;
	padding: 0 !important;
}

body.single-product .tmpp-product-page #customer-reviews .tmpp-review-score {
	flex: 1 1 0 !important;
	padding-left: 40px !important;
	border-right: 1px solid var(--tm-ref-line) !important;
}

body.single-product .tmpp-product-page #customer-reviews .tmpp-rating-bars {
	flex: 1.35 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 0 36px !important;
	border-right: 0 !important;
}

body.single-product .tmpp-product-page #customer-reviews .tmpp-review-cta {
	flex: 0.8 1 0 !important;
	align-self: center !important;
	margin: 0 !important;
	padding: 13px 25px !important;
	border-radius: 3px !important;
	background: var(--tm-ref-blue) !important;
	font-size: 11px !important;
	box-shadow: 0 7px 17px rgba(22, 137, 244, 0.25) !important;
}

body.single-product .tmpp-product-page #customer-reviews .tmpp-review-toolbar {
	min-height: 80px !important;
}

body.single-product .tmpp-product-page #related-products {
	width: min(1260px, calc(100% - 40px)) !important;
	max-width: none !important;
	padding: 54px 0 70px !important;
}

body.single-product .tmpp-product-page #related-products ul.tmpp-related-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 12px !important;
}

body.single-product .tmpp-product-page #related-products li.tmpp-related-card {
	height: auto !important;
	min-height: 520px !important;
	padding: 18px !important;
	border-radius: 5px !important;
}

body.single-product .tmpp-product-page #related-products .tmpp-related-card__media {
	height: 260px !important;
	min-height: 260px !important;
	margin: 0 0 18px !important;
	padding: 0 !important;
	background: #f1f1f1 !important;
}

body.single-product .tmpp-product-page #related-products .tmpp-related-card__media img {
	height: 100% !important;
	object-fit: cover !important;
}

@media (max-width: 1000px) {
	body.single-product .tmpp-product-page .tmpp-product-hero {
		grid-template-columns: 1fr !important;
	}

	body.single-product .tmpp-product-page #tmpp-product-summary {
		width: min(680px, 100%) !important;
		margin-inline: auto !important;
	}

	body.single-product .tmpp-product-page .tmpp-main-media,
	body.single-product .tmpp-product-page .tmpp-main-image {
		height: 620px !important;
		min-height: 620px !important;
	}

	body.single-product .tmpp-product-page .tmpp-specifications {
		padding-inline: 80px !important;
	}

	body.single-product .tmpp-product-page #related-products ul.tmpp-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 700px) {
	body.single-product .tmpp-product-page .tmpp-shell {
		width: min(calc(100% - 24px), 620px) !important;
	}

	body.single-product .tmpp-product-page .tmpp-product-hero {
		padding-top: 20px !important;
	}

	body.single-product .tmpp-product-page .tmpp-gallery {
		grid-template-columns: 1fr !important;
		grid-template-rows: auto auto !important;
	}

	body.single-product .tmpp-product-page .tmpp-thumbnails {
		grid-row: 2 !important;
		flex-direction: row !important;
		max-height: none !important;
		overflow-x: auto !important;
	}

	body.single-product .tmpp-product-page .tmpp-main-media,
	body.single-product .tmpp-product-page .tmpp-main-image {
		grid-row: 1 !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 1 !important;
	}

	body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-title-line h1 {
		font-size: 20px !important;
	}

	body.single-product .tmpp-product-page .tmpp-guarantee-grid {
		grid-template-columns: 1fr !important;
	}

	body.single-product .tmpp-product-page .tmpp-guarantee-grid article {
		border-right: 0 !important;
		border-bottom: 1px solid var(--tm-ref-line) !important;
	}

	body.single-product .tmpp-product-page .tmpp-anchor-nav {
		overflow-x: auto !important;
	}

	body.single-product .tmpp-product-page .tmpp-anchor-nav > div {
		justify-content: flex-start !important;
		width: max-content !important;
	}

	body.single-product .tmpp-product-page .tmpp-anchor-nav a {
		min-width: auto !important;
	}

	body.single-product .tmpp-product-page .tmpp-overview-image-grid {
		grid-template-columns: 1fr !important;
		width: min(calc(100% - 24px), 620px) !important;
	}

	body.single-product .tmpp-product-page .tmpp-overview-image-grid:not(.is-expanded) > :nth-child(n+3) {
		display: none !important;
	}

	body.single-product .tmpp-product-page .tmpp-fallback-story {
		grid-template-columns: 1fr !important;
		width: min(calc(100% - 24px), 620px) !important;
	}

	body.single-product .tmpp-product-page .tmpp-specifications,
	body.single-product .tmpp-product-page .tmpp-review-section {
		width: min(calc(100% - 24px), 620px) !important;
	}

	body.single-product .tmpp-product-page .tmpp-specifications {
		padding: 28px 0 48px !important;
	}

	body.single-product .tmpp-product-page #specifications .tmpp-spec-row {
		display: block !important;
	}

	body.single-product .tmpp-product-page #specifications .tmpp-spec-row strong,
	body.single-product .tmpp-product-page #specifications .tmpp-spec-row span {
		display: block !important;
		width: 100% !important;
		text-align: left !important;
	}

	body.single-product .tmpp-product-page #specifications .tmpp-spec-row span {
		margin-top: 7px !important;
	}

	body.single-product .tmpp-product-page #customer-reviews .tmpp-review-summary {
		flex-direction: column !important;
		gap: 30px !important;
	}

	body.single-product .tmpp-product-page #customer-reviews .tmpp-review-score,
	body.single-product .tmpp-product-page #customer-reviews .tmpp-rating-bars {
		width: 100% !important;
		padding: 0 !important;
		border: 0 !important;
	}

	body.single-product .tmpp-product-page #related-products {
		width: min(calc(100% - 24px), 620px) !important;
	}
}

@media (max-width: 420px) {
	body.single-product .tmpp-product-page #tmpp-product-summary .tmpp-action-grid {
		grid-template-columns: 1fr !important;
	}

	body.single-product .tmpp-product-page #related-products ul.tmpp-related-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Related products reuse the exact homepage card and its second-image hover. */
body.single-product .tmpp-product-page #related-products.tm-related-home {
	width: min(1260px, calc(100% - 40px)) !important;
	max-width: none !important;
	padding: 54px 0 70px !important;
}

body.single-product .tm-related-home-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

body.single-product .tm-related-home-grid .tm-product-card {
	width: 100%;
	min-width: 0;
}

body.single-product .tm-related-home-grid .tm-product-media {
	aspect-ratio: 1 / 1;
}

body.single-product .tm-related-home-grid .tm-product-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 900px) {
	body.single-product .tm-related-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	body.single-product .tmpp-product-page #related-products.tm-related-home {
		width: calc(100% - 24px) !important;
		padding-block: 40px 54px !important;
	}

	body.single-product .tm-related-home-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
