.variations_form .variations select {
	min-width: 180px;
}

.ylpv-native-add-to-cart .variations_form .variations tr.ylpv-native-selector-row {
	display: block !important;
}
.ylpv-native-add-to-cart .variations_form .variations select.ylpv-native-selector-visible {
	position: static;
	width: 100%;
	height: auto;
	clip: auto;
	overflow: visible;
}
.ylpv-option-block[hidden],
.ylpv-option-block button[hidden] { display: none !important; }

.variations_form .single_variation_wrap {
	margin-top: 0;
}

.ylpv-product-page {
	--ylpv-dark: var(--primary-dark, #1a1a1a);
	--ylpv-accent: var(--accent-color, #d4845c);
	--ylpv-soft: var(--accent-light, #f5f5f5);
	--ylpv-border: var(--border-color, #e0e0e0);
	background: #f7f7f5;
	font-family: var(--system-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	padding: 24px 0 64px;
}

.ylpv-product-page :where(h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, label, strong) {
	font-family: inherit;
}

.ylpv-product-page button {
	font-family: inherit;
	font-size: inherit;
	letter-spacing: 0;
	text-transform: none;
}

.ylpv-product-container {
	width: min(1240px, calc(100% - 48px));
	margin: 0 auto;
}

.ylpv-breadcrumb {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
	color: #777;
	font-size: 13px;
}

.ylpv-breadcrumb a {
	color: inherit;
}

.ylpv-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 20px;
	align-items: start;
}

.ylpv-gallery,
.ylpv-product-info,
.ylpv-product-details {
	min-width: 0;
	border: 1px solid #e8e8e5;
	border-radius: 18px;
	background: #fff;
}

.ylpv-description-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 250px;
	border-bottom: 1px solid #eee;
}

.ylpv-description-row:last-child {
	border-bottom: 0;
}

.ylpv-description-row.image-left .ylpv-description-copy {
	grid-column: 2;
	grid-row: 1;
}

.ylpv-description-row.image-left .ylpv-description-media {
	grid-column: 1;
	grid-row: 1;
}

.ylpv-description-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 42px;
}

.ylpv-description-eyebrow {
	margin-bottom: 10px;
	color: #777;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ylpv-description-copy h2 {
	margin: 0 0 12px;
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 600;
	line-height: 1.15;
}

.ylpv-description-copy p {
	max-width: 500px;
	margin: 0;
	color: #686868;
	font-size: 15px;
	line-height: 1.7;
}

.ylpv-description-media {
	min-height: 250px;
	overflow: hidden;
	background: #f0ece6;
}

.ylpv-description-media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 250px;
	object-fit: contain;
}

.ylpv-faq-section {
	margin-top: 20px;
	padding: 28px;
	border: 1px solid #e8e8e5;
	border-radius: 18px;
	background: #fff;
}

.ylpv-faq-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.ylpv-faq-heading h2 {
	margin: 0;
	font-size: 24px;
}

.ylpv-faq-heading span {
	color: #777;
	font-size: 12px;
}

.ylpv-faq-list details {
	border-top: 1px solid #e8e8e5;
}

.ylpv-faq-list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 4px;
	color: #222;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
}

.ylpv-faq-list summary::-webkit-details-marker {
	display: none;
}

.ylpv-faq-list summary span {
	font-size: 20px;
	font-weight: 300;
}

.ylpv-faq-list details[open] summary span {
	transform: rotate(45deg);
}

.ylpv-faq-list details > div {
	padding: 0 4px 16px;
	color: #686868;
	font-size: 14px;
	line-height: 1.65;
}

.ylpv-gallery {
	padding: 16px;
}

.ylpv-gallery-stage {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	background: #f0ece6;
}
.ylpv-product-page .ylpv-gallery-stage:has(.ylpv-media-item[data-media-key="video"].is-active) { aspect-ratio: 4 / 3 !important; }
.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item[data-media-key="video"] { aspect-ratio: 4 / 3 !important; height: 100%; }

.ylpv-media-item {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
}

.ylpv-media-item.is-active {
	display: flex;
}

.ylpv-media-item img,
.ylpv-media-item video,
.ylpv-media-item iframe {
	width: 100%;
	height: 100%;
	border: 0;
	/* Show the full source inside the 4:3 frame without cropping or distortion. */
	object-fit: contain !important;
	object-position: center !important;
	background: #f0ece6;
}
.ylpv-media-item[data-media-key="video"] video,
.ylpv-media-item[data-media-key="video"] iframe { object-fit: contain; background: #000; }

.ylpv-media-item video,
.ylpv-media-item iframe {
	/* Product videos commonly contain branding in the upper-left corner. Keep that corner visible. */
	object-position: center;
}

.ylpv-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	max-height: none;
	padding: 0;
	scroll-snap-type: x proximity;
}
.ylpv-product-page .ylpv-thumb[data-target="video"] {
	aspect-ratio: 4 / 3;
	height: 72px !important;
	min-height: 72px;
	max-height: 72px;
}

.ylpv-thumb {
	position: relative;
	width: 96px !important;
	height: 72px !important;
	min-width: 96px;
	min-height: 72px;
	aspect-ratio: 4 / 3;
	flex: 0 0 96px;
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #f5f2ed;
	color: #222;
	cursor: pointer;
	scroll-snap-align: start;
	transition: border-color .2s ease, outline-color .2s ease;
}

.ylpv-product-page .ylpv-thumb:hover {
	border-color: var(--ylpv-dark);
	background: var(--ylpv-soft);
	color: var(--ylpv-dark);
}

.ylpv-thumb.is-active {
	outline: 0;
	box-shadow: inset 0 0 0 2px var(--ylpv-dark);
}

.ylpv-product-page .ylpv-thumb[data-target="video"] {
	background: #1c1c1c;
	color: #fff;
}

.ylpv-product-page .ylpv-thumb[data-target="video"]:hover {
	background: #2c2c2c;
	color: #fff;
}

.ylpv-thumb[data-target="video"] span {
	position: absolute;
	inset: 50% auto auto 50%;
	display: grid;
	width: 28px;
	height: 28px;
	transform: translate(-50%, -50%);
	place-items: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, .62);
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

.ylpv-thumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	max-height: none;
	border-radius: 0;
	/* Keep the complete thumbnail visible without cropping. */
	object-fit: contain !important;
	object-position: center;
	background: #f5f2ed;
}

.ylpv-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 16px;
	border: 1px solid #e8e8e5;
	border-radius: 12px;
	overflow: hidden;
}

.ylpv-benefits > div {
	padding: 13px 8px;
	text-align: center;
	font-size: 12px;
}

.ylpv-benefits svg {
	display: block;
	width: 24px;
	height: 24px;
	margin: 0 auto 7px;
	fill: currentColor;
	color: var(--ylpv-dark);
}

.ylpv-benefits > div + div {
	border-left: 1px solid #e8e8e5;
}

.ylpv-benefits strong,
.ylpv-benefits span {
	display: block;
}

.ylpv-benefits span {
	margin-top: 4px;
	color: #777;
}

.ylpv-option-block h3 {
	font-weight: 700;
}

.ylpv-benefits > div {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	text-align: left;
}

.ylpv-benefits svg {
	flex: 0 0 24px;
	margin: 0;
}

.ylpv-benefit-copy {
	display: flex;
	flex-direction: column;
}

.ylpv-benefits > div {
	min-height: 62px;
	padding: 8px 10px;
}

.ylpv-benefits svg {
	width: 29px;
	height: 29px;
	flex-basis: 29px;
}

.ylpv-benefit-copy {
	align-items: flex-start;
	justify-content: center;
	gap: 1px;
	padding: 0;
	text-align: left;
}

.ylpv-benefit-copy span {
	margin-top: 0;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	margin-top: 18px;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity,
.ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button {
	float: none !important;
	width: 100% !important;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity .qty,
.ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button {
	height: 52px;
	min-height: 52px;
	margin: 0;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button {
	line-height: 50px;
}

.ylpv-product-info {
	padding: 18px 30px 30px;
	min-height: 560px;
	max-height: 100%;
	overflow-y: auto;
}

.ylpv-product-category {
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ylpv-product-category a {
	color: #777;
}

.ylpv-product-info .product_title {
	margin: 0 0 6px;
	font-size: clamp(23px, 2.7vw, 31px);
	font-weight: 600;
	line-height: 1.22;
}

.ylpv-product-info .star-rating {
	margin-bottom: 20px;
}

.ylpv-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 8px;
	color: #777;
	font-size: 13px;
}

.ylpv-product-rating .ylpv-stars {
	color: #f0a11a;
	font-size: 21px;
	letter-spacing: 2px;
	line-height: 1;
}

.ylpv-product-rating strong {
	color: #171717;
}

.ylpv-price-box {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 6px 0;
	border: 0;
}

.ylpv-price-box > span {
	display: block;
	margin-bottom: 4px;
	color: #777;
	font-size: 13px;
}

.ylpv-price-box .price {
	display: block;
	margin: 0;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
}

.ylpv-price-box .price del,
.ylpv-price-box .price ins {
	display: inline;
}

.ylpv-price-box .price del {
	font-weight: 400;
}

.ylpv-price-box .price ins {
	font-weight: 600;
	text-decoration: none;
}

.ylpv-price-box .price {
	color: #d31818;
	font-size: 30px;
}

.ylpv-coupons {
	display: flex;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	align-items: center;
	gap: 5px;
	margin-top: 0;
	padding-bottom: 1px;
	box-sizing: border-box;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

.ylpv-coupons::-webkit-scrollbar {
	height: 4px;
}

.ylpv-coupon-code {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 2px 5px;
	border: 1px dashed #d31818;
	background: #fff5f5;
	color: #d31818;
	font-size: 9px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.ylpv-coupon-code.is-muted {
	opacity: .42;
}

.ylpv-coupon-code.is-active {
	background: #d31818;
	color: #fff;
}

.ylpv-coupon-area {
	position: relative;
	min-width: 0;
}

.ylpv-coupon-tooltip {
	position: absolute;
	z-index: 5;
	top: calc(100% + 6px);
	left: 0;
	display: none;
	max-width: min(320px, 100%);
	padding: 6px 9px;
	border: 1px solid #ddd;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
	color: #444;
	font-size: 11px;
	line-height: 1.4;
}

.ylpv-coupon-tooltip.is-visible {
	display: block;
}

.ylpv-option-block {
	display: grid;
	min-width: 0;
	grid-template-columns: 88px minmax(0, 1fr);
	align-items: start;
	column-gap: 14px;
	padding: 5px 0;
	border: 0;
}

.ylpv-option-block h3 {
	display: flex;
	align-items: center;
	min-height: 34px;
	margin: 0;
	font-size: 15px;
}

.ylpv-color-swatches {
	display: flex;
	width: 100%;
	gap: 8px;
	flex-wrap: wrap;
	max-height: 78px;
	overflow-y: hidden;
	padding: 0 10px 0 0;
	box-sizing: border-box;
}

.ylpv-color-swatches.is-scrollable {
	overflow-y: auto;
	scrollbar-gutter: stable;
}

.ylpv-color-swatch,
.ylpv-size-option,
.ylpv-material-option {
	box-sizing: border-box;
}

.ylpv-color-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
	flex: 0 1 auto;
	min-height: 34px;
	padding: 5px 10px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: #171717;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

.ylpv-product-page .ylpv-color-swatch:hover {
	background: #fafafa;
	border-color: #d31818;
}

.ylpv-product-page .ylpv-product-info > .product_title {
	margin-top: 0;
	margin-bottom: 6px;
	font-weight: 600;
}

.ylpv-color-swatch.is-active {
	background: #f7f7f5;
}

.ylpv-color-swatch-dot {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 1px solid rgba(0, 0, 0, .18);
	border-radius: 2px;
	background: var(--swatch-color);
}

.ylpv-color-swatch-label {
	white-space: nowrap;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ylpv-native-add-to-cart .variations_form .variations {
	display: block;
	width: 100%;
	margin: 0;
}

.ylpv-native-add-to-cart .variations_form .variations tbody,
.ylpv-native-add-to-cart .variations_form .variations tr,
.ylpv-native-add-to-cart .variations_form .variations th,
.ylpv-native-add-to-cart .variations_form .variations td {
	display: block;
	width: 100%;
}

.ylpv-native-add-to-cart .variations_form .variations tr {
	padding: 20px 0 0;
}

.ylpv-native-add-to-cart .variations_form .variations tr.ylpv-enhanced-size {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	align-items: start;
	column-gap: 14px;
	padding-top: 5px;
}

.ylpv-native-add-to-cart .variations_form .variations th {
	padding: 0;
	text-align: left;
}

.ylpv-native-add-to-cart .variations_form .variations td {
	padding: 0;
}

.ylpv-native-add-to-cart .variations_form .label label {
	font-size: 15px;
	font-weight: 700;
}

.ylpv-native-color-row {
	display: none !important;
}

.ylpv-native-material-row {
	display: none !important;
}

.ylpv-native-add-to-cart .variations_form .variations select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.ylpv-native-add-to-cart .variations_form .single_variation .woocommerce-variation-price {
	display: none !important;
}

.ylpv-native-add-to-cart .woocommerce-variation-availability {
	margin: 8px 0 0;
}

.ylpv-native-add-to-cart .woocommerce-variation-availability .stock {
	margin: 0;
}

.ylpv-native-add-to-cart .ylpv-size-options {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 0;
}

.ylpv-native-add-to-cart .ylpv-enhanced-size th {
	margin-top: 9px;
}

.ylpv-size-option {
	position: relative;
	padding: 7px 11px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #fff;
	color: #171717;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.ylpv-product-page .ylpv-size-option:hover {
	border-color: #d31818;
	background: #f7f7f5;
	color: #171717;
}

.ylpv-size-option.is-active {
	background: #f7f7f5;
	color: #171717;
}

.ylpv-material-options {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.ylpv-material-scroll {
	position: relative;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.ylpv-material-scroll .ylpv-material-options {
	padding-right: 0;
	padding-left: 0;
	scrollbar-width: none;
}

.ylpv-material-scroll .ylpv-material-options::-webkit-scrollbar {
	display: none;
}

.ylpv-option-scroll-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	width: 18px;
	height: 22px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	place-items: center;
	border: 1px solid #dedbd5;
	border-radius: 2px;
	background: rgba(255, 255, 255, .96);
	color: #555;
	cursor: pointer;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .16s ease, color .16s ease, background-color .16s ease;
}

.ylpv-option-scroll-arrow.is-prev {
	left: 0;
}

.ylpv-option-scroll-arrow.is-next {
	right: 0;
}

.ylpv-material-scroll.is-scrollable:hover .ylpv-option-scroll-arrow:not(:disabled),
.ylpv-material-scroll.is-scrollable:focus-within .ylpv-option-scroll-arrow:not(:disabled) {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ylpv-option-scroll-arrow:hover,
.ylpv-option-scroll-arrow:focus-visible {
	background: #f7f7f5;
	color: #d31818;
	outline: 2px solid rgba(211, 24, 24, .2);
	outline-offset: 1px;
}

.ylpv-option-scroll-arrow:disabled {
	color: #aaa;
	cursor: default;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.ylpv-material-option {
	position: relative;
	padding: 7px 11px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #fff;
	color: #171717;
	cursor: pointer;
}

.ylpv-material-option.is-active,
.ylpv-product-page .ylpv-material-option:hover {
	border-color: #d31818;
	background: #f7f7f5;
}

.ylpv-color-swatch.is-active,
.ylpv-size-option.is-active,
.ylpv-material-option.is-active {
	border: 1px solid #d31818;
}

.ylpv-color-swatch.is-active::after,
.ylpv-size-option.is-active::after,
.ylpv-material-option.is-active::after {
	position: absolute;
	right: -1px;
	bottom: -1px;
	display: grid;
	width: 16px;
	height: 16px;
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	place-items: end;
	padding: 0 2px 1px 0;
	box-sizing: border-box;
	background: #d31818;
	color: #fff;
	content: '✓';
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

@media (max-width: 600px) {
	.ylpv-option-block {
		grid-template-columns: 1fr;
		row-gap: 8px;
	}

	.ylpv-option-block h3 {
		margin-top: 0;
	}

	.ylpv-native-add-to-cart .variations_form .variations tr.ylpv-enhanced-size {
		grid-template-columns: 1fr;
		row-gap: 8px;
	}

	.ylpv-native-add-to-cart .ylpv-enhanced-size th {
		margin-top: 0;
	}
}

.ylpv-native-add-to-cart .single_add_to_cart_button {
	width: 100%;
	height: 52px;
	min-height: 52px;
	margin-top: 18px;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 50px;
	border: 1px solid #111 !important;
	border-radius: 6px;
	background: #111 !important;
	color: #fff !important;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ylpv-product-page .single_add_to_cart_button:hover {
	border-color: #2c2c2c !important;
	background: #2c2c2c !important;
	color: #fff !important;
}

.ylpv-product-page .single_add_to_cart_button:disabled,
.ylpv-product-page .single_add_to_cart_button.disabled {
	border-color: #c9c9c9 !important;
	background: #c9c9c9 !important;
	color: #fff !important;
	cursor: not-allowed;
}

.ylpv-native-add-to-cart .quantity .qty:disabled {
	border-color: #dedede;
	background: #f2f2f2;
	color: #aaa;
	cursor: not-allowed;
}

.ylpv-quantity-control {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 32px;
	height: 48px;
	border: 1px solid var(--ylpv-border);
	border-radius: 0;
	overflow: hidden;
	background: #fff;
}

.ylpv-quantity-control .qty {
	-moz-appearance: textfield;
	appearance: textfield;
	height: 46px !important;
	border: 0 !important;
	border-right: 1px solid #ededeb !important;
	border-left: 1px solid #ededeb !important;
	border-radius: 0 !important;
}

.ylpv-quantity-control .qty::-webkit-inner-spin-button,
.ylpv-quantity-control .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ylpv-quantity-control button {
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: #fff;
	color: #333;
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.ylpv-quantity-control button:hover {
	background: #f5f5f3;
}

.ylpv-native-add-to-cart .quantity:has(.qty:disabled) .ylpv-quantity-control {
	border-color: #dedede;
	background: #f2f2f2;
}

.ylpv-native-add-to-cart .quantity:has(.qty:disabled) .ylpv-quantity-control button {
	background: #f2f2f2;
	color: #aaa;
	cursor: not-allowed;
}

.ylpv-native-add-to-cart .quantity:has(.qty:disabled) .ylpv-quantity-control button {
	pointer-events: none;
}

.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	width: 100%;
	margin-top: 18px;
}

.ylpv-native-add-to-cart .quantity {
	display: block;
}

.ylpv-native-add-to-cart .quantity .qty {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--ylpv-border);
	border-radius: 6px;
	background: #fff;
	color: var(--ylpv-dark);
	text-align: center;
}

.ylpv-native-add-to-cart .reset_variations {
	display: none !important;
	order: 2;
	margin-top: 10px;
	color: var(--ylpv-accent);
	font-size: 12px;
}

.ylpv-native-add-to-cart .ylpv-enhanced-size .value {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
}

.ylpv-native-add-to-cart .ylpv-enhanced-size .ylpv-size-options {
	order: 1;
}

.ylpv-product-info .product_meta {
	margin-top: 20px;
	color: #777;
	font-size: 13px;
}

.ylpv-product-share,
.ylpv-payment-methods {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 16px;
	padding-top: 15px;
	border-top: 1px solid #ececea;
	color: #666;
	font-size: 12px;
}

.ylpv-product-share > span,
.ylpv-payment-methods > span {
	margin-right: 3px;
	font-weight: 600;
}

.ylpv-product-share a,
.ylpv-product-share button {
	display: grid;
	width: 30px;
	height: 30px;
	padding: 0;
	place-items: center;
	border: 1px solid #dededb;
	border-radius: 50%;
	background: #fff;
	color: #222;
	cursor: pointer;
}

.ylpv-product-share svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.ylpv-copy-link.is-copied {
	border-color: #111;
	background: #111;
	color: #fff;
}

.ylpv-payment-methods {
	align-items: flex-start;
	flex-direction: column;
}

.ylpv-payment-logos {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ylpv-payment-logos svg {
	width: 64px;
	height: 26px;
}

.ylpv-payment-logos svg > rect {
	fill: #fff;
	stroke: #d7d7d4;
}

.ylpv-visa text {
	fill: #1434cb;
	font-size: 16px;
	font-style: italic;
	font-weight: 800;
}

.ylpv-mastercard circle:first-of-type {
	fill: #eb001b;
}

.ylpv-mastercard circle:nth-of-type(2) {
	fill: #f79e1b;
	fill-opacity: .88;
}

.ylpv-mastercard text {
	fill: #222;
	font-size: 5px;
}

.ylpv-payment-online {
	display: inline-flex;
	height: 26px;
	align-items: center;
	padding: 0 10px;
	border: 1px solid #d7d7d4;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 11px;
}

.ylpv-product-details {
	margin-top: 28px;
	padding: 26px;
}

.ylpv-detail-tabs {
	display: flex;
	gap: 25px;
	border-bottom: 1px solid #e8e8e5;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.ylpv-detail-tabs span {
	padding-bottom: 12px;
	color: #777;
}

.ylpv-detail-tabs .is-active {
	border-bottom: 2px solid #111;
	color: #171717;
}

.ylpv-description {
	padding-top: 20px;
	line-height: 1.75;
	color: #454545;
}

/* Shared purchase bar for both simple and variable products. */
.ylpv-native-add-to-cart form.cart:not(.variations_form),
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: center;
	width: 100%;
	margin-top: 10px;
}

.ylpv-native-add-to-cart .variations_form .woocommerce-variation-add-to-cart {
	margin-top: 8px;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 88px 120px;
	gap: 14px;
	align-items: center;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity .ylpv-quantity-control,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity .ylpv-quantity-control {
	width: 120px;
	height: 34px;
	grid-template-columns: 30px minmax(0, 1fr) 30px;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity::before,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity::before {
	content: 'Số lượng';
	font-size: 15px;
	font-weight: 700;
}

.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity .qty {
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	box-sizing: border-box;
}

.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	line-height: 46px;
	white-space: nowrap;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	grid-column: 1;
}

.ylpv-native-add-to-cart .ylpv-buy-now {
	display: inline-flex !important;
	grid-column: 2;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #d31818 !important;
	border-radius: 5px;
	background: #d31818 !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	border-color: #d31818 !important;
	background: #fff !important;
	color: #d31818 !important;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button:hover,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
	border-color: #d31818 !important;
	background: #fff5f5 !important;
	color: #d31818 !important;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button:disabled,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button:disabled,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button.disabled {
	border-color: #c9c9c9 !important;
	background: #f2f2f2 !important;
	color: #aaa !important;
}

.ylpv-native-add-to-cart .ylpv-buy-now:hover {
	border-color: #b51515 !important;
	background: #b51515 !important;
	color: #fff !important;
}

.ylpv-native-add-to-cart .ylpv-buy-now:disabled,
.ylpv-native-add-to-cart .ylpv-buy-now.disabled {
	border-color: #c9c9c9;
	background: #c9c9c9;
	color: #fff;
	cursor: not-allowed;
}

.ylpv-native-add-to-cart .single_add_to_cart_button:disabled,
.ylpv-native-add-to-cart .single_add_to_cart_button.disabled,
.ylpv-native-add-to-cart .ylpv-buy-now:disabled,
.ylpv-native-add-to-cart .ylpv-buy-now.disabled {
	opacity: .45;
}

.ylpv-native-add-to-cart .ylpv-buy-now:disabled {
	border-color: #d31818 !important;
	background: #d31818 !important;
	color: #fff !important;
	opacity: .45;
}

.ylpv-native-add-to-cart .single_add_to_cart_button:disabled,
.ylpv-native-add-to-cart .single_add_to_cart_button.disabled {
	border-color: #d31818 !important;
	background: #fff !important;
	color: #d31818 !important;
	opacity: .45;
}

.ylpv-native-add-to-cart .ylpv-buy-now:disabled,
.ylpv-native-add-to-cart .ylpv-buy-now.disabled {
	border-color: #d31818 !important;
	background: #d31818 !important;
	color: #fff !important;
	opacity: .45;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity {
	float: none !important;
	display: grid;
	grid-template-columns: 88px 120px;
	gap: 14px;
	align-items: center;
	width: 100%;
	margin: 0 !important;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity .qty,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity .qty {
	display: block;
	width: 100%;
	height: 32px !important;
	min-height: 32px !important;
	margin: 0;
	padding: 0 10px;
	box-sizing: border-box;
	border: 1px solid var(--ylpv-border);
	border-radius: 0;
	background: #fff;
	color: var(--ylpv-dark);
	text-align: center;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	float: none !important;
	width: 100% !important;
	height: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0 18px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

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

	.ylpv-product-info {
		height: auto !important;
		max-height: none;
		overflow: visible;
	}
}

@media (max-width: 520px) {
	.ylpv-product-page {
		padding-top: 12px;
	}

	.ylpv-product-container {
		width: 100%;
	}

	.ylpv-breadcrumb {
		padding: 0 14px;
	}

	.ylpv-gallery,
	.ylpv-product-info,
	.ylpv-product-details {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.ylpv-product-info {
		padding: 22px 16px;
	}

	.ylpv-price-box .price {
		font-size: 24px;
		white-space: normal;
	}

	.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity,
	.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity {
		grid-template-columns: 88px 120px;
	}

	.ylpv-native-add-to-cart form.cart:not(.variations_form) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ylpv-gallery {
		padding: 10px;
	}

	.ylpv-benefits {
		grid-template-columns: 1fr;
	}

	.ylpv-benefits div + div {
		border-top: 1px solid #e8e8e5;
		border-left: 0;
	}
}

/* Keep variation choices on one line and scroll horizontally when needed. */
.ylpv-option-block .ylpv-color-swatches,
.ylpv-option-block .ylpv-material-options,
.ylpv-option-block .ylpv-size-options,
.ylpv-native-add-to-cart .ylpv-color-swatches,
.ylpv-native-add-to-cart .ylpv-material-options,
.ylpv-native-add-to-cart .ylpv-size-options {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	max-height: none;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	align-items: center;
	padding-bottom: 2px;
	box-sizing: border-box;
	overscroll-behavior-inline: contain;
}

.ylpv-option-block .ylpv-color-swatch,
.ylpv-option-block .ylpv-material-option,
.ylpv-option-block .ylpv-size-option,
.ylpv-native-add-to-cart .ylpv-color-swatch,
.ylpv-native-add-to-cart .ylpv-material-option,
.ylpv-native-add-to-cart .ylpv-size-option {
	flex: 0 0 auto;
}


.ylpv-related-products {
	margin-top: 28px;
}

.ylpv-related-products > h2 {
	margin: 0 0 16px;
	color: var(--ylpv-dark);
	font-size: 24px;
	font-weight: 600;
}

.ylpv-related-products .products {
	margin: 0;
}

@media (max-width: 700px) {
	.ylpv-description-row {
		grid-template-columns: 1fr;
	}

	.ylpv-description-row.image-left .ylpv-description-copy,
	.ylpv-description-row.image-left .ylpv-description-media {
		grid-column: 1;
		grid-row: auto;
	}

	.ylpv-description-copy {
		padding: 28px 22px;
	}
}

/* Circular color choices and stock alongside quantity. */
.ylpv-product-page .ylpv-color-swatch {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	min-height: 30px;
	flex: 0 0 30px;
	padding: 3px;
	border-radius: 50%;
}

.ylpv-product-page .ylpv-color-swatch-dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	box-sizing: border-box;
}

.ylpv-product-page .ylpv-color-swatch-label,
.ylpv-product-page .ylpv-color-swatch.is-active::after,
.ylpv-native-add-to-cart .woocommerce-variation-availability {
	display: none;
}

.ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity,
.ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity {
	grid-template-columns: 88px 120px minmax(0, 1fr);
	column-gap: 14px;
}

.ylpv-native-add-to-cart .ylpv-inline-stock .stock {
	margin: 0;
	padding: 0;
	color: #27833d;
	font-size: 13px;
	line-height: 1.4;
}

.ylpv-native-add-to-cart .ylpv-inline-stock .out-of-stock {
	color: #d31818;
}

/* Product detail tabs and panels: final responsive skin. */


.ylpv-product-details {
	margin-top: 20px;
	padding: 0 22px 22px;
	border-color: #e9e9e6;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(25, 25, 25, .02);
}

.ylpv-detail-tabs {
	display: flex;
	align-items: stretch;
	gap: 0;
	min-height: 54px;
	margin: 0 -22px;
	padding: 0 10px;
	border-bottom: 1px solid #e7e7e4;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.ylpv-detail-tabs::-webkit-scrollbar {
	display: none;
}

.ylpv-detail-tabs button {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 16px 18px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #777;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease;
}

.ylpv-detail-tabs button::after { display: none; }

.ylpv-detail-tabs button:hover,
.ylpv-detail-tabs button:focus-visible,
.ylpv-detail-tabs button[aria-selected='true'],
.ylpv-detail-tabs button.is-active {
	background: #fafaf8;
	color: #171717;
}

.ylpv-detail-tabs button[aria-selected='true'],
.ylpv-detail-tabs button.is-active {
	border-bottom: 2px solid #171717;
}

.ylpv-detail-tabs button:focus-visible {
	outline: 2px solid rgba(211, 24, 24, .35);
	outline-offset: -3px;
}

.ylpv-tab-panel {
	padding: 24px 0 0;
	color: #454545;
	font-size: 14px;
	line-height: 1.7;
}

.ylpv-tab-panel[hidden] {
	display: none !important;
}

.ylpv-tab-panel > h2 {
	margin: 0 0 16px;
	color: #171717;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.ylpv-description {
	padding-top: 18px;
}

.ylpv-description-row {
	min-height: 230px;
	margin-bottom: 10px;
	border: 1px solid #efefec;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.ylpv-description-row:last-child {
	margin-bottom: 0;
}

.ylpv-description-copy {
	padding: 34px;
}

.ylpv-description-copy h2 {
	margin-bottom: 10px;
	color: #171717;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 600;
}

.ylpv-description-copy p {
	max-width: 560px;
	color: #686868;
	font-size: 14px;
	line-height: 1.65;
}

.ylpv-description-media,
.ylpv-description-media img {
	min-height: 230px;
}

.ylpv-description-media {
	background: #f4f1ec;
}

.ylpv-description-media img {
	object-fit: contain;
}

.ylpv-tab-panel .shop_attributes,
.ylpv-tab-panel .woocommerce-product-attributes {
	width: 100%;
	margin: 0;
	border: 1px solid #e8e8e5;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 8px;
	overflow: hidden;
}

.ylpv-tab-panel .shop_attributes th,
.ylpv-tab-panel .shop_attributes td,
.ylpv-tab-panel .woocommerce-product-attributes th,
.ylpv-tab-panel .woocommerce-product-attributes td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid #ededeb;
	text-align: left;
	vertical-align: top;
}

.ylpv-tab-panel .shop_attributes tr:last-child th,
.ylpv-tab-panel .shop_attributes tr:last-child td,
.ylpv-tab-panel .woocommerce-product-attributes tr:last-child th,
.ylpv-tab-panel .woocommerce-product-attributes tr:last-child td {
	border-bottom: 0;
}

.ylpv-tab-panel .shop_attributes th,
.ylpv-tab-panel .woocommerce-product-attributes th {
	width: 32%;
	color: #222;
	font-weight: 600;
}

.ylpv-tab-panel .shop_attributes tr:nth-child(odd) th,
.ylpv-tab-panel .shop_attributes tr:nth-child(odd) td,
.ylpv-tab-panel .woocommerce-product-attributes tr:nth-child(odd) th,
.ylpv-tab-panel .woocommerce-product-attributes tr:nth-child(odd) td {
	background: #fafaf8;
}

.ylpv-shipping-details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.ylpv-shipping-details > div {
	min-height: 82px;
	padding: 16px;
	border: 1px solid #e8e8e5;
	border-radius: 8px;
	background: #fafaf8;
}

.ylpv-shipping-details dt {
	margin: 0 0 4px;
	color: #222;
	font-size: 14px;
	font-weight: 600;
}

.ylpv-shipping-details dd {
	margin: 0;
	color: #777;
	font-size: 13px;
}

/* Related product cards. */
.ylpv-related-products {
	margin-top: 28px;
}

.ylpv-related-products .ylpv-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.ylpv-related-products .ylpv-section-heading h2 {
	margin: 0;
	color: var(--ylpv-dark);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
}

.ylpv-related-products .ylpv-section-heading a {
	flex: 0 0 auto;
	color: #555;
	font-size: 12px;
	text-decoration: none;
}

.ylpv-related-products .ylpv-section-heading a:hover {
	color: #171717;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ylpv-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.ylpv-related-card {
	display: block;
	min-width: 0;
	border: 1px solid #e9e9e6;
	border-radius: 9px;
	background: #fff;
	color: inherit;
	overflow: hidden;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ylpv-related-card:hover {
	border-color: #d7d7d3;
	box-shadow: 0 8px 20px rgba(25, 25, 25, .08);
	color: inherit;
	transform: translateY(-2px);
}

.ylpv-related-image {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f4f1ec;
	overflow: hidden;
}

.ylpv-related-image img {
	display: block;
	width: 100%;
	height: 100%;
	/* Show the complete source without cropping or distortion. */
	object-fit: contain;
	object-position: center;
}

/* Video uses the original 4:3 gallery frame. Keep the complete video visible
 * and centered; only its automatic poster is generated at the 1-second mark. */
.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item[data-media-key="video"] video,
.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item[data-media-key="video"] iframe {
	aspect-ratio: auto;
	object-fit: contain !important;
	object-position: center center !important;
	background: #f0ece6;
}
.ylpv-product-page .ylpv-thumb[data-target="video"] { aspect-ratio: 4 / 3 !important; }

.ylpv-related-copy {
	min-height: 92px;
	padding: 11px 12px 12px;
}

.ylpv-related-copy h3 {
	display: -webkit-box;
	margin: 0 0 6px;
	overflow: hidden;
	color: #222;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ylpv-related-price,
.ylpv-related-price .price {
	color: #222;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.ylpv-related-price del {
	margin-right: 4px;
	color: #999;
	font-weight: 400;
}

.ylpv-related-price ins {
	color: #d31818;
	text-decoration: none;
}

.ylpv-related-colors {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
}

.ylpv-related-colors span {
	display: block;
	width: 12px;
	height: 12px;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 50%;
}

@media (max-width: 1050px) {
	.ylpv-related-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.ylpv-product-details {
		padding-right: 16px;
		padding-left: 16px;
	}

	.ylpv-detail-tabs {
		margin-right: -16px;
		margin-left: -16px;
		padding-right: 4px;
		padding-left: 4px;
	}

	.ylpv-related-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ylpv-shipping-details {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.ylpv-product-details {
		padding-right: 12px;
		padding-bottom: 14px;
		padding-left: 12px;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.ylpv-detail-tabs {
		margin-right: -12px;
		margin-left: -12px;
	}

	.ylpv-detail-tabs button {
		padding-right: 14px;
		padding-left: 14px;
	}

	.ylpv-tab-panel {
		padding-top: 18px;
	}

	.ylpv-description-row {
		grid-template-columns: 1fr;
	}

	.ylpv-description-row.image-left .ylpv-description-copy,
	.ylpv-description-row.image-left .ylpv-description-media {
		grid-column: 1;
		grid-row: auto;
	}

	.ylpv-description-copy {
		padding: 24px 20px;
	}

	.ylpv-description-media,
	.ylpv-description-media img {
		min-height: 200px;
	}

	.ylpv-related-products .ylpv-section-heading h2 {
		font-size: 21px;
	}

	.ylpv-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (max-width: 380px) {
	.ylpv-related-grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile product detail: keep media and long content inside the viewport, and
 * turn related products into a touch-friendly horizontal slider. */
@media (max-width: 700px) {
	.ylpv-product-page {
		overflow-x: hidden;
	}

	.ylpv-product-container,
	.ylpv-product-layout,
	.ylpv-gallery,
	.ylpv-product-info,
	.ylpv-product-details,
	.ylpv-description-row,
	.ylpv-description-copy,
	.ylpv-description-media {
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
	}

	.ylpv-breadcrumb {
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item img,
	.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item video,
	.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item iframe {
		max-width: 100%;
		object-fit: contain !important;
		object-position: center !important;
	}

	.ylpv-description-text,
	.ylpv-description-text p,
	.ylpv-description-text li {
		min-width: 0;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.ylpv-description-media img,
	.ylpv-description-media video,
	.ylpv-description-media iframe {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		height: auto;
		min-height: 0;
		object-fit: contain;
	}

	.ylpv-variant-specifications {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}

	.ylpv-related-grid {
		display: flex;
		grid-template-columns: none;
		gap: 10px;
		margin-right: 0;
		margin-left: 0;
		padding: 0 16px 6px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-padding-inline: 16px;
		scroll-snap-type: x mandatory;
		overscroll-behavior-inline: contain;
		scrollbar-width: none;
		contain: layout paint;
		-webkit-overflow-scrolling: touch;
	}

	.ylpv-related-products .ylpv-section-heading {
		margin-right: 16px;
		margin-left: 16px;
	}

	.ylpv-related-grid::-webkit-scrollbar {
		display: none;
	}

	.ylpv-related-card {
		flex: 0 0 min(78vw, 292px);
		scroll-snap-align: start;
	}
}



.ylpv-description-text { line-height: 1.7; }
.ylpv-description-text p { margin: 0 0 1em; }
.ylpv-description-text p:last-child { margin-bottom: 0; }

.ylpv-variant-specifications { width: 100%; border: 1px solid #e5e1da; border-radius: 8px; border-spacing: 0; overflow: hidden; margin: 0 0 18px; background: #fff; }
.ylpv-variant-specifications th,
.ylpv-variant-specifications th,
.ylpv-variant-specifications td { padding: 14px 16px; border-bottom: 1px solid #e9e6e1; text-align: left; vertical-align: top; line-height: 1.55; }
.ylpv-variant-specifications th { width: 28%; color: #27231f; font-weight: 600; background: #faf9f7; }
.ylpv-variant-specifications td { color: #665f56; }
.ylpv-variant-specifications tr:nth-child(even) th,
.ylpv-variant-specifications tr:nth-child(even) td { background: #fcfbfa; }
.ylpv-variant-specifications tr:last-child th,
.ylpv-variant-specifications tr:last-child td { border-bottom: 0; }

@media (max-width: 600px) {
	.ylpv-variant-specifications th,
	.ylpv-variant-specifications td { padding: 11px 12px; }
}

/* Product image contract: fixed 4:3 frame, full source visible, no crop. */
.ylpv-gallery-stage,
.ylpv-related-image,
.ylpv-media-item {
	aspect-ratio: 4 / 3;
	background: #f3f0eb;
}

.ylpv-media-item img,
.ylpv-media-item video,
.ylpv-media-item iframe,
.ylpv-gallery-stage img,
.ylpv-related-image img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain !important;
	object-position: center;
	background: #f3f0eb;
}
/* Strict 4:3 resize: fill the complete frame without clipping source pixels. */
.ylpv-gallery-stage,
.ylpv-related-image,
.ylpv-media-item {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3 !important;
}

.ylpv-media-item img,
.ylpv-gallery-stage img,
.ylpv-related-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 4 / 3 !important;
	object-fit: fill !important;
	object-position: center !important;
	margin: 0 !important;
}

/* Made-to-order request dialog. */
body.ylpv-order-modal-open { overflow: hidden; }
.ylpv-custom-order-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 12px;
	padding: 12px 18px;
	border: 1px solid var(--ylpv-dark, #1a1a1a);
	border-radius: 5px;
	background: #fff;
	color: var(--ylpv-dark, #1a1a1a);
	cursor: pointer;
	font-weight: 600;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ylpv-custom-order-open:hover,
.ylpv-custom-order-open:focus-visible { background: var(--ylpv-dark, #1a1a1a); color: #fff; }
.ylpv-custom-order-modal[hidden] { display: none; }
.ylpv-custom-order-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: 24px;
	overflow: hidden;
}
.ylpv-custom-order-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 15, .58);
	backdrop-filter: blur(2px);
}
.ylpv-custom-order-dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(720px, 100%);
	max-height: calc(100vh - 48px);
	min-height: 0;
	margin: auto;
	overflow: auto;
	overflow-x: hidden;
	padding: 34px 32px 30px;
	border: 1px solid #e4dfd7;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.ylpv-custom-order-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f1ed;
	color: #292621;
	font-size: 24px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	appearance: none;
}
.ylpv-custom-order-close:hover,
.ylpv-custom-order-close:focus-visible { background: #e8e3db; }
.ylpv-custom-order-dialog h2 { margin: 0 40px 8px 0; color: #1e1b18; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.ylpv-custom-order-intro { margin: 0 0 22px; color: #6d665e; line-height: 1.6; }
.ylpv-custom-order-form { display: grid; gap: 18px; }
.ylpv-custom-order-grid,
.ylpv-order-variant-grid,
.ylpv-order-color-fieldset {
	box-sizing: border-box;
	min-height: 112px;
}
.ylpv-custom-order-grid,
.ylpv-order-variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; align-content: start; }
.ylpv-order-variant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ylpv-custom-order-form label,
.ylpv-custom-order-fieldset { display: grid; gap: 7px; color: #2e2a25; font-size: 14px; }
.ylpv-custom-order-grid > label,
.ylpv-order-variant-grid > label,
.ylpv-order-color-inputs > label { min-width: 0; align-self: start; align-content: start; }
.ylpv-custom-order-form input,
.ylpv-custom-order-form select,
.ylpv-custom-order-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #d9d3ca;
	border-radius: 5px;
	background: #fff;
	color: #24211e;
	font: inherit;
}
.ylpv-custom-order-form textarea { min-height: 110px; resize: vertical; }
.ylpv-custom-order-error { margin: -4px 0 0; padding: 10px 12px; border: 1px solid #edc7c0; border-radius: 6px; background: #fff4f2; color: #9b352b; font-size: 13px; line-height: 1.45; }
.ylpv-custom-order-form input:focus,
.ylpv-custom-order-form select:focus,
.ylpv-custom-order-form textarea:focus { outline: 2px solid rgba(212, 132, 92, .35); border-color: #c47751; }
.ylpv-custom-order-form input[type="text"],
.ylpv-custom-order-form input[type="tel"],
.ylpv-custom-order-form input[type="email"],
.ylpv-custom-order-form select { height: 50px; min-height: 50px; }
.ylpv-custom-order-form textarea { height: 112px; min-height: 112px; }
.ylpv-custom-order-fieldset { min-width: 0; margin: 0; padding: 12px 16px; border: 1px solid #e5e0d8; border-radius: 8px; }
.ylpv-order-color-fieldset { display: grid; align-content: start; }
.ylpv-custom-order-fieldset legend { padding: 0 6px; font-weight: 600; }
.ylpv-order-color-inputs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 84px; gap: 12px; align-items: start; }
.ylpv-order-color-picker-label { text-align: center; }
.ylpv-custom-order-form input.ylpv-order-color-picker { width: 50px; min-width: 50px; height: 50px; min-height: 50px; margin: 0 auto; padding: 3px; cursor: pointer; }
.ylpv-order-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 9px; }
.ylpv-order-color-choice {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 9px;
	align-items: center;
	padding: 9px 10px;
	border: 1px solid #ddd7cf;
	border-radius: 7px;
	background: #fff;
	color: #332f2a;
	text-align: left;
	cursor: pointer;
}
.ylpv-order-color-choice code { grid-column: 2; color: #81776d; font-size: 11px; }
.ylpv-order-color-choice:hover,
.ylpv-order-color-choice.is-active { border-color: var(--ylpv-accent, #d4845c); background: #fff8f3; box-shadow: 0 0 0 1px var(--ylpv-accent, #d4845c); }
.ylpv-order-color-dot { grid-row: 1 / span 2; width: 24px; height: 24px; border: 1px solid rgba(0,0,0,.16); border-radius: 50%; background: var(--swatch-color, #ddd); }
.ylpv-order-hex-label { max-width: 240px; margin-top: 12px; }
.ylpv-custom-order-submit { justify-self: stretch; width: 100%; min-height: 46px; padding: 12px 22px; border: 0; border-radius: 5px; background: var(--ylpv-dark, #1a1a1a); color: #fff; cursor: pointer; font-weight: 600; }
.ylpv-custom-order-submit:hover,
.ylpv-custom-order-submit:focus-visible { background: var(--ylpv-accent, #d4845c); }
.ylpv-order-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.ylpv-order-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.ylpv-order-notice.is-success { background: #edf7ef; color: #236b35; }
.ylpv-order-notice.is-error { background: #fff1ef; color: #a0372d; }
@media (max-width: 640px) {
	.ylpv-custom-order-modal { padding: 10px; }
	.ylpv-custom-order-dialog { max-height: calc(100vh - 20px); padding: 28px 18px 18px; border-radius: 10px; }
	.ylpv-custom-order-grid { grid-template-columns: 1fr; gap: 14px; }
	.ylpv-order-variant-grid,
	.ylpv-order-color-inputs { grid-template-columns: 1fr; gap: 14px; }
	.ylpv-custom-order-grid,
	.ylpv-order-variant-grid,
	.ylpv-order-color-fieldset { min-height: 0; }
	.ylpv-order-color-picker-label { text-align: left; }
	.ylpv-custom-order-form input.ylpv-order-color-picker { margin: 0; }
	.ylpv-order-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Product detail mobile layout: use one consistent gutter and keep every
 * option row inside the viewport. */
@media (max-width: 700px) {
	.ylpv-product-page .ylpv-product-container .ylpv-product-info,
	.ylpv-product-page .ylpv-product-container .ylpv-product-details {
		padding-right: 16px;
		padding-left: 16px;
	}

	.ylpv-product-page .ylpv-product-container .ylpv-option-block {
		grid-template-columns: minmax(72px, 82px) minmax(0, 1fr);
		column-gap: 10px;
		row-gap: 0;
		align-items: center;
	}

	.ylpv-product-page .ylpv-product-container .ylpv-option-block h3 {
		min-width: 0;
		min-height: 34px;
		font-size: 13px;
	}

	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-color-swatches,
	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-material-options,
	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-size-options {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-size-options {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
		overflow: visible;
		align-items: stretch;
	}

	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-size-option {
		min-width: 0;
		width: 100%;
		padding-right: 6px;
		padding-left: 6px;
		font-size: 12px;
		line-height: 1.25;
		white-space: normal;
	}

	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart form.cart:not(.variations_form),
.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .woocommerce-variation-add-to-cart {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		gap: 8px;
	}

	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart form.cart:not(.variations_form) .quantity,
	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .quantity {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		min-width: 0;
		column-gap: 10px;
		grid-template-columns: 82px minmax(0, 120px) minmax(0, 1fr);
	}

	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart form.cart:not(.variations_form) .single_add_to_cart_button,
	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .ylpv-buy-now {
		grid-column: auto !important;
		width: 100% !important;
		min-width: 0;
		max-width: 100%;
		padding-right: 8px;
		padding-left: 8px;
		font-size: 12px;
	}
}

/* Keep the product detail usable if the theme's mobile scroll reveal misses
 * its first intersection callback after a cached page load. */
@media (max-width: 700px) {
	html.ylpv-motion-ready .ylpv-product-page > .ylpv-scroll-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		will-change: auto !important;
	}
}

/* Final mobile guardrails: prevent variation controls and purchase buttons
 * from widening their grid tracks beyond the viewport. */
@media (max-width: 700px) {
	.ylpv-product-page .ylpv-product-info,
	.ylpv-product-page .ylpv-product-details,
	.ylpv-product-page .ylpv-native-add-to-cart,
	.ylpv-product-page .ylpv-native-add-to-cart form.cart,
	.ylpv-product-page .ylpv-native-add-to-cart .variations,
	.ylpv-product-page .ylpv-native-add-to-cart .woocommerce-variation-add-to-cart {
		min-width: 0;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	.ylpv-product-page .ylpv-product-info {
		overflow-x: hidden;
	}

	.ylpv-product-page .ylpv-option-block {
		min-width: 0;
		grid-template-columns: minmax(68px, 78px) minmax(0, 1fr);
		column-gap: 8px;
	}

	.ylpv-product-page .ylpv-option-block .ylpv-color-swatches,
	.ylpv-product-page .ylpv-option-block .ylpv-material-options,
	.ylpv-product-page .ylpv-option-block .ylpv-size-options {
		min-width: 0;
		max-width: 100%;
		width: 100%;
	}

	.ylpv-product-page .ylpv-option-block .ylpv-size-options {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 6px;
		overflow: hidden;
	}

	.ylpv-product-page .ylpv-option-block .ylpv-size-option,
	.ylpv-product-page .ylpv-native-add-to-cart .single_add_to_cart_button,
	.ylpv-product-page .ylpv-native-add-to-cart .ylpv-buy-now {
		min-width: 0 !important;
		max-width: 100%;
		box-sizing: border-box;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ylpv-product-page .ylpv-native-add-to-cart form.cart:not(.variations_form),
	.ylpv-product-page .ylpv-native-add-to-cart .woocommerce-variation-add-to-cart {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		gap: 8px;
	}

	.ylpv-product-page .ylpv-native-add-to-cart .quantity {
		min-width: 0;
		max-width: 100%;
	}

	.ylpv-product-page .ylpv-benefits,
	.ylpv-product-page .ylpv-benefits > div {
		visibility: visible;
		opacity: 1;
		transform: none;
	}
}

/* Keep the three service promises on one compact row on phones. */
@media (max-width: 700px) {
	.ylpv-product-page .ylpv-benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
		max-width: 100%;
	}

	.ylpv-product-page .ylpv-benefits > div,
	.ylpv-product-page .ylpv-benefits > div + div {
		min-width: 0;
		min-height: 72px;
		padding: 9px 4px;
		border-top: 0;
		border-left: 1px solid #e8e8e5;
		gap: 4px;
		flex-direction: column;
		text-align: center;
	}

	.ylpv-product-page .ylpv-benefits > div:first-child {
		border-left: 0;
	}

	.ylpv-product-page .ylpv-benefits svg {
		width: 25px;
		height: 25px;
		flex: 0 0 25px;
	}

	.ylpv-product-page .ylpv-benefit-copy {
		align-items: center;
		min-width: 0;
		max-width: 100%;
		text-align: center;
	}

	.ylpv-product-page .ylpv-benefit-copy strong,
	.ylpv-product-page .ylpv-benefit-copy span {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ylpv-product-page .ylpv-benefit-copy strong {
		font-size: 11px;
	}

	.ylpv-product-page .ylpv-benefit-copy span {
		font-size: 10px;
	}

	.ylpv-product-page .ylpv-option-block .ylpv-size-options,
	.ylpv-product-page .ylpv-native-add-to-cart .ylpv-size-options {
		display: flex !important;
		grid-template-columns: none !important;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 6px;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
	}

	.ylpv-product-page .ylpv-option-block .ylpv-size-options::-webkit-scrollbar,
	.ylpv-product-page .ylpv-native-add-to-cart .ylpv-size-options::-webkit-scrollbar {
		display: none;
	}

	.ylpv-product-page .ylpv-option-block .ylpv-size-option,
	.ylpv-product-page .ylpv-native-add-to-cart .ylpv-size-option {
		display: flex;
		align-items: center;
		justify-content: center;
		width: auto;
		flex: 0 0 auto;
		min-width: 0;
		min-height: 36px;
		height: 36px;
		padding: 7px 14px;
		box-sizing: border-box;
		font-size: 13px;
		line-height: 1.2;
		white-space: nowrap;
	}
}

/* Keep the purchase controls compact instead of stretching like hero actions. */
.ylpv-product-page .ylpv-native-add-to-cart .single_add_to_cart_button,
.ylpv-product-page .ylpv-native-add-to-cart .ylpv-buy-now {
	height: 42px !important;
	min-height: 42px !important;
	padding-right: 12px;
	padding-left: 12px;
	font-size: 12px;
	line-height: 1.2;
}

@media (max-width: 700px) {
	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-size-option,
	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .ylpv-size-option {
		font-size: 13px;
		line-height: 1.2;
	}
}

/* Product-detail media contract: use 4:3 frames for product imagery. */
.ylpv-product-page .ylpv-gallery-stage,
.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item,
.ylpv-product-page .ylpv-related-image,
.ylpv-product-page .ylpv-description-media {
	aspect-ratio: 4 / 3 !important;
}

.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item img,
.ylpv-product-page .ylpv-related-image img,
.ylpv-product-page .ylpv-description-media img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	object-fit: cover !important;
	object-position: center !important;
}

/* Video must remain completely visible inside the 4:3 frame. */
.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item[data-media-key="video"] video,
.ylpv-product-page .ylpv-gallery-stage .ylpv-media-item[data-media-key="video"] iframe {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	object-fit: contain !important;
	object-position: center !important;
	background: #f0ece6;
}

.ylpv-product-page .ylpv-thumb,
.ylpv-product-page .ylpv-thumb[data-target="video"] {
	aspect-ratio: 4 / 3 !important;
	height: auto !important;
	min-height: 0;
}

.ylpv-product-page .ylpv-thumb img {
	object-fit: cover !important;
	object-position: center !important;
}

.ylpv-product-page .ylpv-thumb[data-target="video"] img {
	object-fit: contain !important;
	background: #1c1c1c;
}

.ylpv-product-page .ylpv-price-box .price {
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}

.ylpv-product-page .ylpv-description-text,
.ylpv-product-page .ylpv-description-text p,
.ylpv-product-page .ylpv-description-text li,
.ylpv-product-page .ylpv-variant-specifications th,
.ylpv-product-page .ylpv-variant-specifications td {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

@media (max-width: 700px) {
	.ylpv-product-page .ylpv-gallery-stage {
		border-radius: 10px;
	}

	.ylpv-product-page .ylpv-description-media,
	.ylpv-product-page .ylpv-description-media img {
		min-height: 0;
	}

	.ylpv-product-page .ylpv-description-copy {
		min-width: 0;
		padding: 22px 16px;
	}

	.ylpv-product-page .ylpv-detail-tabs {
		max-width: 100%;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
	}

	.ylpv-product-page .ylpv-detail-tabs button {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.ylpv-product-page .ylpv-variant-specifications {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}

	.ylpv-product-page .ylpv-variant-specifications tbody {
		display: table-row-group;
	}

	.ylpv-product-page .ylpv-variant-specifications tr {
		white-space: normal;
	}

	.ylpv-product-page .ylpv-variant-specifications th,
	.ylpv-product-page .ylpv-variant-specifications td {
		min-width: 120px;
	}
}


/* Linked policy benefits on the product page. */
.ylpv-benefit-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.ylpv-benefit-link:hover {
	color: inherit;
}

.ylpv-benefit-link:focus-visible {
	outline: 2px solid var(--ylpv-dark, #1f1f1f);
	outline-offset: -3px;
}

@media (max-width: 700px) {
	.ylpv-product-page .ylpv-benefit-link {

		flex-direction: column;
		gap: 4px;
		text-align: center;
	}
}

/* Compact mobile size choices and share the horizontal scroller with materials. */
.ylpv-option-scroll {
	position: relative;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.ylpv-option-scroll .ylpv-material-options,
.ylpv-option-scroll .ylpv-size-options {
	box-sizing: border-box;
	padding-right: 0;
	padding-left: 0;
	scrollbar-width: none;
}

.ylpv-option-scroll .ylpv-material-options::-webkit-scrollbar,
.ylpv-option-scroll .ylpv-size-options::-webkit-scrollbar {
	display: none;
}

.ylpv-option-scroll.is-scrollable .ylpv-material-options,
.ylpv-option-scroll.is-scrollable .ylpv-size-options {
	padding-right: 22px;
	padding-left: 22px;
}

.ylpv-option-scroll.is-scrollable:hover .ylpv-option-scroll-arrow:not(:disabled),
.ylpv-option-scroll.is-scrollable:focus-within .ylpv-option-scroll-arrow:not(:disabled) {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@media (max-width: 700px) {
	.ylpv-product-page .ylpv-option-block .ylpv-size-scroll,
	.ylpv-product-page .ylpv-native-add-to-cart .ylpv-size-scroll {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	.ylpv-product-page .ylpv-option-block .ylpv-size-options,
	.ylpv-product-page .ylpv-native-add-to-cart .ylpv-size-options {
		display: flex !important;
		grid-template-columns: none !important;
		flex-wrap: nowrap !important;
		justify-content: flex-start;
		align-items: center;
		gap: 6px;
		width: 100%;
		max-width: 100%;
		overflow-x: auto !important;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.ylpv-product-page .ylpv-option-block .ylpv-size-option,
	.ylpv-product-page .ylpv-native-add-to-cart .ylpv-size-option {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: auto !important;
		max-width: none;
		flex: 0 0 auto !important;
		min-width: 36px !important;
		min-height: 36px;
		height: 36px;
		padding: 7px 12px;
		overflow: visible;
		text-overflow: clip;
		white-space: nowrap;
		scroll-snap-align: start;
	}

	.ylpv-option-scroll.is-scrollable .ylpv-option-scroll-arrow:not(:disabled) {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}
/* Match mobile size buttons to material buttons exactly. */
@media (max-width: 700px) {
	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-size-option,
	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .ylpv-size-option {
		width: auto !important;
		min-width: 0 !important;
		max-width: none;
		min-height: 0;
		height: auto;
		padding: 7px 11px !important;
		border: 1px solid #ddd;
		border-radius: 0;
		background: #fff;
		color: #171717;
		font-family: inherit;
		font-size: 16px;
		font-weight: 400;
		line-height: normal;
	}

	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-size-option:hover,
	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .ylpv-size-option:hover,
	.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-size-option.is-active,
	.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .ylpv-size-option.is-active {
		border-color: #d31818;
		background: #f7f7f5;
		color: #171717;
	}
}

/* Use a consistent medium weight for material and size options. */
.ylpv-product-page .ylpv-material-option,
.ylpv-product-page .ylpv-size-option,
.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-material-option,
.ylpv-product-page .ylpv-product-container .ylpv-option-block .ylpv-size-option,
.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .ylpv-material-option,
.ylpv-product-page .ylpv-product-container .ylpv-native-add-to-cart .ylpv-size-option {
	font-weight: 500;
}