/*
 * Realize3D — WooCommerce.
 *
 * Loaded only on shop, product, cart, checkout and account pages. It sits on
 * top of woocommerce.css / woocommerce-layout.css rather than replacing them,
 * so a handful of rules have to out-specify Woo's own; those are the places
 * where a selector looks heavier than it needs to be.
 *
 * Everything uses the theme's tokens, so the shop inherits the accent, the
 * sand/charcoal palette and the two Plex families without restating any of it.
 */

/* ------------------------------------------------------------- the shell */

.phero--shop { background: var(--sand-15); }
.phero--shop .phero__lede { margin-top: 0.9rem; }

/* The hero already carries the page title, so the shop body starts closer to
   it than a normal section would. */
.section--woo { padding-top: clamp(1.75rem, 3.5vw, 3rem); }

.wrap--shop { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }

/* Account, cart and checkout are ordinary pages holding a shortcode, so their
   content arrives inside the narrow editor column. Give it the full width. */
.woocommerce-account .entry__content,
.woocommerce-cart .entry__content,
.woocommerce-checkout .entry__content { max-width: none; }

.woocommerce-account .wrap--narrow,
.woocommerce-cart .wrap--narrow,
.woocommerce-checkout .wrap--narrow { width: min(var(--wrap), 100% - var(--gut) * 2); }

/* Page-builder leftovers on those three pages: a spacer block and an empty
   container wrapper otherwise push the shortcode hundreds of pixels down. */
.woocommerce-account .entry__content > .wp-block-spacer,
.woocommerce-cart .entry__content > .wp-block-spacer,
.woocommerce-checkout .entry__content > .wp-block-spacer { display: none; }

.woocommerce-account .entry__content .uagb-container-inner-blocks-wrap,
.woocommerce-cart .entry__content .uagb-container-inner-blocks-wrap,
.woocommerce-checkout .entry__content .uagb-container-inner-blocks-wrap { padding: 0; }

/* -------------------------------------------------------------- breadcrumb */

.shopcrumb { margin-top: 1.25rem; }
.woocommerce-breadcrumb {
	font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--text-dim);
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.woocommerce-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--accent); }
.woocommerce-breadcrumb span + span::before { content: "/"; margin-right: 0.5rem; color: var(--metal-50); }

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

.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	border: 1px solid var(--line-strong); border-top-width: 1px; border-radius: var(--r);
	background: var(--white); color: var(--text); padding: 1rem 1.2rem;
	font-size: 0.92rem; list-style: none;
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before { display: none; }
.woocommerce .woocommerce-message { border-left: 3px solid var(--accent); }
.woocommerce .woocommerce-error { border-left: 3px solid #c0392b; }
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button { margin-left: auto; }

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

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce ul.products li.product .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
	padding: 0.7rem 1.35rem;
	border: 1px solid var(--accent); border-radius: var(--r);
	background: var(--accent); color: var(--accent-on);
	font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
	text-decoration: none; text-transform: none; letter-spacing: 0;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--accent-vivid); border-color: var(--accent-vivid); color: #fff;
}
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
	background: var(--metal-15); border-color: var(--line-strong); color: var(--text-dim); opacity: 1;
}

/* Secondary actions read as outlines. */
.woocommerce a.button.wc-backward,
.woocommerce .cart .button[name="update_cart"],
.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-info a.button {
	background: transparent; color: var(--accent); border-color: var(--accent-line);
}
.woocommerce a.button.wc-backward:hover,
.woocommerce .cart .button[name="update_cart"]:hover {
	background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
}

/* ---------------------------------------------------------- product listing */

.woocommerce ul.products {
	display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem);
	margin: 0; padding: 0; list-style: none;
}
/*
 * Woo clearfixes its layout containers with ::before/::after set to
 * content:" "; display:table. Harmless in a float layout — invisible in a grid
 * they are not: a pseudo-element is a grid item, so ::before silently occupies
 * the first cell and everything shifts one place. Every container this
 * stylesheet turns into a grid therefore has to have them switched off.
 *
 * Symptoms this caused, both fixed here: the shop's top row starting one column
 * in with a hole beside it, and My Account showing Register on the left with
 * Login pushed to the right of it.
 */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
.woocommerce .col2-set::before,
.woocommerce .col2-set::after,
.woocommerce-page .col2-set::before,
.woocommerce-page .col2-set::after,
.woocommerce #customer_login::before,
.woocommerce #customer_login::after,
.woocommerce .woocommerce-Addresses::before,
.woocommerce .woocommerce-Addresses::after,
.woocommerce-checkout #customer_details::before,
.woocommerce-checkout #customer_details::after,
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { content: none; display: none; }

@media (min-width: 46rem) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }

/*
 * Woo sizes cards for a float layout, and it does it from
 * ".woocommerce ul.products.columns-3 li.product" — one class more specific than
 * a plain ".woocommerce ul.products li.product". Only the .first and .last cards
 * tied and took the grid width, which is why a row came out as one full-width
 * card, one 30% card and one full-width card. Matching on [class*="columns-"]
 * ties every one of those rules, and this file loads after them.
 */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	width: auto; float: none; clear: none; margin: 0; padding: 0 0 1.35rem;
	border: 1px solid var(--line); border-radius: var(--r-lg);
	background: var(--white); overflow: hidden; text-align: left;
	display: flex; flex-direction: column;
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.woocommerce ul.products li.product:hover { border-color: var(--accent); transform: translateY(-2px); }
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product a:hover { text-decoration: none; }

.woocommerce ul.products li.product a img {
	margin: 0 0 1.1rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	background: var(--bg-darker); border-radius: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
	color: var(--text-strong); padding: 0 1.25rem; margin: 0 0 0.35rem;
}
.woocommerce ul.products li.product .price {
	display: block; padding: 0 1.25rem; margin: 0 0 1rem;
	color: var(--accent) !important; font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500;
}
.woocommerce ul.products li.product .price del { color: var(--text-dim); opacity: 1; margin-right: 0.4rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin: auto 1.25rem 0; align-self: flex-start; }
.woocommerce ul.products li.product .added_to_cart { margin: 0.6rem 1.25rem 0; font-size: 0.85rem; color: var(--accent); }

.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale {
	position: absolute; top: 0.9rem; left: 0.9rem; right: auto; margin: 0;
	min-width: 0; min-height: 0; padding: 0.2rem 0.6rem; line-height: 1.5;
	border-radius: var(--r); background: var(--accent); color: var(--accent-on);
	font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.woocommerce ul.products li.product { position: relative; }

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { font-size: 0.85rem; color: var(--text-muted); }
.woocommerce .woocommerce-ordering select {
	border: 1px solid var(--line-strong); border-radius: var(--r);
	background: var(--white); color: var(--text); padding: 0.45rem 0.6rem; font: inherit;
}

/* ------------------------------------------------------ the shop landing */

.shopgroup + .shopgroup {
	margin-top: clamp(3rem, 6vw, 5.5rem);
	padding-top: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid var(--line);
}
.shopgroup .sechead { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }

/* Where a section has nothing in it yet, say so rather than leaving a hole. */
.shopsoon {
	border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
	background: var(--sand-15); padding: clamp(1.75rem, 4vw, 3rem);
	max-width: 42rem;
}
.shopsoon__title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.6rem; color: var(--text-strong); }
.shopsoon__body { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.shopsoon .btn-row { margin-top: 1.5rem; }

/* --------------------------------------------------------- single product */

.prodlayout { display: grid; gap: clamp(1.5rem, 4vw, 3.25rem); align-items: start; }
@media (min-width: 60rem) { .prodlayout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* The zoom layer is a full-resolution copy of the photo — 2560px on these
   products — positioned over the thumbnail. FlexSlider's viewport clips it
   while there is more than one image; on a single-image product there is no
   viewport, and nothing else stops it dragging the page sideways on a phone. */
.woocommerce div.product .woocommerce-product-gallery { overflow: hidden; }
.woocommerce div.product .woocommerce-product-gallery img { max-width: 100%; height: auto; }
.woocommerce div.product .woocommerce-product-gallery img.zoomImg { max-width: none; }

/* Woo floats these two; the grid needs them not to. */
.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce #content div.product div.images,
.woocommerce #content div.product div.summary {
	float: none; width: auto; margin: 0;
}

.woocommerce div.product div.images img {
	border-radius: var(--r-lg); background: var(--bg-darker);
}
.woocommerce div.product div.images .flex-control-thumbs { margin: 0.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; grid-template-columns: repeat(4, 1fr); }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: var(--r); opacity: 0.6; transition: opacity var(--dur) var(--ease); }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }

.woocommerce div.product .summary { display: flex; flex-direction: column; align-items: flex-start; }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	order: 1; margin: 0 0 1rem;
	color: var(--accent); font-family: var(--font-mono);
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); font-weight: 500;
}
.woocommerce div.product p.price del { color: var(--text-dim); font-size: 0.7em; opacity: 1; }
.woocommerce div.product p.price ins { text-decoration: none; }

.woocommerce div.product .woocommerce-product-details__short-description {
	order: 2; margin: 0 0 1.5rem; color: var(--text-muted); font-size: 1rem;
}

.woocommerce div.product p.stock {
	order: 3; margin: 0 0 1.5rem; padding: 0.25rem 0.7rem;
	border: 1px solid var(--line-strong); border-radius: 999px;
	font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.woocommerce div.product p.stock.in-stock { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.woocommerce div.product p.stock.out-of-stock { color: #a33227; border-color: rgba(163, 50, 39, 0.35); background: rgba(163, 50, 39, 0.06); }

.woocommerce div.product form.cart { order: 4; margin: 0 0 1.25rem; width: 100%; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty {
	width: 4.5rem; height: 100%; min-height: 2.9rem; padding: 0.45rem 0.6rem;
	border: 1px solid var(--line-strong); border-radius: var(--r);
	background: var(--white); color: var(--text); font: inherit; text-align: center;
}
.woocommerce div.product form.cart .button { flex: 1 1 12rem; }
.woocommerce div.product form.cart .variations { width: 100%; }
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th { padding: 0.4rem 0; border: 0; }

.prodnote {
	order: 5; margin: 0 0 1.5rem;
	font-size: 0.85rem; color: var(--text-dim); max-width: 34rem;
}

.woocommerce div.product .product_meta {
	order: 6; margin: 0; padding-top: 1.25rem; width: 100%;
	border-top: 1px solid var(--line);
	font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em;
	color: var(--text-dim);
	display: grid; gap: 0.4rem;
}
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .product_meta a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.woocommerce div.product .product_meta a:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------- the tabs */

.woocommerce div.product .woocommerce-tabs { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	margin: 0 0 1.75rem; padding: 0; list-style: none;
	display: flex; flex-wrap: wrap; gap: 0.4rem;
	border-bottom: 1px solid var(--line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block; padding: 0.7rem 1rem; margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
	color: var(--text-muted); text-decoration: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--text-strong); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--accent); border-bottom-color: var(--accent); }

.woocommerce div.product .woocommerce-tabs .panel { margin: 0; max-width: 46rem; color: var(--text-muted); }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }

.woocommerce #reviews #comments h2 { font-size: 1.2rem; }
.woocommerce #review_form .comment-form-rating,
.woocommerce #review_form p { margin-bottom: 1rem; }

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

.woocommerce .related.products,
.woocommerce .upsells.products,
.woocommerce .cross-sells {
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--line);
}
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2,
.woocommerce .cross-sells > h2 {
	font-family: var(--font-display); font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.9rem);
	margin: 0 0 1.75rem;
}

/* ----------------------------------------------------------- forms, tables */

.woocommerce form .form-row { margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.4rem; }
.woocommerce form .form-row label { font-size: 0.85rem; color: var(--text-muted); }
.woocommerce form .form-row .required { color: var(--accent); border: 0; text-decoration: none; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .woocommerce-Input,
.woocommerce-page form .form-row input.input-text,
.woocommerce .select2-container .select2-selection--single {
	width: 100%; padding: 0.7rem 0.85rem; min-height: 2.9rem;
	border: 1px solid var(--line-strong); border-radius: var(--r);
	background: var(--white); color: var(--text);
	font-family: var(--font-body); font-size: 0.95rem; line-height: 1.4;
	transition: border-color var(--dur) var(--ease);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .woocommerce-Input:focus { outline: none; border-color: var(--accent); }
.woocommerce form .form-row textarea { min-height: 8rem; }

.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #c0392b; }

.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; }
.woocommerce-form__label-for-checkbox input { width: auto; min-height: 0; }

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
	border: 1px solid var(--line); border-radius: var(--r-lg);
	background: var(--white); padding: clamp(1.4rem, 3vw, 2.25rem); margin: 0;
}

#customer_login { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 52rem) { #customer_login { grid-template-columns: repeat(2, 1fr); } }
#customer_login .u-column1,
#customer_login .u-column2 { width: auto; float: none; margin: 0; }
#customer_login h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 1.1rem; }

.woocommerce table.shop_table,
.woocommerce table.shop_table_responsive {
	width: 100%; border: 1px solid var(--line); border-radius: var(--r-lg);
	border-collapse: separate; border-spacing: 0; overflow: hidden; margin: 0 0 1.75rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border: 0; border-bottom: 1px solid var(--line); padding: 1rem 1.1rem; vertical-align: middle;
}
.woocommerce table.shop_table thead th {
	background: var(--sand-15);
	font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--text-dim); font-weight: 500;
}
.woocommerce table.shop_table tbody tr:last-child td { border-bottom: 0; }
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td { background: var(--sand-15); font-weight: 600; }
.woocommerce table.shop_table .product-thumbnail img { width: 3.5rem; border-radius: var(--r); background: var(--bg-darker); }
.woocommerce table.shop_table .product-name a { color: var(--text-strong); text-decoration: none; font-weight: 600; }
.woocommerce table.shop_table .product-name a:hover { color: var(--accent); }
.woocommerce table.shop_table td.product-remove a.remove {
	color: var(--text-dim) !important; font-size: 1.2rem; line-height: 1;
}
.woocommerce table.shop_table td.product-remove a.remove:hover { background: transparent; color: #c0392b !important; }

/* Woo's own small-screen stylesheet restacks .shop_table_responsive on phones.
   This is the belt to that braces: if it is ever dequeued, the cart scrolls
   inside its own box instead of dragging the whole page sideways. */
@media (max-width: 48rem) {
	.woocommerce-cart-form,
	.woocommerce-cart .cart_totals { max-width: 100%; overflow-x: auto; }
}

/*
 * Phone overflow. A grid with no explicit columns gets one implicit "auto"
 * column, and auto grows to fit its widest child (a table, a long filename, a
 * select2 box) instead of the screen, so the whole page scrolls sideways. Every
 * single-column grid below is pinned to minmax(0, 1fr), and the grid items are
 * allowed to shrink. Wider breakpoints above override the columns as before.
 */
:where(.prodlayout, .woocommerce ul.products, #customer_login, .woocommerce-checkout #customer_details,
	.woocommerce .woocommerce-Addresses, .acct__grid) { grid-template-columns: minmax(0, 1fr); }

.prodlayout > *,
.woocommerce ul.products > li,
#customer_login > *,
.woocommerce-checkout #customer_details > *,
.woocommerce-Addresses > *,
.acct__grid > * { min-width: 0; }

@media (max-width: 48rem) {
	.woocommerce,
	.woocommerce-page .woocommerce { max-width: 100%; }

	.woocommerce img { max-width: 100%; height: auto; }

	.woocommerce .select2-container,
	.woocommerce form .form-row input.input-text,
	.woocommerce form .form-row select { max-width: 100%; }

	.woocommerce-checkout #order_review,
	.woocommerce-checkout #payment,
	.woocommerce-order-received .woocommerce-order { max-width: 100%; overflow-x: auto; }

	/* Long file names and order numbers wrap rather than push the page wide. */
	.woocommerce table.shop_table td,
	.woocommerce table.shop_table th,
	.woocommerce .product-name,
	.woocommerce-order-details,
	.woocommerce-order-overview li { overflow-wrap: anywhere; }

	.woocommerce table.shop_table th,
	.woocommerce table.shop_table td { padding: 0.8rem 0.85rem; }

	.woocommerce div.product form.cart .button { flex-basis: 100%; }
	.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 0.6rem 0.7rem; }
	.woocommerce table.shop_table_responsive tr td.actions .coupon { display: grid; gap: 0.6rem; }
	.woocommerce table.shop_table_responsive tr td.actions .coupon .input-text { width: 100%; float: none; }
}

.woocommerce .cart-collaterals { margin-top: 1rem; }
.woocommerce .cart-collaterals .cart_totals { width: 100%; float: none; }
@media (min-width: 60rem) { .woocommerce .cart-collaterals .cart_totals { width: min(24rem, 100%); margin-left: auto; } }
.woocommerce .cart_totals h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 1rem; }
.woocommerce .wc-proceed-to-checkout { padding: 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; }

.woocommerce-checkout #customer_details { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
@media (min-width: 60rem) { .woocommerce-checkout #customer_details { grid-template-columns: repeat(2, 1fr); } }
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 { width: auto; float: none; }
.woocommerce-checkout h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 1.1rem; }

#order_review,
.woocommerce-checkout #payment {
	border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
}
.woocommerce-checkout #payment { background: var(--sand-15); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); padding: 1.1rem; }
.woocommerce-checkout #payment div.form-row { padding: 1.1rem; }

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

.woocommerce-account .woocommerce {
	display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
	/* minmax(0,…) rather than the implicit auto: a wide orders table would
	   otherwise stretch its own column and push the page sideways. */
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 58rem) {
	.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}
/* The login screen is a single centred column — no nav to sit beside. */
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: auto; float: none; margin: 0;
	border: 1px solid var(--line); border-radius: var(--r-lg);
	background: var(--white); overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
	padding: 0.9rem 1.1rem;
	border-left: 3px solid transparent;
	font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
	color: var(--text-muted); text-decoration: none;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a::after {
	content: ""; width: 0.45rem; height: 0.45rem; flex: none;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg); opacity: 0.45;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--sand-15); color: var(--text-strong);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--text-dim); }

.woocommerce-account .woocommerce-MyAccount-content {
	width: auto; float: none; margin: 0;
	border: 1px solid var(--line); border-radius: var(--r-lg);
	background: var(--white); padding: clamp(1.4rem, 3vw, 2.25rem);
	color: var(--text-muted); max-width: 100%; overflow-x: auto;
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-content a { color: var(--accent); }
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 { font-family: var(--font-display); color: var(--text-strong); }
.woocommerce-account .woocommerce-MyAccount-content fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; margin: 1.5rem 0; }
.woocommerce-account .woocommerce-MyAccount-content legend { font-family: var(--font-display); font-weight: 600; color: var(--text-strong); padding-inline: 0.4rem; }
.woocommerce-account .woocommerce-MyAccount-content form { border: 0; background: transparent; padding: 0; }

.woocommerce-account .woocommerce-Addresses { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .woocommerce-account .woocommerce-Addresses { grid-template-columns: repeat(2, 1fr); } }
.woocommerce-account .woocommerce-Address { width: auto; float: none; }
.woocommerce-account .woocommerce-Address address { font-style: normal; color: var(--text-muted); }

.woocommerce-account .woocommerce-info { margin-bottom: 1.25rem; }

/* ------------------------------------------------- account dashboard ----- */

.acct__hello { margin: 0 0 1.5rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--text-strong); }

.acct__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 1px; background: var(--line);
	border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
@media (min-width: 40rem) { .acct__grid { grid-template-columns: repeat(2, 1fr); } }

.acctcard {
	background: var(--white); padding: clamp(1.1rem, 2.5vw, 1.6rem);
	display: flex; flex-direction: column; align-items: flex-start;
	transition: background-color var(--dur) var(--ease);
}
.acctcard:hover { background: var(--sand-15); }
.acctcard__icon {
	display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
	border-radius: var(--r); background: var(--accent-soft); color: var(--accent);
	margin-bottom: 0.9rem;
}
.acctcard__title {
	display: flex; align-items: center; gap: 0.5rem;
	font-family: var(--font-display); font-size: 1.05rem; color: var(--text-strong);
	margin: 0 0 0.35rem;
}
.acctcard__count {
	display: inline-grid; place-items: center; min-width: 1.4rem; padding: 0 0.4rem;
	border-radius: 999px; background: var(--accent); color: var(--accent-on);
	font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; line-height: 1.5rem;
}
.acctcard__body { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 1rem; }
.acctcard .btn--quiet { margin-top: auto; }

.acct__foot { margin: 1.5rem 0 0; font-size: 0.88rem; color: var(--text-dim); }

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

.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 0.6rem;
	border: 1px solid var(--line-strong); border-radius: var(--r);
	background: var(--white); color: var(--text);
	font-family: var(--font-mono); font-size: 0.85rem;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--accent); color: var(--accent); background: var(--white); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }

/* -------------------------------------------------------------- dark pages */

body.tpl-tpl-kwikjet-x .prodcard,
body.tpl-tpl-kwikjet .prodcard,
body.tpl-tpl-jetboats .prodcard { background: var(--white); }
