/**
 * Casa Noce WooCommerce layer.
 *
 * Maps the design export's Collection and Product frames onto WooCommerce
 * block markup, plus the shared form and notice treatments the cart,
 * checkout and account screens inherit.
 */

/* ==================================================== collection page == */

.cn-collection__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding: 56px var(--cn-gutter) 32px;
}

.cn-collection__title {
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(32px, 3.33vw, 48px);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.cn-collection__intro {
	max-width: 520px;
	margin: 0;
	color: var(--wp--preset--color--ink-muted);
	font-size: 15.5px;
}

.cn-collection__controls {
	display: flex;
	gap: 12px;
	flex: 0 0 auto;
}

.cn-collection__controls button,
.cn-collection__controls .wp-block-button__link {
	height: 44px;
	padding: 0 20px;
	border: 1px solid var(--wp--preset--color--warm-ink);
	background: transparent;
	color: var(--wp--preset--color--warm-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--cn-ease), color var(--cn-ease);
}

.cn-collection__controls button:hover,
.cn-collection__controls .wp-block-button__link:hover {
	background: var(--wp--preset--color--warm-ink);
	color: var(--wp--preset--color--oat);
}

@media (max-width: 1023px) {
	.cn-collection__head {
		display: block;
		padding: 32px var(--cn-gutter) 18px;
	}

	.cn-collection__title {
		margin-bottom: 8px;
	}

	.cn-collection__intro {
		font-size: 13.5px;
	}

	.cn-collection__controls {
		flex-wrap: wrap;
		padding: 0 var(--cn-gutter) 20px;
	}

	.cn-collection__controls button,
	.cn-collection__controls .wp-block-button__link {
		flex: 1;
		font-size: 12px;
	}

	/* On the product-search controls the inline search and the sort select
	   each take a full row rather than colliding. */
	.cn-collection__controls > * {
		flex: 1 1 100%;
	}

	.cn-collection__controls .cn-search-inline,
	.cn-collection__controls .wc-block-catalog-sorting,
	.cn-collection__controls .woocommerce-ordering,
	.cn-collection__controls .woocommerce-ordering select {
		width: 100%;
	}
}

/* ------------------------------------------------------- product grid -- */

.cn-grid .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 20px;
	margin: 0;
	padding: 0 var(--cn-gutter) 88px;
	list-style: none;
}

/* `wc-block-product-template__responsive` sits on the same <ul> as
   `wc-block-product-template`, so it must not be given its own display. */
.cn-grid .wc-block-product {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	text-align: left;
}

/* The image plate. Fixed height so a portrait and a landscape shot sit on
   the same baseline, matching the design's even grid. */
.cn-grid .wc-block-components-product-image {
	position: relative;
	height: 340px;
	margin: 0;
	background: var(--wp--preset--color--oat-shade);
	overflow: hidden;
}

.cn-grid .wc-block-components-product-image a,
.cn-grid .wc-block-components-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

/* The card title is a core/post-title inside the product template, so it
   carries `wp-block-post-title` rather than a WooCommerce class. */
.cn-grid .wp-block-post-title,
.cn-grid .wc-block-components-product-title {
	margin: 12px 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.25;
}

.cn-grid .wp-block-post-title a:hover,
.cn-grid .wc-block-components-product-title a:hover {
	color: var(--wp--preset--color--honey-brass);
}

.cn-grid .wp-block-woocommerce-product-price,
.cn-grid .wc-block-components-product-price {
	margin-top: 3px;
	font-size: 14.5px;
}

.cn-grid .wc-block-components-product-price del {
	margin-right: 6px;
	color: var(--wp--preset--color--ink-muted);
}

/* Catalog sorting reads as the design's outline "Sort" control. */
.cn-collection__controls .wc-block-catalog-sorting select,
.cn-collection__controls select.orderby {
	height: 44px;
	padding: 0 36px 0 20px;
	border: 1px solid var(--wp--preset--color--warm-ink);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--warm-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.cn-grid .wc-block-components-product-sku,
.cn-grid .cn-grid__mat {
	margin-top: 3px;
	color: var(--wp--preset--color--ink-muted);
	font-size: 13px;
}

/* Sale and stock badges sit on the plate, not in the flow. */
.cn-grid .wc-block-components-product-sale-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 5px 9px;
	border: none;
	border-radius: 0;
	background: var(--wp--preset--color--honey-brass);
	color: var(--wp--preset--color--cream);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

@media (max-width: 1279px) {
	.cn-grid .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.cn-grid .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 12px;
		padding: 0 var(--cn-gutter) 56px;
	}

	.cn-grid .wc-block-components-product-image {
		height: 190px;
	}

	.cn-grid .wp-block-post-title,
	.cn-grid .wc-block-components-product-title {
		margin-top: 9px;
		font-size: 14.5px;
	}

	.cn-grid .wp-block-woocommerce-product-price,
	.cn-grid .wc-block-components-product-price {
		font-size: 13px;
	}

	.cn-grid .cn-grid__mat {
		font-size: 12px;
	}

	.cn-grid .wc-block-components-product-sale-badge {
		top: 8px;
		left: 8px;
		padding: 4px 7px;
		font-size: 9.5px;
		letter-spacing: 0.1em;
	}
}

/* ---------------------------------------------------------- pagination */

.wc-block-product-collection__pagination,
.wp-block-query-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 0 var(--cn-gutter) 64px;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--wp--preset--color--greige);
}

.wp-block-query-pagination .current,
.wp-block-query-pagination a:hover {
	border-color: var(--wp--preset--color--warm-ink);
	background: var(--wp--preset--color--warm-ink);
	color: var(--wp--preset--color--oat);
}

/* ======================================================= product page == */

.cn-pdp {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 520px;
	gap: 64px;
	padding: 40px var(--cn-gutter) 88px;
}

.cn-pdp__breadcrumb {
	margin-bottom: 16px;
	color: var(--wp--preset--color--ink-muted);
	font-size: 12.5px;
}

.cn-pdp__breadcrumb a {
	color: var(--wp--preset--color--ink-muted);
}

.cn-pdp__breadcrumb a:hover {
	color: var(--wp--preset--color--honey-brass);
}

/* ------------------------------------------------------------ gallery -- */

.cn-pdp__gallery .wp-block-woocommerce-product-image-gallery,
.cn-pdp__gallery .woocommerce-product-gallery {
	margin: 0;
	width: 100% !important;
	float: none;
}

.cn-pdp__gallery .woocommerce-product-gallery__wrapper {
	height: 700px;
	background: var(--wp--preset--color--oat-shade);
	overflow: hidden;
}

.cn-pdp__gallery .woocommerce-product-gallery__image,
.cn-pdp__gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.cn-pdp__gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.cn-pdp__gallery .flex-control-thumbs li {
	height: 220px;
	margin: 0;
	background: var(--wp--preset--color--oat-shade);
	overflow: hidden;
}

.cn-pdp__gallery .flex-control-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.72;
	transition: opacity var(--cn-ease);
	cursor: pointer;
}

.cn-pdp__gallery .flex-control-thumbs img:hover,
.cn-pdp__gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
}

/* ------------------------------------------------------------ summary -- */

.cn-pdp__summary {
	padding-top: 36px;
}

.cn-pdp__summary .cn-sale-flag {
	display: inline-block;
	margin-bottom: 16px;
	padding: 6px 10px;
	background: var(--wp--preset--color--honey-brass);
	color: var(--wp--preset--color--ivory);
	font-size: 11px;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

.cn-pdp__title {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(28px, 2.92vw, 42px);
	font-weight: 400;
	line-height: 1.1;
}

.cn-pdp__rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.cn-pdp__rating .star-rating,
.cn-pdp__stars {
	color: var(--wp--preset--color--honey-brass);
	font-size: 15px;
	letter-spacing: 2px;
}

.cn-pdp__rating-count {
	color: var(--wp--preset--color--ink-muted);
	font-size: 13.5px;
}

.cn-pdp__price,
.cn-pdp__summary .wp-block-woocommerce-product-price {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 22px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 30px;
	line-height: 1.2;
}

.cn-pdp__price del,
.cn-pdp__summary .wp-block-woocommerce-product-price del {
	color: var(--wp--preset--color--ink-muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: 17px;
	text-decoration: line-through;
}

.cn-pdp__price ins {
	text-decoration: none;
}

.cn-pdp__excerpt {
	margin: 0 0 26px;
	color: var(--wp--preset--color--ink-soft);
	font-size: 15px;
	line-height: 1.65;
	text-wrap: pretty;
}

/* ------------------------------------------------------ variation swatches */

.cn-pdp__summary .variations {
	margin: 0 0 30px;
	border: none;
}

.cn-pdp__summary .variations tbody,
.cn-pdp__summary .variations tr,
.cn-pdp__summary .variations td,
.cn-pdp__summary .variations th {
	display: block;
	width: auto;
	padding: 0;
	border: none;
	background: none;
	text-align: left;
}

.cn-pdp__summary .variations .label,
.cn-swatch-group__label {
	margin-bottom: 10px;
	color: var(--wp--preset--color--ink-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cn-swatch-group {
	margin-bottom: 30px;
}

/* The select is the no-JS fallback and stays visible until the swatch script
   confirms it has taken over. Hidden with display:none rather than the
   visually-hidden pattern: WooCommerce sets `width:100%` on variation selects
   at a higher specificity, which turned an absolutely-positioned select into a
   1000px page overflow. A display:none select still submits its value, and the
   radios carry the labels and focus, so nothing is lost. */
/* !important is deliberate. WooCommerce ships
   `.woocommerce div.product form.cart .variations select { width:100% }` and
   friends at a specificity we would have to mirror exactly, and the block and
   classic add-to-cart forms nest the select differently, so no single
   selector reliably outranks it. The intent here is unambiguous. */
.cn-swatch-group--enhanced select {
	display: none !important;
}

.cn-swatch-group--enhanced .reset_variations {
	display: inline-block;
	margin-top: 12px;
	color: var(--wp--preset--color--ink-muted);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cn-swatch-group--enhanced .reset_variations:hover {
	color: var(--wp--preset--color--honey-brass);
}

.cn-swatch-group__options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* A colour or finish swatch. The input stays in the DOM for keyboard and
   screen-reader users; the label is the visible control. */
.cn-swatch-option {
	position: relative;
}

.cn-swatch-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.cn-swatch-option label {
	display: block;
	width: 34px;
	height: 34px;
	border: 1px solid var(--cn-hairline);
	border-radius: 50%;
	background-color: var(--cn-swatch, var(--wp--preset--color--greige));
	background-size: cover;
	background-position: center;
	cursor: pointer;
	transition: border-color var(--cn-ease), box-shadow var(--cn-ease);
}

.cn-swatch-option input:checked + label {
	border: 2px solid var(--wp--preset--color--warm-ink);
}

.cn-swatch-option input:focus-visible + label {
	outline: var(--cn-focus);
	outline-offset: 3px;
}

.cn-swatch-option input:disabled + label {
	cursor: not-allowed;
	opacity: 0.4;
}

/* Finish swatches read as text chips rather than dots. */
.cn-swatch-option--text label {
	width: auto;
	height: 40px;
	padding: 0 16px;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--warm-ink);
	font-size: 13px;
	letter-spacing: 0.06em;
	line-height: 38px;
	text-transform: uppercase;
}

.cn-swatch-option--text input:checked + label {
	background: var(--wp--preset--color--warm-ink);
	color: var(--wp--preset--color--oat);
	border-color: var(--wp--preset--color--warm-ink);
}

/* ------------------------------------------------------- add to cart --- */

.cn-pdp__summary .single_add_to_cart_button,
.cn-pdp__atc {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 58px;
	border: none;
	border-radius: 0;
	background: var(--wp--preset--color--honey-brass);
	color: var(--wp--preset--color--ivory);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--cn-ease);
}

.cn-pdp__summary .single_add_to_cart_button:hover,
.cn-pdp__atc:hover {
	background: var(--wp--preset--color--brass-deep);
}

.cn-pdp__summary .single_add_to_cart_button:disabled {
	background: var(--wp--preset--color--greige);
	color: var(--wp--preset--color--ink-muted);
	cursor: not-allowed;
}

/* Quantity input, kept beside the button rather than above it. */
.cn-pdp__summary .quantity {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.cn-pdp__summary .quantity input[type="number"] {
	width: 88px;
	height: 58px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--warm-ink);
	background: transparent;
	color: var(--wp--preset--color--warm-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	text-align: center;
}

/* -------------------------------------------------- stock and delivery - */

.cn-pdp__assurance {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 14px 0 26px;
	color: var(--wp--preset--color--ink-muted);
	font-size: 13px;
	text-align: center;
}

.cn-pdp__stock-dot {
	color: var(--wp--preset--color--muted-olive);
}

.cn-pdp__sustain {
	color: var(--wp--preset--color--muted-olive);
}

/* The In Stock tag itself, in Muted Olive per the brief. */
.cn-stock-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px;
	background: var(--wp--preset--color--muted-olive);
	color: var(--wp--preset--color--cream);
	font-size: 11px;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.cn-stock-tag--low {
	background: var(--wp--preset--color--honey-brass);
}

.cn-stock-tag--out {
	background: var(--wp--preset--color--ink-muted);
}

/* ---------------------------------------------------------- accordions - */

.cn-acc {
	border-top: var(--cn-rule);
}

.cn-acc__item {
	border-bottom: var(--cn-rule);
}

.cn-acc__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 0;
	border: none;
	background: none;
	color: var(--wp--preset--color--warm-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
}

.cn-acc__glyph {
	font-size: 18px;
	line-height: 1;
}

.cn-acc__trigger[aria-expanded="true"] .cn-acc__glyph::before {
	content: "\2013";
}

.cn-acc__trigger[aria-expanded="false"] .cn-acc__glyph::before {
	content: "+";
}

.cn-acc__panel {
	padding: 4px 0 20px;
	color: var(--wp--preset--color--ink-soft);
	font-size: 14px;
	line-height: 1.65;
}

.cn-acc__panel[hidden] {
	display: none;
}

.cn-acc__panel p {
	margin: 0;
}

/* Dimensions table, zebra-striped in Oat Deep. */
.cn-dims {
	display: flex;
	flex-direction: column;
	font-size: 13.5px;
}

.cn-dims__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 14px;
}

.cn-dims__row:nth-child(odd) {
	background: var(--wp--preset--color--oat-deep);
}

.cn-dims__key {
	color: var(--wp--preset--color--ink-muted);
}

/* --------------------------------------------------------- materials --- */

.cn-materials {
	padding: 0 var(--cn-gutter) 88px;
}

.cn-materials__title,
.cn-section-title {
	margin: 0 0 36px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(24px, 2.22vw, 32px);
	font-weight: 400;
}

.cn-materials__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.cn-material {
	display: flex;
	gap: 28px;
	padding: 26px;
	background: var(--wp--preset--color--oat-deep);
}

.cn-material__media {
	flex: 0 0 190px;
	height: 190px;
	background: var(--wp--preset--color--oat-shade);
	overflow: hidden;
}

.cn-material__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

.cn-material__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 21px;
}

.cn-material__cert {
	color: var(--wp--preset--color--muted-olive);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cn-material__desc {
	margin: 0;
	color: var(--wp--preset--color--ink-soft);
	font-size: 14px;
	line-height: 1.6;
}

/* ----------------------------------------------------------- reviews --- */

.cn-reviews {
	padding: 72px var(--cn-gutter);
	background: var(--wp--preset--color--oat-deep);
}

/* The reviews block renders its own heading; style that rather than stacking
   a second one above it. */
.cn-reviews .wp-block-woocommerce-product-reviews > h2,
.cn-reviews .woocommerce-Reviews-title {
	margin: 0 0 40px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(24px, 2.22vw, 32px);
	font-weight: 400;
}

.cn-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
}

.cn-review {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cn-review__stars {
	color: var(--wp--preset--color--honey-brass);
	font-size: 14px;
	letter-spacing: 2px;
}

.cn-review__quote {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 18px;
	font-style: italic;
	line-height: 1.5;
}

.cn-review__who {
	color: var(--wp--preset--color--ink-muted);
	font-size: 13px;
}

/* ----------------------------------------------------------- related --- */

.cn-related {
	padding: 80px var(--cn-gutter);
}

.cn-related .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cn-related .wc-block-components-product-image {
	height: 300px;
	margin: 0;
	background: var(--wp--preset--color--oat-shade);
	overflow: hidden;
}

.cn-related .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cn-related .wp-block-post-title,
.cn-related .wc-block-components-product-title {
	margin: 12px 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 16.5px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.25;
}

.cn-related .wp-block-woocommerce-product-price,
.cn-related .wc-block-components-product-price {
	font-size: 14px;
}

/* --------------------------------------------------- sticky mobile ATC - */

.cn-sticky-atc {
	position: sticky;
	bottom: 0;
	z-index: 90;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--wp--preset--color--oat);
	border-top: var(--cn-rule);
	box-shadow: 0 -8px 24px rgba(41, 36, 32, 0.08);
}

.cn-sticky-atc__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cn-sticky-atc__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 15px;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cn-sticky-atc__price {
	color: var(--wp--preset--color--ink-muted);
	font-size: 13px;
}

.cn-sticky-atc__button {
	flex: 1;
	height: 48px;
	border: none;
	background: var(--wp--preset--color--honey-brass);
	color: var(--wp--preset--color--ivory);
	font-family: var(--wp--preset--font-family--body);
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.cn-sticky-atc__button:hover {
	background: var(--wp--preset--color--brass-deep);
}

/* ------------------------------------------------- product page mobile - */

@media (max-width: 1023px) {
	.cn-pdp {
		display: block;
		padding: 0 0 28px;
	}

	.cn-pdp__breadcrumb {
		padding: 16px var(--cn-gutter) 0;
		margin-bottom: 0;
	}

	.cn-pdp__gallery .woocommerce-product-gallery__wrapper {
		height: 420px;
	}

	.cn-pdp__gallery .flex-control-thumbs {
		gap: 6px;
		margin-top: 6px;
		padding: 0 6px;
	}

	.cn-pdp__gallery .flex-control-thumbs li {
		height: 110px;
	}

	.cn-pdp__summary {
		padding: 22px var(--cn-gutter) 0;
	}

	.cn-pdp__rating {
		gap: 8px;
		margin-bottom: 12px;
	}

	.cn-pdp__price,
	.cn-pdp__summary .wp-block-woocommerce-product-price {
		margin-bottom: 14px;
		font-size: 24px;
	}

	.cn-pdp__excerpt {
		margin-bottom: 18px;
		font-size: 14px;
		line-height: 1.6;
	}

	.cn-swatch-option label {
		width: 32px;
		height: 32px;
	}

	.cn-swatch-group {
		margin-bottom: 22px;
	}

	.cn-pdp__summary .single_add_to_cart_button,
	.cn-pdp__atc {
		height: 54px;
		font-size: 13px;
	}

	.cn-pdp__assurance {
		gap: 4px;
		margin: 12px 0 4px;
		font-size: 12px;
	}

	.cn-acc {
		margin: 0 var(--cn-gutter);
	}

	.cn-acc__trigger {
		padding: 16px 0;
		font-size: 13px;
	}

	.cn-acc__panel {
		padding: 2px 0 16px;
		font-size: 13.5px;
		line-height: 1.6;
	}

	.cn-dims {
		font-size: 12.5px;
	}

	.cn-dims__row {
		gap: 12px;
		padding: 10px 12px;
	}

	.cn-materials {
		padding: 36px var(--cn-gutter) 8px;
	}

	.cn-materials__title,
	.cn-section-title {
		margin-bottom: 18px;
	}

	.cn-materials__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.cn-material {
		gap: 16px;
		padding: 14px;
	}

	.cn-material__media {
		flex-basis: 112px;
		height: 112px;
	}

	.cn-material__body {
		gap: 5px;
	}

	.cn-material__name {
		font-size: 17px;
	}

	.cn-material__cert {
		font-size: 10.5px;
	}

	.cn-material__desc {
		font-size: 12.5px;
		line-height: 1.55;
	}

	.cn-reviews {
		margin-top: 32px;
		padding: 44px var(--cn-gutter);
	}

	.cn-reviews__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.cn-review {
		gap: 8px;
	}

	.cn-review__stars {
		font-size: 12px;
	}

	.cn-review__quote {
		font-size: 15.5px;
	}

	.cn-review__who {
		font-size: 12px;
	}

	.cn-related {
		padding: 44px var(--cn-gutter);
	}

	.cn-related .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.cn-related .wc-block-components-product-image {
		height: 180px;
	}

	.cn-related .wp-block-post-title,
	.cn-related .wc-block-components-product-title {
		margin-top: 8px;
		font-size: 14.5px;
	}

	.cn-related .wp-block-woocommerce-product-price,
	.cn-related .wc-block-components-product-price {
		font-size: 13px;
	}

	.cn-sticky-atc {
		display: flex;
	}
}

/* ================================================= shared form fields == */

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="search"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input,
.wc-block-components-select select {
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--greige);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--warm-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
}

.woocommerce textarea {
	height: auto;
	padding: 14px 16px;
	line-height: 1.6;
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.wc-block-components-text-input input:focus {
	border-color: var(--wp--preset--color--warm-ink);
	outline: var(--cn-focus);
	outline-offset: 1px;
}

.woocommerce label,
.wc-block-components-text-input label {
	color: var(--wp--preset--color--ink-muted);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------ buttons -- */

.woocommerce .button,
.woocommerce button.button,
.wc-block-components-button,
.wp-element-button {
	border-radius: 0;
	background: var(--wp--preset--color--honey-brass);
	color: var(--wp--preset--color--ivory);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background var(--cn-ease);
}

.woocommerce .button:hover,
.wc-block-components-button:hover,
.wp-element-button:hover {
	background: var(--wp--preset--color--brass-deep);
	color: var(--wp--preset--color--ivory);
}

/* ------------------------------------------------------------ notices -- */

/* Notices carry status the way the rest of the design does: a flat filled
   marker, not a side stripe. Nothing in the export uses an accent border. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	border: var(--cn-rule);
	border-radius: 0;
	background: var(--wp--preset--color--oat-deep);
	color: var(--wp--preset--color--warm-ink);
	font-size: 14px;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.wc-block-components-notice-banner > svg {
	color: var(--wp--preset--color--muted-olive);
	fill: var(--wp--preset--color--muted-olive);
}

.woocommerce-error::before,
.wc-block-components-notice-banner.is-error > svg {
	color: #9B3D2E;
	fill: #9B3D2E;
}

.woocommerce-info::before,
.wc-block-components-notice-banner.is-info > svg {
	color: var(--wp--preset--color--honey-brass);
	fill: var(--wp--preset--color--honey-brass);
}

/* ================================================ cart, checkout, account */

.cn-woo-page {
	padding: 56px var(--cn-gutter) 88px;
}

.cn-woo-page__title {
	margin: 0 0 32px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(32px, 3.33vw, 48px);
	font-weight: 400;
	letter-spacing: -0.01em;
}

.wc-block-cart,
.wc-block-checkout {
	font-family: var(--wp--preset--font-family--body);
}

.wc-block-cart-items__header,
.wc-block-components-totals-wrapper {
	border-color: var(--wp--preset--color--greige);
}

.wc-block-components-sidebar,
.wc-block-cart__sidebar .wc-block-components-sidebar {
	background: var(--wp--preset--color--oat-deep);
	padding: 28px;
}

.wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 17px;
	font-weight: 500;
}

/* -------------------------------------------------------- my account --- */

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	align-items: start;
	gap: 64px;
	padding: 56px var(--cn-gutter) 88px;
}

/* WooCommerce adds clearfix ::before/::after to .woocommerce. In the account
   grid they become phantom grid items that push the nav into column two and
   drop the content onto a second row. Remove them, and clear the float/width
   that woocommerce-layout.css puts on the two real columns so each grid item
   fills its track and both sit at the top. */
.woocommerce-account.logged-in .woocommerce::before,
.woocommerce-account.logged-in .woocommerce::after {
	content: none;
}

.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--cn-rule);
}

.woocommerce-MyAccount-navigation li {
	border-bottom: var(--cn-rule);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 14px 16px 14px 14px;
	color: var(--wp--preset--color--warm-ink);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-left: 2px solid transparent;
	transition: color var(--cn-ease), background var(--cn-ease), border-color var(--cn-ease);
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation a:focus-visible {
	color: var(--wp--preset--color--honey-brass);
	background: var(--wp--preset--color--oat-shade);
}

.woocommerce-MyAccount-navigation .is-active a {
	color: var(--wp--preset--color--honey-brass);
	background: var(--wp--preset--color--oat-shade);
	border-left-color: var(--wp--preset--color--honey-brass);
	font-weight: 500;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
}

/* Account tables (orders, downloads, addresses). */
.woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.woocommerce-MyAccount-content table th {
	padding: 12px 14px;
	border-bottom: 1px solid var(--wp--preset--color--warm-ink);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
}

.woocommerce-MyAccount-content table td {
	padding: 14px;
	border-bottom: var(--cn-rule);
}

.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 8px;
}

.woocommerce-MyAccount-content address {
	font-style: normal;
	line-height: 1.7;
}

/* Logged out: a single-focus login, centred, with the register form revealed by
   an in-place toggle. Without JavaScript both panels render (see .cn-auth, below,
   and initAuthToggle in ui.js) so registration is always reachable. */
.woocommerce-account:not(.logged-in) .woocommerce {
	display: block;
	max-width: 480px;
	margin: 0 auto;
	padding: 72px var(--cn-gutter) 96px;
}

.cn-auth__panel > h2 {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 400;
	text-align: center;
}

/* Square the card corners WooCommerce rounds by default, and use the brand
   rule for the border so the panel matches the rest of the site. */
.cn-auth .woocommerce-form-login,
.cn-auth .woocommerce-form-register {
	margin: 0;
	padding: 32px;
	border: var(--cn-rule);
	border-radius: 0;
}

/* No-JS baseline: both panels stack, separated by a rule. */
.cn-auth__panel + .cn-auth__panel {
	margin-top: 40px;
	padding-top: 40px;
	border-top: var(--cn-rule);
}

.cn-auth__switch {
	display: none;
	margin-top: 24px;
	color: var(--wp--preset--color--ink-muted);
	font-size: 14px;
	text-align: center;
}

.cn-auth__switch-btn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--honey-brass);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.cn-auth__switch-btn:hover,
.cn-auth__switch-btn:focus-visible {
	color: var(--wp--preset--color--brass-deep);
}

/* Enhanced (JavaScript on): single-focus. Only the active panel shows and the
   switch links appear. */
.cn-auth--enhanced .cn-auth__panel {
	display: none;
}

.cn-auth--enhanced .cn-auth__panel + .cn-auth__panel {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.cn-auth--enhanced[data-view="login"] .cn-auth__panel--login,
.cn-auth--enhanced[data-view="register"] .cn-auth__panel--register {
	display: block;
}

.cn-auth--enhanced .cn-auth__switch {
	display: block;
}

@media (prefers-reduced-motion: no-preference) {
	.cn-auth--enhanced .cn-auth__panel {
		animation: cn-auth-fade 0.28s ease;
	}
}

@keyframes cn-auth-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.woocommerce .u-columns,
.woocommerce .col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 32px;
	margin: 0;
}

/* WooCommerce adds clearfix ::before/::after pseudo-elements to these
   containers. In a grid they become phantom grid items and shove the real
   columns into the wrong tracks, so they are removed and the columns placed
   explicitly. */
.woocommerce .u-columns::before,
.woocommerce .u-columns::after,
.woocommerce .col2-set::before,
.woocommerce .col2-set::after {
	display: none;
}

.woocommerce .col2-set > .col-1 {
	grid-column: 1;
}

.woocommerce .col2-set > .col-2 {
	grid-column: 2;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
	width: auto;
	float: none;
	padding: 32px;
	border: var(--cn-rule);
}

.woocommerce .col2-set h2 {
	margin: 0 0 20px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	font-weight: 400;
}

.woocommerce form .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 18px;
	padding: 0;
}

.woocommerce form .form-row label {
	margin: 0;
}

.woocommerce .woocommerce-form-login__rememberme,
.woocommerce .woocommerce-form__label-for-checkbox {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	text-transform: none;
	letter-spacing: 0;
}

.woocommerce .woocommerce-form-login__submit,
.woocommerce .woocommerce-form-register__submit {
	width: 100%;
	height: 52px;
}

/* Fields read as fields without the stark white default: the page oat, a hair
   darker, with a hairline border and an obvious brass focus. Covers login,
   register and the account edit forms. */
.woocommerce-account .woocommerce input.input-text,
.woocommerce-account .woocommerce input[type="text"],
.woocommerce-account .woocommerce input[type="email"],
.woocommerce-account .woocommerce input[type="password"],
.woocommerce-account .woocommerce input[type="tel"],
.woocommerce-account .woocommerce input[type="number"],
.woocommerce-account .woocommerce select,
.woocommerce-account .woocommerce textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--cn-hairline);
	border-radius: 0;
	background: var(--wp--preset--color--oat-shade);
	color: var(--wp--preset--color--warm-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	transition: border-color var(--cn-ease), background var(--cn-ease);
}

.woocommerce-account .woocommerce input.input-text:focus,
.woocommerce-account .woocommerce input[type="text"]:focus,
.woocommerce-account .woocommerce input[type="email"]:focus,
.woocommerce-account .woocommerce input[type="password"]:focus,
.woocommerce-account .woocommerce input[type="tel"]:focus,
.woocommerce-account .woocommerce input[type="number"]:focus,
.woocommerce-account .woocommerce select:focus,
.woocommerce-account .woocommerce textarea:focus {
	border-color: var(--wp--preset--color--honey-brass);
	background: var(--wp--preset--color--cream);
	outline: 2px solid var(--wp--preset--color--honey-brass);
	outline-offset: 1px;
}

.woocommerce-account .woocommerce input::placeholder,
.woocommerce-account .woocommerce textarea::placeholder {
	color: var(--wp--preset--color--ink-muted);
}

.woocommerce .woocommerce-LostPassword {
	margin-top: 6px;
	font-size: 13px;
}

.woocommerce .woocommerce-privacy-policy-text {
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--wp--preset--color--ink-muted);
}

/* ------------------------------------------------------ cart block ----- */

.wc-block-cart {
	gap: 48px;
}

.wc-block-cart-items {
	width: 100%;
}

.wc-block-cart-items__row,
.wc-block-cart-item__wrap {
	border-color: var(--wp--preset--color--greige);
}

.wc-block-cart-item__image img {
	border-radius: 0;
	background: var(--wp--preset--color--oat-shade);
}

.wc-block-components-quantity-selector {
	border-color: var(--wp--preset--color--warm-ink);
	border-radius: 0;
}

.wc-block-cart__submit-button,
.wc-block-cart .wc-block-cart__submit-button {
	background: var(--wp--preset--color--honey-brass);
}

/* ------------------------------------------------- checkout block ------ */

.cn-checkout .wc-block-checkout__form,
.wc-block-checkout__main {
	font-family: var(--wp--preset--font-family--body);
}

.wc-block-components-checkout-step__title,
.wc-block-components-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
}

.wc-block-checkout__sidebar .wc-block-components-sidebar,
.wc-block-components-order-summary {
	background: var(--wp--preset--color--oat-deep);
}

.wc-block-components-checkout-place-order-button {
	background: var(--wp--preset--color--honey-brass);
}

.wc-block-components-checkout-place-order-button:hover {
	background: var(--wp--preset--color--brass-deep);
}

/* ------------------------------------------------- order confirmation -- */

.cn-order .cn-order__status {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 400;
	line-height: 1.15;
}

.cn-order .wc-block-order-confirmation-address-wrapper {
	margin-top: 40px;
	gap: 32px;
}

/* --------------------------------------------- minimal checkout header - */

.cn-header--minimal .cn-header__bar--minimal {
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "brand secure back";
	height: 68px;
}

.cn-header__secure {
	grid-area: secure;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--ink-muted);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cn-header__secure svg {
	fill: none;
	stroke: var(--wp--preset--color--muted-olive);
	stroke-width: 1.4;
}

.cn-header__backlink {
	grid-area: back;
	justify-self: end;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.cn-header--minimal .cn-header__bar--minimal {
		grid-template-columns: auto 1fr;
		grid-template-areas: "brand back";
		height: 56px;
	}

	.cn-header__secure {
		display: none;
	}
}

/* --------------------------------------------------- inline site search */

.cn-search-inline .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--warm-ink);
	border-radius: 0;
	background: transparent;
}

.cn-search-inline input.wp-block-search__input {
	height: 44px;
	border: none;
	background: transparent;
	font-family: var(--wp--preset--font-family--body);
}

.cn-search-inline .wp-block-search__button {
	margin: 0;
	background: var(--wp--preset--color--warm-ink);
	color: var(--wp--preset--color--oat);
}

@media (max-width: 1023px) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 32px var(--cn-gutter) 56px;
	}

	.woocommerce-account:not(.logged-in) .woocommerce {
		padding: 32px var(--cn-gutter) 56px;
	}

	.woocommerce .u-columns,
	.woocommerce .col2-set {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	/* Both columns collapse to the single track; the explicit desktop
	   placement would otherwise force a phantom second column and overflow. */
	.woocommerce .col2-set > .col-1,
	.woocommerce .col2-set > .col-2 {
		grid-column: 1;
	}

	.woocommerce .col2-set .col-1,
	.woocommerce .col2-set .col-2 {
		padding: 24px;
	}

	.woocommerce-MyAccount-content .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}

	.cn-woo-page {
		padding: 32px var(--cn-gutter) 56px;
	}

	.cn-order .wc-block-order-confirmation-address-wrapper {
		grid-template-columns: 1fr;
	}
}

/* ============================================= save to favourites (PDP) == */

.cn-pdp__save {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

/* On the product page the heart is a static, bordered control rather than a
   card overlay, paired with a label that flips to "Saved" once pressed. */
.cn-wish--pdp {
	position: static;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--warm-ink);
	background: transparent;
}

.cn-wish--pdp:hover,
.cn-wish--pdp:focus-visible {
	background: var(--wp--preset--color--oat-shade);
}

.cn-wish--pdp svg {
	width: 20px;
	height: 20px;
}

.cn-pdp__save-label {
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--warm-ink);
}

.cn-pdp__save-on {
	display: none;
}

.cn-wish--pdp[aria-pressed="true"] ~ .cn-pdp__save-label .cn-pdp__save-idle {
	display: none;
}

.cn-wish--pdp[aria-pressed="true"] ~ .cn-pdp__save-label .cn-pdp__save-on {
	display: inline;
}
