/* =========================================================================
   SpareTimeCustoms — woocommerce.css
   Dark cinematic skin on top of Woo's default templates & stylesheet.
   Loaded after `woocommerce-general` so any specificity ties still win.
   All values reference theme.json preset custom properties.
   ========================================================================= */

.woocommerce,
.woocommerce-page {
	color: var(--wp--preset--color--mirror);
	background: transparent;
}

/* ------------------------------------------------------------------
   Product loop (PLP)
   ------------------------------------------------------------------ */
.woocommerce ul.products,
.woocommerce-page ul.products {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: var(--wp--preset--color--asphalt);
	border: 1px solid var(--wp--preset--color--shadow);
	border-radius: 0;
	padding: 0 0 1rem;
	margin: 0;
	width: 100%;
	float: none;
	transition:
		border-color 200ms var(--stc-ease-quick, ease),
		transform    200ms var(--stc-ease-quick, ease),
		box-shadow   200ms var(--stc-ease-quick, ease);
}

.woocommerce ul.products li.product:hover {
	border-color: var(--wp--preset--color--running-light);
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -20px rgba(245, 166, 35, 0.5);
}

.woocommerce ul.products li.product a img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin: 0;
	box-shadow: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1;
	color: var(--wp--preset--color--mirror);
	text-transform: uppercase;
	padding: 1rem 1.25rem 0.25rem;
	margin: 0;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--2xl);
	color: var(--wp--preset--color--mirror);
	padding: 0 1.25rem;
}

.woocommerce ul.products li.product .price del {
	color: var(--wp--preset--color--steel);
	opacity: 1;
	margin-right: 0.5em;
}

.woocommerce ul.products li.product .price ins {
	background: transparent;
	color: var(--wp--preset--color--running-light);
	text-decoration: none;
	font-weight: 700;
}

/* Hide the default "Sale!" ribbon; we'll replace with our chips elsewhere. */
.woocommerce span.onsale {
	top: 1rem;
	left: 1rem;
	right: auto;
	margin: 0;
	padding: 0.3rem 0.7rem;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: transparent;
	color: var(--wp--preset--color--running-light);
	border: 1px solid var(--wp--preset--color--running-light);
	border-radius: 2px;
}

/* SKU / meta lines on cards */
.woocommerce ul.products li.product .sku,
.woocommerce ul.products li.product .stc-card-sku {
	padding: 1rem 1.25rem 0;
	color: var(--wp--preset--color--steel);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Buttons — anywhere Woo emits .button
   ------------------------------------------------------------------ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #place_order,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce .wc-block-components-button {
	background: var(--wp--preset--color--running-light);
	color: var(--wp--preset--color--void);
	border: 1px solid var(--wp--preset--color--running-light);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.85rem 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color 200ms var(--stc-ease-quick, ease),
		color            200ms var(--stc-ease-quick, ease),
		transform        200ms var(--stc-ease-quick, ease),
		box-shadow       200ms var(--stc-ease-quick, ease);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #place_order:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover {
	background: var(--wp--preset--color--mirror);
	color: var(--wp--preset--color--void);
	transform: translateY(-1px);
	box-shadow: 0 10px 30px -10px rgba(245, 166, 35, 0.55);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order {
	background: var(--wp--preset--color--running-light);
	color: var(--wp--preset--color--void);
}

.woocommerce a.button.added::after {
	color: var(--wp--preset--color--signal-green);
}

/* Outline / secondary buttons */
.woocommerce .checkout-button.button,
.woocommerce a.button.wc-forward:not(.alt) {
	background: var(--wp--preset--color--running-light);
	color: var(--wp--preset--color--void);
}

/* ------------------------------------------------------------------
   Single product (PDP)
   ------------------------------------------------------------------ */
.woocommerce div.product .product_title {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--mirror);
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 0.95;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--wp--preset--color--chrome);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.55;
	max-width: 60ch;
}

.woocommerce div.product .product_meta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
	border-top: 1px solid var(--wp--preset--color--shadow);
	padding-top: 1rem;
	margin-top: 2rem;
}

.woocommerce div.product .product_meta a {
	color: var(--wp--preset--color--chrome);
	text-decoration: none;
}
.woocommerce div.product .product_meta a:hover {
	color: var(--wp--preset--color--running-light);
}

/* Gallery */
.woocommerce div.product div.images {
	background: var(--wp--preset--color--asphalt);
	border: 1px solid var(--wp--preset--color--shadow);
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	opacity: 0.55;
	border: 1px solid transparent;
	transition: opacity 200ms ease, border-color 200ms ease;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: var(--wp--preset--color--running-light);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--wp--preset--color--shadow);
	padding: 0;
	margin: 2rem 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	border-bottom: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	margin: 0 1.5rem 0 0;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: var(--wp--preset--color--running-light);
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 0.85rem 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wp--preset--color--mirror);
}

/* Related / upsells headings */
.woocommerce .related > h2,
.woocommerce .upsells > h2,
.woocommerce .cross-sells > h2 {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--wp--preset--color--running-light);
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------------
   Cart
   ------------------------------------------------------------------ */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
	background: var(--wp--preset--color--asphalt);
	border: 1px solid var(--wp--preset--color--shadow);
	border-radius: 0;
	color: var(--wp--preset--color--chrome);
	border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce-page table.shop_table th {
	background: var(--wp--preset--color--night);
	color: var(--wp--preset--color--steel);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--wp--preset--color--shadow);
	padding: 1rem;
}

.woocommerce table.shop_table td,
.woocommerce-page table.shop_table td {
	border-top: 1px solid var(--wp--preset--color--shadow);
	padding: 1.25rem 1rem;
	color: var(--wp--preset--color--mirror);
}

.woocommerce table.shop_table tbody tr:hover td {
	background: rgba(245, 166, 35, 0.03);
}

.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td {
	background: var(--wp--preset--color--night);
	color: var(--wp--preset--color--mirror);
}

.woocommerce .cart_totals h2,
.woocommerce .cross-sells h2 {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--2xl);
	color: var(--wp--preset--color--mirror);
	text-transform: uppercase;
}

.woocommerce-cart .wc-proceed-to-checkout {
	padding: 1rem 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: block;
	width: 100%;
	background: var(--wp--preset--color--running-light);
	color: var(--wp--preset--color--void);
	text-align: center;
	padding: 1.1rem 1.75rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Forms (checkout, my-account, login)
   ------------------------------------------------------------------ */
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
	color: var(--wp--preset--color--chrome);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select,
.woocommerce .select2-container--default .select2-selection--single {
	background: var(--wp--preset--color--night);
	border: 1px solid var(--wp--preset--color--shadow);
	border-radius: 0;
	color: var(--wp--preset--color--mirror);
	padding: 0.9rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.4;
	width: 100%;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: var(--wp--preset--color--running-light);
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--wp--preset--color--mirror);
	line-height: 1.4;
	padding: 0;
}

.woocommerce .select2-dropdown {
	background: var(--wp--preset--color--night);
	border: 1px solid var(--wp--preset--color--shadow);
	border-radius: 0;
	color: var(--wp--preset--color--mirror);
}

.woocommerce .select2-results__option--highlighted[aria-selected] {
	background: var(--wp--preset--color--running-light);
	color: var(--wp--preset--color--void);
}

/* Quantity input */
.woocommerce .quantity .qty {
	background: var(--wp--preset--color--night);
	border: 1px solid var(--wp--preset--color--shadow);
	color: var(--wp--preset--color--mirror);
	border-radius: 0;
	padding: 0.7rem 0.5rem;
	width: 5rem;
	text-align: center;
	font-family: var(--wp--preset--font-family--mono);
}

/* ------------------------------------------------------------------
   Notices
   ------------------------------------------------------------------ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.woocommerce-notice,
.woocommerce-notice--success {
	background: var(--wp--preset--color--night);
	border-left: 3px solid var(--wp--preset--color--running-light);
	border-top: none;
	border-right: none;
	border-bottom: none;
	border-radius: 0;
	color: var(--wp--preset--color--mirror);
	padding: 1rem 1.25rem;
	font-family: var(--wp--preset--font-family--body);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	color: var(--wp--preset--color--running-light);
	top: 1.1rem;
}

.woocommerce-message {
	border-left-color: var(--wp--preset--color--signal-green);
}
.woocommerce-message::before {
	color: var(--wp--preset--color--signal-green);
}

.woocommerce-error {
	border-left-color: var(--wp--preset--color--brake-red);
}
.woocommerce-error::before {
	color: var(--wp--preset--color--brake-red);
}

/* ------------------------------------------------------------------
   Ratings — amber stars
   ------------------------------------------------------------------ */
.woocommerce .star-rating,
.woocommerce .star-rating::before,
.woocommerce p.stars a::before {
	color: var(--wp--preset--color--running-light);
}

.woocommerce .star-rating span::before {
	color: var(--wp--preset--color--running-light);
}

/* ------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------ */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce-page nav.woocommerce-pagination ul {
	border: none;
	margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: none;
	margin: 0 0.25rem;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	background: transparent;
	border: 1px solid var(--wp--preset--color--shadow);
	color: var(--wp--preset--color--chrome);
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.08em;
	border-radius: 0;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--wp--preset--color--running-light);
	border-color: var(--wp--preset--color--running-light);
	color: var(--wp--preset--color--void);
}

/* ------------------------------------------------------------------
   Breadcrumb strip (emitted by our single/archive overrides)
   ------------------------------------------------------------------ */
.stc-woo-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
	padding: 1.5rem clamp(1.5rem, 5vw, 5rem);
	background: var(--wp--preset--color--night);
	border-bottom: 1px solid var(--wp--preset--color--shadow);
}

.stc-woo-breadcrumb a {
	color: var(--wp--preset--color--chrome);
	text-decoration: none;
}

.stc-woo-breadcrumb a:hover {
	color: var(--wp--preset--color--running-light);
}

.stc-woo-breadcrumb__sep {
	color: var(--wp--preset--color--steel);
}

/* ------------------------------------------------------------------
   Our template-override classes
   ------------------------------------------------------------------ */
.stc-woo-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--asphalt);
	border: 1px solid var(--wp--preset--color--shadow);
	position: relative;
	transition:
		border-color 200ms var(--stc-ease-quick, ease),
		transform    200ms var(--stc-ease-quick, ease),
		box-shadow   200ms var(--stc-ease-quick, ease);
}

.stc-woo-card:hover {
	border-color: var(--wp--preset--color--running-light);
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -20px rgba(245, 166, 35, 0.5);
}

.stc-woo-card__media {
	position: relative;
	overflow: hidden;
}

.stc-woo-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.stc-woo-card__chip {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
}

.stc-woo-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.stc-woo-card__sku {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
	margin: 0;
}

.stc-woo-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1;
	color: var(--wp--preset--color--mirror);
	text-transform: uppercase;
	margin: 0;
}

.stc-woo-card__title a {
	color: inherit;
	text-decoration: none;
}

.stc-woo-card__title a:hover {
	color: var(--wp--preset--color--running-light);
}

.stc-woo-card__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--2xl);
	color: var(--wp--preset--color--mirror);
	line-height: 1;
	margin: 0.25rem 0;
}

.stc-woo-card__fitment {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.stc-woo-card__actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.stc-woo-card__actions .button,
.stc-woo-card__actions a.button {
	flex: 1 1 auto;
	text-align: center;
	padding: 0.75rem 1rem;
}

/* PDP override layout */
.stc-woo-pdp {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 5rem);
	background: var(--wp--preset--color--void);
}

@media (max-width: 900px) {
	.stc-woo-pdp {
		grid-template-columns: 1fr;
	}
}

.stc-woo-pdp__gallery {
	position: relative;
	background: var(--wp--preset--color--asphalt);
	border: 1px solid var(--wp--preset--color--shadow);
	min-height: 420px;
}

.stc-woo-pdp__summary {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.stc-woo-pdp__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.5rem 0 1rem;
}

/* Collapse Woo's default sidebar / widgets inside the shop — our block
   templates don't emit it, but plugins sometimes do. */
.woocommerce-sidebar,
.woocommerce .widget-area {
	display: none;
}

/* =========================================================================
   Phase 8B — Block-template PLP cards
   archive-product.html renders via wp:query + wp:post-template, which emits
   .wp-block-post-template > .wp-block-post. Classic Woo selectors above
   don't catch these, so mirror the hover treatment here.
   ========================================================================= */
.wp-block-post-template.stc-product-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 1.5rem;
}

.wp-block-post-template .wp-block-post.stc-product-card,
.wc-block-grid__product {
	background: var(--wp--preset--color--asphalt);
	border: 1px solid var(--wp--preset--color--shadow);
	border-radius: 0;
	overflow: hidden;
	position: relative;
	transition:
		border-color 200ms var(--stc-ease-quick, ease),
		transform    200ms var(--stc-ease-quick, ease),
		box-shadow   200ms var(--stc-ease-quick, ease);
}

.wp-block-post-template .wp-block-post.stc-product-card:hover,
.wc-block-grid__product:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--running-light);
	box-shadow:
		0 0 0 1px var(--wp--preset--color--running-light),
		0 20px 50px -25px rgba(245, 166, 35, 0.55);
}

.wp-block-post-template .wp-block-post.stc-product-card .stc-product-card__image-wrap,
.wp-block-post-template .wp-block-post.stc-product-card .wp-block-post-featured-image,
.wc-block-grid__product-image {
	display: block;
	overflow: hidden;
	margin: 0;
	background: var(--wp--preset--color--night);
}

.wp-block-post-template .wp-block-post.stc-product-card .wp-block-post-featured-image img,
.wp-block-post-template .wp-block-post.stc-product-card .stc-product-card__image-wrap img,
.wc-block-grid__product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 400ms var(--stc-ease-snap, ease);
	will-change: transform;
}

.wp-block-post-template .wp-block-post.stc-product-card:hover .wp-block-post-featured-image img,
.wp-block-post-template .wp-block-post.stc-product-card:hover .stc-product-card__image-wrap img,
.wc-block-grid__product:hover .wc-block-grid__product-image img {
	transform: scale(1.02);
}

.wp-block-post-template .wp-block-post.stc-product-card .wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1;
	color: var(--wp--preset--color--mirror);
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}

.wp-block-post-template .wp-block-post.stc-product-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post-template .wp-block-post.stc-product-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--running-light);
}

.wp-block-post-template .wp-block-post.stc-product-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--chrome);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.55;
}

/* =========================================================================
   Phase 8B — Cart (.stc-woo-cart) + Cart Block
   ========================================================================= */
.stc-woo-cart,
.woocommerce-cart .woocommerce {
	color: var(--wp--preset--color--mirror);
}

.stc-woo-cart table.shop_table,
.woocommerce-cart table.shop_table {
	background: var(--wp--preset--color--night);
	border: 1px solid var(--wp--preset--color--shadow);
	color: var(--wp--preset--color--mirror);
}

.stc-woo-cart table.shop_table tbody tr td,
.woocommerce-cart table.shop_table tbody tr td {
	background: var(--wp--preset--color--night);
	border-top: 1px solid var(--wp--preset--color--shadow);
	color: var(--wp--preset--color--mirror);
}

.stc-woo-cart table.shop_table a.remove,
.woocommerce-cart table.shop_table a.remove {
	color: var(--wp--preset--color--steel) !important;
	background: transparent !important;
	font-weight: 400;
	border: 1px solid var(--wp--preset--color--shadow);
	border-radius: 50%;
	width: 22px;
	height: 22px;
	line-height: 20px;
	display: inline-block;
	text-align: center;
	transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.stc-woo-cart table.shop_table a.remove:hover,
.woocommerce-cart table.shop_table a.remove:hover {
	color: var(--wp--preset--color--void) !important;
	background: var(--wp--preset--color--running-light) !important;
	border-color: var(--wp--preset--color--running-light);
}

.stc-woo-cart .cart_totals,
.woocommerce-cart .cart_totals {
	background: var(--wp--preset--color--night);
	border: 1px solid var(--wp--preset--color--shadow);
	padding: 1.5rem;
}

.stc-woo-cart .cart_totals table,
.woocommerce-cart .cart_totals table {
	background: transparent;
	border: none;
}

.stc-woo-cart a.checkout-button,
.woocommerce-cart a.checkout-button,
.wc-block-cart__submit-button {
	background: var(--wp--preset--color--running-light) !important;
	color: var(--wp--preset--color--void) !important;
	border-radius: 0 !important;
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.stc-woo-cart .coupon input.input-text,
.woocommerce-cart .coupon input.input-text {
	background: var(--wp--preset--color--asphalt);
	border: 1px solid var(--wp--preset--color--shadow);
	color: var(--wp--preset--color--mirror);
}

/* =========================================================================
   Phase 8B — Checkout (.stc-woo-checkout) + Checkout Block
   ========================================================================= */
.stc-woo-checkout,
.woocommerce-checkout .woocommerce {
	color: var(--wp--preset--color--mirror);
}

.stc-woo-checkout form.checkout,
.woocommerce-checkout form.checkout,
.stc-woo-checkout #order_review,
.woocommerce-checkout #order_review {
	background: transparent;
}

.stc-woo-checkout form .form-row input.input-text,
.stc-woo-checkout form .form-row textarea,
.stc-woo-checkout form .form-row select,
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout form .form-row select,
.wc-block-components-text-input input,
.wc-block-components-select select {
	background: var(--wp--preset--color--asphalt) !important;
	border: 1px solid var(--wp--preset--color--shadow) !important;
	color: var(--wp--preset--color--chrome) !important;
	border-radius: 0 !important;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.stc-woo-checkout form .form-row input.input-text::placeholder,
.stc-woo-checkout form .form-row textarea::placeholder,
.woocommerce-checkout form .form-row input.input-text::placeholder,
.woocommerce-checkout form .form-row textarea::placeholder,
.wc-block-components-text-input input::placeholder {
	color: var(--wp--preset--color--steel);
}

.stc-woo-checkout form .form-row input.input-text:focus,
.stc-woo-checkout form .form-row textarea:focus,
.stc-woo-checkout form .form-row select:focus,
.woocommerce-checkout form .form-row input.input-text:focus,
.woocommerce-checkout form .form-row textarea:focus,
.woocommerce-checkout form .form-row select:focus,
.wc-block-components-text-input input:focus {
	outline: none !important;
	border-color: var(--wp--preset--color--running-light) !important;
	box-shadow: 0 0 0 2px var(--wp--preset--color--running-light) !important;
}

.stc-woo-checkout form .form-row label,
.woocommerce-checkout form .form-row label,
.wc-block-components-checkbox__label,
.wc-block-components-text-input label {
	color: var(--wp--preset--color--chrome) !important;
}

.stc-woo-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-review-order {
	background: var(--wp--preset--color--night);
	border: 1px solid var(--wp--preset--color--shadow);
	padding: 1.5rem;
}

.stc-woo-checkout #payment,
.woocommerce-checkout #payment {
	background: var(--wp--preset--color--night) !important;
	border: 1px solid var(--wp--preset--color--shadow) !important;
	border-radius: 0;
}

.stc-woo-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
	background: transparent;
	border-bottom: 1px solid var(--wp--preset--color--shadow);
}

.stc-woo-checkout #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
	background: var(--wp--preset--color--asphalt);
	color: var(--wp--preset--color--chrome);
}
.stc-woo-checkout #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--wp--preset--color--asphalt);
}

/* Match select2 enhanced selects to match native field height/dark surface */
.woocommerce .select2-container--default .select2-selection--single {
	height: auto;
	min-height: 46px;
}

/* =========================================================================
   Phase 8B — Notices (classic + block-based)
   ========================================================================= */
.wc-block-components-notice-banner {
	background: var(--wp--preset--color--night) !important;
	border-radius: 0 !important;
	border-left: 3px solid var(--wp--preset--color--running-light) !important;
	color: var(--wp--preset--color--mirror) !important;
	padding: 1rem 1.25rem !important;
}

.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-default {
	border-left-color: var(--wp--preset--color--signal-green) !important;
}
.wc-block-components-notice-banner.is-info {
	border-left-color: var(--wp--preset--color--marker-blue) !important;
}
.wc-block-components-notice-banner.is-error {
	border-left-color: var(--wp--preset--color--brake-red) !important;
}

.woocommerce-info {
	border-left-color: var(--wp--preset--color--marker-blue);
}
.woocommerce-info::before {
	color: var(--wp--preset--color--marker-blue);
}

/* =========================================================================
   Phase 8B — Sticky PDP CTA bar
   Hidden off-canvas below; JS toggles .is-visible after 40vh scroll.
   Desktops >= 1200px can use the inline form, no sticky needed.
   ========================================================================= */
.stc-pdp-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	background: var(--wp--preset--color--void);
	border-top: 1px solid var(--wp--preset--color--chrome);
	transform: translateY(100%);
	transition: transform 250ms var(--stc-ease-snap, ease);
	box-shadow: 0 -12px 30px -10px rgba(0, 0, 0, 0.6);
	pointer-events: auto;
}

.stc-pdp-sticky.is-hidden {
	transform: translateY(100%);
	pointer-events: none;
}

.stc-pdp-sticky.is-visible {
	transform: translateY(0);
}

.stc-pdp-sticky__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0.9rem clamp(1rem, 4vw, 2rem);
}

.stc-pdp-sticky__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1 1 auto;
}

.stc-pdp-sticky__title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--chrome);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.stc-pdp-sticky__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	color: var(--wp--preset--color--mirror);
	line-height: 1;
	margin: 0;
}

.stc-pdp-sticky__cta {
	background: var(--wp--preset--color--running-light);
	color: var(--wp--preset--color--void);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 1rem 1.5rem;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--running-light);
	line-height: 1;
	white-space: nowrap;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.stc-pdp-sticky__cta:hover {
	background: var(--wp--preset--color--mirror);
	color: var(--wp--preset--color--void);
	transform: translateY(-1px);
}

@media (min-width: 1200px) {
	.stc-pdp-sticky {
		display: none;
	}
}
