/**
 * Nexus — WooCommerce storefront styles
 *
 * @package Nexus
 */

/* --------------------------------------------------------------------------
   Layout shell
   -------------------------------------------------------------------------- */

.nexus-woocommerce-main,
.nexus-woocommerce-page-wrap {
	padding: 2rem 20px;
	max-width: var(--nexus-container-width, 1200px);
	margin: 0 auto;
	box-sizing: border-box;
}

.nexus-woocommerce-view .site-main {
	padding: 0;
}

.nexus-woocommerce-view .woocommerce-breadcrumb {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted);
}

.nexus-woocommerce-view .woocommerce-breadcrumb a {
	color: var(--nexus-link);
	text-decoration: none;
}

.nexus-woocommerce-view .woocommerce-breadcrumb a:hover {
	color: var(--nexus-link-hover);
	text-decoration: underline;
}

/* WC default breadcrumb delimiter spacing */
.woocommerce-breadcrumb {
	word-spacing: 0.05em;
}

.nexus-woocommerce-view .woocommerce-products-header {
	margin-bottom: 1.75rem;
}

.nexus-woocommerce-view .woocommerce-products-header__title,
.nexus-woocommerce-view .entry-title,
.nexus-wc-virtual-page .woocommerce-products-header__title {
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	font-weight: 700;
	color: var(--nexus-body-text, #0f172a);
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.nexus-woocommerce-view .term-description,
.nexus-woocommerce-view .woocommerce-result-count {
	color: var(--nexus-body-text-muted);
	font-size: 0.8125rem;
}

.nexus-woocommerce-view .woocommerce-ordering {
	margin: 0 0 1.5rem;
}

.nexus-woocommerce-view .woocommerce-ordering select {
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	border: 1px solid var(--nexus-input-border);
	border-radius: var(--nexus-radius);
	background: var(--nexus-surface);
	color: var(--nexus-body-text);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .nexus-btn {
	background: var(--nexus-button-bg);
	color: var(--nexus-button-text) !important;
	border: none;
	padding: 0.45rem 0.9rem;
	border-radius: var(--nexus-radius);
	text-decoration: none;
	display: inline-block;
	font-weight: 600;
	font-size: 0.8125rem;
	line-height: 1.35;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--nexus-button-hover-bg);
	color: var(--nexus-button-hover-text) !important;
	text-decoration: none;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--nexus-primary);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--nexus-primary-hover);
}

/* --------------------------------------------------------------------------
   Product grid (shop, related, shortcodes)
   -------------------------------------------------------------------------- */

.woocommerce ul.products,
.woocommerce-page ul.products {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 1.5rem;
	clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product {
	list-style: none;
	margin: 0 !important;
	padding: 0;
	width: auto !important;
	float: none !important;
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
	overflow: visible;
	box-shadow: var(--nexus-shadow-sm);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
.nexus-wc-loop-thumbnail {
	position: relative;
	overflow: hidden;
	border-radius: var(--nexus-radius-lg) var(--nexus-radius-lg) 0 0;
}

.woocommerce ul.products li.product:hover {
	box-shadow: var(--nexus-shadow);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-placeholder,
.woocommerce ul.products li.product img.woocommerce-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	height: auto;
	margin: 0;
	background: var(--nexus-surface-alt);
}

.woocommerce ul.products li.product img.nexus-product-placeholder-img,
.nexus-woocommerce-single img.nexus-product-placeholder-img,
.nexus-wc-placeholder-wrap .nexus-wc-placeholder-img {
	object-fit: contain;
	padding: 1.5rem;
	box-sizing: border-box;
	background: var(--nexus-surface-alt);
}

.nexus-wc-placeholder-wrap {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
	border-radius: inherit;
	overflow: hidden;
}

.nexus-wc-placeholder-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.woocommerce div.product div.images .woocommerce-product-gallery--without-images {
	opacity: 1 !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder {
	min-height: 280px;
	background: var(--nexus-surface-alt);
	border-radius: var(--nexus-radius);
}

.woocommerce table.shop_table .product-thumbnail .nexus-wc-placeholder-wrap,
.woocommerce-mini-cart-item .nexus-wc-placeholder-wrap {
	width: 56px;
	height: 56px;
	aspect-ratio: auto;
}

.woocommerce table.shop_table .product-thumbnail .nexus-wc-placeholder-wrap img,
.woocommerce-mini-cart-item .nexus-wc-placeholder-wrap img {
	padding: 0.35rem;
}

.nexus-mini-cart-panel .nexus-wc-placeholder-wrap {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
}

.nexus-mini-cart-panel .nexus-wc-placeholder-wrap img {
	object-fit: cover;
	padding: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0.65rem 0.85rem 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--nexus-body-text, #0f172a);
	margin: 0;
	line-height: 1.3;
}

.woocommerce ul.products li.product .star-rating {
	margin: 0.2rem 0.85rem 0.25rem;
	font-size: 0.75rem;
}

.woocommerce ul.products li.product .price {
	padding: 0 0.85rem 0.55rem;
	color: var(--nexus-primary);
	font-weight: 700;
	font-size: 0.875rem;
	margin: 0;
	line-height: 1.35;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	font-size: inherit;
	font-weight: inherit;
}

.woocommerce ul.products li.product .price del {
	color: var(--nexus-body-text-muted);
	font-weight: 400;
	font-size: 0.75rem;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin: 0;
	align-self: auto;
}

/* Hide default WC sale flash in loops — Nexus uses stacked pill badges instead */
.woocommerce ul.products li.product > .onsale {
	display: none !important;
}

.woocommerce span.onsale {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	right: auto;
	z-index: 4;
	width: auto;
	min-width: auto;
	min-height: auto;
	padding: 0.2rem 0.55rem;
	background: var(--nexus-accent, #e11d48);
	color: var(--nexus-button-text, #fff);
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transform: none;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.woocommerce div.product span.onsale {
	top: 0.65rem;
	left: 0.65rem;
	right: auto;
}

/* Builder WooCommerce block on landing pages */
.nexus-el-woo-grid.woocommerce ul.products {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Single product
   -------------------------------------------------------------------------- */

.nexus-woocommerce-single .product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
	margin-bottom: 3rem;
}

.nexus-woocommerce-single div.product div.images,
.nexus-woocommerce-single div.product div.summary {
	width: 100% !important;
	float: none !important;
	margin: 0;
}

.nexus-woocommerce-single div.product div.images {
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
	padding: 1rem;
	box-shadow: var(--nexus-shadow-sm);
	position: relative;
}

.nexus-product-gallery-main {
	position: relative;
}

.nexus-gallery-zoom-hint {
	display: block;
	width: 100%;
	margin: 0.65rem 0 0;
	padding: 0.45rem 0.65rem;
	border: 0;
	border-radius: var(--nexus-radius);
	background: var(--nexus-surface-alt);
	color: var(--nexus-body-text-muted);
	font-size: 0.8125rem;
	text-align: center;
	cursor: pointer;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 2;
	background: rgba(15, 23, 42, 0.72);
	color: var(--nexus-button-text, #fff);
	border-radius: 999px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-indent: -9999px;
	overflow: hidden;
	border: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
	content: "";
	position: static;
	width: 18px;
	height: 18px;
	background:
		linear-gradient(#fff, #fff) center/12px 2px no-repeat,
		linear-gradient(#fff, #fff) center/2px 12px no-repeat;
	text-indent: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image a {
	display: block;
	cursor: zoom-in;
}

.woocommerce div.product div.images .flex-viewport {
	border-radius: var(--nexus-radius);
	overflow: hidden;
	background: var(--nexus-surface-alt);
}

.woocommerce div.product div.images .zoomImg {
	background-color: var(--nexus-surface);
	border-radius: var(--nexus-radius);
}

.woocommerce div.product div.images .woocommerce-product-gallery {
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder {
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder img,
.woocommerce div.product div.images img.wp-post-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--nexus-radius);
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	border: 2px solid transparent;
	border-radius: 6px;
	opacity: 0.75;
	cursor: pointer;
	width: 100%;
	height: auto;
	display: block;
}

.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(--nexus-primary);
}

.nexus-woocommerce-single div.product .product_title,
.nexus-layout-product-title .product_title,
.nexus-layout-product-title h1 {
	font-size: clamp(1.125rem, 2.5vw, 1.5rem);
	font-weight: 700;
	color: var(--nexus-body-text, #0f172a);
	margin: 0 0 0.65rem;
	line-height: 1.2;
}

.nexus-woocommerce-single div.product p.price {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--nexus-primary);
	margin: 0 0 1rem;
	line-height: 1.5;
}

.nexus-woocommerce-single div.product p.price .woocommerce-Price-amount {
	white-space: nowrap;
	unicode-bidi: isolate;
}

.nexus-woocommerce-single div.product p.price del {
	opacity: 0.75;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.nexus-woocommerce-single div.product p.price ins {
	text-decoration: none;
	font-weight: 700;
}

.nexus-woocommerce-single div.product .woocommerce-product-details__short-description {
	color: var(--nexus-body-text);
	margin-bottom: 1.25rem;
	line-height: 1.65;
}

.nexus-woocommerce-single div.product form.cart {
	margin: 1.25rem 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.nexus-woocommerce-single div.product form.cart .nexus-wc-single-product-actions {
	margin: 0 0 0 auto;
	flex: 0 0 auto;
	order: 10;
}

.nexus-woocommerce-single div.product form.cart .quantity {
	margin: 0;
}

.nexus-woocommerce-single div.product form.cart .quantity .qty {
	width: 4.5rem;
	padding: 0.55rem 0.5rem;
	border: 1px solid var(--nexus-input-border);
	border-radius: var(--nexus-radius);
	text-align: center;
	background: var(--nexus-surface);
	color: var(--nexus-body-text);
}

.nexus-woocommerce-single div.product .product_meta {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--nexus-border);
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted);
}

@media (min-width: 992px) {
	.nexus-woocommerce-single .product {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 3rem;
	}

	.nexus-gallery-zoom-hint {
		display: inline-block;
		width: auto;
	}
}

@media (max-width: 782px) {
	.nexus-woocommerce-single .product {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.nexus-gallery-zoom-hint {
		font-size: 0.75rem;
	}

	.woocommerce div.product div.images .flex-control-thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.nexus-woocommerce-single .woocommerce-tabs {
	margin-top: 2.5rem;
	clear: both;
	position: relative;
	z-index: 3;
	background: var(--nexus-body-bg);
}

.nexus-woocommerce-single .woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	border-bottom: 1px solid var(--nexus-border);
}

.nexus-woocommerce-single .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
}

.nexus-woocommerce-single .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.65rem 1rem;
	text-decoration: none;
	color: var(--nexus-body-text-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.nexus-woocommerce-single .woocommerce-tabs ul.tabs li.active a,
.nexus-woocommerce-single .woocommerce-tabs ul.tabs li a:hover {
	color: var(--nexus-primary);
	border-bottom-color: var(--nexus-primary);
}

.nexus-woocommerce-single .woocommerce-tabs .panel {
	padding: 1.25rem 0;
	color: var(--nexus-body-text);
}

.nexus-woocommerce-single .related.products,
.nexus-woocommerce-single .upsells.products {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--nexus-border);
	position: relative;
	z-index: 3;
	clear: both;
	background: var(--nexus-body-bg);
}

.nexus-woocommerce-single .related.products > h2,
.nexus-woocommerce-single .upsells.products > h2 {
	font-size: 1.35rem;
	margin: 0 0 1.25rem;
	text-align: center;
}

.nexus-woocommerce-single .nexus-wc-sp-section {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--nexus-border);
	position: relative;
	z-index: 3;
	clear: both;
}

body.nexus-wc-sp-carousel .nexus-woocommerce-single .related.products ul.products,
body.nexus-wc-sp-carousel .nexus-woocommerce-single .upsells.products ul.products,
body.nexus-wc-sp-carousel .nexus-woocommerce-single .nexus-wc-sp-section ul.products {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.35rem;
	scrollbar-width: thin;
	max-width: 100%;
}

body.nexus-wc-sp-carousel .nexus-woocommerce-single .related.products ul.products li.product,
body.nexus-wc-sp-carousel .nexus-woocommerce-single .upsells.products ul.products li.product,
body.nexus-wc-sp-carousel .nexus-woocommerce-single .nexus-wc-sp-section ul.products li.product {
	flex: 0 0 clamp(220px, calc((100% - 3 * 1rem) / 4), 280px);
	scroll-snap-align: start;
	height: auto;
	align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */

.nexus-woocommerce-cart .woocommerce {
	max-width: 100%;
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
	overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--nexus-border);
	text-align: left;
	vertical-align: middle;
	font-size: 0.8125rem;
}

.woocommerce table.shop_table thead th {
	background: var(--nexus-surface-alt);
	font-weight: 600;
	font-size: 0.75rem;
	color: var(--nexus-body-text, #0f172a);
}

.woocommerce table.shop_table .product-thumbnail img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.woocommerce table.shop_table .product-name a {
	color: var(--nexus-body-text, #0f172a);
	font-weight: 600;
	font-size: 0.8125rem;
	text-decoration: none;
}

.woocommerce table.shop_table .product-name a:hover {
	color: var(--nexus-primary);
}

.woocommerce table.shop_table .product-remove a {
	color: var(--nexus-body-text-muted);
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
}

.woocommerce table.shop_table .product-remove a:hover {
	color: #dc2626;
}

.woocommerce-cart .cart-collaterals {
	display: grid;
	grid-template-columns: 1fr minmax(280px, 380px);
	gap: 2rem;
	align-items: start;
}

.woocommerce-cart .cart_totals {
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
	padding: 0.85rem;
	box-shadow: var(--nexus-shadow-sm);
}

.woocommerce-cart .cart_totals h2 {
	font-size: 0.9375rem;
	margin: 0 0 0.65rem;
}

.woocommerce-cart .wc-proceed-to-checkout {
	margin-top: 1rem;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	text-align: center;
}

.woocommerce .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1rem;
}

.woocommerce .coupon .input-text {
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--nexus-input-border);
	border-radius: var(--nexus-radius);
	min-width: 180px;
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.nexus-woocommerce-checkout .woocommerce {
	max-width: 100%;
}

.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 2.5rem;
	align-items: start;
}

.woocommerce-checkout #customer_details {
	grid-column: 1;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
	grid-column: 2;
}

.woocommerce-checkout .col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.woocommerce-checkout .form-row {
	margin: 0 0 1rem;
}

.woocommerce-checkout .form-row label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 500;
	color: var(--nexus-body-text, #0f172a);
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--nexus-input-border);
	border-radius: var(--nexus-radius);
	background: var(--nexus-surface);
	color: var(--nexus-body-text);
	box-sizing: border-box;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
	border-color: var(--nexus-input-focus);
	outline: 2px solid rgba(15, 118, 110, 0.15);
	outline-offset: 0;
}

.woocommerce-checkout #order_review {
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
	padding: 1.25rem;
	box-shadow: var(--nexus-shadow-sm);
}

.woocommerce-checkout #payment {
	background: var(--nexus-surface-alt);
	border-radius: var(--nexus-radius);
	padding: 1rem;
	margin-top: 1rem;
}

.woocommerce-checkout #payment ul.payment_methods {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
	margin: 0 0 0.5rem;
}

/* --------------------------------------------------------------------------
   My Account
   -------------------------------------------------------------------------- */

.nexus-woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
	padding: 0.75rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	border-bottom: 1px solid var(--nexus-border-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.65rem 0.75rem;
	text-decoration: none;
	color: var(--nexus-body-text);
	border-radius: 6px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--nexus-surface-alt);
	color: var(--nexus-primary);
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
	padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   Shop sidebar layout
   -------------------------------------------------------------------------- */

.nexus-shop-with-sidebar {
	align-items: start;
}

.nexus-shop-with-sidebar .nexus-woocommerce-main {
	min-width: 0;
	position: relative;
	z-index: 1;
}

.shop-sidebar-area {
	position: relative;
	z-index: 5;
	isolation: isolate;
}

.widget-area.sidebar .woocommerce-product-search,
.shop-sidebar-area .woocommerce-product-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
	position: relative;
	z-index: 2;
	isolation: isolate;
}

.widget-area.sidebar .woocommerce-product-search label,
.shop-sidebar-area .woocommerce-product-search label {
	flex: 1 1 100%;
	margin: 0;
}

.widget-area.sidebar .woocommerce-product-search label.screen-reader-text,
.shop-sidebar-area .woocommerce-product-search label.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	flex: none !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.widget-area.sidebar .woocommerce-product-search .search-field,
.shop-sidebar-area .woocommerce-product-search .search-field {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	padding: 0.55rem 0.75rem;
	font-size: 0.95rem;
	border: 1px solid var(--nexus-input-border);
	border-radius: 4px;
	background: var(--nexus-body-bg);
	color: var(--nexus-body-text);
	pointer-events: auto;
	position: relative;
	z-index: 1;
}

.widget-area.sidebar .woocommerce-product-search button,
.shop-sidebar-area .woocommerce-product-search button {
	flex: 0 0 auto;
	padding: 0.55rem 0.9rem;
	border: 0;
	border-radius: 4px;
	background: var(--nexus-primary);
	color: var(--nexus-button-text);
	cursor: pointer;
	pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 0.85rem 1rem 0.85rem 3rem;
	margin: 0 0 1rem;
	border-radius: var(--nexus-radius);
	list-style: none;
	position: relative;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	width: 1.25rem;
	height: 1.25rem;
	line-height: 1.25rem;
	text-align: center;
}

.woocommerce-message {
	background: #ecfdf5;
	border-left: 4px solid #059669;
	color: #065f46;
}

.woocommerce-info {
	background: #ecfeff;
	border-left: 4px solid var(--nexus-accent);
	color: #0e7490;
}

.woocommerce-error {
	background: #fef2f2;
	border-left: 4px solid #dc2626;
	color: #991b1b;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	}

	.nexus-woocommerce-single .product {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.woocommerce-cart .cart-collaterals {
		grid-template-columns: 1fr;
	}

	.woocommerce-checkout form.checkout {
		grid-template-columns: 1fr;
	}

	.woocommerce-checkout #customer_details,
	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review {
		grid-column: 1;
	}

	.woocommerce-checkout .col2-set {
		grid-template-columns: 1fr;
	}

	.nexus-woocommerce-account .woocommerce {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.nexus-woocommerce-main,
	.nexus-woocommerce-page-wrap {
		padding: 1.25rem 16px;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.woocommerce table.shop_table thead {
		display: none;
	}

	.woocommerce table.shop_table tr {
		display: block;
		border-bottom: 1px solid var(--nexus-border);
		padding: 0.75rem 0;
	}

	.woocommerce table.shop_table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border: none;
		padding: 0.35rem 1rem;
	}

	.woocommerce table.shop_table td::before {
		content: attr(data-title);
		font-weight: 600;
		color: var(--nexus-body-text, #0f172a);
		margin-right: 1rem;
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}

/* Do not let builder preview styles break live shop pages */
body.nexus-woocommerce-view:not(.nexus-builder-active) .woocommerce ul.products {
	display: grid !important;
}

body.nexus-woocommerce-view:not(.nexus-builder-active) .woocommerce ul.products li.product {
	width: auto !important;
	float: none !important;
}

/* --------------------------------------------------------------------------
   Header mini-cart
   -------------------------------------------------------------------------- */

.nexus-header-cart {
	position: relative;
}

.nexus-cart-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

/* Count badges: positioned in style.css under .header-actions (single alignment for cart/wishlist/compare). */

.nexus-mini-cart-panel {
	position: absolute;
	top: calc(100% + 0.65rem);
	right: 0;
	width: min(360px, calc(100vw - 2rem));
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
	box-shadow: var(--nexus-shadow-lg);
	padding: 0.75rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 10050;
	pointer-events: none;
}

.nexus-header-cart.is-open .nexus-mini-cart-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Reset WooCommerce widget defaults (floats, absolute remove) inside header panel */
.nexus-mini-cart-panel .nexus-mini-cart-panel-inner,
.nexus-mini-cart-panel .widget_shopping_cart_content {
	display: block;
	min-width: 0;
}

.nexus-mini-cart-panel .woocommerce-mini-cart.cart_list,
.nexus-mini-cart-panel ul.product_list_widget {
	list-style: none !important;
	margin: 0 0 0.75rem !important;
	padding: 0 !important;
}

.nexus-mini-cart-panel .cart_list li,
.nexus-mini-cart-panel .product_list_widget li,
.nexus-mini-cart-panel .woocommerce-mini-cart-item,
.nexus-mini-cart-panel .nexus-mini-cart-item {
	margin: 0 !important;
	padding: 0.5rem 0 !important;
	padding-left: 0 !important;
	overflow: visible;
	position: relative;
	clear: none;
}

.nexus-mini-cart-panel .cart_list li::before,
.nexus-mini-cart-panel .cart_list li::after,
.nexus-mini-cart-panel .product_list_widget li::before,
.nexus-mini-cart-panel .product_list_widget li::after {
	content: none !important;
	display: none !important;
}

.nexus-mini-cart-panel .woocommerce-mini-cart {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	max-height: 280px;
	overflow-y: auto;
}

.nexus-mini-cart-panel .woocommerce-mini-cart-item,
.nexus-mini-cart-panel .nexus-mini-cart-item {
	display: grid;
	grid-template-columns: 1.25rem 48px minmax(0, 1fr);
	gap: 0.35rem 0.5rem;
	align-items: start;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--nexus-border-light);
}

.nexus-mini-cart-panel .woocommerce-mini-cart-item > *,
.nexus-mini-cart-panel .nexus-mini-cart-item > * {
	float: none !important;
	min-width: 0;
}

.nexus-mini-cart-panel .woocommerce-mini-cart-item .remove,
.nexus-mini-cart-panel .nexus-mini-cart-item .remove {
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: center;
	position: static !important;
	float: none !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	font-size: 1.1rem;
	line-height: 1;
	width: 1.25rem;
	height: 1.25rem;
	text-align: center;
	color: var(--nexus-body-text-muted);
	text-decoration: none;
	border: 0;
	background: none;
	box-shadow: none;
	border-radius: 4px;
	transition: color 0.15s ease, background 0.15s ease;
}

.nexus-mini-cart-panel .woocommerce-mini-cart-item .remove:hover,
.nexus-mini-cart-panel .nexus-mini-cart-item .remove:hover {
	color: var(--nexus-danger, #dc2626);
	background: color-mix(in srgb, var(--nexus-danger, #dc2626) 10%, transparent);
}

.nexus-mini-cart-panel .nexus-mini-cart-item__thumb {
	grid-column: 2;
	grid-row: 1 / -1;
	align-self: start;
	min-width: 0;
}

.nexus-mini-cart-panel .nexus-mini-cart-item__thumb a {
	display: block;
	line-height: 0;
	float: none !important;
	margin: 0 !important;
}

.nexus-mini-cart-panel .nexus-mini-cart-item__body {
	grid-column: 3;
	grid-row: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
}

.nexus-mini-cart-panel .woocommerce-mini-cart-item img,
.nexus-mini-cart-panel .nexus-mini-cart-item__thumb img {
	width: 48px !important;
	height: 48px !important;
	max-width: 48px !important;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	float: none !important;
	margin: 0 !important;
	box-shadow: none;
}

.nexus-mini-cart-panel .nexus-mini-cart-item__name {
	display: block;
	width: 100%;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--nexus-body-text);
	text-decoration: none;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.nexus-mini-cart-panel .nexus-mini-cart-item__name:hover {
	color: var(--nexus-primary);
}

.nexus-mini-cart-panel .woocommerce-mini-cart-item dl,
.nexus-mini-cart-panel .nexus-mini-cart-item dl,
.nexus-mini-cart-panel .woocommerce-mini-cart-item .variation,
.nexus-mini-cart-panel .nexus-mini-cart-item .variation {
	margin: 0.15rem 0 0;
	font-size: 0.6875rem;
	line-height: 1.35;
	color: var(--nexus-body-text-muted);
}

.nexus-mini-cart-panel .woocommerce-mini-cart-item dl dt,
.nexus-mini-cart-panel .nexus-mini-cart-item dl dt,
.nexus-mini-cart-panel .woocommerce-mini-cart-item .variation dt,
.nexus-mini-cart-panel .nexus-mini-cart-item .variation dt {
	display: inline;
	margin: 0;
	font-weight: 600;
}

.nexus-mini-cart-panel .woocommerce-mini-cart-item dl dd,
.nexus-mini-cart-panel .nexus-mini-cart-item dl dd,
.nexus-mini-cart-panel .woocommerce-mini-cart-item .variation dd,
.nexus-mini-cart-panel .nexus-mini-cart-item .variation dd {
	display: inline;
	margin: 0 0.35rem 0 0;
}

.nexus-mini-cart-panel .nexus-mini-cart-item__qty,
.nexus-mini-cart-panel .woocommerce-mini-cart-item .quantity {
	display: block;
	position: static !important;
	float: none !important;
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--nexus-primary);
	white-space: nowrap;
}

.nexus-mini-cart-panel .woocommerce-mini-cart__total {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	font-weight: 700;
	font-size: 0.8125rem;
	margin: 0.75rem 0 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px solid var(--nexus-border);
}

.nexus-mini-cart-panel .woocommerce-mini-cart__total strong {
	font-weight: inherit;
}

.nexus-mini-cart-panel .woocommerce-mini-cart__total .amount {
	font-weight: 700;
	color: var(--nexus-primary);
}

.nexus-mini-cart-panel .woocommerce-mini-cart__empty-message {
	margin: 0.5rem 0;
	font-size: 0.8125rem;
	color: var(--nexus-body-text-muted);
}

.nexus-mini-cart-panel .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin: 0;
	padding-top: 0.15rem;
}

.nexus-mini-cart-panel .woocommerce-mini-cart__buttons .button {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 0.75rem !important;
	padding: 0.5rem 0.65rem !important;
	margin: 0 !important;
	line-height: 1.25 !important;
	white-space: nowrap;
	box-sizing: border-box;
}

.nexus-mini-cart-panel .nexus-mini-cart-item__title {
	min-width: 0;
	width: 100%;
}

.nexus-mini-cart-panel .nexus-mini-cart-item__qty {
	word-break: normal;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Shop toolbar
   -------------------------------------------------------------------------- */

.nexus-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding: 0.85rem 1rem;
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
}

.nexus-shop-toolbar .woocommerce-result-count {
	margin: 0;
}

.nexus-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

.nexus-shop-toolbar__start,
.nexus-shop-toolbar__end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

.nexus-shop-toolbar__end {
	margin-left: auto;
}

.nexus-shop-toolbar__widgets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}

.nexus-shop-toolbar__widgets .widget {
	margin: 0;
}

.nexus-shop-layout-toggle {
	display: inline-flex;
	border: 1px solid var(--nexus-border);
	border-radius: 6px;
	overflow: hidden;
}

.nexus-shop-layout-toggle__btn {
	border: 0;
	background: transparent;
	padding: 0.4rem 0.55rem;
	cursor: pointer;
	color: var(--nexus-body-text-muted, #64748b);
	line-height: 1;
	font-size: 1rem;
}

.nexus-shop-layout-toggle__btn:hover {
	color: var(--nexus-body-text);
}

.nexus-shop-layout-toggle__btn.is-active {
	background: var(--nexus-primary);
	color: var(--nexus-button-text, #fff);
}

.nexus-shop-per-page {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
}

.nexus-shop-per-page__label {
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted, #64748b);
	white-space: nowrap;
}

.nexus-shop-per-page__select {
	min-width: 3.5rem;
	padding: 0.35rem 0.5rem;
	border: 1px solid var(--nexus-border);
	border-radius: 6px;
	background: var(--nexus-surface);
	color: var(--nexus-body-text);
}

/* Single product: prev/next + share */
.single-product .summary.entry-summary {
	position: relative;
}

.nexus-wc-product-nav {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	gap: 0.35rem;
	z-index: 2;
}

.nexus-wc-product-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--nexus-border);
	border-radius: 4px;
	text-decoration: none;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--nexus-body-text);
	background: var(--nexus-surface);
}

.nexus-wc-product-nav__link:hover {
	border-color: var(--nexus-primary);
	color: var(--nexus-primary);
}

.nexus-wc-product-share {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nexus-border);
}

.nexus-wc-product-share .nexus-share-buttons a {
	font-size: 0.8125rem;
	padding: 0.3rem 0.65rem;
}

.nexus-wc-badge--sale {
	white-space: nowrap;
}

/* Column presets */
body.nexus-shop-cols-2 .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.nexus-shop-cols-3 .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.nexus-shop-cols-4 .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.nexus-shop-cols-5 .woocommerce ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.nexus-shop-cols-6 .woocommerce ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); }

body.nexus-shop-layout-list .woocommerce ul.products,
body.nexus-shop-layout-list.nexus-shop-cols-2 .woocommerce ul.products,
body.nexus-shop-layout-list.nexus-shop-cols-3 .woocommerce ul.products,
body.nexus-shop-layout-list.nexus-shop-cols-4 .woocommerce ul.products,
body.nexus-shop-layout-list.nexus-shop-cols-5 .woocommerce ul.products,
body.nexus-shop-layout-list.nexus-shop-cols-6 .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: 1fr !important;
}

body.nexus-shop-layout-list .woocommerce ul.products li.product,
body.nexus-shop-layout-list .woocommerce ul.products.columns-1 li.product,
body.nexus-shop-layout-list .woocommerce ul.products.columns-2 li.product,
body.nexus-shop-layout-list .woocommerce ul.products.columns-3 li.product,
body.nexus-shop-layout-list .woocommerce ul.products.columns-4 li.product,
body.nexus-shop-layout-list .woocommerce ul.products.columns-5 li.product,
body.nexus-shop-layout-list .woocommerce ul.products.columns-6 li.product {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	clear: none !important;
	margin: 0 0 1rem !important;
}

/* --------------------------------------------------------------------------
   Pagination & empty states
   -------------------------------------------------------------------------- */

.woocommerce nav.woocommerce-pagination {
	margin: 2rem 0 0;
	text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: none;
	margin: 0;
	padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: block;
	min-width: 2.25rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--nexus-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--nexus-body-text);
	background: var(--nexus-surface);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--nexus-primary);
	border-color: var(--nexus-primary);
	color: var(--nexus-button-text, #fff);
}

.woocommerce .cart-empty,
.woocommerce-info.wc-empty-cart-message {
	text-align: center;
	padding: 2rem 1rem;
	background: var(--nexus-surface);
	border: 1px dashed var(--nexus-border);
	border-radius: var(--nexus-radius-lg);
}

.woocommerce .return-to-shop {
	text-align: center;
	margin-top: 1rem;
}

/* Star ratings */
.woocommerce .star-rating {
	color: #f59e0b;
}

/* --------------------------------------------------------------------------
   Dark mode
   -------------------------------------------------------------------------- */

body.nexus-dark-mode.nexus-woocommerce-view .woocommerce ul.products li.product,
body.nexus-dark-mode.nexus-woocommerce-view .woocommerce table.shop_table,
body.nexus-dark-mode.nexus-woocommerce-view .woocommerce-cart .cart_totals,
body.nexus-dark-mode.nexus-woocommerce-view .woocommerce-checkout #order_review,
body.nexus-dark-mode.nexus-woocommerce-view .nexus-shop-toolbar,
body.nexus-dark-mode .nexus-mini-cart-panel {
	background: var(--nexus-surface);
	border-color: var(--nexus-border);
}

body.nexus-dark-mode .nexus-mini-cart-panel {
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .nexus-wc-ajax-filters,
body.nexus-dark-mode .nexus-wc-filter-chips-bar {
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .woocommerce ul.products li.product .price del {
	color: var(--nexus-body-text-muted);
	opacity: 0.9;
}

body.nexus-dark-mode .nexus-wc-badge--out-of-stock {
	background: color-mix(in srgb, var(--nexus-body-text-muted) 35%, var(--nexus-surface));
	color: var(--nexus-body-text);
	border: 1px solid var(--nexus-border);
}

body.nexus-dark-mode .nexus-wc-ajax-filters__group legend,
body.nexus-dark-mode .nexus-wc-ajax-filters__check,
body.nexus-dark-mode .nexus-wc-filter-swatch-label,
body.nexus-dark-mode .nexus-wc-filter-price-readout {
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .nexus-wc-filter-chip {
	background: var(--nexus-surface);
	color: var(--nexus-body-text);
	border-color: var(--nexus-border);
}

body.nexus-dark-mode .nexus-wc-filter-chip--clear {
	background: transparent;
	color: var(--nexus-body-text-muted);
}

body.nexus-dark-mode .nexus-wc-ajax-filters__toggle {
	color: var(--nexus-button-text);
	border-color: transparent;
}

body.nexus-dark-mode .nexus-wc-ajax-filters .button.nexus-wc-ajax-filters__clear {
	background: transparent;
	color: var(--nexus-body-text);
	border-color: var(--nexus-border);
}

body.nexus-dark-mode .nexus-wc-filter-range {
	accent-color: var(--nexus-primary);
}

body.nexus-dark-mode.nexus-woocommerce-view .nexus-wc-ajax-filters.widget {
	background: transparent;
}

body.nexus-dark-mode .woocommerce-message {
	background: color-mix(in srgb, #34d399 14%, var(--nexus-surface));
	border-left-color: #34d399;
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .woocommerce-info {
	background: color-mix(in srgb, var(--nexus-accent, #22d3ee) 12%, var(--nexus-surface));
	border-left-color: var(--nexus-accent, #22d3ee);
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .woocommerce-error {
	background: color-mix(in srgb, #f87171 12%, var(--nexus-surface));
	border-left-color: #f87171;
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .nexus-wc-wishlist-btn.is-active {
	background: color-mix(in srgb, #e11d48 14%, var(--nexus-surface)) !important;
	border-color: #f87171 !important;
	color: #fca5a5 !important;
}

body.nexus-dark-mode .nexus-wc-wishlist-btn.is-active .nexus-svg-icon,
body.nexus-dark-mode .nexus-wc-wishlist-btn.is-active .nexus-wc-icon-btn__icon svg,
body.nexus-dark-mode .nexus-icon-wishlist.is-active,
body.nexus-dark-mode .nexus-icon-wishlist.is-active .nexus-svg-icon {
	stroke: #fca5a5;
	fill: #fca5a5;
	color: #fca5a5;
}

body.nexus-dark-mode .nexus-wc-order-details strong,
body.nexus-dark-mode .nexus-wc-order-received-msg {
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .nexus-wc-seller-contact,
body.nexus-dark-mode .nexus-wc-cart-sidebar .cart_totals,
body.nexus-dark-mode .nexus-wc-checkout-sidebar .woocommerce-checkout-review-order,
body.nexus-dark-mode .nexus-wc-order-details,
body.nexus-dark-mode .nexus-wc-account-login-col {
	border-color: var(--nexus-border);
}

body.nexus-dark-mode .nexus-wc-account-nav li a {
	background: var(--nexus-surface);
	color: var(--nexus-body-text);
	border-color: var(--nexus-border);
}

body.nexus-dark-mode .nexus-wc-account-nav li.is-active a,
body.nexus-dark-mode .nexus-wc-account-nav li a:hover {
	background: color-mix(in srgb, var(--nexus-primary) 12%, var(--nexus-surface));
	color: var(--nexus-primary);
}

body.nexus-dark-mode .nexus-wc-swatch {
	background: var(--nexus-surface-alt);
	border-color: var(--nexus-border);
}

body.nexus-dark-mode .nexus-wc-sidebar-products__price,
body.nexus-dark-mode .nexus-wc-checkout-steps .nexus-wc-step {
	color: var(--nexus-body-text-muted);
}

body.nexus-dark-mode .nexus-wc-quick-view-modal__dialog,
body.nexus-dark-mode .nexus-wc-quick-view-modal__close {
	background: var(--nexus-surface);
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .nexus-wc-quick-view-modal__close {
	background: var(--nexus-surface-alt);
}

body.nexus-dark-mode .page-title,
body.nexus-dark-mode .page-header .page-title,
body.nexus-dark-mode .nexus-wc-wishlist-page .page-title,
body.nexus-dark-mode .nexus-wc-virtual-page .page-title,
body.nexus-dark-mode .woocommerce-Address-title h3,
body.nexus-dark-mode .woocommerce-customer-details h2,
body.nexus-dark-mode .woocommerce-column__title,
body.nexus-dark-mode .woocommerce-MyAccount-content h2,
body.nexus-dark-mode .woocommerce-MyAccount-content h3 {
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .nexus-wc-seller-title {
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .nexus-wc-filter-price-readout {
	color: var(--nexus-body-text);
}

.nexus-wc-quick-view-modal__summary form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.nexus-wc-quick-view-modal__summary form.cart .quantity {
	margin: 0;
	flex: 0 0 auto;
}

.nexus-wc-quick-view-modal__summary form.cart .single_add_to_cart_button {
	flex: 1 1 8rem;
}

.nexus-wc-quick-view-modal__summary form.cart .nexus-wc-wishlist-btn,
.nexus-wc-quick-view-modal__summary form.cart .nexus-wc-compare-btn {
	flex: 0 0 2rem;
	margin: 0;
}

@media (max-width: 782px) {
	.nexus-mini-cart-panel {
		right: -0.5rem;
	}

	.nexus-shop-cols-mobile-1 .woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.nexus-shop-cols-mobile-2 .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nexus-shop-cols-mobile-3 .woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nexus-shop-cols-mobile-4 .woocommerce ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.nexus-wc-icon-btn,
	.nexus-wc-loop-actions .nexus-wc-icon-btn,
	.nexus-wc-loop-actions a.button {
		width: 2rem !important;
		height: 2rem !important;
		min-width: 2rem !important;
		min-height: 2rem !important;
	}

	.nexus-wc-loop-actions {
		gap: 0.3rem;
		padding: 0.45rem 0.65rem 0.55rem;
	}

	.woocommerce nav.woocommerce-pagination ul li a,
	.woocommerce nav.woocommerce-pagination ul li span {
		min-width: 2.25rem;
		min-height: 2.25rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.35rem 0.5rem;
		font-size: 0.875rem;
	}

	.woocommerce .quantity .qty,
	.woocommerce input.input-text.qty {
		font-size: 16px;
		min-height: 2.5rem;
	}
}

@media (max-width: 420px) {
	.nexus-shop-cols-mobile-3 .woocommerce ul.products,
	.nexus-shop-cols-mobile-4 .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   Phase 2/3: list layout, badges, quick view, trust, checkout minimal
   -------------------------------------------------------------------------- */

.nexus-shop-layout-list .woocommerce ul.products {
	grid-template-columns: 1fr;
}

.nexus-shop-layout-list .woocommerce ul.products li.product {
	display: grid;
	grid-template-columns: min(220px, 38vw) minmax(0, 1fr);
	grid-template-rows: auto auto auto auto;
	column-gap: 1rem;
	row-gap: 0.35rem;
	align-items: start;
}

.nexus-shop-layout-list .woocommerce ul.products li.product > a.woocommerce-loop-product__link {
	display: contents;
	text-decoration: none;
	color: inherit;
}

.nexus-shop-layout-list .woocommerce ul.products li.product .nexus-wc-loop-thumbnail {
	grid-column: 1;
	grid-row: 1 / span 4;
	align-self: stretch;
	width: 100%;
	max-width: none;
	min-height: 160px;
	border-radius: var(--nexus-radius-lg) 0 0 var(--nexus-radius-lg);
}

.nexus-shop-layout-list .woocommerce ul.products li.product .nexus-wc-loop-thumbnail__primary,
.nexus-shop-layout-list .woocommerce ul.products li.product .nexus-wc-loop-thumbnail__secondary,
.nexus-shop-layout-list .woocommerce ul.products li.product .nexus-wc-loop-thumbnail img {
	width: 100%;
	height: 100%;
	min-height: 160px;
	object-fit: cover;
}

.nexus-shop-layout-list .woocommerce ul.products li.product .woocommerce-loop-product__title {
	grid-column: 2;
	grid-row: 1;
	margin: 1rem 1rem 0 0;
}

.nexus-shop-layout-list .woocommerce ul.products li.product .price,
.nexus-shop-layout-list .woocommerce ul.products li.product .star-rating {
	grid-column: 2;
	margin-left: 0;
	margin-right: 1rem;
}

.nexus-shop-layout-list .woocommerce ul.products li.product .nexus-wc-loop-actions {
	grid-column: 2;
	grid-row: 4;
	margin: 0 1rem 1rem 0;
	justify-content: flex-start;
	border-top: 0;
	padding-top: 0;
}

.nexus-shop-layout-list .woocommerce ul.products li.product .nexus-wc-loop-thumbnail,
.nexus-shop-layout-list .woocommerce ul.products li.product .woocommerce-loop-product__link img {
	width: 100%;
	flex-shrink: 0;
}

.nexus-wc-loop-thumbnail {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: block;
	background: var(--nexus-surface-alt);
}

.nexus-wc-loop-thumbnail__primary,
.nexus-wc-loop-thumbnail__secondary,
.nexus-wc-loop-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.25s ease;
}

.nexus-wc-loop-thumbnail__secondary {
	position: absolute;
	inset: 0;
	object-fit: cover;
	opacity: 0;
}

.nexus-wc-loop-thumbnail:hover .nexus-wc-loop-thumbnail__secondary {
	opacity: 1;
}

.nexus-wc-loop-badges {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	pointer-events: none;
	height: 0;
}

.nexus-wc-badge-pos {
	position: absolute;
	top: 0;
	pointer-events: none;
}

.nexus-wc-badge-pos--left,
.nexus-wc-badge-pos--left-secondary {
	left: 0;
}

.nexus-wc-badge-pos--left-secondary {
	top: 1.65rem;
}

.nexus-wc-badge-pos--right {
	right: 0;
	left: auto;
}

.nexus-wc-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.2;
}

.nexus-wc-badge--new {
	background: var(--nexus-primary);
	color: var(--nexus-button-text, #fff);
}

.nexus-wc-badge--sale {
	background: var(--nexus-accent, #e11d48);
	color: var(--nexus-button-text, #fff);
}

.nexus-wc-badge--out-of-stock {
	background: #64748b;
	color: var(--nexus-button-text, #fff);
}

.nexus-wc-quick-view-btn {
	margin: 0;
	align-self: auto;
}

/* Product loop icon action row (cart, wishlist, compare, quick view) */
.nexus-wc-loop-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0.35rem;
	margin-top: auto;
	padding: 0.5rem 0.75rem 0.65rem;
	border-top: 1px solid var(--nexus-border);
}

.nexus-wc-loop-actions .nexus-wc-icon-btn,
.nexus-wc-loop-actions a.nexus-wc-icon-btn,
.nexus-wc-loop-actions button.nexus-wc-icon-btn,
.nexus-wc-loop-actions .button.nexus-wc-icon-btn,
.nexus-wc-loop-actions a.button,
.nexus-wc-loop-actions .added_to_cart {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 2rem !important;
	min-height: 2rem !important;
	max-width: 2rem !important;
	max-height: 2rem !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid var(--nexus-border) !important;
	border-radius: 999px !important;
	background: var(--nexus-surface-alt) !important;
	color: var(--nexus-body-text) !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	font-size: 0 !important;
	font-weight: 400 !important;
	vertical-align: middle;
	flex-shrink: 0;
	box-sizing: border-box;
}

.nexus-wc-loop-actions .nexus-wc-icon-btn:hover,
.nexus-wc-loop-actions a.nexus-wc-icon-btn:hover,
.nexus-wc-loop-actions button.nexus-wc-icon-btn:hover,
.nexus-wc-loop-actions a.button:hover {
	border-color: var(--nexus-primary) !important;
	color: var(--nexus-primary) !important;
	background: var(--nexus-surface) !important;
}

.nexus-wc-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	min-height: 2rem;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid var(--nexus-border);
	border-radius: 999px;
	background: var(--nexus-surface-alt);
	color: var(--nexus-body-text);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	font-size: 0 !important;
}

.nexus-wc-icon-btn:hover,
.nexus-wc-icon-btn:focus-visible {
	border-color: var(--nexus-primary);
	color: var(--nexus-primary);
	background: var(--nexus-surface);
}

.nexus-wc-icon-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0.95rem;
	height: 0.95rem;
	flex-shrink: 0;
}

.nexus-wc-icon-btn__icon .nexus-svg-icon,
.nexus-wc-icon-btn__icon svg {
	width: 0.95rem;
	height: 0.95rem;
	display: block;
}

.nexus-wc-loop-actions .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.nexus-wc-wishlist-btn.is-active {
	background: #fff5f5 !important;
	border-color: #e11d48 !important;
	color: #e11d48 !important;
}

.nexus-wc-wishlist-btn.is-active .nexus-svg-icon,
.nexus-wc-wishlist-btn.is-active .nexus-wc-icon-btn__icon svg {
	stroke: #e11d48;
	fill: #e11d48;
}

.nexus-icon-wishlist.is-active {
	color: #e11d48;
}

.nexus-icon-wishlist.is-active .nexus-svg-icon {
	stroke: #e11d48;
	fill: #e11d48;
}

.nexus-wc-compare-btn.is-active,
.nexus-wc-atc-btn.added,
.nexus-wc-atc-btn.loading {
	background: var(--nexus-primary) !important;
	border-color: var(--nexus-primary) !important;
	color: #fff !important;
}

.nexus-wc-single-product-actions {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: 0;
	clear: none;
}

.nexus-wc-single-product-actions .nexus-wc-icon-btn {
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
}

.nexus-wc-quick-view-root {
	position: fixed;
	inset: 0;
	z-index: 100200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	overflow-y: auto;
	pointer-events: none;
}

.nexus-wc-quick-view-root > * {
	pointer-events: auto;
}

.nexus-wc-quick-view-modal {
	position: relative;
	inset: auto;
	z-index: 1;
	width: 100%;
	max-width: min(920px, calc(100vw - 2rem));
	max-height: min(90vh, calc(100vh - 2rem));
	display: flex;
	flex-direction: column;
	margin: auto;
}

.nexus-wc-quick-view-modal__overlay {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: rgba(15, 23, 42, 0.55);
}

.nexus-wc-quick-view-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	max-height: min(90vh, calc(100vh - 2rem));
	margin: 0;
	background: var(--nexus-surface);
	border-radius: var(--nexus-radius-lg);
	box-shadow: var(--nexus-shadow-lg);
	overflow: auto;
}

.nexus-wc-quick-view-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	border: 0;
	background: var(--nexus-surface-alt);
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 999px;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.nexus-wc-quick-view-modal__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.5rem;
	padding: 1.5rem;
}

.nexus-wc-quick-view-modal__gallery img {
	width: 100%;
	height: auto;
	border-radius: var(--nexus-radius);
}

body.nexus-wc-quick-view-open {
	overflow: hidden;
}

.nexus-product-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.nexus-product-trust-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.75rem;
	border-radius: var(--nexus-radius);
	background: var(--nexus-surface-alt);
	border: 1px solid var(--nexus-border);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--nexus-body-text);
}

.nexus-gallery-thumbs-left.nexus-woocommerce-single .product {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

@media (min-width: 992px) {
	.nexus-gallery-thumbs-left .woocommerce div.product div.images .flex-control-thumbs {
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 72px;
		grid-template-columns: 1fr;
		max-height: 100%;
		margin: 0;
		overflow-y: auto;
		scrollbar-width: none;
	}

	.nexus-gallery-thumbs-left .woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.nexus-gallery-thumbs-left .nexus-product-gallery-main {
		padding-left: 84px;
	}
}

/* Horizontal thumbnail strip */
.nexus-gallery-thumbs-strip .woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	margin-top: 0.75rem;
	padding-bottom: 0.25rem;
	scrollbar-width: thin;
}

.nexus-gallery-thumbs-strip .woocommerce div.product div.images .flex-control-thumbs li {
	flex: 0 0 72px;
	scroll-snap-align: start;
}

.nexus-gallery-thumbs-strip .nexus-wc-gallery-video-thumb {
	flex: 0 0 72px;
	min-height: 72px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	border: 1px solid var(--nexus-border, #cbd5e1);
	border-radius: var(--nexus-radius, 6px);
	background: var(--nexus-surface-alt, #f8fafc);
	cursor: pointer;
	scroll-snap-align: start;
	font-size: 0.6875rem;
	font-weight: 600;
}

.nexus-wc-gallery-video-open {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 3;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nexus-primary, #0f766e) 88%, #000);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.nexus-wc-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.72);
}

.nexus-wc-video-modal__dialog {
	position: relative;
	width: min(960px, 100%);
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.nexus-wc-video-modal__dialog iframe,
.nexus-wc-video-modal__dialog video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
}

.nexus-wc-video-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	width: 2rem;
	height: 2rem;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

.nexus-sticky-summary.nexus-woocommerce-single div.product div.summary {
	position: sticky;
	top: calc(var(--nexus-mobile-header-offset, 76px) + 1rem);
	align-self: start;
	z-index: 1;
	max-height: none;
	overflow: visible;
}

@media (min-width: 992px) {
	.nexus-sticky-summary.nexus-woocommerce-single div.product div.summary {
		max-height: none;
	}
}

.nexus-cart-layout-cards .woocommerce-cart-form .shop_table tbody tr {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 0.75rem;
	padding: 1rem;
	border-bottom: 1px solid var(--nexus-border);
}

.nexus-cart-layout-cards .woocommerce-cart-form .shop_table thead {
	display: none;
}

body.nexus-checkout-minimal .site-header,
body.nexus-checkout-minimal .site-footer,
body.nexus-checkout-minimal .nexus-top-bar,
body.nexus-checkout-minimal .breadcrumb-wrap {
	display: none !important;
}

body.nexus-checkout-minimal .site-main {
	padding-top: 2rem;
}

.nexus-cart-total {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--nexus-primary);
}

@media (max-width: 782px) {
	.nexus-wc-quick-view-modal__body {
		grid-template-columns: 1fr;
	}

	.nexus-shop-layout-list .woocommerce ul.products li.product {
		grid-template-columns: 1fr;
	}

	.nexus-shop-layout-list .woocommerce ul.products li.product > a.woocommerce-loop-product__link {
		display: block;
	}

	.nexus-shop-layout-list .woocommerce ul.products li.product .nexus-wc-loop-thumbnail {
		grid-column: 1;
		grid-row: auto;
		min-height: 0;
		border-radius: var(--nexus-radius-lg) var(--nexus-radius-lg) 0 0;
	}

	.nexus-shop-layout-list .woocommerce ul.products li.product .woocommerce-loop-product__title,
	.nexus-shop-layout-list .woocommerce ul.products li.product .price,
	.nexus-shop-layout-list .woocommerce ul.products li.product .star-rating,
	.nexus-shop-layout-list .woocommerce ul.products li.product .nexus-wc-loop-actions {
		grid-column: 1;
		margin-left: 1rem;
		margin-right: 1rem;
	}
}

/* Shop card density */
body.nexus-shop-density-compact .woocommerce ul.products li.product,
body.nexus-shop-density-compact .nexus-wc-product-card {
	padding: 0.65rem;
}
body.nexus-shop-density-compact .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
}
body.nexus-shop-density-spacious .woocommerce ul.products li.product,
body.nexus-shop-density-spacious .nexus-wc-product-card {
	padding: 1.25rem;
}

/* Product page layouts */
body.nexus-product-layout-stacked .woocommerce div.product {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
body.nexus-product-layout-sidebar .woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 2rem;
	align-items: start;
}
@media (max-width: 768px) {
	body.nexus-product-layout-sidebar .woocommerce div.product {
		grid-template-columns: 1fr;
	}
}
.nexus-wc-seller-contact {
	margin: 1.5rem 0 2rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: var(--nexus-radius, 8px);
	background: color-mix(in srgb, var(--nexus-primary, #0f766e) 4%, var(--nexus-surface));
	position: relative;
	z-index: 2;
	overflow: visible;
}
.nexus-wc-seller-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	line-height: 1.35;
	color: var(--nexus-body-text, #0f172a);
}
.nexus-wc-seller-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nexus-wc-seller-links li + li {
	margin-top: 0.35rem;
}
.nexus-wc-product-details-panel {
	margin-top: 1.5rem;
	padding: 1rem;
	border-top: 1px solid var(--nexus-border-light, #e2e8f0);
}

/* Cart two-column layout */
.nexus-wc-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
	gap: 2rem;
	align-items: start;
	margin-bottom: 2rem;
}
.nexus-wc-cart-sidebar .cart-collaterals {
	width: 100%;
}
.nexus-wc-cart-sidebar .cart_totals {
	position: sticky;
	top: 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: var(--nexus-radius, 8px);
	background: var(--nexus-surface);
}
@media (max-width: 900px) {
	.nexus-wc-cart-layout {
		grid-template-columns: 1fr;
	}
	.nexus-wc-cart-sidebar .cart_totals {
		position: static;
	}
}

/* Checkout progress steps */
.nexus-wc-checkout-steps {
	margin: 0 0 1.5rem;
}
.nexus-wc-checkout-steps ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: nexus-wc-step;
}
.nexus-wc-checkout-steps .nexus-wc-step {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted, #64748b);
}
.nexus-wc-checkout-steps .nexus-wc-step::before {
	counter-increment: nexus-wc-step;
	content: counter(nexus-wc-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	border: 1px solid currentColor;
	font-size: 0.75rem;
	font-weight: 700;
}
.nexus-wc-checkout-steps .nexus-wc-step.is-current {
	color: var(--nexus-primary, #0f766e);
	font-weight: 600;
}
.nexus-wc-checkout-steps .nexus-wc-step.is-current::before {
	background: var(--nexus-primary, #0f766e);
	border-color: var(--nexus-primary, #0f766e);
	color: var(--nexus-button-text, #fff);
}
.nexus-wc-checkout-steps .nexus-wc-step a {
	color: inherit;
	text-decoration: none;
}
.nexus-wc-checkout-steps .nexus-wc-step a:hover {
	text-decoration: underline;
}

/* My Account card navigation */
.nexus-wc-account-nav ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	gap: 0.65rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}
.nexus-wc-account-nav li a {
	display: block;
	padding: 0.75rem 1rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: var(--nexus-radius, 8px);
	background: var(--nexus-surface);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.nexus-wc-account-nav li.is-active a,
.nexus-wc-account-nav li a:hover {
	border-color: var(--nexus-primary, #0f766e);
	background: color-mix(in srgb, var(--nexus-primary, #0f766e) 6%, var(--nexus-surface));
	color: var(--nexus-primary, #0f766e);
}

.nexus-wc-dashboard p {
	margin-bottom: 1rem;
}

.nexus-wc-orders-table {
	margin-top: 0.5rem;
}

/* Mini-cart truncation notice */
.nexus-mini-cart-more {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	text-align: center;
}
.nexus-mini-cart-more a {
	font-weight: 600;
}

/* Empty cart */
.nexus-wc-cart-empty {
	text-align: center;
	padding: 2.5rem 1rem 3rem;
}
.nexus-wc-cart-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	margin: 0 auto 1rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nexus-primary, #0f766e) 8%, var(--nexus-surface));
	color: var(--nexus-primary, #0f766e);
}
.nexus-wc-cart-empty .return-to-shop {
	margin-top: 1rem;
}

/* Checkout two-column layout */
.nexus-wc-checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
	gap: 2rem;
	align-items: start;
	margin-bottom: 2rem;
}
.nexus-wc-checkout-sidebar {
	position: relative;
}
.nexus-wc-checkout-sidebar #order_review_heading,
.nexus-wc-checkout-sidebar .woocommerce-checkout-review-order {
	position: sticky;
	top: 1.5rem;
}
.nexus-wc-checkout-sidebar .woocommerce-checkout-review-order {
	padding: 1.25rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: var(--nexus-radius, 8px);
	background: var(--nexus-surface);
}
.nexus-wc-checkout-steps .nexus-wc-step--done {
	color: var(--nexus-primary, #0f766e);
}
.nexus-wc-checkout-steps .nexus-wc-step--done::before {
	background: color-mix(in srgb, var(--nexus-primary, #0f766e) 12%, var(--nexus-surface));
	border-color: var(--nexus-primary, #0f766e);
	color: var(--nexus-primary, #0f766e);
}
@media (max-width: 900px) {
	.nexus-wc-checkout-layout {
		grid-template-columns: 1fr;
	}
	.nexus-wc-checkout-sidebar .woocommerce-checkout-review-order {
		position: static;
	}
}

/* Order received / thank you */
.nexus-wc-order-received {
	max-width: 40rem;
	margin: 0 auto 2rem;
}
.nexus-wc-order-received-msg {
	font-size: 1.125rem;
	font-weight: 600;
	text-align: center;
	padding: 1rem 1.25rem;
	border-radius: var(--nexus-radius, 8px);
	background: color-mix(in srgb, var(--nexus-primary, #0f766e) 8%, var(--nexus-surface));
	border: 1px solid color-mix(in srgb, var(--nexus-primary, #0f766e) 25%, var(--nexus-border));
}
.nexus-wc-order-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: 1.5rem 0;
	padding: 1rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: var(--nexus-radius, 8px);
	background: var(--nexus-surface);
}
.nexus-wc-order-details li {
	font-size: 0.875rem;
	color: var(--nexus-body-text-muted, #64748b);
}
.nexus-wc-order-details strong {
	display: block;
	margin-top: 0.25rem;
	color: var(--nexus-body-text, #334155);
	font-size: 1rem;
}

/* My Account login/register cards */
.nexus-wc-account-login {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}
.nexus-wc-account-login-col {
	padding: 1.5rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: var(--nexus-radius, 8px);
	background: var(--nexus-surface);
}
.nexus-wc-account-login-col h2 {
	margin-top: 0;
	font-size: 1.125rem;
}
.nexus-wc-login-form .input-text,
.nexus-wc-register-form .input-text {
	width: 100%;
	box-sizing: border-box;
}

.nexus-wc-checkout-form .col2-set.nexus-wc-checkout-customer {
	margin-bottom: 0;
}

/* Cart page */
.nexus-wc-cart-form .shop_table {
	border-collapse: separate;
	border-spacing: 0;
}
.nexus-wc-cart-coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.75rem;
}
.nexus-wc-cart-coupon .input-text {
	flex: 1;
	min-width: 10rem;
}
.nexus-wc-cart-form .actions {
	padding-top: 1rem;
}

/* Checkout fields */
.nexus-wc-checkout-form .form-row label,
.woocommerce-checkout .form-row label {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}
.nexus-wc-checkout-form .input-text,
.nexus-wc-checkout-form select,
.woocommerce-checkout .input-text,
.woocommerce-checkout select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--nexus-border-light, #cbd5e1);
	border-radius: 6px;
}
.nexus-wc-checkout-form #order_review_heading {
	margin: 0 0 1rem;
	font-size: 1.125rem;
}
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

.nexus-wc-edit-account-form,
.nexus-wc-reset-password-form,
.nexus-wc-lost-password-form {
	max-width: 36rem;
}
.nexus-wc-password-fieldset {
	margin: 1.25rem 0;
	padding: 1rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: var(--nexus-radius, 8px);
}
.nexus-wc-password-fieldset legend {
	font-weight: 600;
	padding: 0 0.25rem;
}

/* Variation swatches */
.nexus-wc-variation-swatches { margin-bottom: 0.75rem; }
.nexus-wc-variation-swatches__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.35rem;
}
.nexus-wc-variation-select-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.nexus-wc-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.15rem;
	border: 2px solid var(--nexus-border-light, #cbd5e1);
	border-radius: 999px;
	background: var(--nexus-surface);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nexus-wc-swatch.is-selected {
	border-color: var(--nexus-primary, #0f766e);
	box-shadow: 0 0 0 1px var(--nexus-primary, #0f766e);
}
.nexus-wc-swatch__color {
	display: block;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 50%;
}
.nexus-wc-swatch__img {
	display: block;
	width: 2rem;
	height: 2rem;
	object-fit: cover;
	border-radius: 50%;
}
.nexus-wc-swatch__label {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0 0.35rem;
	line-height: 1.2;
}

/* AJAX shop filters */
.nexus-wc-ajax-filters__toggle {
	display: none;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--nexus-border, #e2e8f0);
	border-radius: 8px;
	background: var(--nexus-primary, #0f766e);
	color: var(--nexus-button-text, #fff);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	box-sizing: border-box;
}
.nexus-wc-ajax-filters__group {
	border: 0;
	margin: 0 0 1rem;
	padding: 0;
}
.nexus-wc-ajax-filters__group legend {
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}
.nexus-wc-ajax-filters__check {
	display: block;
	font-size: 0.875rem;
	margin: 0.2rem 0;
}
.nexus-wc-ajax-filters__price label {
	display: block;
	font-size: 0.875rem;
	margin: 0.35rem 0;
}
.nexus-wc-ajax-filters__price input {
	width: 100%;
	box-sizing: border-box;
}
.nexus-wc-ajax-filters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
ul.products.nexus-wc-filters-loading {
	opacity: 0.55;
	pointer-events: none;
}
.nexus-wc-ajax-filters--horizontal .nexus-wc-ajax-filters__body form {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.25rem;
	align-items: flex-start;
}
.nexus-wc-ajax-filters--horizontal .nexus-wc-ajax-filters__group {
	flex: 1 1 180px;
	min-width: 160px;
	margin-bottom: 0;
}
.nexus-wc-ajax-filters--horizontal .nexus-wc-ajax-filters__actions {
	width: 100%;
}
.nexus-wc-filter-chips-bar {
	margin: 0 0 0.75rem;
	width: 100%;
}
.nexus-wc-filter-chips-bar .nexus-wc-filter-chips {
	margin: 0;
}
.nexus-wc-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.5rem 0 0.75rem;
}
.nexus-wc-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.55rem;
	border: 1px solid var(--nexus-border, #cbd5e1);
	border-radius: 999px;
	background: var(--nexus-surface, #ffffff);
	color: var(--nexus-body-text, inherit);
	font-size: 0.8125rem;
	cursor: pointer;
}
.nexus-wc-filter-chip--clear {
	background: transparent;
}
.nexus-wc-ajax-filters__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.nexus-wc-ajax-filters__check--swatch {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
}
.nexus-wc-ajax-filters__check--swatch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.nexus-wc-filter-swatch {
	display: inline-flex;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	border: 2px solid transparent;
	overflow: hidden;
	vertical-align: middle;
}
.nexus-wc-ajax-filters__check--swatch input:checked + .nexus-wc-filter-swatch,
.nexus-wc-ajax-filters__check--swatch input:checked ~ .nexus-wc-filter-swatch {
	border-color: var(--nexus-primary, #0f766e);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--nexus-primary, #0f766e) 25%, transparent);
}
.nexus-wc-filter-swatch--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nexus-wc-filter-swatch-label {
	font-size: 0.8125rem;
}
.nexus-wc-filter-price-slider {
	position: relative;
	height: 2.75rem;
	margin: 0.35rem 0 0.15rem;
	padding-top: 0.35rem;
}

.nexus-wc-filter-price-slider::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% + 0.1rem);
	transform: translateY(-50%);
	height: 4px;
	border-radius: 999px;
	background: var(--nexus-border);
	pointer-events: none;
}

.nexus-wc-filter-price-slider .nexus-wc-filter-range {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% + 0.1rem);
	transform: translateY(-50%);
	width: 100%;
	height: 1.25rem;
	margin: 0;
	padding: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.nexus-wc-filter-price-slider .nexus-wc-filter-range::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
	border: 0;
}

.nexus-wc-filter-price-slider .nexus-wc-filter-range::-moz-range-track {
	height: 4px;
	background: transparent;
	border: 0;
}

.nexus-wc-filter-price-slider .nexus-wc-filter-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: all;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: -0.4375rem;
	border-radius: 50%;
	border: 2px solid var(--nexus-primary, #0f766e);
	background: var(--nexus-surface, #fff);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
	cursor: pointer;
}

.nexus-wc-filter-price-slider .nexus-wc-filter-range::-moz-range-thumb {
	pointer-events: all;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 50%;
	border: 2px solid var(--nexus-primary, #0f766e);
	background: var(--nexus-surface, #fff);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
	cursor: pointer;
}

.nexus-wc-filter-price-slider .nexus-wc-filter-range--min {
	z-index: 2;
}

.nexus-wc-filter-price-slider .nexus-wc-filter-range--max {
	z-index: 3;
}

.nexus-wc-filter-price-readout {
	font-size: 0.875rem;
	margin: 0.35rem 0 0;
	position: relative;
	z-index: 1;
}
.nexus-woo-shop-filters .nexus-section-inner {
	max-width: 100%;
}
.nexus-wc-ajax-filters[data-auto-apply="1"] .nexus-wc-ajax-filters__apply {
	display: none;
}

@media (min-width: 782px) {
	.nexus-wc-ajax-filters.is-collapsed .nexus-wc-ajax-filters__body {
		display: block;
	}
	.nexus-wc-filter-drawer-fab,
	.nexus-wc-filter-drawer-backdrop,
	.nexus-wc-filter-drawer-close,
	.nexus-wc-ajax-filters__drawer-done {
		display: none;
	}
}

/* Mobile filter drawer */
.nexus-wc-filter-drawer-fab {
	position: fixed;
	right: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	z-index: 100150;
	display: none;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0.55rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--nexus-primary, #0f766e);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: var(--nexus-shadow-lg, 0 10px 25px rgba(15, 23, 42, 0.18));
	cursor: pointer;
}
.nexus-wc-filter-drawer-fab__icon {
	font-size: 1rem;
	line-height: 1;
}
.nexus-wc-filter-drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100180;
	background: rgba(15, 23, 42, 0.45);
}
.nexus-wc-filter-drawer-close {
	display: none;
	margin-left: auto;
	min-width: 2.75rem;
	min-height: 2.75rem;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}
.nexus-wc-ajax-filters__title.widget-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.nexus-wc-ajax-filters__drawer-done {
	display: none;
}
body.nexus-wc-has-filter-drawer .nexus-wc-filter-chips-bar {
	margin-bottom: 0.75rem;
}
body.nexus-dark-mode .nexus-wc-filter-drawer-fab {
	background: var(--nexus-primary, #0f766e);
	color: #fff;
}
body.nexus-dark-mode .nexus-wc-filter-drawer-backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.nexus-wc-quick-view-added {
	margin: 0.75rem 0 0;
}
.nexus-wc-filter-drawer-fab__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #fff;
	color: var(--nexus-primary, #0f766e);
	font-size: 0.75rem;
	font-weight: 700;
}
.nexus-wc-compare-table tr.nexus-wc-compare-diff th[scope="row"] {
	background: rgba(245, 158, 11, 0.12);
}
.nexus-wc-compare-table__head {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--nexus-surface, #fff);
}
.nexus-wc-fbt__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}
.nexus-wc-fbt__item {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}
.nexus-wc-fbt__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 8rem;
	text-decoration: none;
	color: inherit;
}
.nexus-wc-layout-shop-toolbar .woocommerce-result-count,
.nexus-layout-shop-toolbar .woocommerce-result-count {
	margin: 0;
}
.nexus-wc-checkout-trust--blocks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}
.nexus-wc-quick-view-stock .stock {
	margin: 0;
}

/* Size guide tab */
.nexus-wc-size-guide-tab__img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 1rem;
}
.nexus-wc-size-guide-tab__text {
	max-width: 48rem;
}

.nexus-wc-sidebar-products {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nexus-wc-sidebar-products__item {
	margin: 0 0 0.75rem;
}
.nexus-wc-sidebar-products__item a {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.nexus-wc-sidebar-products__thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}
.nexus-wc-sidebar-products__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}
.nexus-wc-sidebar-products__title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
}
.nexus-wc-sidebar-products__price {
	font-size: 0.8rem;
	color: var(--nexus-body-text-muted, #64748b);
}

@media (max-width: 781px) {
	.nexus-shop-with-sidebar {
		display: flex;
		flex-direction: column;
	}

	.nexus-shop-with-sidebar .shop-sidebar-area {
		order: -1;
		width: 100%;
	}

	.nexus-shop-with-sidebar .nexus-woocommerce-main {
		order: 1;
		width: 100%;
	}

	.nexus-wc-ajax-filters__title.widget-title {
		margin: 0 0 0.75rem;
	}

	.nexus-wc-ajax-filters__toggle {
		display: block;
	}

	.nexus-wc-ajax-filters:not(.is-collapsed):not(.nexus-wc-ajax-filters--mobile-collapsible) .nexus-wc-ajax-filters__toggle {
		display: none;
	}

	.nexus-wc-ajax-filters.is-collapsed .nexus-wc-ajax-filters__body {
		display: none;
	}

	.nexus-wc-ajax-filters--horizontal.is-collapsed .nexus-wc-filter-chips {
		margin-bottom: 0.5rem;
	}

	.nexus-wc-ajax-filters--horizontal .nexus-wc-ajax-filters__body form {
		flex-direction: column;
	}

	.nexus-wc-ajax-filters--horizontal .nexus-wc-ajax-filters__group {
		flex: 1 1 auto;
		min-width: 0;
		width: 100%;
	}

	.nexus-wc-filter-chip {
		min-height: 44px;
		padding: 0.45rem 0.85rem;
		font-size: 0.875rem;
	}

	.nexus-wc-filter-price-slider .nexus-wc-filter-range {
		height: 2rem;
	}

	.nexus-wc-ajax-filters__check {
		min-height: 2.75rem;
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}

	.nexus-wc-ajax-filters__check input[type="checkbox"] {
		width: 1.125rem;
		height: 1.125rem;
		flex-shrink: 0;
	}

	body.nexus-wc-has-filter-drawer .nexus-wc-filter-drawer-fab {
		display: inline-flex;
	}

	body.nexus-wc-has-filter-drawer .shop-sidebar-area .nexus-wc-ajax-filters--mobile-drawer,
	body.nexus-wc-has-filter-drawer .nexus-wc-ajax-filters--mobile-drawer {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 100190;
		width: min(92vw, 22rem);
		max-width: 22rem;
		margin: 0;
		padding: 1rem;
		overflow-y: auto;
		background: var(--nexus-surface, #fff);
		box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
		transform: translateX(-105%);
		transition: transform 0.25s ease;
		visibility: hidden;
	}

	body.nexus-wc-has-filter-drawer .shop-sidebar-area .nexus-wc-ajax-filters--mobile-drawer .nexus-wc-ajax-filters__body,
	body.nexus-wc-has-filter-drawer .nexus-wc-ajax-filters--mobile-drawer .nexus-wc-ajax-filters__body {
		display: block;
	}

	body.nexus-wc-has-filter-drawer .shop-sidebar-area .nexus-wc-ajax-filters--mobile-drawer .nexus-wc-ajax-filters__toggle,
	body.nexus-wc-has-filter-drawer .nexus-wc-ajax-filters--mobile-drawer .nexus-wc-ajax-filters__toggle {
		display: none;
	}

	body.nexus-wc-has-filter-drawer .shop-sidebar-area .nexus-wc-ajax-filters--mobile-drawer .nexus-wc-filter-drawer-close,
	body.nexus-wc-has-filter-drawer .shop-sidebar-area .nexus-wc-ajax-filters--mobile-drawer .nexus-wc-ajax-filters__drawer-done,
	body.nexus-wc-has-filter-drawer .nexus-wc-ajax-filters--mobile-drawer .nexus-wc-filter-drawer-close,
	body.nexus-wc-has-filter-drawer .nexus-wc-ajax-filters--mobile-drawer .nexus-wc-ajax-filters__drawer-done {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	body.nexus-wc-has-filter-drawer.nexus-wc-filters-drawer-open .shop-sidebar-area .nexus-wc-ajax-filters--mobile-drawer,
	body.nexus-wc-has-filter-drawer.nexus-wc-filters-drawer-open .nexus-wc-ajax-filters--mobile-drawer {
		transform: translateX(0);
		visibility: visible;
	}

	body.nexus-wc-has-filter-drawer .shop-sidebar-area .nexus-wc-ajax-filters--mobile-drawer:not(.widget),
	body.nexus-wc-has-filter-drawer .nexus-wc-ajax-filters--mobile-drawer:not(.widget) {
		border-radius: 0;
	}

	body.nexus-wc-filters-drawer-open {
		overflow: hidden;
	}

	.nexus-wc-swatch {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}

	.nexus-wc-vertical-menu__nav {
		max-width: none;
	}

	.nexus-wc-quick-view-modal__body.product {
		flex-direction: column;
	}

	.nexus-wc-size-guide-tab__img {
		width: 100%;
	}
}

.nexus-wc-stock-urgency {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #b45309;
}
.nexus-wc-size-guide-loop-btn {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--nexus-link-color, #0f766e);
	font-size: 0.8125rem;
	text-decoration: underline;
	cursor: pointer;
}
.nexus-wc-size-guide-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.nexus-wc-size-guide-modal[hidden] {
	display: none !important;
}
.nexus-wc-size-guide-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}
.nexus-wc-size-guide-modal__panel {
	position: relative;
	z-index: 1;
	width: min(640px, 100%);
	max-height: 85vh;
	overflow: auto;
	background: var(--nexus-body-bg, #fff);
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.nexus-wc-size-guide-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--nexus-border-light, #e2e8f0);
}
.nexus-wc-size-guide-modal__head h2 {
	margin: 0;
	font-size: 1.125rem;
}
.nexus-wc-size-guide-modal__close {
	border: 0;
	background: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.nexus-wc-size-guide-modal__body {
	padding: 1.25rem;
}
.nexus-wc-address-book {
	margin-bottom: 1.25rem;
	padding: 1rem;
	border: 1px solid var(--nexus-border-light, #e2e8f0);
	border-radius: 8px;
}
.nexus-wc-address-book__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}
.nexus-wc-cart-empty-recent {
	margin-top: 2rem;
}
.nexus-wc-wishlist-hidden {
	display: none !important;
}
.nexus-wc-compare-col-hidden {
	display: none !important;
}
.nexus-wc-show-more-wrap {
	margin-top: 1rem;
	text-align: center;
}

.nexus-mini-cart-qty {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	flex-wrap: wrap;
}
.nexus-mini-cart-qty-btn {
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 1px solid var(--nexus-border-color, #e2e8f0);
	border-radius: 4px;
	background: var(--nexus-body-bg, #fff);
	line-height: 1;
	cursor: pointer;
}
.nexus-mini-cart-qty-input {
	width: 2.5rem;
	padding: 0.15rem 0.25rem;
	text-align: center;
}
.nexus-mini-cart-qty.is-updating {
	opacity: 0.6;
	pointer-events: none;
}
.nexus-wc-wishlist-grid ul.products {
	--nexus-wc-wishlist-cols: 4;
}
.nexus-wc-wishlist-grid ul.products {
	grid-template-columns: repeat(var(--nexus-wc-wishlist-cols, 4), minmax(0, 1fr));
}
.nexus-wc-compare-table-wrap {
	--nexus-wc-compare-cols: 4;
}
.nexus-wc-qv-gallery__main img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}
.nexus-wc-qv-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.5rem;
}
.nexus-wc-qv-gallery__thumb-btn {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: none;
	cursor: pointer;
}
.nexus-wc-qv-gallery__thumb-btn.is-active {
	border-color: var(--nexus-primary, #0f766e);
}
.nexus-wc-qv-gallery__thumb-btn img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
}
.nexus-wc-store-products-pagination {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.875rem;
}
