/* WooCommerce — product page, option tiles, tabs, archives, notices. */

.wc-sheet,
.sheet {
	padding-block: var(--s7) var(--s8);
}

/* Plain pages and the WooCommerce account, cart and checkout pages */

.entry__title {
	margin-bottom: var(--s5);
}

.entry__content {
	max-width: 60rem;
}

.woocommerce-account .entry__content,
.woocommerce-cart .entry__content,
.woocommerce-checkout .entry__content {
	max-width: none;
}

.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	max-width: 32rem;
}

.woocommerce form .form-row,
.woocommerce-form-login p {
	margin: 0 0 var(--s4);
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: var(--s1);
}

.woocommerce-form-login .password-input {
	position: relative;
	display: block;
}

.woocommerce-form-login .show-password-input {
	position: absolute;
	top: 0;
	right: 0;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	background: none;
	cursor: pointer;
}

.woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	margin-right: var(--s4);
}

.woocommerce-form-login__rememberme input {
	width: 1.125rem;
	height: 1.125rem;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0 0 var(--s5);
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--s2) 0;
	border-bottom: 1px solid var(--rule);
	color: var(--text);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a {
	font-weight: 600;
}

@media (min-width: 861px) {
	.woocommerce-account.logged-in .woocommerce {
		display: grid;
		grid-template-columns: 14rem minmax(0, 1fr);
		gap: var(--s7);
		align-items: start;
	}
}

.woocommerce-breadcrumb,
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: var(--s3);
	color: var(--text);
	font-size: 0.875rem;
}

.crumbs a {
	color: var(--text);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--brand);
	text-decoration: underline;
}

/* Prices */

.price {
	color: var(--text);
	font-weight: 600;
}

.price del {
	color: var(--text-2);
	font-weight: 400;
}

.price ins {
	text-decoration: none;
}

.price-suffix {
	font-size: 0.8em;
	font-weight: 500;
}

/* Product page layout */

.product-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--s7);
	align-items: start;
}

.product-page__title {
	margin-bottom: var(--s2);
	font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3rem);
}

.product-page .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: var(--s2);
	margin-bottom: var(--s3);
	font-size: 0.875rem;
}

.product-page__price {
	margin: var(--s3) 0 var(--s4);
	font-size: 1.375rem;
}

.product-page__points {
	margin: 0 0 var(--s5);
	padding-left: 1.25rem;
	font-size: 0.9375rem;
}

.product-page__points li {
	padding-block: 2px;
}

.product-page__note {
	padding-block: var(--s4);
	border-top: 1px dashed var(--field);
	border-bottom: 1px dashed var(--field);
	font-size: 0.9375rem;
}

.product-page__note p {
	margin: 0 0 var(--s2);
}

.product-page__note p:last-child {
	margin: 0;
}

.product-page__note strong {
	color: var(--util);
}

.product-page__options {
	margin: var(--s5) 0 var(--s3);
	font-size: 1.875rem;
}

/* Gallery */

.product-page .woocommerce-product-gallery {
	position: relative;
	margin-bottom: var(--s5);
}

.product-page .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.product-page .woocommerce-product-gallery__image img,
.product-page .woocommerce-product-gallery__image--placeholder img {
	width: 100%;
	border-radius: 12px;
}

.product-page .flex-viewport {
	border-radius: 12px;
}

.product-page .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s3);
	margin: var(--s3) 0 0;
	padding: 0;
	list-style: none;
}

.product-page .flex-control-thumbs img {
	border-radius: 8px;
	opacity: 0.65;
	cursor: pointer;
	transition: opacity 150ms ease;
}

.product-page .flex-control-thumbs img.flex-active,
.product-page .flex-control-thumbs img:hover {
	opacity: 1;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: var(--s3);
	right: var(--s3);
	z-index: 5;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--shadow-card);
	font-size: 0;
	text-decoration: none;
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--brand);
	border-radius: 50%;
}

/* Drawn to your size */

.drawn {
	padding: var(--s5);
}

.drawn__title {
	margin-bottom: var(--s3);
	font-size: 1.625rem;
}

.drawing {
	margin: 0;
}

.drawing__svg {
	width: 100%;
	height: auto;
	overflow: visible;
}

.drawing__dim {
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 500;
}

.drawing__letter {
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
}

[data-ccj-product-drawing] .drawing__dim,
.video-pending__frame .drawing__dim {
	font-size: 26px;
}

[data-ccj-product-drawing] .drawing__letter,
.video-pending__frame .drawing__letter {
	font-size: 26px;
}

.drawing__canvas.is-changed .drawing__dimension,
.drawing__canvas.is-changed .drawing__callout {
	animation: ccj-settle 420ms var(--ease-out);
}

@keyframes ccj-settle {
	from { opacity: 0; }
	to { opacity: 1; }
}

.drawing__note {
	margin: var(--s2) 0 var(--s4);
	color: var(--text-2);
	font-size: 0.8125rem;
}

.parts__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.parts__caption {
	margin-bottom: var(--s2);
	color: var(--brand);
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 600;
	text-align: left;
}

.parts__table th {
	padding: 0 var(--s3) var(--s2) 0;
	border-bottom: 2px solid var(--brand);
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: left;
}

.parts__table td {
	padding: var(--s2) var(--s3) var(--s2) 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: middle;
}

.parts__table td:first-child {
	width: 2.25rem;
	color: var(--brand);
}

.parts__name {
	font-weight: 600;
}

.parts__size {
	color: var(--text-2);
}

.parts__qty {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
}

/* Variation form */

.variations_form .variations {
	width: 100%;
	margin-bottom: var(--s3);
	border-collapse: collapse;
}

.variations_form .variations tr {
	display: grid;
	gap: var(--s2);
	padding-block: 0 var(--s4);
}

.variations_form .variations th,
.variations_form .variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.variations_form .variations label {
	color: var(--brand);
	font-family: var(--font-head);
	font-size: 1.375rem;
	font-weight: 600;
}

.variations_form .variations label::after {
	content: " *";
	color: var(--warn);
}

.variations_form select {
	appearance: none;
	max-width: 22rem;
	padding-right: 2.5rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233f4753' stroke-width='1.8'/%3E%3C/svg%3E") right 0.875rem center / 12px 8px no-repeat,
		var(--paper);
	cursor: pointer;
}

/* Option tiles: an attribute with up to four choices. */
.option-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: var(--s2);
	max-width: 21rem;
}

/* Every tile the same size, label on one line. */
.option-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	white-space: nowrap;
	text-align: center;
	padding: var(--s2) var(--s3);
	border: 1px solid var(--field);
	border-radius: var(--r-field);
	background: #fff;
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 120ms ease, background-color 120ms ease;
}

.option-tile:hover:not(:disabled) {
	border-color: var(--brand);
}

.option-tile[aria-pressed="true"] {
	border-color: var(--brand);
	background: var(--brand);
	color: #fff;
}

.option-tile:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.option-tiles__select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
	pointer-events: none;
}

.reset_variations {
	display: inline-block;
	margin-top: var(--s1);
	font-size: 0.8125rem;
}

/* The chosen variation's price shows in the headline price instead. */
[data-ccj-sheet] .woocommerce-variation-price {
	display: none;
}

.woocommerce-variation-availability p {
	margin: 0 0 var(--s3);
	font-size: 0.875rem;
}

.woocommerce-variation-add-to-cart,
form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3);
	align-items: stretch;
}

.quantity .qty {
	width: 4.5rem;
	min-height: 2.875rem;
	text-align: center;
	font-weight: 600;
}

.qty-stepper {
	display: inline-flex;
	border: 1px solid var(--field);
	border-radius: var(--r-field);
	overflow: hidden;
}

.qty-stepper .qty {
	width: 3.25rem;
	border: 0;
	border-radius: 0;
	-moz-appearance: textfield;
}

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

.qty-stepper__btn {
	width: 2.5rem;
	border: 0;
	background: var(--strip);
	color: var(--brand);
	font-size: 1.25rem;
	font-weight: 600;
	cursor: pointer;
}

.qty-stepper__btn:hover {
	background: var(--rule);
}

.single_add_to_cart_button {
	flex: 1;
	min-width: 12rem;
	max-width: 22rem;
}

.single_add_to_cart_button.disabled {
	background: #a9adb3;
	opacity: 1;
}

.product-page__total {
	margin: var(--s4) 0 0;
	font-size: 1.0625rem;
}

.product-page__total strong {
	color: var(--brand);
	font-size: 1.25rem;
}

.product-page__meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px var(--s3);
	margin: var(--s5) 0 0;
	font-size: 0.875rem;
}

.product-page__meta dt {
	font-weight: 600;
}

.product-page__meta dd {
	margin: 0;
}

.product-page__bespoke {
	margin-top: var(--s5);
	padding: var(--s3) var(--s4);
	border-radius: var(--r-field);
	background: var(--sand-light);
	font-size: 0.9375rem;
}

.product-page__bespoke a {
	font-weight: 600;
	color: var(--brand);
}

/* Tabs */

.woocommerce-tabs {
	margin-top: var(--s8);
}

.woocommerce-tabs .tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s1);
	margin: 0;
	padding: 0;
	border-bottom: 2px solid var(--brand);
	list-style: none;
}

.woocommerce-tabs .tabs a {
	display: block;
	padding: var(--s3) var(--s5);
	border-radius: 6px 6px 0 0;
	background: var(--strip);
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
}

.woocommerce-tabs .tabs .active a {
	background: var(--brand);
	color: #fff;
}

.woocommerce-tabs .panel {
	padding-top: var(--s6);
}

.woocommerce-tabs .panel > h2:first-child {
	font-size: var(--fs-h3);
}

/* Fitting tab */

.fitting__body {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--s6);
	align-items: start;
	margin-top: var(--s5);
}

.fitting__video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 12px;
}

.video-pending {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	background: var(--panel);
	overflow: hidden;
}

.video-pending__frame {
	width: 78%;
	opacity: 0.5;
}

.video-pending__note {
	position: absolute;
	left: var(--s4);
	bottom: var(--s4);
	display: flex;
	align-items: center;
	gap: var(--s2);
	margin: 0;
	padding: var(--s2) var(--s3);
	border-radius: var(--r-btn);
	background: var(--brand);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
}

.video-pending__note .icon {
	width: 1.125rem;
	height: 1.125rem;
}

.video-pending__note span {
	color: var(--sand);
}

.steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: var(--s3);
	padding-block: var(--s3) var(--s4);
	border-top: 1px solid var(--rule);
}

.step__n {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.375rem;
	font-weight: 700;
}

.step__title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s3);
	margin-bottom: var(--s1);
	font-size: 1.375rem;
}

.step__time {
	color: var(--text-2);
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
}

.step p {
	margin-bottom: var(--s1);
	font-size: 0.9375rem;
}

.step__dont {
	display: flex;
	gap: var(--s2);
	color: var(--warn);
	font-weight: 600;
}

.step__dont::before {
	content: "";
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.2em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7.5' fill='none' stroke='%23c8302a' stroke-width='1.8'/%3E%3Cpath d='M3.7 14.3L14.3 3.7' stroke='%23c8302a' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Reviews */

.star-rating {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1em;
	overflow: hidden;
	font-size: 1rem;
	line-height: 1;
	color: var(--star);
}

/* Archives */

.archive-head {
	margin-bottom: var(--s6);
	padding: var(--s6) 0;
	border-bottom: 1px solid var(--rule);
}

.archive-head h1 {
	margin-bottom: var(--s2);
}

.wc-sheet .woocommerce-products-header__title {
	margin-bottom: var(--s5);
}

/* Result count left, sort box right, one row above the grid. */
.woocommerce-result-count {
	float: left;
	margin: 0 0 var(--s5);
	padding-top: var(--s2);
	color: var(--text-2);
	font-size: 0.875rem;
}

.woocommerce-ordering {
	float: right;
	margin: 0 0 var(--s5);
}

.woocommerce-ordering select {
	width: auto;
	min-height: 2.5rem;
}

.wc-sheet ul.products {
	clear: both;
}

.archive-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s4);
	margin-bottom: var(--s5);
}

ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s5);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Product cards (shop, categories, homepage grid) */

.product-card {
	overflow: hidden;
}

.product-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-bottom: var(--s4);
	color: var(--text);
	text-align: center;
	text-decoration: none;
}

.product-card__media {
	display: block;
	aspect-ratio: 1;
	margin-bottom: var(--s4);
	overflow: hidden;
}

.product-card__media > .ph-photo,
.product-card__media > .img-missing {
	display: block;
	height: 100%;
}

.product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms var(--ease-out);
}

.product-card__link:hover .product-card__img {
	transform: scale(1.03);
}

.product-card__name {
	padding-inline: var(--s3);
	color: var(--brand);
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.1;
}

.product-card__price {
	margin: var(--s2) 0 var(--s4);
	color: var(--text);
	font-weight: 600;
}

.product-card__btn {
	align-self: center;
	margin-top: auto;
	min-height: 2.75rem;
	font-size: 0.9375rem;
}


/* Notices */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 var(--s5);
	padding: var(--s4) var(--s5);
	border-left: 0;
	border-radius: var(--r-field);
	list-style: none;
	background: var(--panel);
}

.woocommerce-message {
	background: var(--sand-light);
}

.woocommerce-error {
	background: #fbecea;
}

.woocommerce-message .button {
	float: right;
	min-height: 2.25rem;
	margin-left: var(--s4);
}

@media (max-width: 1000px) {
	ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	/* Keep Add to basket in reach while the options scroll past. */
	.product-page .woocommerce-variation-add-to-cart {
		position: sticky;
		bottom: 0;
		z-index: 20;
		padding-block: var(--s3);
		border-top: 1px solid var(--rule);
		background: var(--paper);
	}

	.product-page__grid,
	.fitting__body {
		grid-template-columns: 1fr;
	}

	/* Photo, then the order form, then the drawing. */
	.product-page__media {
		display: contents;
	}

	.product-page .woocommerce-product-gallery {
		order: 1;
		margin-bottom: 0;
	}

	.product-page__summary {
		order: 2;
	}

	.product-page__media .drawn {
		order: 3;
	}

	.woocommerce-tabs .tabs a {
		padding: var(--s2) var(--s3);
		font-size: 0.875rem;
	}
}

@media (max-width: 480px) {
	ul.products {
		gap: var(--s3);
	}

	.product-card__name {
		font-size: 1.25rem;
	}

	.product-card__btn {
		padding-inline: var(--s3);
		font-size: 0.8125rem;
	}
}
