/**
 * Sitisocial Framework
 * Product Page v1.0
 */

/* =========================================================
   KADENCE / WOOCOMMERCE RESET
   ========================================================= */

body.single-product .content-area,
body.single-product .content-container,
body.single-product #primary,
body.single-product main.site-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.single-product .entry-hero {
	display: none;
}

/* =========================================================
   PAGE
   ========================================================= */

.ssf-product-page {
	width: 100%;
	background: var(--ssf-color-background);
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.ssf-product-breadcrumb-section {
	padding: 10px 0 0;
	background: var(--ssf-color-white);
}

.ssf-product-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--ssf-color-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.ssf-product-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.ssf-product-breadcrumb a:hover,
.ssf-product-breadcrumb a:focus-visible {
	color: var(--ssf-color-primary);
}

/* =========================================================
   MAIN GRID
   ========================================================= */

.ssf-product-main__grid {
	display: grid;
	grid-template-columns:
		minmax(0, 1.08fr)
		minmax(0, 0.92fr);

	gap: clamp(48px, 6vw, 88px);
	align-items: start;
}

/* =========================================================
   GALLERY
   ========================================================= */

.ssf-product-gallery-column {
	position: sticky;
	top: 32px;
	min-width: 0;
}

.admin-bar .ssf-product-gallery-column {
	top: 64px;
}

.ssf-product-gallery-column .woocommerce-product-gallery {
	position: relative;
	float: none;
	width: 100%;
	margin: 0;
}

.ssf-product-gallery-column .woocommerce-product-gallery__wrapper {
	margin: 0;
	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-large);
	background: var(--ssf-color-white);
	box-shadow: var(--ssf-shadow-small);
}

.ssf-product-gallery-column
.woocommerce-product-gallery__image {
	overflow: hidden;

	border-radius: var(--ssf-radius-large);
	background: var(--ssf-color-background-soft);
}

.ssf-product-gallery-column
.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
}

.ssf-product-gallery-column
.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--ssf-space-3);

	margin-top: var(--ssf-space-3);
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ssf-product-gallery-column
.flex-control-thumbs li {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ssf-product-gallery-column
.flex-control-thumbs li::marker {
	content: '';
}

.ssf-product-gallery-column
.flex-control-thumbs li::before {
	content: none;
}

.ssf-product-gallery-column
.flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	overflow: hidden;

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-medium);

	background: var(--ssf-color-background-soft);
	opacity: 1;
	cursor: pointer;
	transition:
		border-color var(--ssf-transition-fast),
		box-shadow var(--ssf-transition-fast),
		transform var(--ssf-transition-fast);
}

.ssf-product-gallery-column
.flex-control-thumbs img.flex-active {
	border-color: var(--ssf-color-primary);
	box-shadow: 0 0 0 2px rgba(185, 42, 34, 0.16);
}

.ssf-product-gallery-column
.flex-control-thumbs img:hover {
	border-color: var(--ssf-color-border-dark);
	transform: translateY(-2px);
}

/* =========================================================
   SALE BADGE
   ========================================================= */

.ssf-product-gallery-column .onsale {
	top: var(--ssf-space-4);
	right: auto;
	left: var(--ssf-space-4);
	z-index: 3;

	min-width: auto;
	min-height: 28px;
	padding: 6px 10px;

	border-radius: var(--ssf-radius-pill);
	background: var(--ssf-color-primary);
	color: var(--ssf-color-white);

	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

/* =========================================================
   SUMMARY
   ========================================================= */

.ssf-product-summary-column {
	min-width: 0;
}

.ssf-product-summary {
	padding: clamp(28px, 4vw, 48px);

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-large);

	background: var(--ssf-color-white);
	box-shadow: var(--ssf-shadow-small);
}

.ssf-product-summary-column .summary {
	float: none;
	width: 100%;
	margin: 0;
}

/* =========================================================
   TITLE
   ========================================================= */

.ssf-product-summary .product_title {
	margin:
		0
		0
		var(--ssf-space-3);

	color: var(--ssf-color-text);
	font-size: clamp(36px, 4vw, 54px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.04em;
}

/* =========================================================
   RATING
   ========================================================= */

.ssf-product-summary
.woocommerce-product-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ssf-space-3);

	margin:
		0
		0
		var(--ssf-space-4);
}

.ssf-product-summary .star-rating {
	float: none;
	margin: 0;
}

.ssf-product-summary
.woocommerce-review-link {
	color: var(--ssf-color-muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

/* =========================================================
   PRICE
   ========================================================= */

.ssf-product-summary p.price,
.ssf-product-summary span.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--ssf-space-3);

	margin:
		0
		0
		var(--ssf-space-5);

	color: var(--ssf-color-text);
	font-size: clamp(30px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.ssf-product-summary .price del {
	color: var(--ssf-color-muted);
	font-size: 18px;
	font-weight: 500;
	opacity: 1;
}

.ssf-product-summary .price ins {
	color: var(--ssf-color-text);
	text-decoration: none;
}

/* =========================================================
   SHORT DESCRIPTION
   ========================================================= */

.ssf-product-summary
.woocommerce-product-details__short-description {
	margin-bottom: var(--ssf-space-5);

	color: var(--ssf-color-muted);
	font-size: 16px;
	line-height: 1.7;
}

.ssf-product-summary
.woocommerce-product-details__short-description
> :first-child {
	margin-top: 0;
}

.ssf-product-summary
.woocommerce-product-details__short-description
> :last-child {
	margin-bottom: 0;
}

/* =========================================================
   VARIATIONS
   ========================================================= */

.ssf-product-summary form.cart {
	margin:
		var(--ssf-space-5)
		0
		0;
}

.ssf-product-summary table.variations {
	width: 100%;
	margin:
		0
		0
		var(--ssf-space-5);

	border: 0;
}

.ssf-product-summary table.variations tr {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ssf-space-2);

	margin-bottom: var(--ssf-space-4);
}

.ssf-product-summary table.variations th,
.ssf-product-summary table.variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	text-align: left;
}

.ssf-product-summary table.variations label {
	color: var(--ssf-color-text);
	font-size: 14px;
	font-weight: 800;
}

.ssf-product-summary table.variations select {
	width: 100%;
	min-height: 50px;
	padding:
		11px
		42px
		11px
		14px;

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-small);

	background-color: var(--ssf-color-white);
	color: var(--ssf-color-text);

	font: inherit;
	font-size: 15px;
	font-weight: 600;
}

.ssf-product-summary .reset_variations {
	display: inline-flex;
	margin-top: var(--ssf-space-2);

	color: var(--ssf-color-primary);
	font-size: 13px;
	font-weight: 700;
}

/* =========================================================
   VARIATION PRICE
   ========================================================= */

.ssf-product-summary
.single_variation_wrap {
	display: flex;
	flex-direction: column;
	gap: var(--ssf-space-4);
}

.ssf-product-summary
.woocommerce-variation-price {
	font-size: 26px;
	font-weight: 800;
}

/* =========================================================
   CART
   ========================================================= */

.ssf-product-summary
.woocommerce-variation-add-to-cart,
.ssf-product-summary
form.cart:not(.variations_form) {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: var(--ssf-space-3);
	align-items: stretch;
}

.ssf-product-summary .quantity {
	float: none;
	width: 100%;
	margin: 0;
}

.ssf-product-summary .quantity .qty {
	width: 100%;
	height: 56px;
	margin: 0;
	padding-inline: 12px;

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-small);

	background: var(--ssf-color-white);
	color: var(--ssf-color-text);

	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

.ssf-product-summary
.single_add_to_cart_button.button {
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 16px 24px;

	border: 1px solid var(--ssf-color-primary);
	border-radius: var(--ssf-radius-small);

	background: var(--ssf-color-primary);
	color: var(--ssf-color-white);

	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;

	transition:
		background-color var(--ssf-transition-fast),
		border-color var(--ssf-transition-fast),
		transform var(--ssf-transition-fast);
}

.ssf-product-summary
.single_add_to_cart_button.button:hover {
	border-color: var(--ssf-color-primary-hover);
	background: var(--ssf-color-primary-hover);
	color: var(--ssf-color-white);
	transform: translateY(-1px);
}

.ssf-product-summary
.single_add_to_cart_button.button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* =========================================================
   STOCK
   ========================================================= */

.ssf-product-summary .stock {
	margin:
		0
		0
		var(--ssf-space-4);

	font-size: 14px;
	font-weight: 700;
}

.ssf-product-summary .stock.in-stock {
	color: #197a3e;
}

.ssf-product-summary .stock.out-of-stock {
	color: var(--ssf-color-primary);
}

/* =========================================================
   META
   ========================================================= */

.ssf-product-summary .product_meta {
	display: flex;
	flex-direction: column;
	gap: var(--ssf-space-2);

	margin-top: var(--ssf-space-5);
	padding-top: var(--ssf-space-4);

	border-top: 1px solid var(--ssf-color-border);

	color: var(--ssf-color-muted);
	font-size: 13px;
	line-height: 1.5;
}

.ssf-product-summary .product_meta a {
	color: var(--ssf-color-text);
	font-weight: 600;
	text-decoration: none;
}

/* =========================================================
   ASSURANCES
   ========================================================= */

.ssf-product-assurances {
	display: flex;
	flex-direction: column;
	gap: var(--ssf-space-3);

	margin-top: var(--ssf-space-5);
	padding-top: var(--ssf-space-5);

	border-top: 1px solid var(--ssf-color-border);
}

.ssf-product-assurance {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: var(--ssf-space-3);
	align-items: start;
}

.ssf-product-assurance__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 24px;
	height: 24px;

	border-radius: 50%;
	background: rgba(227, 6, 19, 0.1);
	color: var(--ssf-color-primary);

	font-size: 13px;
	font-weight: 800;
}

.ssf-product-assurance > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ssf-product-assurance strong {
	color: var(--ssf-color-text);
	font-size: 14px;
	line-height: 1.35;
}

.ssf-product-assurance small {
	color: var(--ssf-color-muted);
	font-size: 12px;
	line-height: 1.45;
}

/* =========================================================
   DETAILS / TABS
   ========================================================= */

.ssf-product-details {
	background: var(--ssf-color-background-soft);
}

.ssf-product-details
.woocommerce-tabs {
	margin: 0;
}

.ssf-product-details
.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ssf-space-2);

	margin:
		0
		0
		var(--ssf-space-5);
	padding: 0;

	border: 0;
}

.ssf-product-details
.woocommerce-tabs ul.tabs::before {
	display: none;
}

.ssf-product-details
.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-pill);

	background: var(--ssf-color-white);
}

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

.ssf-product-details
.woocommerce-tabs ul.tabs li a {
	padding: 10px 18px;

	color: var(--ssf-color-text);
	font-size: 14px;
	font-weight: 700;
}

.ssf-product-details
.woocommerce-tabs ul.tabs li.active {
	border-color: var(--ssf-color-primary);
	background: var(--ssf-color-primary);
}

.ssf-product-details
.woocommerce-tabs ul.tabs li.active a {
	color: var(--ssf-color-white);
}

.ssf-product-details
.woocommerce-Tabs-panel {
	padding: clamp(24px, 4vw, 48px);

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-large);

	background: var(--ssf-color-white);
}

/* =========================================================
   RELATED / UPSELL
   ========================================================= */

.ssf-product-details .related.products,
.ssf-product-details .upsells.products {
	margin-top: var(--ssf-space-8);
}

.ssf-product-details .related.products > h2,
.ssf-product-details .upsells.products > h2 {
	margin:
		0
		0
		var(--ssf-space-5);

	color: var(--ssf-color-text);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
	.ssf-product-main__grid {
		grid-template-columns:
			minmax(0, 1fr)
			minmax(0, 0.9fr);

		gap: var(--ssf-space-6);
	}

	.ssf-product-summary {
		padding: var(--ssf-space-5);
	}

	.ssf-product-summary .product_title {
		font-size: 38px;
	}
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
	.ssf-product-main__grid {
		grid-template-columns: 1fr;
		gap: var(--ssf-space-5);
	}

	.ssf-product-gallery-column {
		position: static;
	}

	.ssf-product-summary {
		padding: var(--ssf-space-4);
	}

	.ssf-product-summary .product_title {
		font-size: 34px;
	}

	.ssf-product-summary
	.woocommerce-variation-add-to-cart,
	.ssf-product-summary
	form.cart:not(.variations_form) {
		grid-template-columns: 90px minmax(0, 1fr);
	}

	.ssf-product-details
	.woocommerce-tabs ul.tabs {
		flex-direction: column;
	}

	.ssf-product-details
	.woocommerce-tabs ul.tabs li {
		width: 100%;
		border-radius: var(--ssf-radius-small);
	}

	.ssf-product-details
	.woocommerce-tabs ul.tabs li a {
		display: block;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssf-product-summary
	.single_add_to_cart_button.button {
		transition: none;
	}
}

/* =========================================================
   PURCHASE PANEL
   ========================================================= */

.ssf-product-purchase-panel {
	display: flex;
	flex-direction: column;
	gap: var(--ssf-space-5);
	min-width: 0;
	max-width: 100%;

	padding: clamp(28px, 4vw, 44px);

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-large);

	background: var(--ssf-color-white);
	box-shadow: var(--ssf-shadow-small);
}

.ssf-product-purchase-panel__header {
	display: flex;
	flex-direction: column;
	gap: var(--ssf-space-4);
}

.ssf-product-purchase-panel__title {
	margin: 0;

	color: var(--ssf-color-text);
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.03;
	letter-spacing: -0.045em;
}

.ssf-product-purchase-panel__social-proof {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ssf-space-4);
}

.ssf-product-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ssf-space-2);
}

.ssf-product-rating .star-rating {
	float: none;
	margin: 0;
}

.ssf-product-rating__value {
	color: var(--ssf-color-text);
	font-size: 14px;
	font-weight: 800;
}

.ssf-product-rating__reviews {
	color: var(--ssf-color-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.ssf-product-purchase-panel__description {
	color: var(--ssf-color-muted);
	font-size: 16px;
	line-height: 1.65;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.ssf-product-benefits {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ssf-space-3) var(--ssf-space-5);

	margin: 0;
	padding: 0;

	list-style: none;
}

.ssf-product-benefits li {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	color: var(--ssf-color-text);
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
}

.ssf-product-benefits li span {
	color: var(--ssf-color-primary);
}

/* =========================================================
   PRODUCT FORM
   ========================================================= */

.ssf-product-purchase-panel__form {
	overflow: hidden;
	min-width: 0;
	max-width: 100%;

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-large);
}

.ssf-product-purchase-panel__form form.cart {
	max-width: 100%;
	margin: 0;
}

.ssf-product-purchase-panel__form table.variations {
	max-width: 100%;
	margin: 0;
}

.ssf-product-purchase-panel__form table.variations tr {
	margin: 0;
	padding: var(--ssf-space-5);

	border-bottom: 1px solid var(--ssf-color-border);
}

.ssf-product-purchase-panel__form
.single_variation_wrap {
	padding: var(--ssf-space-5);
}

.ssf-product-purchase-panel__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;

	padding: var(--ssf-space-4);

	border: 1px solid var(--ssf-color-border);
	border-radius: var(--ssf-radius-medium);

	color: var(--ssf-color-muted);
	font-size: 13px;
}

.ssf-product-purchase-panel__status .is-available {
	color: #197a3e;
	font-weight: 700;
}

.ssf-product-purchase-panel__status .is-unavailable {
	color: var(--ssf-color-primary);
	font-weight: 700;
}

.ssf-product-purchase-panel__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ssf-space-3) var(--ssf-space-5);

	color: var(--ssf-color-muted);
	font-size: 12px;
}

.ssf-product-purchase-panel__meta a {
	color: var(--ssf-color-text);
	font-weight: 650;
	text-decoration: none;
}

/* =========================================================
   QUANTITY HELP
   ========================================================= */

.ssf-product-quantity-help {
	margin-top: var(--ssf-space-5);
	padding: var(--ssf-space-5);

	border-radius: var(--ssf-radius-large);

	background:
		linear-gradient(
			135deg,
			var(--ssf-color-dark),
			var(--ssf-color-dark-soft)
		);

	color: var(--ssf-color-white);
}

.ssf-product-quantity-help__header {
	margin-bottom: var(--ssf-space-4);
}

.ssf-product-quantity-help__header h2 {
	margin:
		0
		0
		var(--ssf-space-2);

	color: var(--ssf-color-white);
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
}

.ssf-product-quantity-help__header p {
	margin: 0;

	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
}

.ssf-product-quantity-help__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ssf-space-3);
}

.ssf-product-quantity-help__item {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 7px;

	min-height: 130px;
	padding: var(--ssf-space-4);

	border: 2px solid transparent;
	border-radius: var(--ssf-radius-medium);

	background:
		linear-gradient(145deg, var(--ssf-color-white) 52%, #f1f1f1 100%);
	color: var(--ssf-color-text);

	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition:
		border-color var(--ssf-transition-fast),
		box-shadow var(--ssf-transition-fast),
		transform var(--ssf-transition-fast);
}

.ssf-product-quantity-help__item:hover,
.ssf-product-quantity-help__item[aria-expanded="true"] {
	border-color: var(--ssf-color-primary);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	transform: translateY(-3px);
}

.ssf-product-quantity-help__item[aria-expanded="true"] {
	background: var(--ssf-color-white);
}

.ssf-product-quantity-help__item:focus-visible {
	border-color: var(--ssf-color-white);
	outline: 3px solid var(--ssf-color-primary);
	outline-offset: 2px;
}

.ssf-product-quantity-help__visual {
	position: absolute;
	top: var(--ssf-space-3);
	right: var(--ssf-space-3);
	display: grid;
	place-items: center;
	width: 58px;
	height: 44px;
	color: rgba(23, 23, 23, 0.2);
}

.ssf-product-quantity-help__visual svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.5;
}

.ssf-product-quantity-help__item:hover .ssf-product-quantity-help__visual,
.ssf-product-quantity-help__item[aria-expanded="true"] .ssf-product-quantity-help__visual {
	color: rgba(185, 42, 34, 0.35);
}

.ssf-product-quantity-help__item > span:last-child {
	color: var(--ssf-color-primary);
	font-size: 11px;
	font-weight: 750;
}

@media (max-width: 767px) {
	.ssf-product-gallery-column .flex-control-thumbs {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: var(--ssf-space-2);
	}

	.ssf-product-gallery-column .flex-control-thumbs li {
		flex: 0 0 72px;
		scroll-snap-align: start;
	}

	.ssf-product-purchase-panel {
		padding: var(--ssf-space-4);
	}

	.ssf-product-quantity-help__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ssf-product-quantity-help > [role="region"]:focus-visible {
	outline: 3px solid var(--ssf-color-primary);
	outline-offset: 3px;
}

@media (max-width: 430px) {
	.ssf-product-purchase-panel,
	.ssf-product-quantity-help,
	.ssf-product-purchase-panel__form table.variations tr,
	.ssf-product-purchase-panel__form .single_variation_wrap {
		padding: var(--ssf-space-3);
	}

	.ssf-product-purchase-panel__title {
		font-size: 30px;
		overflow-wrap: anywhere;
	}

	.ssf-product-quantity-help__grid {
		grid-template-columns: 1fr;
	}

	.ssf-product-quantity-help__item {
		min-height: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssf-product-gallery-column .flex-control-thumbs img,
	.ssf-product-quantity-help__item {
		transition: none;
	}
}

.ssf-kit-configurator__error {
	margin: var(--ssf-space-3) 0 0;
	color: #b42318;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

/* =========================================================
   APPROVED PRODUCT PAGE VISUAL SYSTEM
   ========================================================= */

body.single-product,
.ssf-product-page,
.ssf-product-details {
	background: var(--ssf-color-white);
}

.ssf-product-main {
	padding-top: 12px;
}

.ssf-product-main__grid {
	/* Both tracks must be shrinkable: a fixed 420px summary track leaked its
	 * min-content width into the stacked mobile grid (416px rendered width). */
	grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
	gap: clamp(24px, 3vw, 44px);
}

.ssf-product-gallery-column {
	position: static;
}

.ssf-product-gallery-column .woocommerce-product-gallery {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	grid-template-rows: auto;
	gap: 14px;
	align-items: start;
}

.ssf-product-gallery-column .woocommerce-product-gallery__wrapper {
	grid-column: 2;
	grid-row: 1;
	border: 0;
	border-radius: 12px;
	background: #f7f7f7;
	box-shadow: none;
}

/*
 * FlexSlider inserts .flex-viewport between the gallery grid and its wrapper
 * at runtime. Place that direct grid child explicitly; otherwise it occupies
 * the 76px thumbnail track and makes the main image appear collapsed.
 */
.ssf-product-gallery-column .flex-viewport {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.ssf-product-gallery-column .woocommerce-product-gallery__trigger {
	grid-column: 2;
	grid-row: 1;
	align-self: start;
	justify-self: end;
	z-index: 4;
	margin: 14px;
}

.ssf-product-gallery-column .woocommerce-product-gallery__image {
	border-radius: 12px;
	background: linear-gradient(145deg, #fafafa, #f2f2f2);
}

.ssf-product-gallery-column .woocommerce-product-gallery__image img {
	aspect-ratio: 1.08 / 1;
}

.ssf-product-gallery-column .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.ssf-product-gallery-column .flex-control-thumbs img {
	border-color: transparent;
	border-radius: 8px;
	background: #f2f2f2;
}

.ssf-product-gallery-column .flex-control-thumbs img.flex-active {
	border-color: var(--ssf-color-primary);
	box-shadow: 0 0 0 1px var(--ssf-color-primary);
}

.ssf-product-gallery-benefits {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.ssf-product-gallery-benefits li {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.ssf-product-gallery-benefits__icon {
	display: grid;
	width: 42px;
	height: 42px;
	margin-bottom: 3px;
	place-items: center;
	color: #090909;
}

.ssf-product-gallery-benefits__icon svg {
	width: 36px;
	height: 36px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.ssf-product-gallery-benefits strong {
	font-size: 11px;
	line-height: 1.25;
	text-transform: uppercase;
}

.ssf-product-gallery-benefits small {
	color: var(--ssf-color-muted);
	font-size: 11px;
	line-height: 1.3;
}

.ssf-product-purchase-panel {
	gap: 18px;
	padding: clamp(22px, 2.4vw, 34px);
	border-radius: 12px;
	box-shadow: 0 4px 22px rgba(17, 17, 17, 0.07);
}

.ssf-product-purchase-panel__header {
	gap: 14px;
}

.ssf-product-purchase-panel__title {
	font-size: clamp(32px, 3.3vw, 46px);
	line-height: 1.04;
}

.ssf-product-purchase-panel__description {
	color: var(--ssf-color-text);
	font-size: 14px;
	line-height: 1.55;
}

.ssf-product-benefits {
	flex-direction: column;
	gap: 7px;
}

.ssf-product-purchase-panel__price p.price,
.ssf-product-purchase-panel__price span.price {
	margin: 0;
	color: var(--ssf-color-text);
	font-size: 29px;
	font-weight: 800;
	line-height: 1.1;
}

.ssf-product-purchase-panel__form {
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(17, 17, 17, 0.04);
}

.ssf-product-purchase-panel__form table.variations tr,
.ssf-product-purchase-panel__form .single_variation_wrap {
	padding: 16px;
}

.ssf-product-purchase-panel__status {
	justify-content: flex-end;
	padding: 0;
	border: 0;
}

.ssf-product-purchase-panel__meta {
	padding-top: 14px;
	border-top: 1px solid var(--ssf-color-border);
}

.ssf-product-quantity-help {
	margin-top: 36px;
	padding: 24px;
	border: 1px solid #ededed;
	border-radius: 12px;
	background: #f8f8f8;
	color: var(--ssf-color-text);
}

.ssf-product-quantity-help__header h2 {
	color: var(--ssf-color-text);
	font-size: 18px;
}

.ssf-product-quantity-help__header p {
	color: var(--ssf-color-muted);
}

.ssf-product-quantity-help__item {
	justify-content: flex-end;
	min-height: 184px;
	padding: 112px 14px 14px;
	border-width: 1px;
	border-color: #e5e5e5;
	border-radius: 9px;
	background: var(--ssf-color-white);
}

.ssf-product-quantity-help__visual {
	top: 0;
	right: 0;
	left: 0;
	width: auto;
	height: 100px;
	border-radius: 8px 8px 0 0;
	background-color: #262626;
	background-position: center;
	background-size: cover;
	color: rgba(255, 255, 255, 0.88);
}

.ssf-product-quantity-help__visual::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
	content: '';
}

.ssf-product-quantity-help__visual--auto {
	background-image: var(--ssf-configurator-photo-auto, linear-gradient(145deg, #c9cdd0, #171b1e));
}

.ssf-product-quantity-help__visual--moto {
	background-image: var(--ssf-configurator-photo-moto, linear-gradient(145deg, #e1d8d2, #a32b22 52%, #281d1a));
}

.ssf-product-quantity-help__visual--wheels {
	background-image: var(--ssf-configurator-photo-wheels, radial-gradient(circle at 54% 48%, #252525 0 16%, #a6a6a6 17% 27%, #292929 28% 45%, #737373 46% 53%, #202020 54% 100%));
}

.ssf-product-quantity-help__visual svg {
	position: relative;
	z-index: 1;
	width: 64px;
	height: 48px;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.ssf-product-quantity-help__item:hover .ssf-product-quantity-help__visual,
.ssf-product-quantity-help__item[aria-expanded="true"] .ssf-product-quantity-help__visual {
	color: var(--ssf-color-white);
}

.ssf-product-details {
	padding-top: 24px;
}

.ssf-product-details .woocommerce-tabs ul.tabs {
	gap: 32px;
	margin-bottom: 0;
	border-bottom: 1px solid var(--ssf-color-border);
}

.ssf-product-details .woocommerce-tabs ul.tabs li,
.ssf-product-details .woocommerce-tabs ul.tabs li.active {
	border: 0;
	border-radius: 0;
	background: transparent;
}

.ssf-product-details .woocommerce-tabs ul.tabs li a {
	padding: 14px 2px;
	color: #777;
}

.ssf-product-details .woocommerce-tabs ul.tabs li.active a {
	border-bottom: 2px solid var(--ssf-color-primary);
	color: var(--ssf-color-primary);
}

.ssf-product-details .woocommerce-Tabs-panel {
	padding: clamp(24px, 3vw, 40px);
	border-radius: 10px;
	font-size: 16px;
	line-height: 1.75;
}

@media (max-width: 1024px) {
	.ssf-product-main__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
		gap: 22px;
	}

	.ssf-product-gallery-column .woocommerce-product-gallery {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.ssf-product-gallery-benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ssf-product-main {
		padding-top: 10px;
	}

	.ssf-product-main__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ssf-product-gallery-column .woocommerce-product-gallery {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.ssf-product-gallery-column .woocommerce-product-gallery__wrapper {
		order: 1;
	}

	.ssf-product-gallery-column .woocommerce-product-gallery__trigger {
		position: absolute;
		top: 0;
		right: 0;
		margin: 12px;
	}

	.ssf-product-gallery-column .flex-control-thumbs {
		order: 2;
		flex-direction: row;
		margin: 0;
	}

	.ssf-product-gallery-column .woocommerce-product-gallery__image img {
		aspect-ratio: 1 / 1;
	}

	.ssf-product-gallery-benefits {
		margin-top: 18px;
	}

	.ssf-product-purchase-panel {
		padding: 20px;
	}

	.ssf-product-details .woocommerce-tabs ul.tabs {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 20px;
	}

	.ssf-product-details .woocommerce-tabs ul.tabs li {
		width: auto;
		flex: 0 0 auto;
	}
}

@media (max-width: 430px) {
	.ssf-product-gallery-benefits {
		gap: 16px 8px;
	}

	.ssf-product-gallery-benefits strong {
		font-size: 10px;
	}

	.ssf-product-quantity-help {
		padding: 16px;
	}

	.ssf-product-quantity-help__item {
		min-height: 164px;
		padding-top: 104px;
	}
}

/* =========================================================
   ISSUE 24 — REFERENCE COMPOSITION
   Keep these rules together: they describe the measurable desktop/mobile
   composition used by the automated browser QA fixture.
   ========================================================= */

.ssf-product-purchase-panel__commerce {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.ssf-product-purchase-panel__price {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.ssf-product-purchase-panel__price small {
	color: var(--ssf-color-muted);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
}

.ssf-product-purchase-panel__status {
	flex: 0 0 auto;
	padding: 0 0 3px;
	font-size: 13px;
}

.ssf-product-purchase-panel__status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #45a73d;
}

.ssf-product-purchase-panel__status:has(.is-unavailable)
.ssf-product-purchase-panel__status-dot {
	background: var(--ssf-color-primary);
}

.ssf-product-assurances {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 0;
	padding-top: 18px;
}

.ssf-product-assurance {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
}

.ssf-product-assurance__icon {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ssf-color-text);
}

.ssf-product-assurance__icon svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.ssf-product-assurance strong {
	font-size: 11px;
	line-height: 1.2;
}

.ssf-product-assurance small {
	font-size: 10px;
	line-height: 1.25;
}

@media (min-width: 901px) {
	.ssf-product-page .ssf-container {
		--ssf-product-inline-gutter: clamp(24px, 5.4vw, 72px);
		width: min(
			calc(100% - (var(--ssf-product-inline-gutter) * 2)),
			1280px
		);
	}

	.ssf-product-main__grid {
		grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
		gap: clamp(22px, 2.4vw, 34px);
	}

	.ssf-product-purchase-panel {
		gap: 16px;
	}
}

@media (max-width: 900px) {
	.ssf-product-assurances {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.ssf-product-purchase-panel__commerce {
		align-items: center;
	}

	.ssf-product-assurances {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.ssf-product-assurances {
		grid-template-columns: 1fr;
	}
}

/* Issue 24 final viewport and editorial checks. */
body.single-product #masthead .site-main-header-inner-wrap {
	min-height: 64px;
}

body.single-product #masthead .primary-menu-container > ul > li > a {
	padding-block: 20px;
}

.ssf-product-page .ssf-container {
	max-width: 1220px;
}

.ssf-product-page,
.ssf-product-main,
.ssf-product-main .ssf-container {
	background-color: #fff;
}

.ssf-product-gallery-column .woocommerce-product-gallery__wrapper,
.ssf-product-gallery-column .woocommerce-product-gallery__image {
	background: #fff;
}

.ssf-product-breadcrumb-section {
	padding-top: 8px;
}

.ssf-product-breadcrumb {
	min-height: 24px;
	font-size: 11px;
}

.ssf-product-details .woocommerce-tabs ul.tabs,
.ssf-product-details .woocommerce-tabs ul.tabs li {
	list-style: none;
}

.ssf-product-details .woocommerce-tabs ul.tabs li::marker {
	content: '';
}

.ssf-product-details .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

.ssf-product-details .woocommerce-Tabs-panel h2,
.ssf-product-details .woocommerce-Tabs-panel h3 {
	font-size: 16px;
	line-height: 1.35;
}

.ssf-product-details .woocommerce-Tabs-panel p:first-child { margin-top: 0; }
.ssf-product-details .woocommerce-Tabs-panel p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
	.ssf-product-main__grid { grid-template-columns: minmax(0, 1fr); }
	.ssf-product-gallery-column { position: static; }
	.ssf-product-gallery-column .woocommerce-product-gallery {
		position: relative;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		width: 100%;
		min-width: 0;
	}
	.ssf-product-gallery-column .woocommerce-product-gallery__trigger {
		position: absolute;
		top: 0;
		right: 0;
		margin: 12px;
	}
	.ssf-product-gallery-column .woocommerce-product-gallery__wrapper,
	.ssf-product-gallery-column .flex-viewport { order: 1; }
	.ssf-product-gallery-column .flex-control-thumbs {
		order: 2;
		flex-direction: row;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}
	.ssf-product-gallery-column .flex-control-thumbs li {
		flex: 0 0 72px;
		scroll-snap-align: start;
	}
	.ssf-product-assurances { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
	body.single-product #masthead .site-main-header-inner-wrap { min-height: 56px; }
	.ssf-product-main { padding-top: 6px; }
	.ssf-product-main__grid { gap: 18px; }
	.ssf-product-gallery-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ssf-product-assurances { grid-template-columns: 1fr; }
}

/* =========================================================
   ISSUE 29 — REAL COMMERCE DOM REMEDIATION
   These rules target the Kadence/WooCommerce nodes rendered on the demo.
   ========================================================= */

/* Kadence can render an empty configured bottom row below the real header. */
body.single-product #masthead .site-bottom-header-wrap,
body.single-product #masthead .site-bottom-header-inner-wrap,
body.single-product #masthead .site-header-row-container.site-bottom-header-wrap {
	display: none !important;
}

/* WooCommerce/Kadence also emits its default breadcrumb before our custom Product Page breadcrumb. */
body.single-product .woocommerce-breadcrumb:not(.ssf-product-breadcrumb) {
	display: none !important;
}

/* Kadence renders a second product-above breadcrumb wrapper outside WooCommerce. */
body.single-product .product-title.product-above,
body.single-product #kadence-breadcrumbs {
	display: none !important;
}


.ssf-product-breadcrumb-section {
	padding: 0;
	border: 0;
	background: #fff;
}

.ssf-product-breadcrumb-section .ssf-container {
	padding-block: 7px 5px;
}

.ssf-product-breadcrumb {
	min-height: 18px;
	gap: 5px;
	white-space: nowrap;
	overflow: hidden;
	font-size: 10px;
	line-height: 1.2;
	text-overflow: ellipsis;
}

.ssf-product-main {
	padding: 8px 0 32px;
}

.ssf-product-gallery-column .woocommerce-product-gallery {
	isolation: isolate;
}

/* Keep WooCommerce lightbox behavior, but match the approved expand icon. */
.ssf-product-gallery-column .woocommerce-product-gallery__trigger {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #e6e6e6;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0;
	text-decoration: none;
}

.ssf-product-gallery-column .woocommerce-product-gallery__trigger::before {
	position: static !important;
	display: block;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H3v5M16 3h5v5M21 16v5h-5M3 16v5h5'/%3E%3C/svg%3E") !important;
	content: '' !important;
	transform: none !important;
}

.ssf-product-gallery-column .woocommerce-product-gallery__trigger::after {
	display: none !important;
	content: none !important;
}

.ssf-product-gallery-controls {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 84px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 12px;
	pointer-events: none;
}

.ssf-product-gallery-controls__arrow {
	display: grid;
	width: 36px;
	height: 36px;
	padding: 0;
	place-items: center;
	border: 1px solid #dedede;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--ssf-color-text);
	box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
	font: inherit;
	font-size: 25px;
	line-height: 1;
	pointer-events: auto;
	cursor: pointer;
}

.ssf-product-gallery-controls__arrow:hover,
.ssf-product-gallery-controls__arrow:focus-visible {
	border-color: var(--ssf-color-primary);
	color: var(--ssf-color-primary);
}

.ssf-product-gallery-controls__counter {
	position: absolute;
	right: 14px;
	bottom: 12px;
	min-width: 42px;
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.82);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
}

.ssf-product-gallery-benefits {
	gap: 8px;
	margin-top: 14px;
	padding: 10px 4px 0;
	border-top: 1px solid #ececec;
}

.ssf-product-gallery-benefits__icon {
	width: 34px;
	height: 34px;
	margin-bottom: 1px;
}

.ssf-product-gallery-benefits__icon svg {
	width: 31px;
	height: 31px;
}

.ssf-product-gallery-benefits small {
	display: block;
	font-size: 10px;
	line-height: 1.25;
}

.ssf-product-purchase-panel {
	gap: 12px;
	padding: 24px;
	border-color: #e6e6e6;
	box-shadow: 0 5px 18px rgba(17, 17, 17, 0.055);
}

.ssf-product-purchase-panel__header {
	gap: 9px;
}

.ssf-product-purchase-panel__title {
	font-size: clamp(30px, 2.75vw, 39px);
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.ssf-product-purchase-panel__description {
	font-size: 13px;
	line-height: 1.5;
}

.ssf-product-benefits {
	gap: 5px;
}

.ssf-product-purchase-panel__commerce {
	padding-top: 2px;
}

.ssf-product-purchase-panel__price p.price,
.ssf-product-purchase-panel__price span.price {
	font-size: 27px;
}

.ssf-product-purchase-panel__form {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ssf-product-purchase-panel__form table.variations tr,
.ssf-product-purchase-panel__form .single_variation_wrap {
	padding: 12px 0;
	border-top: 1px solid var(--ssf-color-border);
	border-bottom: 0;
}

.ssf-product-purchase-panel__form .single_add_to_cart_button.button {
	min-height: 52px;
	border-radius: 6px;
	font-size: 13px;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.ssf-product-assurances {
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--ssf-color-border);
}

.ssf-product-quantity-help {
	margin-top: 24px;
	padding: 20px;
	background: #f5f5f5;
}

.ssf-product-quantity-help__grid {
	gap: 10px;
}

.ssf-product-quantity-help__item {
	min-height: 168px;
	padding-top: 105px;
}

.ssf-product-quantity-help__visual {
	height: 94px;
	background-color: #dedede;
	background-position: center;
	background-size: cover;
}

.ssf-product-quantity-help__visual.has-photo svg,
.ssf-product-quantity-help__visual.is-asset-gap svg,
.ssf-product-quantity-help__visual.is-asset-gap::after {
	display: none;
}

.ssf-product-quantity-help__asset-gap {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	padding: 12px;
	color: #666;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.ssf-product-details {
	padding: 36px 0 52px;
	background: #f7f7f7;
}

.ssf-product-details .woocommerce-tabs ul.tabs {
	gap: 28px;
}

.ssf-product-details .woocommerce-Tabs-panel {
	margin-top: 18px;
	padding: 0;
	background: transparent;
}

.ssf-product-details #tab-description {
	display: block;
	overflow-wrap: anywhere;
}

.ssf-product-details #tab-description > p {
	margin: 0 0 16px;
}

.ssf-product-details #tab-description > p:only-child {
	grid-column: 1 / -1;
}

@media (min-width: 901px) {
	.ssf-product-page .ssf-container {
		width: min(calc(100% - clamp(48px, 6vw, 88px)), 1100px);
		max-width: 1100px;
	}

	.ssf-product-main__grid {
		grid-template-columns: minmax(0, 1.14fr) minmax(370px, 0.86fr);
		gap: 28px;
	}

	.ssf-product-gallery-column .woocommerce-product-gallery {
		grid-template-columns: 70px minmax(0, 1fr);
	}

	.ssf-product-purchase-panel {
		padding: 22px;
	}

	.ssf-product-purchase-panel__title {
		font-size: clamp(29px, 2.55vw, 37px);
	}

	/* Slightly shorter hero image, matching the approved reference proportions. */
	.ssf-product-gallery-column .woocommerce-product-gallery__image img {
		aspect-ratio: 1.18 / 1;
	}
}

@media (max-width: 900px) {
	.ssf-product-gallery-controls {
		left: 0;
		bottom: 82px;
	}
}

@media (max-width: 767px) {
	.ssf-product-gallery-controls__arrow {
		width: 34px;
		height: 34px;
	}

	.ssf-product-details #tab-description {
		grid-template-columns: 1fr;
	}

	.ssf-product-details #tab-description > p:only-child {
		grid-column: auto;
	}
}


/* =========================================================
   MANUAL 04 — PRODUCT KIT CONFIGURATOR UI
   ========================================================= */

.ssf-product-quantity-help__item {
	min-height: 158px;
	padding: 103px 14px 14px;
	border: 1px solid #dedede;
	border-radius: 10px;
	box-shadow: none;
	background: #fff;
	transform: none;
}

.ssf-product-quantity-help__item:hover,
.ssf-product-quantity-help__item[aria-expanded="true"] {
	border-color: var(--ssf-color-primary);
	box-shadow: 0 0 0 1px rgba(185, 42, 34, 0.10);
	transform: none;
}

.ssf-product-quantity-help__item > strong {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
}

.ssf-product-quantity-help__item > span:last-child {
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
}

.ssf-product-quantity-help__visual {
	height: 92px;
	border-radius: 9px 9px 0 0;
}

:is(
	#ssf-product-auto-configurator,
	#ssf-product-motorcycle-configurator,
	#ssf-product-wheel-configurator
) {
	margin-top: 16px;
	padding: 20px;
	border: 1px solid #dedede;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 3px 14px rgba(17, 17, 17, 0.04);
}

:is(
	#ssf-product-auto-configurator,
	#ssf-product-motorcycle-configurator,
	#ssf-product-wheel-configurator
)[hidden] {
	display: none !important;
}

:is(
	.ssf-product-auto-configurator__inner,
	.ssf-product-motorcycle-configurator__inner,
	.ssf-product-wheel-configurator__inner
) {
	display: grid;
	gap: 16px;
}

:is(
	.ssf-product-auto-configurator__header,
	.ssf-product-motorcycle-configurator__header,
	.ssf-product-wheel-configurator__header
) h3 {
	margin: 0 0 6px;
	color: var(--ssf-color-text);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

:is(
	.ssf-product-auto-configurator__header,
	.ssf-product-motorcycle-configurator__header,
	.ssf-product-wheel-configurator__header
) p {
	max-width: 620px;
	margin: 0;
	color: var(--ssf-color-muted);
	font-size: 13px;
	line-height: 1.5;
}

:is(
	.ssf-product-auto-configurator__fields,
	.ssf-product-motorcycle-configurator__fields,
	.ssf-product-wheel-configurator__fields
) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

:is(
	.ssf-product-auto-configurator__fields,
	.ssf-product-motorcycle-configurator__fields,
	.ssf-product-wheel-configurator__fields
) label {
	display: grid;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

:is(
	.ssf-product-auto-configurator__fields,
	.ssf-product-motorcycle-configurator__fields,
	.ssf-product-wheel-configurator__fields
) label > span {
	color: var(--ssf-color-text);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

:is(
	.ssf-product-auto-configurator__fields,
	.ssf-product-motorcycle-configurator__fields,
	.ssf-product-wheel-configurator__fields
) select {
	width: 100%;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 38px 0 12px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background-color: #fff;
	color: var(--ssf-color-text);
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	line-height: 1;
	box-shadow: none;
}

:is(
	.ssf-product-auto-configurator__fields,
	.ssf-product-motorcycle-configurator__fields,
	.ssf-product-wheel-configurator__fields
) select:focus {
	border-color: var(--ssf-color-primary);
	outline: 2px solid rgba(185, 42, 34, 0.12);
	outline-offset: 1px;
}

:is(
	.ssf-product-auto-configurator__fields,
	.ssf-product-motorcycle-configurator__fields,
	.ssf-product-wheel-configurator__fields
) select:disabled {
	background-color: #f5f5f5;
	color: #8a8a8a;
	cursor: not-allowed;
}

:is(
	.ssf-product-auto-configurator__submit,
	.ssf-product-motorcycle-configurator__submit,
	.ssf-product-wheel-configurator__submit
) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 170px;
	max-width: 220px;
	min-height: 44px;
	margin: 0;
	padding: 11px 18px;
	border: 1px solid var(--ssf-color-primary);
	border-radius: 7px;
	background: var(--ssf-color-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
}

:is(
	.ssf-product-auto-configurator__submit,
	.ssf-product-motorcycle-configurator__submit,
	.ssf-product-wheel-configurator__submit
):hover:not(:disabled) {
	border-color: var(--ssf-color-primary-hover);
	background: var(--ssf-color-primary-hover);
}

:is(
	.ssf-product-auto-configurator__submit,
	.ssf-product-motorcycle-configurator__submit,
	.ssf-product-wheel-configurator__submit
):disabled {
	border-color: #dedede;
	background: #f1f1f1;
	color: #777;
	cursor: not-allowed;
}

@media (max-width: 600px) {
	:is(
		#ssf-product-auto-configurator,
		#ssf-product-motorcycle-configurator,
		#ssf-product-wheel-configurator
	) {
		padding: 16px;
	}

	:is(
		.ssf-product-auto-configurator__fields,
		.ssf-product-motorcycle-configurator__fields,
		.ssf-product-wheel-configurator__fields
	) {
		grid-template-columns: 1fr;
	}

	:is(
		.ssf-product-auto-configurator__submit,
		.ssf-product-motorcycle-configurator__submit,
		.ssf-product-wheel-configurator__submit
	) {
		width: 100%;
		max-width: none;
	}
}


/* =========================================================
   MANUAL 05 — PRODUCT DETAILS / TABS / REVIEWS
   ========================================================= */

.ssf-product-details {
	padding: 32px 0 48px;
	background: #f7f7f7;
}

.ssf-product-details .woocommerce-tabs ul.tabs {
	display: flex;
	align-items: flex-end;
	gap: 30px;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #dedede;
}

.ssf-product-details .woocommerce-tabs ul.tabs li,
.ssf-product-details .woocommerce-tabs ul.tabs li.active {
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.ssf-product-details .woocommerce-tabs ul.tabs li a {
	display: block;
	width: auto;
	padding: 12px 0 10px;
	border-bottom: 2px solid transparent;
	color: #777;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.2;
}

.ssf-product-details .woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--ssf-color-primary);
	color: var(--ssf-color-primary);
}

.ssf-product-details .woocommerce-Tabs-panel {
	margin-top: 14px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.65;
}

.ssf-product-details #tab-description[data-ssf-details-structured="true"] {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: 16px;
	align-items: start;
}

.ssf-product-description-card,
.ssf-product-application-card,
.ssf-product-details #tab-additional_information,
.ssf-product-details #tab-reviews {
	border: 1px solid #e3e3e3;
	border-radius: 9px;
	background: #fff;
}

.ssf-product-description-card,
.ssf-product-application-card {
	padding: 22px 24px;
}

.ssf-product-description-card > :first-child,
.ssf-product-application-card > :first-child {
	margin-top: 0;
}

.ssf-product-description-card > :last-child,
.ssf-product-application-card > :last-child {
	margin-bottom: 0;
}

.ssf-product-description-card p {
	margin: 0 0 16px;
	color: var(--ssf-color-text);
	font-size: 15px;
	line-height: 1.68;
}

.ssf-product-description-card p:last-child {
	margin-bottom: 0;
}

.ssf-product-application-card h2,
.ssf-product-application-card h3 {
	margin: 0 0 14px;
	color: var(--ssf-color-text);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}

.ssf-product-application-card ul,
.ssf-product-application-card ol {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ssf-application-step;
}

.ssf-product-application-card li {
	position: relative;
	display: block;
	min-height: 20px;
	margin: 0;
	padding: 0 0 0 31px;
	color: var(--ssf-color-text);
	font-size: 13px;
	line-height: 1.5;
	counter-increment: ssf-application-step;
}

.ssf-product-application-card li::before {
	position: absolute;
	top: 0.05em;
	left: 0;
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	border-radius: 50%;
	background: var(--ssf-color-primary);
	color: #fff;
	content: counter(ssf-application-step);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.ssf-product-details #tab-additional_information {
	padding: 22px 24px;
}

.ssf-product-details #tab-additional_information table {
	width: 100%;
	margin: 0;
	border: 0;
}

.ssf-product-details #tab-additional_information th,
.ssf-product-details #tab-additional_information td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid #ededed;
	background: transparent;
	font-size: 13px;
	text-align: left;
}

.ssf-product-details #tab-additional_information tr:last-child th,
.ssf-product-details #tab-additional_information tr:last-child td {
	border-bottom: 0;
}

.ssf-product-details #tab-reviews {
	padding: 22px 24px;
}

.ssf-product-details #reviews {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
	gap: 24px;
}

.ssf-product-details #reviews #comments,
.ssf-product-details #reviews #review_form_wrapper {
	min-width: 0;
}

.ssf-product-details #reviews h2,
.ssf-product-details #reviews h3 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.ssf-product-details #reviews .commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ssf-product-details #reviews .commentlist li {
	margin: 0 0 14px;
	padding: 0 0 14px;
	border-bottom: 1px solid #ededed;
}

.ssf-product-details #reviews .commentlist li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

@media (max-width: 767px) {
	.ssf-product-details {
		padding: 26px 0 38px;
	}

	.ssf-product-details .woocommerce-tabs ul.tabs {
		flex-direction: row;
		gap: 20px;
		overflow-x: auto;
		white-space: nowrap;
	}

	.ssf-product-details .woocommerce-tabs ul.tabs li {
		flex: 0 0 auto;
	}

	.ssf-product-details #tab-description[data-ssf-details-structured="true"],
	.ssf-product-details #reviews {
		grid-template-columns: 1fr;
	}

	.ssf-product-description-card,
	.ssf-product-application-card,
	.ssf-product-details #tab-additional_information,
	.ssf-product-details #tab-reviews {
		padding: 18px;
	}
}


/* =========================================================
   MANUAL 07 — ADDITIONAL INFORMATION
   ========================================================= */

.ssf-product-details #tab-additional_information {
	padding: 24px 26px;
}

.ssf-product-details #tab-additional_information table {
	table-layout: fixed;
}

.ssf-product-details #tab-additional_information th {
	width: 190px;
	padding-right: 28px;
	color: var(--ssf-color-text);
	font-size: 14px;
	font-weight: 800;
	vertical-align: top;
}

.ssf-product-details #tab-additional_information td {
	color: var(--ssf-color-text);
	font-size: 14px;
	font-style: normal;
	line-height: 1.55;
	vertical-align: top;
}

.ssf-product-details #tab-additional_information td p {
	margin: 0;
	color: inherit;
	font: inherit;
}

.ssf-product-details #tab-additional_information td a {
	color: var(--ssf-color-text);
	font-style: normal;
	font-weight: 500;
	text-decoration-color: #bdbdbd;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.14em;
}

.ssf-product-details #tab-additional_information td a:hover,
.ssf-product-details #tab-additional_information td a:focus-visible {
	color: var(--ssf-color-primary);
}

@media (max-width: 767px) {
	.ssf-product-details #tab-additional_information {
		padding: 18px;
	}

	.ssf-product-details #tab-additional_information table,
	.ssf-product-details #tab-additional_information tbody,
	.ssf-product-details #tab-additional_information tr,
	.ssf-product-details #tab-additional_information th,
	.ssf-product-details #tab-additional_information td {
		display: block;
		width: 100%;
	}

	.ssf-product-details #tab-additional_information th {
		padding: 12px 0 4px;
		border-bottom: 0;
	}

	.ssf-product-details #tab-additional_information td {
		padding: 0 0 12px;
	}

	.ssf-product-details #tab-additional_information tr:last-child td {
		padding-bottom: 0;
	}
}


/* MANUAL 10 — VARIABLE PRODUCT STARTING PRICE */
.ssf-product-purchase-panel__price .ssf-product-price-from {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}

.ssf-product-price-from__label {
	color: var(--ssf-color-muted);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
}

/* =========================================================
   ADD-TO-CART FEEDBACK
   ========================================================= */

body.single-product .woocommerce-notices-wrapper .woocommerce-message {
	display: none;
}

.ssf-cart-feedback {
	position: fixed;
	top: max(92px, calc(env(safe-area-inset-top) + 18px));
	right: clamp(16px, 3vw, 40px);
	z-index: 10000;
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) 26px;
	gap: 10px;
	align-items: center;
	width: min(360px, calc(100vw - 32px));
	padding: 13px 14px;
	border: 1px solid rgba(25, 122, 62, 0.26);
	border-radius: 10px;
	background: #f5fbf7;
	box-shadow: 0 12px 28px rgba(17, 17, 17, 0.16);
	color: var(--ssf-color-text);
	font-family: var(--ssf-font-family);
}

.ssf-cart-feedback[hidden] {
	display: none;
}

/* Simple products use the same purchase card without variation-only spacing. */
.ssf-product-page.product-type-simple .ssf-product-purchase-panel__form form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	padding-top: 18px;
	border-top: 1px solid var(--ssf-color-border);
}

.ssf-product-page.product-type-simple .ssf-product-purchase-panel__form .quantity {
	flex: 0 0 86px;
	float: none;
	margin: 0;
}

.ssf-product-page.product-type-simple .ssf-product-purchase-panel__form .qty {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--ssf-color-border);
	border-radius: 6px;
	background: #fff;
	color: var(--ssf-color-text);
	font-size: 16px;
	text-align: center;
}

.ssf-product-page.product-type-simple .ssf-product-purchase-panel__form .single_add_to_cart_button {
	flex: 1 1 180px;
	float: none;
	width: auto;
	margin: 0;
	padding: 14px 18px;
}

.ssf-product-page.product-type-simple .ssf-product-purchase-panel__form form.cart > .stock {
	flex-basis: 100%;
}

/* A one-image gallery must not reserve an empty thumbnail column. */
.ssf-product-gallery-column .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
	grid-template-columns: minmax(0, 1fr);
}

.ssf-product-gallery-column .woocommerce-product-gallery:not(:has(.flex-control-thumbs))
	:is(.woocommerce-product-gallery__wrapper, .flex-viewport, .woocommerce-product-gallery__trigger) {
	grid-column: 1;
}

.ssf-product-page.product-type-simple .woocommerce-product-gallery__image > a > img {
	aspect-ratio: 1.15 / 1;
	padding: 24px;
	object-fit: contain;
	border-radius: 10px;
	background: #f8f8f8;
}

.ssf-product-details #tab-description[data-ssf-details-layout="single"] {
	grid-template-columns: minmax(0, 1fr);
}

.ssf-product-description-card,
.ssf-product-application-card {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ssf-product-application-card p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.68;
}

.ssf-product-application-card > p:first-child br {
	display: none;
}

@media (max-width: 767px) {
	.ssf-product-page.product-type-simple .ssf-product-purchase-panel__form .quantity {
		flex-basis: 72px;
	}
	.ssf-product-page.product-type-simple .ssf-product-purchase-panel__form .single_add_to_cart_button {
		flex-basis: 150px;
	}
}

.ssf-cart-feedback__icon {
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border-radius: 50%;
	background: #197a3e;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
}

.ssf-cart-feedback p {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.ssf-cart-feedback__close {
	display: grid;
	width: 26px;
	height: 26px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ssf-color-muted);
	font: inherit;
	font-size: 21px;
	line-height: 1;
	cursor: pointer;
}

.ssf-cart-feedback__close:hover,
.ssf-cart-feedback__close:focus-visible {
	background: rgba(25, 122, 62, 0.09);
	color: #197a3e;
	outline: 0;
}

@media (max-width: 767px) {
	.ssf-cart-feedback {
		top: calc(env(safe-area-inset-top) + 16px);
		right: 16px;
	}
}


/* Mobile purchase panel comes before secondary benefits and kit guidance. */
@media (max-width: 767px) {
  .ssf-product-breadcrumb-section { padding: 8px 0; }
  .ssf-product-breadcrumb { gap: 4px; font-size: 11px; line-height: 1.5; }
  .ssf-product-breadcrumb a { color: var(--ssf-color-muted); }
  .ssf-product-breadcrumb > span { color: var(--ssf-color-primary); }
  .ssf-product-main.ssf-section { padding-top: 8px; }
  .ssf-product-gallery-benefits { display: none; }
  .ssf-product-gallery-column .woocommerce-product-gallery__image img {
    width: 100%; height: clamp(240px, 72vw, 360px); aspect-ratio: auto; object-fit: contain;
  }
  .ssf-product-page > .ssf-product-quantity-help {
    width: calc(100% - 32px); max-width: 1100px; margin: 24px auto 0; padding: 16px;
  }
  .ssf-product-quantity-help__header h2 { font-size: 20px; line-height: 1.25; }
  .ssf-product-quantity-help__header p { font-size: 14px; line-height: 1.5; }
  .ssf-product-quantity-help__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ssf-product-quantity-help__item { min-height: 130px; padding: 80px 8px 10px; }
  .ssf-product-quantity-help__item strong { font-size: 14px; }
  .ssf-product-quantity-help__item > span:not(.ssf-product-quantity-help__visual) { font-size: 11px; }
  .ssf-product-quantity-help__visual { height: 70px; }
  .ssf-product-page input:not([type="radio"]):not([type="checkbox"]),
  .ssf-product-page select { font-size: 16px; }
}

@media (max-width: 767px) {
  .ssf-product-details .ssf-product-quantity-help { width: 100%; margin: 24px 0 0; padding: 16px; }
}

/* A single radius selector fills the existing configurator grid. */
.ssf-product-wheel-configurator__fields > label:only-child { grid-column: 1 / -1; }

/* Read-only imported reviews: no empty form column. */
.ssf-product-details #reviews.ssf-reviews-readonly {
	grid-template-columns: minmax(0, 1fr);
}
.ssf-product-details #reviews.ssf-reviews-readonly .commentlist > li {
	padding: 20px 0;
}
.ssf-product-details #reviews.ssf-reviews-readonly .comment-text {
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
	padding: 20px;
	overflow-wrap: anywhere;
}
.ssf-product-details #reviews.ssf-reviews-readonly .meta {
	color: var(--ssf-color-muted);
	font-size: 13px;
}
.ssf-product-details #reviews.ssf-reviews-readonly .description {
	font-size: 15px;
	line-height: 1.65;
}
.ssf-product-details #reviews.ssf-reviews-readonly .children {
	margin: 16px 0 0;
	padding-left: 24px;
	list-style: none;
}
@media (max-width: 767px) {
	.ssf-product-details #reviews.ssf-reviews-readonly .comment-text {
		padding: 14px;
	}
	.ssf-product-details #reviews.ssf-reviews-readonly .children {
		padding-left: 12px;
	}
}

/* Preserve progressive disclosure against theme list/button display rules. */
.ssf-product-details #ssf-existing-reviews > [hidden],
.ssf-product-details .ssf-reviews-show-all[hidden] {
	display: none !important;
}
.ssf-product-details .ssf-reviews-show-all {
	margin-top: 20px;
}
