/* WooCommerce and single-product layout */
body.yuprint-product-page .site-content > .col-full {
	width: 100%;
	max-width: none;
	padding: 0;
}

body.yuprint-product-page #primary,
body.yuprint-product-page .content-area {
	float: none;
	width: 100%;
	margin: 0;
}

body.yuprint-product-page .woocommerce-breadcrumb {
	display: none;
}

body.yuprint-product-page .woocommerce-notices-wrapper {
	width: min(100% - 32px, 1560px);
	margin: 16px auto;
}

body.yuprint-product-page .single-product div.product,
body.yuprint-product-page div.product {
	display: grid;
	grid-template-columns: minmax(330px, 34%) minmax(0, 66%);
	align-items: start;
	width: 100%;
	margin: 0;
	background: var(--yu-page);
}

body.yuprint-product-page div.product::before,
body.yuprint-product-page div.product::after {
	display: none;
}

.yu-product-hero {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(330px, 34%) minmax(0, 66%);
	min-height: 488px;
	margin: 0 0 8px;
	border: 4px solid var(--yu-page);
	background: #fff;
	box-sizing: border-box;
}

.yu-product-hero-copy {
	display: flex;
	min-width: 0;
	min-height: 480px;
	align-items: center;
	justify-content: center;
	padding: clamp(35px, 5vw, 78px);
	background: #fff;
	text-align: center;
	box-sizing: border-box;
}

.yu-product-hero-copy-inner {
	width: 100%;
	max-width: 520px;
}

body.yuprint-theme .yu-product-hero .product_title {
	margin: 0;
	color: #0d1a24;
	font-size: clamp(24px, 2vw, 31px);
	font-weight: 400;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.yu-product-reference {
	margin: 0 0 4px;
	font-size: 12px;
	line-height: 1.4;
}

.yu-product-short-description,
.yu-product-short-description p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

.yu-product-short-description p + p {
	margin-top: 8px;
}

.yu-product-hero-media {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 480px;
	align-items: stretch;
	justify-content: stretch;
	overflow: hidden;
	background: #efdfc3;
}

.yu-product-hero-media .onsale {
	position: absolute;
	top: 18px;
	right: 18px;
	left: auto;
	z-index: 3;
	border: 0;
	background: var(--yu-red);
	color: #fff;
}

body.yuprint-product-page div.product .yu-product-hero-media .woocommerce-product-gallery {
	float: none;
	width: 100%;
	margin: 0;
}

.yu-product-hero-media .woocommerce-product-gallery__wrapper,
.yu-product-hero-media .woocommerce-product-gallery__image,
.yu-product-hero-media .flex-viewport,
.yu-product-hero-media .flex-viewport .woocommerce-product-gallery__wrapper {
	height: 100%;
	min-height: 480px;
	margin: 0;
}

.yu-product-hero-media .woocommerce-product-gallery__image {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.yu-product-hero-media .woocommerce-product-gallery__image a {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.yu-product-hero-media .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: 480px;
	margin: 0;
	object-fit: contain;
	object-position: center;
}

.yu-product-hero-media .woocommerce-product-gallery__trigger {
	top: 18px;
	left: 18px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
}

.yu-product-hero-media .flex-control-thumbs {
	position: absolute;
	right: 0;
	bottom: 10px;
	left: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
}

.yu-product-hero-media .flex-control-thumbs li {
	float: none;
	width: 26px;
	margin: 0;
}

.yu-product-hero-media .flex-control-thumbs img {
	width: 26px;
	height: 4px;
	border-radius: 999px;
	background: #fff;
	opacity: 0.65;
	object-fit: cover;
}

.yu-product-hero-media .flex-control-thumbs img.flex-active {
	opacity: 1;
}

.yu-product-quote-wrap {
	grid-column: 1;
	grid-row: 2;
	min-width: 0;
	padding: 8px 16px 40px 8px;
	box-sizing: border-box;
}

.yu-quote-card {
	position: sticky;
	top: 16px;
	padding: 25px 24px 24px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
}

.yu-quote-kicker {
	margin: 0 0 2px;
	color: #1c2934;
	font-size: 12px;
	font-weight: 400;
}

.yu-quote-product-title {
	margin: 0 0 3px;
	color: #121b23;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.yu-quote-details {
	padding-bottom: 15px;
	border-bottom: 1px solid #bac2c9;
}

.yu-quote-detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	margin: 0 0 5px;
	color: #7d172d;
	font-size: 10px;
	line-height: 1.35;
}

.yu-quote-detail span {
	min-width: 0;
}

.yu-quote-detail strong {
	color: #7d172d;
	font-weight: 500;
	text-align: right;
}

.yu-summary-options {
	margin: 3px 0;
}

.yu-summary-options .yu-quote-detail:last-child {
	margin-bottom: 5px;
}

.yu-summary-empty {
	margin: 6px 0;
	color: #788590;
	font-size: 10px;
	font-style: italic;
}

.yu-quote-total-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 14px 0 12px;
	color: #abb3bb;
	font-size: 12px;
}

.yu-quote-total-row strong {
	color: #111820;
	font-size: 13px;
	font-weight: 800;
}

.yu-quote-total-row .amount {
	color: inherit;
}

.yu-quote-actions {
	display: grid;
	gap: 10px;
}

body.yuprint-theme .yu-quote-actions button {
	width: 100%;
	height: 42px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

body.yuprint-theme .yu-quote-actions .yu-secondary-action {
	border-color: #667581;
	background: #fff;
	color: #657480;
}

body.yuprint-theme .yu-quote-actions .yu-secondary-action:hover,
body.yuprint-theme .yu-quote-actions .yu-secondary-action:focus {
	border-color: var(--yu-red);
	background: #fff;
	color: var(--yu-red);
}

body.yuprint-theme .yu-quote-actions button[disabled] {
	cursor: not-allowed;
	opacity: 0.5;
	transform: none;
}

.yu-quote-utility {
	display: grid;
	gap: 9px;
	padding: 13px 0 16px;
	border-bottom: 1px solid #bac2c9;
}

.yu-utility-link,
body.yuprint-theme button.yu-utility-link {
	display: inline-flex;
	width: auto;
	min-height: 0;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #63717e;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
}

.yu-utility-link .yu-icon {
	width: 14px;
	height: 14px;
	color: #132331;
}

.yu-utility-link:hover,
.yu-utility-link:focus,
body.yuprint-theme button.yu-utility-link:hover,
body.yuprint-theme button.yu-utility-link:focus {
	background: transparent;
	color: var(--yu-red);
	transform: none;
}

.yu-quote-resources {
	display: grid;
	gap: 9px;
	padding: 13px 0 0;
}

.yu-resource-button,
.yu-upload-help > summary {
	display: flex;
	min-height: 30px;
	align-items: center;
	justify-content: center;
	padding: 4px 12px;
	border: 1px solid #667581;
	border-radius: 999px;
	background: #fff;
	color: #71808d;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	box-sizing: border-box;
	cursor: pointer;
}

.yu-resource-button:hover,
.yu-resource-button:focus,
.yu-upload-help > summary:hover,
.yu-upload-help > summary:focus {
	border-color: var(--yu-red);
	color: var(--yu-red);
}

.yu-resource-button.is-placeholder {
	border-style: solid;
}

.yu-upload-help {
	margin: 0;
}

.yu-upload-help > summary {
	position: relative;
	list-style: none;
}

.yu-upload-help > summary::-webkit-details-marker {
	display: none;
}

.yu-upload-help > summary::after {
	margin-left: 5px;
	content: "▼";
	font-size: 8px;
}

.yu-upload-help[open] > summary::after {
	content: "▲";
}

.yu-upload-help > div {
	margin-top: 8px;
	padding: 11px 12px;
	border: 1px solid #dde2e6;
	border-radius: 10px;
	background: #f8f9fa;
	color: #52616e;
	font-size: 11px;
}

.yu-upload-help p {
	margin: 0;
}

.yu-shipping-progress {
	margin-top: 10px;
	padding: 9px 10px 10px;
	border: 1px solid #c6ccd2;
	border-radius: 16px;
	background: #fff;
	color: #111820;
	font-size: 10px;
}

.yu-shipping-progress > strong {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
}

.yu-shipping-track {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: #e7e9eb;
}

.yu-shipping-track > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--yu-red);
	transition: width 0.3s ease;
}

.yu-shipping-progress small {
	display: block;
	margin-top: 4px;
	font-size: 9px;
	line-height: 1.35;
}

body.yuprint-product-page div.product .summary,
body.yuprint-product-page .single-product div.product .summary {
	grid-column: 2;
	grid-row: 2;
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 8px 8px 40px 0 !important;
	padding: 24px 26px 34px;
	background: #fff;
	box-sizing: border-box;
}

.yu-configurator-shell {
	width: 100%;
}

.yu-configurator-notice {
	display: flex;
	min-height: 26px;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0 0 14px;
	padding: 4px 12px;
	border: 1px solid #d6dce2;
	background: #f7f9fa;
	color: #88939d;
	font-size: 9px;
	line-height: 1.35;
	text-align: center;
	box-sizing: border-box;
}

.yu-configurator-notice .yu-icon {
	width: 11px;
	height: 11px;
	color: var(--yu-red);
}

.yu-configurator-notice a {
	color: #a64b5f;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.yu-product-configurator {
	min-width: 0;
}

.yu-product-configurator h2,
.yu-product-configurator h3,
.yu-product-configurator h4,
.yu-product-configurator legend,
.yu-product-configurator .label,
.yu-product-configurator .variations th.label {
	color: #3d4852;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
}

.yu-product-configurator h2,
.yu-product-configurator h3,
.yu-product-configurator h4 {
	margin: 0 0 16px;
}

.yu-product-configurator form.cart {
	margin: 0;
	padding: 0;
}

.yu-product-configurator form.cart::before,
.yu-product-configurator form.cart::after {
	display: none;
}

.yu-product-configurator table.variations {
	width: 100%;
	margin: 0 0 22px;
	border-collapse: collapse;
}

.yu-product-configurator table.variations tr {
	display: grid;
	grid-template-columns: minmax(170px, 30%) minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 14px 12px;
	border-bottom: 1px solid #e2e5e8;
}

.yu-product-configurator table.variations th,
.yu-product-configurator table.variations td {
	display: block;
	padding: 0;
	background: transparent;
}

.yu-product-configurator select,
.yu-product-configurator input[type="text"],
.yu-product-configurator input[type="number"],
.yu-product-configurator input[type="email"],
.yu-product-configurator input[type="tel"] {
	min-height: 40px;
	border-color: #cdd4da;
	border-radius: 14px;
	background: #fff;
	font-size: 13px;
}

.yu-product-configurator .reset_variations {
	display: inline-block;
	margin-top: 6px;
	color: var(--yu-red);
	font-size: 11px;
}

.yu-product-configurator .single_variation_wrap {
	padding-top: 15px;
	border-top: 1px solid #e2e5e8;
}

.yu-product-configurator .woocommerce-variation-price,
.yu-product-configurator > .price {
	margin: 0 0 14px;
	color: var(--yu-red);
	font-size: 20px;
	font-weight: 800;
}

.yu-product-configurator .quantity .qty {
	width: 92px;
	min-height: 44px;
	border-radius: 999px;
	text-align: center;
}

.yu-product-configurator form.cart > .quantity,
.yu-product-configurator .woocommerce-variation-add-to-cart > .quantity {
	float: none;
	display: inline-block;
	margin: 0 8px 8px 0;
}

.yu-product-configurator form.cart > .single_add_to_cart_button,
.yu-product-configurator .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
	min-width: 190px;
	margin-bottom: 8px;
}

.yu-product-configurator .single_add_to_cart_button.disabled,
.yu-product-configurator .single_add_to_cart_button.wc-variation-selection-needed {
	cursor: not-allowed;
	opacity: 0.48;
}

.yu-product-configurator fieldset,
.yu-product-configurator .form-row,
.yu-product-configurator .option-group,
.yu-product-configurator .product-addon {
	margin: 0 0 22px;
	padding: 0 0 20px;
	border: 0;
	border-bottom: 1px solid #e2e5e8;
}

.yu-product-configurator input[type="radio"],
.yu-product-configurator input[type="checkbox"] {
	accent-color: var(--yu-red);
}

.yu-product-configurator table:not(.variations) {
	width: 100%;
	border-spacing: 10px 9px;
	border-collapse: separate;
	background: transparent;
}

.yu-product-configurator table:not(.variations) th,
.yu-product-configurator table:not(.variations) td {
	padding: 10px 12px;
	border: 1px solid #dfe3e6;
	background: #fff;
	font-size: 12px;
	text-align: center;
}

.yu-product-configurator table:not(.variations) th {
	font-weight: 700;
}

.yu-product-configurator table:not(.variations) .selected,
.yu-product-configurator table:not(.variations) .active,
.yu-product-configurator table:not(.variations) [aria-selected="true"] {
	border-color: var(--yu-red);
	background: var(--yu-red);
	color: #fff;
}

body.yuprint-product-page div.product .woocommerce-tabs,
body.yuprint-product-page div.product .related,
body.yuprint-product-page div.product .up-sells {
	grid-column: 1 / -1;
	width: min(100% - 32px, 1500px);
	margin: 0 auto 36px;
	padding: 30px;
	background: #fff;
	box-sizing: border-box;
}

body.yuprint-product-page div.product .woocommerce-tabs ul.tabs {
	float: none;
	width: 100%;
	margin: 0 0 26px;
	border-bottom: 1px solid #e1e5e8;
}

body.yuprint-product-page div.product .woocommerce-tabs ul.tabs li {
	display: inline-block;
	margin-right: 24px;
	border: 0;
}

body.yuprint-product-page div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

body.yuprint-product-page div.product .woocommerce-tabs ul.tabs li a {
	padding: 11px 0;
	color: #5c6975;
	font-weight: 700;
}

body.yuprint-product-page div.product .woocommerce-tabs ul.tabs li.active a {
	border-bottom: 2px solid var(--yu-red);
	color: var(--yu-red);
}

body.yuprint-product-page div.product .woocommerce-tabs .panel {
	float: none;
	width: 100%;
	margin: 0;
}

/* Product archives */
body.yuprint-theme ul.products li.product {
	padding: 16px;
	border: 1px solid #e2e6e9;
	border-radius: 14px;
	background: #fff;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.yuprint-theme ul.products li.product:hover {
	box-shadow: var(--yu-shadow);
	transform: translateY(-3px);
}

body.yuprint-theme ul.products li.product img {
	border-radius: 10px;
}

body.yuprint-theme ul.products li.product .woocommerce-loop-product__title {
	color: var(--yu-ink);
	font-size: 16px;
	font-weight: 700;
}

body.yuprint-theme ul.products li.product .price {
	color: var(--yu-red);
	font-weight: 800;
}

/* Cart, checkout and account */
body.yuprint-theme .cart_totals,
body.yuprint-theme .woocommerce-checkout-review-order,
body.yuprint-theme .woocommerce-MyAccount-navigation,
body.yuprint-theme .woocommerce-MyAccount-content {
	padding: 22px;
	border: 1px solid #e1e5e8;
	border-radius: 14px;
	background: #fff;
}

body.yuprint-theme table.shop_table {
	border-radius: 12px;
	overflow: hidden;
}

body.yuprint-theme .woocommerce-pagination .page-numbers li .page-numbers.current {
	background: var(--yu-red);
	color: #fff;
}

body.yuprint-print-budget * {
	visibility: hidden !important;
}

body.yuprint-print-budget .yu-quote-card,
body.yuprint-print-budget .yu-quote-card * {
	visibility: visible !important;
}

body.yuprint-print-budget .yu-quote-card {
	position: fixed !important;
	top: 20mm !important;
	left: 20mm !important;
	width: calc(100% - 40mm) !important;
	max-width: none !important;
	padding: 14mm !important;
	border: 1px solid #ccd2d8 !important;
	box-shadow: none !important;
}
