/*
 * OneTouch Factory - Sticky Product Bar v6
 */

:root {
	--otf-spb-primary: #b9020d;
	--otf-spb-secondary: #1b2b4b;
	--otf-spb-surface: #ececec;
	--otf-spb-text: #242424;
	--otf-spb-white: #ffffff;
	--otf-spb-muted: #858585;
	--otf-spb-green: #238636;
	--otf-spb-btn-radius: 20px;
	--otf-spb-radius: 18px;
	--otf-spb-desktop-width: 1390px;
	--otf-spb-desktop-min-height: 88px;
	--otf-spb-bottom-offset: 18px;
}

.single-product .wd-sticky-btn,
.single-product .woodmart-sticky-add-to-cart {
	display: none !important;
}

.otf-spb {
	position: fixed;
	inset-inline: 0;
	bottom: var(--otf-spb-bottom-offset);
	z-index: 99990;
	padding-inline: 16px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(22px);
	transition: opacity .22s ease, transform .28s cubic-bezier(.2,.7,.2,1), visibility .22s ease;
}

.otf-spb.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.otf-spb__shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(var(--otf-spb-desktop-width), calc(100vw - 32px));
	min-height: var(--otf-spb-desktop-min-height);
	margin-inline: auto;
	padding: 12px 20px;
	background: var(--otf-spb-surface);
	border: 1px solid rgba(0,0,0,.055);
	border-radius: var(--otf-spb-radius);
	box-shadow: 0 12px 34px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.06);
	pointer-events: auto;
	overflow: visible;
}

.otf-spb__product {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	gap: 14px;
}

.otf-spb__image-wrap {
	position: relative;
	flex: 0 0 var(--otf-spb-product-image-size, 78px);
	width: var(--otf-spb-product-image-size, 78px);
	height: var(--otf-spb-product-image-size, 78px);
	display: grid;
	place-items: center;
	text-decoration: none;
}

.otf-spb__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.otf-spb__discount {
	position: absolute;
	top: -8px;
	inset-inline-start: -8px;
	z-index: 3;
	min-width: 34px;
	height: 21px;
	padding-inline: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--otf-spb-primary);
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
}

.otf-spb__discount.is-hidden,
.otf-spb__saving.is-hidden {
	display: none;
}

.otf-spb__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.otf-spb__title {
	max-width: 520px;
	color: var(--otf-spb-product-title-color, var(--otf-spb-text));
	font-size: var(--otf-spb-product-title-size, 14px);
	font-weight: 850;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
}

.otf-spb__price-line,
.otf-spb__trust-row,
.otf-spb__urgency {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
}

.otf-spb__price {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--otf-spb-product-price-color, var(--otf-spb-primary));
	font-size: var(--otf-spb-product-price-size, 14px);
	font-weight: 900;
}

.otf-spb__price ins {
	text-decoration: none;
}

.otf-spb__price del,
.otf-spb__price del * {
	color: var(--otf-spb-muted) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
}

.otf-spb__saving {
	color: var(--otf-spb-green);
	font-size: 11px;
	font-weight: 850;
}

.otf-spb__usp,
.otf-spb__stock,
.otf-spb__delivery {
	font-size: var(--otf-spb-product-trust-size, 10px);
	font-weight: 750;
	line-height: 1.25;
}

.otf-spb__usp {
	color: var(--otf-spb-product-trust-color, var(--otf-spb-secondary));
}

.otf-spb__stock {
	/* Kept on the semantic "in stock" green on purpose — the trust-row color
	   setting only recolors the neutral usp/delivery lines so the stock
	   indicator's meaning stays intact even after a custom color is picked. */
	color: var(--otf-spb-green);
}

.otf-spb__delivery {
	color: var(--otf-spb-product-trust-color, #666);
}

.otf-spb__urgency {
	color: var(--otf-spb-primary);
	font-size: 10px;
	font-weight: 800;
}

.otf-spb__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 9px;
	direction: rtl;
}

.otf-spb button,
.otf-spb input,
.otf-spb a {
	font-family: inherit;
}

.otf-spb__icon-btn,
.otf-spb__qty,
.otf-spb__btn {
	height: 50px;
	border-radius: var(--otf-spb-btn-radius) !important;
}

.otf-spb__icon-btn {
	width: 54px;
	min-width: 54px;
	display: inline-grid;
	place-items: center;
	padding: 0;
	border: 1px solid #dadada;
	background: #fff;
	color: #696969;
	box-shadow: 0 2px 7px rgba(0,0,0,.07);
	cursor: pointer;
	text-decoration: none;
}

.otf-spb__icon-btn svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.otf-spb__icon-btn.is-added {
	color: var(--otf-spb-primary);
	background: #fff7f7;
}

.otf-spb__whatsapp {
	color: #20b858;
}

.otf-spb__qty {
	display: inline-flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid #d8d8d8;
	background: #fff;
	direction: ltr;
}

.otf-spb__qty-btn {
	width: 36px;
	padding: 0;
	border: 0;
	background: #fff;
	color: #5f5f5f;
	font-size: 19px;
	font-weight: 600;
	cursor: pointer;
}

.otf-spb__qty-input {
	width: 42px;
	min-width: 42px;
	height: 48px;
	margin: 0 !important;
	padding: 0 2px !important;
	border: 0 !important;
	border-inline: 1px solid #e7e7e7 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #333 !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	text-align: center !important;
	box-shadow: none !important;
	appearance: textfield;
	-moz-appearance: textfield;
}

.otf-spb__qty-input::-webkit-outer-spin-button,
.otf-spb__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.otf-spb__btn {
	min-width: 150px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 18px;
	border: 0;
	color: #fff !important;
	font-size: 13px;
	font-weight: 850;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.otf-spb__btn svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.otf-spb__btn--buy {
	background: var(--otf-spb-primary) !important;
	box-shadow: 0 5px 13px color-mix(in srgb, var(--otf-spb-primary) 20%, transparent);
}

.otf-spb__btn--buy svg {
	fill: #ffc928;
	stroke: none;
}

.otf-spb__btn--cart {
	background: var(--otf-spb-secondary) !important;
}

.otf-spb__btn--ghost {
	background: #fff !important;
	color: var(--otf-spb-secondary) !important;
	border: 1px solid #d7d7d7;
}

.otf-spb--primary-cart .otf-spb__btn--cart {
	background: var(--otf-spb-primary) !important;
}

.otf-spb--primary-cart .otf-spb__btn--buy {
	background: var(--otf-spb-secondary) !important;
}

.otf-spb__btn.is-in-cart {
	background: #f7f7f7 !important;
	color: var(--otf-spb-secondary) !important;
	border: 1px solid #d8d8d8;
}

.otf-spb__btn.is-checkout {
	background: var(--otf-spb-primary) !important;
}

.otf-spb__btn.is-loading {
	pointer-events: none;
	opacity: .75;
}

.otf-spb__feedback {
	position: absolute;
	inset-inline-start: 20px;
	bottom: calc(100% + 8px);
	max-width: 300px;
	padding: 8px 12px;
	border-radius: 10px;
	background: #1f1f1f;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: .18s ease;
}

.otf-spb__feedback.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.is-hidden-desktop {
	display: none !important;
}

@media (max-width: 767px) {
	.otf-spb {
		padding-inline: 8px;
	}

	.otf-spb--hide-mobile {
		display: none !important;
	}

	.is-hidden-desktop {
		display: inline-flex !important;
	}

	.is-hidden-mobile {
		display: none !important;
	}

	.otf-spb__shell {
		display: grid;
		grid-template-columns: 1fr;
		gap: 9px;
		width: calc(100vw - 16px);
		min-height: 0;
		padding: 10px;
	}

	.otf-spb__product {
		position: relative;
		min-height: 57px;
		gap: 10px;
		padding-inline-start: 48px;
	}

	.otf-spb__image-wrap,
	.otf-spb__image {
		width: 56px;
		height: 54px;
	}

	.otf-spb__image-wrap {
		flex-basis: 56px;
	}

	.otf-spb__title {
		display: -webkit-box;
		max-width: none;
		font-size: 12px;
		white-space: normal;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.otf-spb__trust-row {
		display: none;
	}

	.otf-spb__price {
		font-size: 12px;
	}

	.otf-spb__saving,
	.otf-spb__urgency {
		font-size: 9px;
	}

	.otf-spb__wishlist,
	.otf-spb__compare {
		position: absolute;
		top: 8px;
		z-index: 3;
		width: 38px;
		min-width: 38px;
		height: 38px;
	}

	.otf-spb__wishlist {
		inset-inline-start: 8px;
	}

	.otf-spb__compare {
		inset-inline-start: 50px;
	}

	.otf-spb__actions {
		display: flex;
		align-items: stretch;
		gap: 6px;
		width: 100%;
		direction: ltr;
	}

	.otf-spb__qty {
		flex: 0 0 102px;
		height: 46px;
	}

	.otf-spb__qty-btn {
		width: 28px;
	}

	.otf-spb__qty-input {
		width: 32px;
		min-width: 32px;
		height: 44px;
		font-size: 13px !important;
	}

	.otf-spb__btn {
		flex: 1 1 0;
		min-width: 0;
		height: 46px;
		padding-inline: 8px;
		font-size: 11px;
	}

	.otf-spb__icon-btn {
		width: 42px;
		min-width: 42px;
		height: 46px;
	}

	.otf-spb__whatsapp {
		position: static;
	}
}

@media (min-width: 1025px) {
	.otf-spb--hide-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.otf-spb--hide-tablet {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.otf-spb,
	.otf-spb * {
		transition: none !important;
	}
}


/* =========================================================
   Stable Builder — additive controls only.
   Core v6 fixed-position / responsive rules above remain untouched.
   ========================================================= */

.otf-spb__shell {
	gap: var(--otf-spb-block-gap, 24px);
	width: min(var(--otf-spb-desktop-width, 1390px), calc(100vw - 32px));
	min-height: var(--otf-spb-desktop-min-height, 88px);
	padding:
		var(--otf-spb-shell-padding-y, 12px)
		var(--otf-spb-shell-padding-x, 20px);
}

.otf-spb__actions {
	gap: var(--otf-spb-action-gap, 9px);
}

.otf-spb__qty-input {
	width: var(--otf-spb-qty-width, 42px);
	min-width: var(--otf-spb-qty-width, 42px);
}

.otf-spb__btn {
	border: 1px solid transparent;
}

.otf-spb__btn--buy {
	--otf-btn-color: var(--otf-spb-buy-color, #b9020d);
}

.otf-spb__btn--cart {
	--otf-btn-color: var(--otf-spb-cart-color, #1b2b4b);
}

.otf-spb__btn--quote {
	--otf-btn-color: var(--otf-spb-quote-color, #1b2b4b);
}

.otf-spb__btn--whatsapp {
	--otf-btn-color: var(--otf-spb-whatsapp-color, #22c55e);
}

.otf-spb__btn-style-filled {
	background: var(--otf-btn-color) !important;
	color: #fff !important;
	border-color: var(--otf-btn-color) !important;
}

.otf-spb__btn-style-outline {
	background: #fff !important;
	color: var(--otf-btn-color) !important;
	border-color: var(--otf-btn-color) !important;
}

.otf-spb__btn-style-soft {
	background: color-mix(in srgb, var(--otf-btn-color) 12%, #fff) !important;
	color: var(--otf-btn-color) !important;
	border-color: color-mix(in srgb, var(--otf-btn-color) 28%, #d9d9d9) !important;
}

.otf-spb__btn.is-primary {
	box-shadow: 0 6px 16px rgba(0,0,0,.14);
}

.otf-spb__compare-proxy {
	display: none !important;
}

.otf-spb--layout-compact .otf-spb__shell {
	min-height: calc(var(--otf-spb-desktop-min-height, 88px) - 10px);
	padding-block: max(6px, calc(var(--otf-spb-shell-padding-y, 12px) - 4px));
}

.otf-spb--layout-compact .otf-spb__trust-row {
	display: none;
}

.otf-spb--layout-cta_focus .otf-spb__btn {
	min-width: 150px;
	height: 54px;
	font-size: 14px;
}

.otf-spb--layout-split_box .otf-spb__actions {
	padding: 8px;
	background: rgba(255,255,255,.58);
	border: 1px solid rgba(0,0,0,.05);
	border-radius: calc(var(--otf-spb-btn-radius, 20px) + 4px);
}

@media (max-width: 767px) {
	.otf-spb__shell {
		padding: var(--otf-spb-mobile-shell-padding, 10px);
	}
	.otf-spb--layout-cta_focus .otf-spb__btn {
		height: 48px;
	}
}


/* v6.3 Advanced per-control styling — additive over stable v6.2 */
.otf-spb__custom-control {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: var(--otf-control-min-width) !important;
	height: var(--otf-control-height) !important;
	padding-inline: var(--otf-control-padding-x) !important;
	padding-block: min(var(--otf-control-padding-y), calc((var(--otf-control-height) - 18px) / 2)) !important;
	margin: var(--otf-control-margin-y) var(--otf-control-margin-x) !important;
	border-width: var(--otf-control-border-width) !important;
	border-style: var(--otf-control-border-style) !important;
	border-color: var(--otf-control-border-color) !important;
	border-radius: var(--otf-control-radius) !important;
	background: var(--otf-control-bg) !important;
	color: var(--otf-control-text) !important;
	box-sizing: border-box;
	text-decoration: none !important;
}

.otf-spb__custom-control:hover,
.otf-spb__custom-control:focus {
	background: var(--otf-control-bg) !important;
	color: var(--otf-control-text) !important;
}

.otf-spb__custom-control.otf-spb__icon-btn:not(.has-text) {
	width: var(--otf-control-min-width) !important;
}

.otf-spb__custom-control.otf-spb__icon-btn.has-text {
	width: auto !important;
}

.otf-spb__control-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--otf-control-icon-size);
	width: var(--otf-control-icon-size);
	height: var(--otf-control-icon-size);
	color: currentColor;
}

.otf-spb__control-icon svg,
.otf-spb__control-icon img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
}

.otf-spb__control-icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.otf-spb__btn--buy .otf-spb__control-icon svg {
	fill: currentColor;
	stroke: none;
}

.otf-spb__control-label {
	display: inline-block;
	line-height: 1;
	color: inherit;
}

.otf-spb__qty {
	height: var(--otf-qty-height) !important;
	padding-inline: var(--otf-qty-padding-x) !important;
	margin: var(--otf-qty-margin-y) var(--otf-qty-margin-x) !important;
	border-width: var(--otf-qty-border-width) !important;
	border-style: var(--otf-qty-border-style) !important;
	border-color: var(--otf-qty-border-color) !important;
	border-radius: var(--otf-qty-radius) !important;
	background: var(--otf-qty-bg) !important;
	color: var(--otf-qty-text) !important;
	box-sizing: border-box;
}

.otf-spb__qty-btn {
	height: 100% !important;
	background: transparent !important;
	color: var(--otf-qty-text) !important;
	font-size: var(--otf-qty-icon-size) !important;
}

.otf-spb__qty-input {
	height: calc(var(--otf-qty-height) - (var(--otf-qty-border-width) * 2)) !important;
	background: transparent !important;
	color: var(--otf-qty-text) !important;
}

@media (max-width: 767px) {
	.otf-spb__custom-control {
		min-width: min(var(--otf-control-min-width), 100%) !important;
		max-width: 100%;
		padding-inline: min(var(--otf-control-padding-x), 14px) !important;
	}
}


/* =========================================================
   v6.4 Active states + responsive device system
   ========================================================= */

/* Active background for every custom control. */
.otf-spb__custom-control:active,
.otf-spb__custom-control.is-active,
.otf-spb__custom-control.is-added,
.otf-spb__custom-control[aria-pressed="true"],
.otf-spb__btn.is-in-cart,
.otf-spb__btn.is-checkout {
	background: var(--otf-control-active-bg, var(--otf-control-bg)) !important;
}

/* Desktop visibility matrix */
@media (min-width: 1025px) {
	.otf-spb--hide-desktop-wishlist .otf-spb__wishlist,
	.otf-spb--hide-desktop-compare .otf-spb__compare,
	.otf-spb--hide-desktop-qty .otf-spb__qty,
	.otf-spb--hide-desktop-quote .otf-spb__btn--quote,
	.otf-spb--hide-desktop-whatsapp .otf-spb__btn--whatsapp,
	.otf-spb--hide-desktop-add_to_cart .otf-spb__btn--cart,
	.otf-spb--hide-desktop-buy_now .otf-spb__btn--buy {
		display: none !important;
	}
}

/* Tablet profile */
@media (min-width: 768px) and (max-width: 1024px) {
	.otf-spb__shell {
		min-height: var(--otf-spb-tablet-height, 78px) !important;
		padding: var(--otf-spb-tablet-padding, 10px) !important;
	}

	.otf-spb__actions {
		gap: var(--otf-spb-tablet-gap, 7px) !important;
	}

	.otf-spb__custom-control {
		height: calc(var(--otf-control-height) * var(--otf-spb-tablet-button-scale, .92)) !important;
		min-width: calc(var(--otf-control-min-width) * var(--otf-spb-tablet-button-scale, .92)) !important;
		font-size: var(--otf-spb-tablet-font-size, 12px) !important;
	}

	.otf-spb__control-icon {
		transform: scale(var(--otf-spb-tablet-icon-scale, .92));
	}

	.otf-spb--hide-tablet-wishlist .otf-spb__wishlist,
	.otf-spb--hide-tablet-compare .otf-spb__compare,
	.otf-spb--hide-tablet-qty .otf-spb__qty,
	.otf-spb--hide-tablet-quote .otf-spb__btn--quote,
	.otf-spb--hide-tablet-whatsapp .otf-spb__btn--whatsapp,
	.otf-spb--hide-tablet-add_to_cart .otf-spb__btn--cart,
	.otf-spb--hide-tablet-buy_now .otf-spb__btn--buy {
		display: none !important;
	}

	.otf-spb--hide-tablet-product-image .otf-spb__image-wrap { display:none !important; }
	.otf-spb--hide-tablet-product-title .otf-spb__title { display:none !important; }
	.otf-spb--hide-tablet-price .otf-spb__price-line { display:none !important; }
	.otf-spb--hide-tablet-trust .otf-spb__trust-row,
	.otf-spb--hide-tablet-trust .otf-spb__urgency { display:none !important; }

	.otf-spb--tablet-compact .otf-spb__trust-row { display:none !important; }
	.otf-spb--tablet-cta_focus .otf-spb__btn--buy,
	.otf-spb--tablet-cta_focus .otf-spb__btn--cart { flex-grow:1; }
	.otf-spb--tablet-minimal .otf-spb__trust-row,
	.otf-spb--tablet-minimal .otf-spb__delivery,
	.otf-spb--tablet-minimal .otf-spb__usp { display:none !important; }
}

/* Mobile profile */
@media (max-width: 767px) {
	.otf-spb__shell {
		min-height: var(--otf-spb-mobile-height-device, 72px) !important;
		padding: var(--otf-spb-mobile-padding-device, 9px) !important;
	}

	.otf-spb__actions {
		gap: var(--otf-spb-mobile-gap-device, 6px) !important;
	}

	.otf-spb__custom-control {
		height: calc(var(--otf-control-height) * var(--otf-spb-mobile-button-scale, .86)) !important;
		min-width: calc(var(--otf-control-min-width) * var(--otf-spb-mobile-button-scale, .86)) !important;
		font-size: var(--otf-spb-mobile-font-size-device, 11px) !important;
	}

	.otf-spb__control-icon {
		transform: scale(var(--otf-spb-mobile-icon-scale, .88));
	}

	.otf-spb--hide-mobile-wishlist .otf-spb__wishlist,
	.otf-spb--hide-mobile-compare .otf-spb__compare,
	.otf-spb--hide-mobile-qty .otf-spb__qty,
	.otf-spb--hide-mobile-quote .otf-spb__btn--quote,
	.otf-spb--hide-mobile-whatsapp .otf-spb__btn--whatsapp,
	.otf-spb--hide-mobile-add_to_cart .otf-spb__btn--cart,
	.otf-spb--hide-mobile-buy_now .otf-spb__btn--buy {
		display: none !important;
	}

	.otf-spb--hide-mobile-product-image .otf-spb__image-wrap { display:none !important; }
	.otf-spb--hide-mobile-product-title .otf-spb__title { display:none !important; }
	.otf-spb--hide-mobile-price .otf-spb__price-line { display:none !important; }
	.otf-spb--hide-mobile-trust .otf-spb__trust-row,
	.otf-spb--hide-mobile-trust .otf-spb__urgency { display:none !important; }

	.otf-spb--mobile-mobile_cta .otf-spb__actions {
		display:grid !important;
		grid-template-columns: auto minmax(0,1fr) minmax(0,1fr);
		align-items:center;
	}
	.otf-spb--mobile-mobile_cta .otf-spb__btn--cart,
	.otf-spb--mobile-mobile_cta .otf-spb__btn--buy {
		width:100% !important;
		min-width:0 !important;
	}
	.otf-spb--mobile-stacked .otf-spb__actions {
		display:grid !important;
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
	.otf-spb--mobile-stacked .otf-spb__qty {
		grid-column:1 / -1;
		width:100%;
	}
	.otf-spb--mobile-minimal .otf-spb__product {
		display:none !important;
	}
	.otf-spb--mobile-minimal .otf-spb__actions {
		width:100%;
	}
}


/* =========================================================
   v6.5 Responsive Layout Engine v2
   ========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
	.otf-spb__shell {
		display: grid !important;
		grid-template-columns: minmax(0,1fr);
		gap: var(--otf-spb-tablet-product-gap,10px) !important;
	}
	.otf-spb__actions {
		display: grid !important;
		grid-template-columns: repeat(12,minmax(0,1fr)) !important;
		grid-auto-flow: row dense;
		column-gap: var(--otf-spb-tablet-gap,7px) !important;
		row-gap: var(--otf-spb-tablet-row-gap,7px) !important;
		width: 100%;
		align-items: stretch;
	}
	.otf-spb__actions > * {
		grid-row: var(--otf-tablet-row,auto);
		grid-column: span var(--otf-tablet-span,3);
		min-width: 0 !important;
		max-width: 100%;
		width: 100% !important;
		margin-inline: 0 !important;
		box-sizing: border-box;
	}
	.otf-spb--tablet-product-inline .otf-spb__shell {
		grid-template-columns: minmax(260px,.9fr) minmax(0,1.6fr);
		align-items: center;
	}
	.otf-spb--tablet-product-hidden .otf-spb__product {display:none!important;}
	.otf-spb--tablet-safety .otf-spb__btn,
	.otf-spb--tablet-safety .otf-spb__icon-btn {min-width:0!important;width:100%!important;}
	.otf-spb--tablet-safety .otf-spb__control-label {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}

@media (max-width: 767px) {
	.otf-spb__shell {
		display: grid !important;
		grid-template-columns: minmax(0,1fr);
		gap: var(--otf-spb-mobile-product-gap,8px) !important;
	}
	.otf-spb__actions {
		display: grid !important;
		grid-template-columns: repeat(12,minmax(0,1fr)) !important;
		grid-auto-flow: row dense;
		column-gap: var(--otf-spb-mobile-gap-device,6px) !important;
		row-gap: var(--otf-spb-mobile-row-gap,6px) !important;
		width: 100%;
		align-items: stretch;
		direction: rtl;
	}
	.otf-spb__actions > * {
		grid-row: var(--otf-mobile-row,auto);
		grid-column: span var(--otf-mobile-span,6);
		min-width: 0 !important;
		max-width: 100%;
		width: 100% !important;
		margin-inline: 0 !important;
		box-sizing: border-box;
	}
	.otf-spb__qty {justify-self:stretch;}
	.otf-spb--mobile-product-inline .otf-spb__shell {
		grid-template-columns: minmax(120px,.85fr) minmax(0,1.15fr);
		align-items: center;
	}
	.otf-spb--mobile-product-hidden .otf-spb__product {display:none!important;}
	.otf-spb--mobile-safety .otf-spb__btn,
	.otf-spb--mobile-safety .otf-spb__icon-btn {min-width:0!important;width:100%!important;max-width:100%!important;}
	.otf-spb--mobile-safety .otf-spb__control-label {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
	.otf-spb--mobile-safety .otf-spb__qty-input {min-width:0!important;flex:1 1 auto;}
	.otf-spb__product {min-width:0;padding-inline-start:0!important;}
	.otf-spb__meta {min-width:0;}
	.otf-spb__title {max-width:100%!important;}
}


/* =========================================================
   v6.7 Mobile performance/compact refinements + cart stepper
   ========================================================= */

.otf-spb__btn--cart.is-stepper-hidden {
	display: none !important;
}

@keyframes otf-spb-stepper-in {
	from {
		opacity: 0;
		transform: scale(.97);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 767px) {
	.otf-spb {
		padding-inline: clamp(4px, var(--otf-spb-mobile-shell-padding, 10px), 12px);
	}

	.otf-spb__shell {
		width: calc(100vw - (2 * clamp(4px, var(--otf-spb-mobile-shell-padding, 10px), 12px)));
		min-height: var(--otf-spb-mobile-height-device, 60px) !important;
		padding: var(--otf-spb-mobile-padding-device, 6px) !important;
		gap: var(--otf-spb-mobile-product-gap, 5px) !important;
	}

	.otf-spb__product {
		min-height: var(--otf-spb-mobile-product-image-size, 42px);
		gap: 7px;
		padding-inline-start: 0 !important;
	}

	.otf-spb__image-wrap,
	.otf-spb__image {
		width: var(--otf-spb-mobile-product-image-size, 42px);
		height: var(--otf-spb-mobile-product-image-size, 42px);
	}

	.otf-spb__image-wrap {
		flex-basis: var(--otf-spb-mobile-product-image-size, 42px);
	}

	.otf-spb__title {
		font-size: var(--otf-spb-mobile-product-title-size, 11px);
		line-height: 1.35;
		-webkit-line-clamp: 1;
	}

	.otf-spb__price {
		font-size: var(--otf-spb-mobile-product-price-size, 11px);
	}

	.otf-spb__saving,
	.otf-spb__urgency {
		font-size: 8px;
	}

	.otf-spb__trust-row {
		display: none !important;
	}

	.otf-spb__actions {
		column-gap: var(--otf-spb-mobile-gap-device, 5px) !important;
		row-gap: var(--otf-spb-mobile-row-gap, 6px) !important;
	}

	.otf-spb__custom-control,
	.otf-spb__cart-stepper {
		height: calc(var(--otf-control-height) * var(--otf-spb-mobile-button-scale, .86)) !important;
		font-size: var(--otf-spb-mobile-font-size-device, 11px) !important;
	}

	.otf-spb__cart-stepper {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100%;
		padding-inline: 8px !important;
		margin-inline: 0 !important;
		grid-row: var(--otf-mobile-row, auto);
		grid-column: span var(--otf-mobile-span, 5);
	}

	/*
	 * "inline" means compact product information on one horizontal line.
	 * Keep the action grid below it; don't force product/actions side-by-side.
	 */
	.otf-spb--mobile-product-inline .otf-spb__shell {
		grid-template-columns: minmax(0, 1fr) !important;
		align-items: stretch;
	}

	.otf-spb--mobile-product-inline .otf-spb__product {
		display: flex;
		align-items: center;
		width: 100%;
	}

	.otf-spb--mobile-product-inline .otf-spb__meta {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 7px;
		align-items: center;
		flex: 1 1 auto;
	}

	.otf-spb--mobile-product-inline .otf-spb__title {
		grid-column: 1;
		grid-row: 1;
	}

	.otf-spb--mobile-product-inline .otf-spb__price-line {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		white-space: nowrap;
	}

	.otf-spb--mobile-product-inline .otf-spb__urgency,
	.otf-spb--mobile-product-inline .otf-spb__trust-row {
		display: none !important;
	}
}


/* =========================================================
   v6.8 Amazon cart stepper + WoodMart side-cart layer fix
   ========================================================= */

.otf-spb.is-side-cart-open {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transform: translateY(12px) !important;
	z-index: 1 !important;
}

.otf-spb__cart-stepper {
	display: none !important;
	align-items: center;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
	gap: 6px;
	width: 100%;
	min-width: 0 !important;
	height: var(--otf-control-height);
	padding: 3px 5px;
	margin: var(--otf-control-margin-y) var(--otf-control-margin-x);
	border-width: var(--otf-control-border-width) !important;
	border-style: var(--otf-control-border-style) !important;
	border-color: var(--otf-control-border-color) !important;
	border-radius: var(--otf-control-radius) !important;
	background: var(--otf-control-bg) !important;
	color: var(--otf-control-text) !important;
	box-sizing: border-box;
	overflow: hidden;
	transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}

.otf-spb__cart-stepper.is-visible {
	display: grid !important;
	animation: otf-spb-stepper-in .16s ease both;
}

.otf-spb__cart-stepper:hover {
	background: var(--otf-control-active-bg, var(--otf-control-bg)) !important;
}

.otf-spb__cart-stepper.is-loading {
	opacity: .65;
	pointer-events: none;
}

.otf-spb__cart-stepper-remove,
.otf-spb__cart-stepper-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 1;
}

.otf-spb__cart-stepper-remove {
	grid-column: 1;
	grid-row: 1;
}

.otf-spb__cart-stepper-plus {
	grid-column: 3;
	grid-row: 1;
	font-size: 22px;
	font-weight: 500;
}

.otf-spb__cart-stepper-remove:hover,
.otf-spb__cart-stepper-plus:hover {
	background: #f3f3f3;
}

.otf-spb__cart-stepper-remove svg {
	width: 18px;
	height: 18px;
	display: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.otf-spb__cart-stepper-minus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 500;
	line-height: 1;
}

.otf-spb__cart-stepper-remove.is-remove-mode .otf-spb__cart-stepper-minus {
	display: none;
}

.otf-spb__cart-stepper-remove.is-remove-mode svg {
	display: block !important;
}

.otf-spb__cart-stepper-status {
	grid-column: 2;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	white-space: nowrap;
	text-align: center;
	color: inherit;
}

.otf-spb__cart-stepper-status strong {
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
}

.otf-spb__cart-stepper-status span {
	font-size: 10px;
	font-weight: 650;
	line-height: 1;
}

/* The device matrix must hide both the normal Add-to-Cart button and its stepper state. */
@media (min-width: 1025px) {
	.otf-spb--hide-desktop-add_to_cart .otf-spb__cart-stepper {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.otf-spb--hide-tablet-add_to_cart .otf-spb__cart-stepper {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.otf-spb--hide-mobile-add_to_cart .otf-spb__cart-stepper {
		display: none !important;
	}

	.otf-spb__cart-stepper {
		padding: 3px 4px !important;
		grid-template-columns: 30px minmax(0, 1fr) 30px;
		gap: 3px;
	}

	.otf-spb__cart-stepper-remove,
	.otf-spb__cart-stepper-plus {
		width: 28px;
		height: 28px;
	}

	.otf-spb__cart-stepper-remove svg {
		width: 17px;
		height: 17px;
	}

	.otf-spb__cart-stepper-plus {
		font-size: 20px;
	}

	.otf-spb__cart-stepper-status strong {
		font-size: 12px;
	}

	.otf-spb__cart-stepper-status span {
		font-size: 8.5px;
	}
}

@media (max-width: 374px) {
	.otf-spb__cart-stepper-status span {
		display: none;
	}
}

/* =========================================================
   v6.10 Final mobile composition
   ========================================================= */
@media (max-width: 767px) {
	.otf-spb__shell {
		align-items: stretch;
		box-shadow: 0 8px 24px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06);
	}

	.otf-spb--mobile-product-inline .otf-spb__product {
		display: grid;
		grid-template-columns: var(--otf-spb-mobile-product-image-size, 42px) minmax(0, 1fr);
		gap: 7px;
		min-width: 0;
	}

	.otf-spb--mobile-product-inline .otf-spb__image-wrap {
		grid-column: 1;
		grid-row: 1;
	}

	.otf-spb--mobile-product-inline .otf-spb__meta {
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		min-width: 0;
	}

	.otf-spb--mobile-product-inline .otf-spb__title {
		display: block;
		overflow: hidden;
		max-width: 100%;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.otf-spb--mobile-product-inline .otf-spb__price-line {
		justify-content: flex-start;
		gap: 5px;
		min-width: 0;
	}

	.otf-spb__actions {
		align-items: center;
	}

	.otf-spb__btn {
		overflow: hidden;
		white-space: nowrap;
	}

	.otf-spb__btn .otf-spb__control-label {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.otf-spb__cart-stepper {
		grid-template-columns: 34px minmax(30px, 1fr) 34px;
		gap: 2px;
		padding: 3px !important;
		background: #fff !important;
		color: #111 !important;
		border-color: var(--otf-control-border-color) !important;
		border-radius: var(--otf-control-radius) !important;
	}

	.otf-spb__cart-stepper-remove,
	.otf-spb__cart-stepper-plus {
		position: relative;
		z-index: 2;
		width: 34px;
		height: 34px;
		background: transparent !important;
		color: #111 !important;
	}

	.otf-spb__cart-stepper-remove:hover,
	.otf-spb__cart-stepper-plus:hover,
	.otf-spb__cart-stepper-remove:focus,
	.otf-spb__cart-stepper-plus:focus {
		background: #f1f3f5 !important;
		color: #111 !important;
	}

	.otf-spb__cart-stepper-status {
		position: relative;
		z-index: 1;
		display: flex;
		min-width: 0;
		background: transparent !important;
		color: #111 !important;
		pointer-events: none;
	}

	.otf-spb__cart-stepper-status strong {
		font-size: 14px;
	}

	.otf-spb__cart-stepper-status span {
		display: none !important;
	}
}

@media (max-width: 390px) {
	.otf-spb__btn .otf-spb__control-icon {
		display: none;
	}

	.otf-spb__btn {
		padding-inline: 8px !important;
	}
}

/* =========================================================
   v6.12 Professional defaults and defensive layout rules
   ========================================================= */
.otf-spb__shell {
	border-color: rgba(27,43,75,.09);
	box-shadow: 0 14px 38px rgba(17,24,39,.13), 0 3px 10px rgba(17,24,39,.06);
}

.otf-spb__actions {
	flex: 0 1 auto;
	justify-content: flex-end;
	min-width: 0;
}

.otf-spb__custom-control,
.otf-spb__qty {
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.otf-spb__custom-control:hover {
	box-shadow: 0 5px 14px rgba(17,24,39,.1);
	transform: translateY(-1px);
}

.otf-spb__custom-control:focus-visible,
.otf-spb__qty-btn:focus-visible,
.otf-spb__cart-stepper button:focus-visible {
	outline: 3px solid rgba(244,165,28,.38);
	outline-offset: 2px;
}

@media (min-width: 1025px) {
	.otf-spb__product {
		flex: 1 1 420px;
		max-width: min(58%, 720px);
	}

	.otf-spb__actions {
		flex: 0 1 auto;
		max-width: 62%;
	}

	.otf-spb__title {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.otf-spb__shell {
		border-radius: min(var(--otf-spb-radius), 16px);
	}

	.otf-spb__product {
		min-width: 0;
	}
}

@media (max-width: 767px) {
	.otf-spb__custom-control:hover {
		box-shadow: none;
		transform: none;
	}

	.otf-spb__shell {
		border-radius: min(var(--otf-spb-radius), 16px);
	}
}
