/**
 * WooCommerce single-product layout system.
 * Applies to every current and future product page; updated 2026-08-03.
 * body.single-product keeps these rules away from archives, cart and checkout,
 * while WooCommerce component classes avoid product-ID and DOM-order coupling.
 */
body.single-product {
	--product-page-max: 1280px;
	--product-page-padding: clamp(14px, 4vw, 16px);
	--product-page-gap: clamp(24px, 4vw, 48px);
	--product-title-size: clamp(24px, 7vw, 29px);
	--product-text-size: clamp(15px, 2.2vw, 16px);
	--product-control-height: 48px;
	--product-space-1: 8px;
	--product-space-2: 12px;
	--product-space-3: 16px;
	--product-space-4: 24px;
	--product-space-5: 32px;
	--product-space-6: 48px;
	--product-gallery-padding: clamp(10px, 3vw, 16px);
	--product-thumb-size: clamp(68px, 19vw, 78px);
	--product-thumb-gap: 8px;
}

body.single-product .site-content {
	background: var(--sk-surface, #fff);
}

body.single-product div.product {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: var(--product-page-max);
	margin-inline: auto;
	padding-top: var(--product-space-3);
	padding-right: max(var(--product-page-padding), env(safe-area-inset-right));
	padding-bottom: var(--product-space-6);
	padding-left: max(var(--product-page-padding), env(safe-area-inset-left));
}

body.single-product div.product > *,
body.single-product div.product div.images,
body.single-product div.product div.summary {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
	/* WooCommerce layout.css assigns 48%; the grid tracks are the width owner. */
	width: 100% !important;
	margin-bottom: 0;
	float: none !important;
}

body.single-product div.product div.images {
	margin-bottom: var(--product-space-4);
}

body.single-product div.product .summary {
	padding: 0;
}

body.single-product .woocommerce-breadcrumb {
	max-width: 100%;
	margin: 0 0 var(--product-space-2);
	color: var(--sk-muted, #5f6d65);
	font-size: clamp(13px, 2.4vw, 14px);
	line-height: 1.5;
	white-space: normal;
	word-break: normal;
	overflow-wrap: normal;
}

body.single-product .woocommerce-breadcrumb a {
	color: var(--sk-green-dark, #15452d);
	font-weight: 700;
}

body.single-product .single-product-category {
	display: grid;
}

body.single-product div.product .product_title {
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 0 var(--product-space-3);
	color: var(--sk-ink-strong, #101828);
	font-size: var(--product-title-size);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.02em;
	text-align: left;
	white-space: normal;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	overflow: visible;
}

body.single-product div.product .product_title .sk-product-title-token {
	white-space: normal;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
	display: block;
	margin: 0 0 var(--product-space-3);
	color: var(--sk-green-dark, #15452d);
	font-size: clamp(24px, 6.5vw, 30px);
	font-weight: 800;
	line-height: 1.18;
}

body.single-product div.product p.price del,
body.single-product div.product span.price del {
	margin-right: 0.35em;
	opacity: 0.62;
	font-size: 0.72em;
	font-weight: 650;
}

body.single-product div.product p.price ins,
body.single-product div.product span.price ins {
	text-decoration: none;
}

body.single-product div.product .woocommerce-product-details__short-description {
	max-width: 64ch;
	margin: 0 0 var(--product-space-4);
	padding: var(--product-space-3) 0;
	border-top: 1px solid var(--sk-line, #dce4df);
	border-bottom: 1px solid var(--sk-line, #dce4df);
	color: #475467;
	font-size: var(--product-text-size);
	line-height: 1.6;
	overflow: visible;
}

body.single-product div.product .woocommerce-product-details__short-description > :first-child {
	margin-top: 0;
}

body.single-product div.product .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

body.single-product .stock {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 var(--product-space-3);
	padding: 7px 10px;
	border-radius: 999px;
	background: var(--sk-surface-muted, #edf5ef);
	color: var(--sk-green-dark, #15452d);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

body.single-product .stock::before {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

body.single-product .stock.out-of-stock {
	background: #f9eee7;
	color: #9a4f22;
}

body.single-product .sk-single-product-stock {
	display: none;
}

body.single-product .product_meta {
	display: grid;
	gap: 7px;
	margin-top: var(--product-space-4);
	padding-top: var(--product-space-3);
	border-top: 1px solid var(--sk-line, #dce4df);
	color: var(--sk-muted, #5f6d65);
	font-size: 14px;
	line-height: 1.45;
}

body.single-product .product_meta a {
	color: var(--sk-green-dark, #15452d);
	font-weight: 800;
}

/* WooCommerce owns the form markup and values; CSS only aligns its controls. */
body.single-product form.cart {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: clamp(14px, 3vw, 18px);
	border: 1px solid var(--sk-line, #dce4df);
	border-radius: var(--sk-radius-md, 8px);
	background: var(--sk-surface-soft, #f7faf8);
}

body.single-product form.cart:not(.variations_form),
body.single-product form.cart .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	align-items: stretch;
}

body.single-product form.cart .quantity {
	box-sizing: border-box;
	display: flex;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	min-height: var(--product-control-height);
	height: var(--product-control-height);
	margin: 0 !important;
}

body.single-product form.cart .quantity .qty {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: var(--product-control-height);
	height: var(--product-control-height);
	margin: 0;
	padding-block: 0;
	border: 1px solid #b9cbbf;
	border-radius: var(--sk-radius-sm, 4px);
	background: #fff;
	color: var(--sk-ink-strong, #101828);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

body.single-product form.cart .quantity .plus,
body.single-product form.cart .quantity .minus {
	box-sizing: border-box;
	flex: 0 0 44px;
	min-width: 44px;
	min-height: var(--product-control-height);
	height: auto;
	line-height: 1;
}

body.single-product form.cart .single_add_to_cart_button,
body.single-product form.cart .sitkomet-quick-order,
body.single-product .summary > .sitkomet-quick-order,
body.single-product .summary > .sitkomet-stock-notify {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-height: var(--product-control-height);
	height: var(--product-control-height);
	margin: 0 !important;
	padding-block: 0 !important;
	font-size: clamp(15px, 2vw, 16px);
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	word-break: normal;
	overflow-wrap: normal;
}

body.single-product .summary > .sitkomet-quick-order,
body.single-product .summary > .sitkomet-stock-notify {
	margin-top: var(--product-space-2) !important;
}

body.single-product form.variations_form .variations {
	width: 100%;
	margin: 0 0 var(--product-space-3);
	border: 0;
}

body.single-product form.variations_form .variations th,
body.single-product form.variations_form .variations td {
	padding: 0 0 var(--product-space-2);
	border: 0;
	text-align: left;
	vertical-align: middle;
}

body.single-product form.variations_form .variations label {
	font-size: 14px;
	font-weight: 800;
}

body.single-product form.variations_form .variations select {
	width: 100%;
	min-height: var(--product-control-height);
	margin: 0;
	border: 1px solid #b9cbbf;
	border-radius: var(--sk-radius-sm, 4px);
	background: #fff;
}

body.single-product .woocommerce-variation-price {
	margin-bottom: var(--product-space-3);
}

body.single-product .woocommerce-variation-availability {
	margin-bottom: var(--product-space-2);
}

body.single-product .woocommerce-notices-wrapper,
body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-error {
	max-width: 100%;
	font-size: var(--product-text-size);
	line-height: 1.5;
}

/* Gallery sizing only: WooCommerce still owns zoom, swipe, lightbox and slides. */
body.single-product .woocommerce-product-gallery {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: var(--product-gallery-padding);
	border: 1px solid var(--sk-line, #dce4df);
	border-radius: var(--sk-radius-lg, 12px);
	background: linear-gradient(135deg, #fbfcfb 0%, #f1f6f3 100%);
	box-shadow: var(--sk-shadow-sm, 0 8px 20px rgba(21, 45, 67, 0.08));
	overflow: visible;
}

body.single-product .woocommerce-product-gallery .flex-viewport {
	max-width: 100%;
	margin-bottom: 0;
	border-radius: var(--sk-radius-md, 8px);
	background: #fff;
	overflow: hidden;
}

body.single-product .woocommerce-product-gallery__image a:not(.woocommerce-product-gallery__trigger) {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(78vw, 460px);
	cursor: zoom-in;
}

body.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 56vh;
	margin: 0 auto;
	background: #fff;
	object-fit: contain;
	object-position: center;
}

body.single-product.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger {
	top: calc(var(--product-gallery-padding) + 8px);
	right: calc(var(--product-gallery-padding) + 8px);
	bottom: auto;
	left: auto;
	display: none;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 4px 16px rgba(21, 45, 67, 0.14);
	text-indent: 0;
	cursor: zoom-in;
}

body.single-product.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger::before,
body.single-product.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger::after {
	display: none;
}

body.single-product.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger span {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	pointer-events: none;
}

body.single-product.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger span img {
	width: 18px;
	height: 18px;
	margin: 0;
}

body.single-product .flex-control-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--product-thumb-gap);
	width: 100%;
	max-width: 100%;
	margin: var(--product-space-3) 0 0;
	padding: 0 0 4px;
	overflow-x: auto;
	overflow-y: hidden;
	list-style: none;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

body.single-product .flex-control-thumbs li {
	box-sizing: border-box;
	display: block;
	flex: 0 0 var(--product-thumb-size);
	width: var(--product-thumb-size);
	height: var(--product-thumb-size);
	min-width: var(--product-thumb-size);
	margin: 0;
	padding: 0;
	float: none;
	border: 1px solid transparent;
	border-radius: var(--sk-radius-sm, 4px);
	background: #fff;
	overflow: hidden;
}

body.single-product .flex-control-thumbs li:has(img.flex-active) {
	border-color: var(--sk-green, #226443);
	box-shadow: 0 0 0 1px rgba(34, 100, 67, 0.12);
}

body.single-product .flex-control-thumbs img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 100%;
	padding: 4px;
	border: 0;
	border-radius: 0;
	object-fit: contain;
	opacity: 0.78;
	cursor: pointer;
}

body.single-product .flex-control-thumbs img:hover,
body.single-product .flex-control-thumbs img.flex-active {
	opacity: 1;
}

body.single-product .flex-control-thumbs:has(li:only-child) {
	display: none;
}

body.single-product .sk-product-description,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .up-sells {
	min-width: 0;
	max-width: 100%;
}

body.single-product .sk-product-description {
	margin: var(--product-space-5) 0 var(--product-space-6);
	padding: 0;
	color: var(--sk-ink, #172133);
	font-size: var(--product-text-size);
	line-height: 1.7;
	word-break: normal;
	overflow-wrap: break-word;
}

body.single-product .sk-product-description > :first-child {
	margin-top: 0;
}

body.single-product .sk-product-description > :last-child {
	margin-bottom: 0;
}

body.single-product .sk-product-description img,
body.single-product .sk-product-description video,
body.single-product .sk-product-description iframe {
	max-width: 100%;
	height: auto;
}

body.single-product .sk-product-description table,
body.single-product .woocommerce-tabs table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
}

body.single-product .woocommerce-tabs {
	margin: var(--product-space-5) 0 var(--product-space-6);
	padding: clamp(18px, 4vw, 36px);
	border: 1px solid var(--sk-line, #dce4df);
	border-radius: var(--sk-radius-lg, 12px);
	background: var(--sk-surface-soft, #f7faf8);
}

body.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--product-space-1);
	margin: 0 0 var(--product-space-4);
	padding: 0;
	border: 0;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

body.single-product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--sk-radius-sm, 4px);
	background: transparent;
}

body.single-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 11px 16px;
	border: 1px solid var(--sk-line, #dce4df);
	border-radius: var(--sk-radius-sm, 4px);
	background: #fff;
	color: var(--sk-ink-strong, #101828);
	font-weight: 800;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
	border-color: var(--sk-green-dark, #15452d);
	background: var(--sk-green-dark, #15452d);
	color: #fff;
}

body.single-product .woocommerce-tabs .panel {
	margin: 0;
	color: var(--sk-ink, #172133);
	line-height: 1.7;
}

body.single-product .related.products,
body.single-product .up-sells {
	margin-top: var(--product-space-5);
	padding-top: var(--product-space-5);
	border-top: 1px solid var(--sk-line, #dce4df);
}

body.single-product .related.products > h2,
body.single-product .up-sells > h2 {
	margin: 0 0 var(--product-space-4);
	color: var(--sk-ink-strong, #101828);
	font-size: clamp(26px, 5vw, 34px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

body.single-product .related.products ul.products,
body.single-product .up-sells ul.products {
	grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 767px) {
	body.single-product {
		--product-text-size: 16px;
	}

	body.single-product div.product .summary {
		display: flex;
		flex-direction: column;
	}

	body.single-product div.product .summary > .stock {
		align-self: flex-start;
		order: 0;
		margin-bottom: var(--product-space-2);
	}

	body.single-product div.product .summary > .sk-single-product-stock {
		display: inline-flex;
	}

	body.single-product div.product .summary > form.cart,
	body.single-product div.product .summary > .sitkomet-quick-order,
	body.single-product div.product .summary > .sitkomet-stock-notify {
		order: 1;
	}

	body.single-product div.product .summary > .woocommerce-product-details__short-description {
		order: 2;
		margin: var(--product-space-3) 0 0;
		padding: var(--product-space-2) 0;
	}

	body.single-product div.product .summary > .product_meta {
		order: 3;
		margin-top: var(--product-space-3);
	}

	body.single-product form.cart {
		padding: 14px;
	}

	body.single-product form.cart:not(.variations_form),
	body.single-product form.cart .woocommerce-variation-add-to-cart {
		gap: 8px;
	}
}

@media (min-width: 768px) {
	body.single-product {
		--product-page-padding: 20px;
		--product-title-size: clamp(29px, 3.2vw, 34px);
		--product-text-size: clamp(16px, 1.7vw, 17px);
		--product-gallery-padding: clamp(16px, 2vw, 20px);
		--product-thumb-size: clamp(72px, 8vw, 82px);
		--product-thumb-gap: 10px;
	}

	body.single-product div.product {
		padding-top: var(--product-space-4);
	}

	body.single-product form.cart:not(.variations_form),
	body.single-product form.cart .woocommerce-variation-add-to-cart {
		grid-template-columns: 88px minmax(0, 0.82fr) minmax(0, 1.18fr);
	}

	body.single-product form.cart .quantity {
		grid-column: 1;
	}

	body.single-product form.cart .single_add_to_cart_button {
		grid-column: 2;
	}

	body.single-product form.cart .sitkomet-quick-order {
		grid-column: 3;
	}

	body.single-product .woocommerce-product-gallery__image a:not(.woocommerce-product-gallery__trigger) {
		min-height: clamp(360px, 52vw, 520px);
	}

	body.single-product .woocommerce-product-gallery__image img {
		max-height: min(520px, 62vh);
	}

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

/*
 * Tablet shell order (2026-08-03): the shared side-navigation stylesheet switches
 * #page to block layout at 769-1199px. On product pages that places the complete
 * catalogue sidebar before the product. Keep the same site regions, but restore
 * the established content-first order used by the mobile shell.
 */
@media (min-width: 769px) and (max-width: 1199px) {
	body.single-product.sk-has-side-nav #page {
		display: flex;
		flex-direction: column;
	}

	body.single-product.sk-has-side-nav #content {
		flex: 0 0 auto;
		width: 100%;
		order: 1;
	}

	body.single-product.sk-has-side-nav .sk-site-sidebar {
		order: 2;
	}

	body.single-product.sk-has-side-nav #colophon {
		order: 3;
	}
}

@media (min-width: 1200px) {
	body.single-product {
		--product-page-padding: 24px;
		--product-title-size: clamp(34px, 2.3vw, 40px);
		--product-page-gap: clamp(36px, 3.2vw, 48px);
		--product-gallery-padding: clamp(18px, 1.7vw, 22px);
		--product-thumb-size: clamp(72px, 5.5vw, 84px);
	}

	body.single-product div.product {
		display: grid;
		grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
		column-gap: var(--product-page-gap);
		row-gap: var(--product-space-5);
		align-items: start;
	}

	body.single-product div.product div.images {
		margin-bottom: 0;
	}

	body.single-product .woocommerce-product-gallery__image a:not(.woocommerce-product-gallery__trigger) {
		min-height: clamp(380px, 32vw, 560px);
	}

	body.single-product .woocommerce-product-gallery__image img {
		max-height: min(560px, 62vh);
	}

	body.single-product .sk-product-description,
	body.single-product .woocommerce-tabs,
	body.single-product .related.products,
	body.single-product .up-sells {
		grid-column: 1 / -1;
	}

	body.single-product .sk-product-description {
		margin-top: 0;
	}

	body.single-product .related.products ul.products,
	body.single-product .up-sells ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	body.single-product form.variations_form .variations th,
	body.single-product form.variations_form .variations td {
		display: block;
		width: 100%;
	}

	body.single-product form.variations_form .variations th {
		padding-bottom: 6px;
	}

	body.single-product .woocommerce-tabs {
		padding: 18px 14px;
	}
}
