/*
 * Single-product additions only. The restored WoodMart theme owns the gallery,
 * product summary, tabs, related-products layout, and responsive breakpoints.
 */

.single-product .summary .price .ems-price-stack {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.single-product .summary .price .ems-price-current {
	font: inherit;
}

.single-product .summary .price .ems-price-comparison {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	color: #777;
	font-size: .72em;
	font-weight: 500;
	line-height: 1.35;
}

.single-product .summary .price .ems-price-comparison-amount {
	color: currentColor;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.single-product .ems-product-large-orders,
.single-product .ems-product-purchase-panel,
.single-product .ems-product-policies,
.single-product .ems-product-location,
.single-product .ems-product-large-orders *,
.single-product .ems-product-purchase-panel *,
.single-product .ems-product-policies *,
.single-product .ems-product-location * {
	box-sizing: border-box;
}

.single-product .ems-product-large-orders {
	margin: 18px 0 20px;
	padding: 15px 18px;
	border: 1px solid #dedede;
	border-radius: 12px;
	background: #fafafa;
	color: #1f2937;
	font-size: 16px;
	line-height: 1.45;
}

.single-product .ems-product-large-orders strong {
	font-weight: 800;
}

.single-product .ems-product-large-orders a {
	color: #111827;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.single-product .ems-product-purchase-panel {
	margin: 24px 0 0;
}

/* Restored reference purchase controls: one native form, pill quantity, and
 * matching orange Add to Cart / Buy Now actions. */
.single-product .summary form.cart,
.single-product .summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0 0 20px;
}

.single-product .summary form.variations_form.cart {
	display: block;
}

.single-product .summary form.cart .quantity,
.single-product .summary .woocommerce-variation-add-to-cart .quantity {
	display: flex;
	order: 1;
	align-items: center;
	width: 104px;
	min-width: 104px;
	height: 52px;
	margin: 0;
	border: 2px solid #e6e6e6;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.single-product .summary form.cart .quantity input.qty,
.single-product .summary .woocommerce-variation-add-to-cart .quantity input.qty {
	width: 42px;
	height: 48px;
	min-width: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	box-shadow: none;
	font-size: 15px;
	font-weight: 800;
	text-align: center;
}

.single-product .summary form.cart .quantity input[type="button"],
.single-product .summary .woocommerce-variation-add-to-cart .quantity input[type="button"] {
	width: 30px;
	height: 48px;
	min-height: 48px;
	padding: 0;
	border: 0;
	background: #fff;
	box-shadow: none;
	color: #777;
	font-size: 15px;
	font-weight: 800;
}

.single-product .summary form.cart .single_add_to_cart_button,
.single-product .summary form.cart .ems-buy-now,
.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single-product .summary .woocommerce-variation-add-to-cart .ems-buy-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	order: 2;
	flex: 0 0 auto;
	width: auto;
	min-width: 142px;
	max-width: 180px;
	height: 52px;
	min-height: 52px;
	margin: 0;
	padding: 0 30px;
	border: 0;
	border-radius: 999px;
	background: var(--ems-accent, #F6A51C);
	box-shadow: none;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	line-height: 52px;
	text-transform: uppercase;
	white-space: nowrap;
}

.single-product .summary form.cart .ems-buy-now,
.single-product .summary .woocommerce-variation-add-to-cart .ems-buy-now {
	order: 3;
}

.single-product .summary form.cart .single_add_to_cart_button:hover,
.single-product .summary form.cart .ems-buy-now:hover,
.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover,
.single-product .summary .woocommerce-variation-add-to-cart .ems-buy-now:hover {
	background: var(--ems-ui-orange-hover, #D88A08);
	border-color: var(--ems-ui-orange-hover, #D88A08);
	color: #fff;
}

.single-product :is(.ems-product-contact-grid, .ems-product-trust-grid) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.single-product .ems-product-contact-grid {
	margin: 0 0 24px;
}

.single-product .ems-product-contact-card {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	min-height: 86px;
	padding: 18px;
	border: 2px solid var(--ems-accent, #F6A51C);
	border-radius: 14px;
	background: #fff;
	color: #111;
}

.single-product :is(.ems-product-card-icon, .ems-product-trust-icon) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: var(--ems-accent, #F6A51C);
	color: #fff;
	font-size: 22px;
	line-height: 1;
}

.single-product .ems-product-contact-copy a,
.single-product .ems-product-contact-copy strong {
	display: block;
	color: #111;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.single-product .ems-product-contact-copy span {
	display: block;
	margin-top: 5px;
	color: #666;
	font-size: 14px;
	line-height: 1.25;
}

.single-product .ems-product-trust-card {
	display: flex;
	min-height: 78px;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid rgb(255 255 255 / 8%);
	background: #242424;
	color: #fff;
}

.single-product .ems-product-trust-card strong {
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .03em;
	line-height: 1.25;
	text-transform: uppercase;
}

.single-product .summary .ems-product-payment-status {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-left: 3px solid var(--ems-accent, #F6A51C);
	background: #f7f7f7;
	color: #333;
	font-size: 13px;
	line-height: 1.45;
}

.single-product .ems-product-policies {
	max-width: 960px;
	margin: 28px auto 34px;
	padding: 0 15px;
	background: #fff;
	color: #fff;
}

.single-product .ems-product-policy-box {
	padding: 22px 24px;
	background: #202020;
}

.single-product .ems-product-policy-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	color: #fff;
	cursor: pointer;
	list-style: none;
}

.single-product .ems-product-policy-summary::-webkit-details-marker {
	display: none;
}

.single-product .ems-product-policy-title {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
}

.single-product .ems-product-policy-dot {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 999px;
}

.single-product .ems-product-policy-arrow {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	border-top: 3px solid #fff;
	border-left: 3px solid #fff;
	transform: rotate(45deg);
}

.single-product .ems-product-policy-box:not([open]) .ems-product-policy-arrow {
	transform: rotate(225deg);
}

.single-product .ems-product-policy-links {
	display: grid;
	gap: 9px;
	margin: 18px 0 0 32px;
}

.single-product .ems-product-policy-links a {
	width: max-content;
	max-width: 100%;
	color: var(--ems-accent, #F6A51C);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* The longer warranty label must remain fully readable inside the dark
 * policy panel at every viewport. Keep it as one complete clickable link,
 * allowing a natural wrap instead of inheriting any nowrap rule. */
.single-product .ems-product-policy-links a.ems-product-policy-link--warranty {
	width: auto;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding-right: 12px;
	white-space: normal !important;
	overflow-wrap: break-word;
	word-break: normal;
}

.single-product .ems-product-location {
	padding: 54px 30px;
	background: #fff;
	color: #191919;
}

.single-product .ems-product-location-header {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 44px;
	max-width: 1220px;
	margin: 0 auto 38px;
}

.single-product .ems-product-location-header h2 {
	margin: 0;
	color: #111;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
}

.single-product .ems-product-location-header p {
	max-width: 620px;
	margin: 0;
	color: #444;
	font-size: 15px;
	line-height: 1.6;
}

.single-product .ems-product-location-tabs {
	display: flex;
	gap: 18px;
	max-width: 1220px;
	margin: 0 auto 18px;
}

.single-product .ems-product-location-tab-shell {
	display: inline-flex;
	gap: 10px;
	padding: 7px 10px;
	border: 1px solid #ddd;
	border-radius: 14px;
}

.single-product .ems-product-location-tab {
	padding: 8px 16px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #111;
	font-size: 13px;
	font-weight: 700;
}

.single-product .ems-product-location-tab.is-active {
	background: #111;
	color: #fff;
}

.single-product .ems-product-location-content {
	display: grid;
	grid-template-columns: 40% 60%;
	align-items: stretch;
	gap: 22px;
	max-width: 1220px;
	margin: 0 auto;
}

.single-product .ems-product-location-list {
	max-height: 420px;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 12px;
	background: #fff;
}

.single-product .ems-product-location-item {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
}

.single-product .ems-product-location-item:last-child {
	border-bottom: 0;
}

.single-product .ems-product-location-item h3 {
	margin: 0 0 7px;
	color: #111;
	font-size: 15px;
	font-weight: 700;
}

.single-product .ems-product-location-item p {
	margin: 0;
	color: #444;
	font-size: 13px;
	line-height: 1.4;
}

.single-product .ems-product-location-item button {
	align-self: flex-start;
	padding: 8px 11px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: #e00000;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
}

.single-product .ems-product-location-map iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
	border-radius: 4px;
}

.ems-sticky-add-to-cart,
.ems-sticky-add-to-cart * {
	box-sizing: border-box;
}

.ems-sticky-add-to-cart {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 80;
	border-top: 1px solid rgba(255, 255, 255, .15);
	background: #1f1f1f;
	box-shadow: 0 -8px 22px rgba(0, 0, 0, .2);
	color: #fff;
}

.ems-sticky-add-to-cart__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	width: min(100% - 32px, var(--wd-container-w, 1222px));
	min-height: 68px;
	margin: 0 auto;
	padding: 8px 0;
}

.ems-sticky-add-to-cart__thumb img {
	display: block;
	width: 50px;
	height: 50px;
	border-radius: 4px;
	background: #fff;
	object-fit: cover;
}

.ems-sticky-add-to-cart__info {
	min-width: 0;
}

.ems-sticky-add-to-cart__title,
.ems-sticky-add-to-cart__price {
	display: block;
	color: #fff;
}

.ems-sticky-add-to-cart__title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ems-sticky-add-to-cart__price,
.ems-sticky-add-to-cart__price .ems-price-stack,
.ems-sticky-add-to-cart__price .ems-price-current,
.ems-sticky-add-to-cart__price .woocommerce-Price-amount {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.ems-sticky-add-to-cart__price .ems-price-comparison,
.ems-sticky-add-to-cart__price .ems-price-comparison-amount {
	color: rgba(255, 255, 255, .62);
}

.ems-sticky-add-to-cart .cart {
	margin: 0;
}

.ems-sticky-add-to-cart .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
}

body.single-product:has(.ems-sticky-add-to-cart) {
	padding-bottom: 76px;
}

/* The product description is a normal content section, not a tab panel. */
.single-product .ems-product-description {
	width: 100%;
	margin: 34px auto 0;
	padding: 0 20px;
	clear: both;
}

.single-product .ems-product-description__inner {
	width: min(100%, 1220px);
	max-width: 1220px;
	margin: 0 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.single-product .ems-product-description__inner img,
.single-product .ems-product-description__inner video,
.single-product .ems-product-description__inner iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

/*
 * Block-theme parity: the live store uses Hostinger's WooCommerce block
 * template, while the approved EMS product page uses the shared product
 * shell above. These selectors only apply to the replacement shell, so shop
 * archives and the rest of the site keep their existing layout.
 */
.single-product .ems-product-shell--block-theme {
	width: min(1180px, calc(100vw - 48px));
	max-width: none;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	/* The block-theme parent supplies its own auto margins. Reset them here so
	 * the 50%/translate centering is calculated from the viewport midpoint,
	 * rather than receiving an extra half-gutter shift to the right. */
	margin: 0 !important;
	padding: 28px 0 72px;
}

.single-product .ems-product-shell--block-theme .ems-product-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
	align-items: start;
	gap: 48px;
}

.single-product .ems-product-shell--block-theme .ems-product-main-gallery,
.single-product .ems-product-shell--block-theme .ems-product-main-summary {
	min-width: 0;
}

.single-product .ems-product-shell--block-theme .ems-product-main-gallery .ems-product-gallery {
	width: 100%;
	margin: 0;
}

.single-product .ems-product-shell--block-theme .ems-product-main-summary .ems-product-identity {
	margin: 0 0 18px;
}

.single-product .ems-product-shell--block-theme .product_title {
	margin: 0;
	font-family: Oswald, "Arial Narrow", Arial, Helvetica, sans-serif !important;
	font-size: clamp(30px, 2.25vw, 31px) !important;
	font-weight: 800;
	line-height: 1.22 !important;
	letter-spacing: 0;
	color: var(--ems-ink, #0b0c0e);
	text-wrap: balance;
}

.single-product .ems-product-shell--block-theme .ems-product-price {
	margin: 0;
	font-family: inherit;
	font-size: clamp(27px, 2.2vw, 30px) !important;
	line-height: 1.25 !important;
	color: var(--ems-accent, #F6A51C);
}

.single-product .ems-product-shell--block-theme .ems-product-commerce-state {
	margin: 0 0 20px;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase {
	margin: 0 0 22px;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart {
	margin-bottom: 0;
}

.single-product .ems-product-shell--block-theme .ems-product-description {
	margin-top: 56px;
	padding-inline: 0;
}

@media (max-width: 1024px) {
	.single-product .ems-product-shell--block-theme {
		width: min(900px, calc(100vw - 36px));
	}

	.single-product .ems-product-shell--block-theme .ems-product-main-grid {
		grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.single-product .ems-product-shell--block-theme {
		/* The block-theme content area has 24px global padding. Center the
		 * product shell against the viewport so that padding cannot shift the
		 * gallery and purchase column to the right on mobile. */
		width: calc(100vw - 32px);
		max-width: none;
		left: 50%;
		transform: translateX(-50%);
		margin: 0 !important;
		padding: 20px 0 48px;
	}

	.single-product .ems-product-shell--block-theme .ems-product-main-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.single-product .ems-product-shell--block-theme .product_title {
		font-size: clamp(28px, 8vw, 31px) !important;
		line-height: 1.22 !important;
	}

	.single-product .ems-product-shell--block-theme .ems-product-description {
		margin-top: 34px;
	}
}

/* Restore the white, borderless EMS gallery treatment on single products. */
.single-product .ems-gallery-stage {
	background: #fff;
	border: 0;
	border-radius: 0;
}

.single-product .ems-gallery-open {
	padding: 0;
}

.single-product .ems-product-description__inner table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
}

.single-product .ems-product-description__inner pre,
.single-product .ems-product-description__inner code {
	max-width: 100%;
	white-space: pre-wrap;
	word-break: break-word;
}

@media (max-width: 1024px) {
	.single-product :is(.ems-product-location-header, .ems-product-location-content) {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.single-product .summary form.cart,
	.single-product .summary .woocommerce-variation-add-to-cart {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.single-product .summary form.cart .quantity,
	.single-product .summary .woocommerce-variation-add-to-cart .quantity {
		align-self: flex-start;
	}

	.single-product .summary form.cart .single_add_to_cart_button,
	.single-product .summary form.cart .ems-buy-now,
	.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button,
	.single-product .summary .woocommerce-variation-add-to-cart .ems-buy-now {
		width: 100%;
		max-width: none;
	}

	.single-product .ems-product-large-orders {
		font-size: 15px;
	}

	.single-product .ems-product-description {
		margin-top: 24px;
		padding: 0 14px;
	}

	.single-product .ems-product-description__inner table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.single-product :is(.ems-product-contact-grid, .ems-product-trust-grid) {
		grid-template-columns: 1fr;
	}

	.single-product .ems-product-policies {
		margin-top: 24px;
		margin-bottom: 26px;
		padding: 0 14px;
	}

	.single-product .ems-product-policy-box {
		padding: 18px 16px;
	}

	.single-product .ems-product-policy-title {
		align-items: flex-start;
		gap: 12px;
		font-size: 17px;
	}

	.single-product .ems-product-policy-dot {
		width: 16px;
		height: 16px;
	}

	.single-product .ems-product-location {
		padding: 42px 18px;
	}

	.single-product .ems-product-location-header h2 {
		font-size: 30px;
	}

	.single-product .ems-product-location-item {
		flex-direction: column;
	}

	.ems-sticky-add-to-cart__inner {
		gap: 10px;
		width: min(100% - 20px, var(--wd-container-w, 1222px));
		min-height: 62px;
	}

	.ems-sticky-add-to-cart__thumb img {
		width: 42px;
		height: 42px;
	}

	.ems-sticky-add-to-cart__title {
		font-size: 12px;
	}

	.ems-sticky-add-to-cart__price,
	.ems-sticky-add-to-cart__price .ems-price-stack,
	.ems-sticky-add-to-cart__price .ems-price-current,
	.ems-sticky-add-to-cart__price .woocommerce-Price-amount {
		font-size: 12px;
	}

	.ems-sticky-add-to-cart .button {
		min-width: 108px;
		min-height: 40px;
		padding: 0 12px;
		font-size: 11px;
	}

	body.single-product:has(.ems-sticky-add-to-cart) {
		padding-bottom: 70px;
	}
}

/* The reference purchase flow stacks the two full-width actions beneath the
 * quantity control on every viewport. */
.single-product .summary form.cart,
.single-product .summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
}

.single-product .summary form.cart .quantity,
.single-product .summary .woocommerce-variation-add-to-cart .quantity {
	align-self: flex-start;
}

.single-product .summary form.cart .single_add_to_cart_button,
.single-product .summary form.cart .ems-buy-now,
.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single-product .summary .woocommerce-variation-add-to-cart .ems-buy-now {
	width: 100%;
	max-width: none;
	min-height: 58px;
	border-radius: 26px;
	font-size: 16px;
}

.single-product .summary form.cart .single_add_to_cart_button::before,
.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button::before {
	margin-right: 10px;
	content: "\1F6CD";
	font-size: 20px;
	line-height: 1;
}

.single-product .ems-product-trust-grid {
	gap: 14px;
}

.single-product .ems-product-trust-card {
	min-height: 82px;
	background: #242424;
}

/* Product-page recommendations use the same shared EMS product-card markup as
 * homepage cards, presented in a lightweight responsive carousel. */
.ems-related-carousel {
	position: relative;
	padding: 0 48px 34px;
}

.ems-related-carousel__viewport {
	overflow: hidden;
}

.ems-related-carousel__track {
	display: flex;
	gap: 18px;
	align-items: stretch;
	transition: transform 0.28s ease;
	will-change: transform;
}

.ems-related-carousel__slide {
	flex: 0 0 calc((100% - 54px) / 4);
	min-width: 0;
	display: flex;
}

.ems-related-carousel__slide > .product-card {
	height: 100%;
	width: 100%;
}

.ems-related-carousel__prev,
.ems-related-carousel__next {
	position: absolute;
	top: 42%;
	z-index: 2;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d9d9d9;
	border-radius: 50%;
	background: #fff;
	color: #242424;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ems-related-carousel__prev { left: 0; }
.ems-related-carousel__next { right: 0; }

.ems-related-carousel__prev:hover,
.ems-related-carousel__next:hover,
.ems-related-carousel__prev:focus-visible,
.ems-related-carousel__next:focus-visible {
	border-color: var(--ems-accent, #F6A51C);
	background: var(--ems-accent, #F6A51C);
	color: #fff;
}

.ems-related-carousel__prev:disabled,
.ems-related-carousel__next:disabled {
	opacity: 0.35;
	cursor: default;
}

.ems-related-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.ems-related-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c7c7c7;
	cursor: pointer;
}

.ems-related-carousel__dot.is-active,
.ems-related-carousel__dot:hover,
.ems-related-carousel__dot:focus-visible {
	background: var(--ems-accent, #F6A51C);
}

@media (max-width: 1100px) {
	.ems-related-carousel__slide {
		flex-basis: calc((100% - 36px) / 3);
	}
}

@media (max-width: 767px) {
	.ems-related-carousel {
		padding-right: 34px;
		padding-left: 34px;
	}

	.ems-related-carousel__track {
		gap: 14px;
	}

	.ems-related-carousel__slide {
		flex-basis: calc((100% - 14px) / 2);
	}

	.ems-related-carousel__prev,
	.ems-related-carousel__next {
		width: 30px;
		height: 30px;
		font-size: 18px;
	}
}

/* -------------------------------------------------------------------------
 * EMS visual-alignment pass (3.68.0)
 *
 * The active block-theme product shell uses `.ems-product-main-summary`
 * rather than WooCommerce's legacy `.summary` wrapper.  Keep the same
 * purchase treatment for that live shell, and keep the sticky bar out of
 * the layout until the native CTA has scrolled away.
 * ---------------------------------------------------------------------- */

/* Sticky Add to Cart is progressively enhanced by product-reference.js. */
.ems-sticky-add-to-cart {
	opacity: 0;
	visibility: hidden;
	transform: translateY(100%);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.ems-sticky-add-to-cart.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Keep floating chat/help controls clear of the sticky purchase bar. */
body.ems-sticky-cart-visible .kodee-fab,
body.ems-sticky-cart-visible [class*="kodee-fab"] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

body.single-product:has(.ems-sticky-add-to-cart) {
	padding-bottom: 0 !important;
}

body.single-product:has(.ems-sticky-add-to-cart.is-visible) {
	padding-bottom: 76px !important;
}

/* Block-theme purchase controls: quantity first, then two full-width CTAs. */
.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	width: 100%;
	margin: 0;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart .quantity,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .woocommerce-variation-add-to-cart .quantity {
	align-self: flex-start;
	margin: 0;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart .single_add_to_cart_button,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart .ems-buy-now,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .woocommerce-variation-add-to-cart .ems-buy-now {
	display: inline-flex;
	width: 100% !important;
	max-width: none !important;
	min-height: 58px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 26px;
	background: var(--ems-accent, #F6A51C) !important;
	box-shadow: none;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart .single_add_to_cart_button:hover,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart .single_add_to_cart_button:focus-visible,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart .ems-buy-now:hover,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase form.cart .ems-buy-now:focus-visible,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .woocommerce-variation-add-to-cart .single_add_to_cart_button:focus-visible,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .woocommerce-variation-add-to-cart .ems-buy-now:hover,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .woocommerce-variation-add-to-cart .ems-buy-now:focus-visible {
	background: var(--ems-ui-orange-hover, #D88A08) !important;
	color: #fff !important;
}

/* The block-theme quantity script marks initialized controls with both this
 * class and data attribute. Keep the three controls in distinct grid cells so
 * theme quantity defaults cannot stack them on top of one another. */
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .quantity.ems-quantity-ready,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .quantity[data-ems-quantity-ready="1"] {
	display: grid !important;
	grid-template-columns: 40px 48px 40px !important;
	align-items: center !important;
	gap: 0 !important;
	width: 132px !important;
	min-width: 132px !important;
	height: 52px !important;
	border: 2px solid #d9dee5 !important;
	border-radius: 10px !important;
	background: #fff !important;
	overflow: hidden !important;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase .quantity .ems-quantity-button,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .quantity input.qty {
	position: static !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase .quantity .ems-quantity-button {
	background: #f5f6f7 !important;
	color: #111827 !important;
	font-size: 20px !important;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase .quantity input.qty {
	background: #fff !important;
	color: #111827 !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 48px !important;
	text-align: center !important;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase .quantity .ems-quantity-decrease,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .quantity input.qty {
	border-right: 1px solid #e5e7eb !important;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase .single_add_to_cart_button,
.single-product .ems-product-shell--block-theme .ems-product-native-purchase .ems-buy-now {
	text-transform: none !important;
}

.single-product .ems-product-shell--block-theme .ems-product-native-purchase .single_add_to_cart_button::before {
	display: inline-block;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin-right: 10px;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9h12l1 12h-14l1-12Z'/%3E%3Cpath d='M9.5 9V6.5a3 3 0 0 1 6 0V9'/%3E%3Cpath d='M19 16h6M22 13v6'/%3E%3C/svg%3E");
	content: "";
}

/* Product-page Related Products uses only numbered controls.  These scoped
 * rules are intentionally last so legacy carousel-dot styles cannot return. */
body.ems-product-page .ems-related-products .ems-related-carousel__dots,
body.ems-product-page .ems-related-products .ems-related-carousel__dot {
	display: none !important;
}

body.ems-product-page .ems-related-products .ems-related-carousel__controls {
	display: flex !important;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 32px 0 0;
	padding: 0;
}

body.ems-product-page .ems-related-products .ems-related-carousel__pages {
	display: flex !important;
	max-width: 100%;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

body.ems-product-page .ems-related-products .ems-related-carousel__page,
body.ems-product-page .ems-related-products .ems-related-carousel__ellipsis,
body.ems-product-page .ems-related-products .ems-related-carousel__arrow {
	display: inline-flex !important;
	width: 52px !important;
	height: 52px !important;
	min-width: 52px !important;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border: 1px solid #d7d7d7 !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: #111 !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

body.ems-product-page .ems-related-products .ems-related-carousel__page.is-active,
body.ems-product-page .ems-related-products .ems-related-carousel__page:hover,
body.ems-product-page .ems-related-products .ems-related-carousel__page:focus-visible,
body.ems-product-page .ems-related-products .ems-related-carousel__arrow:hover:not(:disabled),
body.ems-product-page .ems-related-products .ems-related-carousel__arrow:focus-visible:not(:disabled) {
	border-color: var(--ems-accent, #F6A51C) !important;
	background: var(--ems-accent, #F6A51C) !important;
	color: #111 !important;
}

body.ems-product-page .ems-related-products .ems-related-carousel__ellipsis {
	border-color: transparent !important;
	background: transparent !important;
}

body.ems-product-page .ems-related-products .ems-related-carousel__arrow {
	position: static !important;
	transform: none !important;
	cursor: pointer;
}

body.ems-product-page .ems-related-products .ems-related-carousel__arrow[hidden],
body.ems-product-page .ems-related-products .ems-related-carousel__controls[hidden] {
	display: none !important;
}

@media (max-width: 767px) {
	body.single-product:has(.ems-sticky-add-to-cart.is-visible) {
		padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
	}

	body.ems-product-page .ems-related-products .ems-related-carousel__controls {
		margin-top: 24px;
	}

	body.ems-product-page .ems-related-products .ems-related-carousel__page,
	body.ems-product-page .ems-related-products .ems-related-carousel__ellipsis,
	body.ems-product-page .ems-related-products .ems-related-carousel__arrow {
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		flex-basis: 48px;
	}
}
