/**
 * WP Candy Land — WooCommerce presentation layer.
 */

/* Shop shell */
.wpc-shop-main {
	padding-bottom: 4rem;
}

.wpc-wc-inner {
	padding-top: 1.5rem;
	padding-bottom: 2rem;
}

.wpc-wc-breadcrumb-wrap {
	padding: 0.75rem 0 0;
}

.wpc-breadcrumb {
	font-size: 0.8rem;
	color: var(--wpc-text-muted);
}

.wpc-bc-sep {
	margin: 0 0.35rem;
	opacity: 0.5;
}

/* Shop layout with sidebar */
.wpc-wc-layout {
	display: grid;
	gap: 2rem;
	margin-top: 1.5rem;
}

.wpc-wc-layout__main {
	min-width: 0;
}

@media (min-width: 900px) {
	.wpc-wc-layout:not(.wpc-wc-layout--no-sidebar) {
		grid-template-columns: 260px 1fr;
		align-items: start;
	}
}

.wpc-wc-layout__sidebar .wpc-widget {
	margin-bottom: 1rem;
}

/* Shop sidebar widgets (Layered Nav, price filter, search) — dark UI, not default browser blue */
.wpc-wc-layout__sidebar .widget,
.wpc-sidebar--shop .widget {
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
	padding: 1rem 1.15rem;
	margin-bottom: 1rem;
}

.wpc-wc-layout__sidebar .widget-title,
.wpc-sidebar--shop .widget-title {
	font-family: var(--wpc-display);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wpc-text-muted);
	margin: 0 0 0.85rem;
}

.wpc-wc-layout__sidebar .widget a,
.wpc-sidebar--shop .widget a {
	color: var(--wpc-text);
	text-decoration: none;
}

.wpc-wc-layout__sidebar .widget a:hover,
.wpc-sidebar--shop .widget a:hover {
	color: var(--wpc-accent-2);
}

.wpc-wc-layout__sidebar .widget_search .search-field,
.wpc-sidebar--shop .widget_search .search-field,
.wpc-wc-layout__sidebar input[type="search"],
.wpc-sidebar--shop input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	background: var(--wpc-bg-elevated);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius-sm);
	color: var(--wpc-text);
	padding: 0.55rem 0.75rem;
}

.wpc-wc-layout__sidebar .widget_search .search-submit,
.wpc-sidebar--shop .widget_search .search-submit,
.wpc-wc-layout__sidebar button[type="submit"],
.wpc-sidebar--shop button[type="submit"] {
	margin-top: 0.5rem;
	padding: 0.45rem 1rem;
	border-radius: var(--wpc-radius-sm);
	border: 1px solid var(--wpc-border);
	background: var(--wpc-surface);
	color: var(--wpc-text);
	font-weight: 600;
	cursor: pointer;
}

.wpc-wc-layout__sidebar .widget_search .search-submit:hover,
.wpc-sidebar--shop .widget_search .search-submit:hover {
	border-color: rgba(0, 229, 255, 0.35);
	color: var(--wpc-accent-2);
}

.wpc-wc-layout__sidebar .widget ul,
.wpc-sidebar--shop .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpc-wc-layout__sidebar .widget li,
.wpc-sidebar--shop .widget li {
	margin-bottom: 0.4rem;
}

/* Archive header (title + term description — layout opens below this in WC 8.6+) */
.woocommerce .woocommerce-products-header {
	margin-bottom: 1.5rem;
}

.woocommerce .page-title,
.woocommerce-products-header .woocommerce-products-header__title,
.woocommerce-page .page-title {
	font-family: var(--wpc-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.5rem;
	color: var(--wpc-text);
}

.woocommerce .woocommerce-products-header .term-description {
	color: var(--wpc-text-muted);
	font-size: 1rem;
	line-height: 1.65;
	margin-top: 0.5rem;
}

.woocommerce .woocommerce-no-products-found {
	padding: 2rem 1.5rem;
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
	text-align: center;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count {
	font-size: 0.9rem;
	color: var(--wpc-text-muted);
}

.woocommerce .woocommerce-ordering select {
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius-sm);
	color: var(--wpc-text);
	padding: 0.45rem 2rem 0.45rem 0.75rem;
}

.woocommerce-notices-wrapper {
	margin-bottom: 1rem;
}

/* Toolbar row */
.woocommerce .woocommerce-before-shop-loop {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wpc-border);
}

/* Product grid */
.woocommerce ul.products.wpc-product-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

@media (min-width: 600px) {
	.woocommerce ul.products.wpc-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.woocommerce ul.products.wpc-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Front page: match category row density (same breakpoints as .wpc-category-grid) */
.wpc-home .wpc-home-section .woocommerce ul.products.wpc-product-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
	.wpc-home .wpc-home-section .woocommerce ul.products.wpc-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.wpc-home .wpc-home-section .woocommerce ul.products.wpc-product-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.wpc-home .wpc-product-card .woocommerce-loop-product__title {
	font-size: 0.88rem;
}

.wpc-home .wpc-product-card img {
	aspect-ratio: 4 / 3;
}

.woocommerce ul.products.wpc-product-grid::before,
.woocommerce ul.products.wpc-product-grid::after {
	display: none !important;
}

/* WooCommerce core layout.css uses floats; reset so CSS grid controls the loop */
.woocommerce ul.products.wpc-product-grid li.product,
.woocommerce .related.products ul.products li.product,
.woocommerce .upsells.products ul.products li.product {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wpc-bundle-grid ul.products {
	margin: 0 !important;
}

@media (min-width: 900px) {
	.wpc-home-section--bundles .wpc-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

/* Product card — padded body, full-bleed image, theme CSS loads after WooCommerce */
.wpc-product-card {
	--wpc-card-pad: 1rem;
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 700px) {
	.wpc-product-card {
		--wpc-card-pad: 1.15rem;
	}
}

.wpc-product-card-wrap:hover .wpc-product-card {
	transform: translateY(-4px);
	border-color: rgba(0, 229, 255, 0.2);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.wpc-product-card .woocommerce-LoopProduct-link {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	/* Horizontal inset only; bottom spacing comes from the Add to cart button margins */
	padding: 0 var(--wpc-card-pad) 0;
	box-sizing: border-box;
	min-height: 0;
}

/* Full-bleed product image; text stays inset via link padding */
.wpc-product-card .woocommerce-LoopProduct-link > img,
.wpc-product-card .woocommerce-LoopProduct-link img.attachment-woocommerce_thumbnail,
.wpc-product-card .woocommerce-LoopProduct-link img.woocommerce-placeholder {
	width: calc(100% + (var(--wpc-card-pad) * 2));
	max-width: none;
	margin-left: calc(var(--wpc-card-pad) * -1);
	margin-right: calc(var(--wpc-card-pad) * -1);
	margin-top: 0;
	margin-bottom: 0.85rem;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--wpc-surface-2);
	border-radius: 0;
}

.wpc-product-card .woocommerce-loop-product__title,
.woocommerce .wpc-product-card h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product .wpc-product-card .woocommerce-loop-product__title {
	font-family: var(--wpc-display);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.38;
	letter-spacing: -0.01em;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	box-sizing: border-box;
}

.wpc-product-card .price {
	display: block;
	margin: 0.5rem 0 0 !important;
	padding: 0 !important;
	font-weight: 700;
	color: #fbbf24;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

.wpc-product-card .price del {
	opacity: 0.55;
	font-size: 0.8em;
	margin-right: 0.35rem;
}

.wpc-product-card .price ins {
	text-decoration: none;
}

.wpc-product-card .star-rating {
	margin: 0.45rem 0 0 !important;
	font-size: 0.72rem;
	color: #fbbf24;
}

.wpc-product-card .woocommerce-loop-product__link + .star-rating {
	margin-top: 0.45rem !important;
}

.wpc-product-card .button,
.wpc-product-card a.add_to_cart_button,
.wpc-product-card a.button.product_type_simple,
.wpc-product-card a.button.product_type_variable,
.wpc-product-card a.button.product_type_external {
	margin: 0.75rem var(--wpc-card-pad) var(--wpc-card-pad) !important;
	align-self: stretch;
	width: auto;
	display: inline-flex !important;
	justify-content: center;
	align-items: center;
	padding: 0.55rem 1rem !important;
	border-radius: 999px !important;
	background: rgba(0, 229, 255, 0.12) !important;
	border: 1px solid rgba(0, 229, 255, 0.35) !important;
	color: var(--wpc-accent-2) !important;
	font-weight: 600 !important;
	font-size: 0.82rem !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
	box-sizing: border-box;
}

.wpc-product-card .button:hover,
.wpc-product-card a.add_to_cart_button:hover,
.wpc-product-card a.button.product_type_variable:hover,
.wpc-product-card a.button.product_type_external:hover {
	background: rgba(0, 229, 255, 0.22) !important;
	border-color: var(--wpc-accent-2) !important;
	color: #fff !important;
}

.wpc-product-card span.onsale,
.wpc-product-card .woocommerce-loop-product__link .onsale {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 1;
	min-height: auto;
	min-width: auto;
	line-height: 1;
	padding: 0.35rem 0.55rem;
	border-radius: 6px;
	background: var(--wpc-accent);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
	margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul {
	border: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: none;
	display: inline-block;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid var(--wpc-border);
	background: var(--wpc-surface);
	color: var(--wpc-text);
	min-width: 2.5rem;
	height: 2.5rem;
	line-height: 2.5rem;
	padding: 0 0.65rem;
	border-radius: var(--wpc-radius-sm);
	font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	border-color: var(--wpc-accent-2);
	color: var(--wpc-accent-2);
}

/* Single product — landing */
.woocommerce div.product.wpc-product-landing {
	display: grid;
	gap: 2rem;
	margin-top: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.woocommerce div.product.wpc-product-landing {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		align-items: start;
		gap: clamp(2rem, 4vw, 3rem);
	}
}

/* WC layout.css floats 48% / 48%; grid replaces that — floats break the landing grid */
.woocommerce div.product.wpc-product-landing div.images,
.woocommerce div.product.wpc-product-landing div.summary {
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.woocommerce div.product.wpc-product-landing .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

.woocommerce div.product.wpc-product-landing .woocommerce-product-gallery__wrapper,
.woocommerce div.product.wpc-product-landing .flex-viewport {
	max-width: 100%;
}

.woocommerce div.product.wpc-product-landing .woocommerce-tabs,
.woocommerce div.product.wpc-product-landing .related,
.woocommerce div.product.wpc-product-landing .upsells {
	grid-column: 1 / -1;
}

.woocommerce div.product.wpc-product-landing .woocommerce-product-gallery {
	margin-bottom: 0;
	border-radius: var(--wpc-radius);
	overflow: hidden;
	border: 1px solid var(--wpc-border);
	background: var(--wpc-surface);
}

.woocommerce div.product.wpc-product-landing .summary {
	padding: 0;
	margin: 0;
}

.woocommerce div.product.wpc-product-landing .summary .woocommerce-product-rating {
	margin-bottom: 0.75rem;
}

.woocommerce div.product.wpc-product-landing .product_meta {
	font-size: 0.9rem;
	color: var(--wpc-text-muted);
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wpc-border);
}

.woocommerce div.product.wpc-product-landing .product_meta > span {
	display: block;
	margin-bottom: 0.35rem;
}

.woocommerce div.product.wpc-product-landing .product_meta a {
	color: var(--wpc-accent-2);
	text-decoration: none;
	font-weight: 600;
}

.woocommerce div.product.wpc-product-landing .product_meta a:hover {
	text-decoration: underline;
}

.woocommerce div.product.wpc-product-landing table.variations {
	margin-bottom: 1rem;
	width: 100%;
	border: none;
	border-collapse: collapse;
}

.woocommerce div.product.wpc-product-landing table.variations tbody {
	display: block;
}

.woocommerce div.product.wpc-product-landing table.variations tr {
	display: grid;
	grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
	gap: 0.65rem 1rem;
	align-items: center;
	margin-bottom: 0.65rem;
}

.woocommerce div.product.wpc-product-landing table.variations th,
.woocommerce div.product.wpc-product-landing table.variations td {
	padding: 0;
	border: none;
	text-align: left;
	vertical-align: middle;
}

.woocommerce div.product.wpc-product-landing table.variations label {
	font-weight: 600;
	color: var(--wpc-text);
}

.woocommerce div.product.wpc-product-landing table.variations select {
	width: 100%;
	max-width: 22rem;
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius-sm);
	color: var(--wpc-text);
	padding: 0.55rem 0.75rem;
}

@media (max-width: 599px) {
	.woocommerce div.product.wpc-product-landing table.variations tr {
		grid-template-columns: 1fr;
	}
}

.woocommerce div.product.wpc-product-landing .single_variation_wrap .woocommerce-variation-price {
	margin-bottom: 0.75rem;
	font-weight: 700;
	color: var(--wpc-accent-2);
}

.woocommerce div.product.wpc-product-landing span.onsale {
	top: 1rem;
	left: 1rem;
	min-height: auto;
	line-height: 1.2;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	background: var(--wpc-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	z-index: 2;
}

.woocommerce div.product .product_title {
	font-family: var(--wpc-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.75rem;
	color: var(--wpc-text);
}

.woocommerce div.product p.price {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--wpc-accent-2);
	margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--wpc-text-muted);
	font-size: 1.05rem;
	line-height: 1.65;
	margin-bottom: 1.5rem;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.woocommerce div.product form.cart .quantity .qty {
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius-sm);
	color: var(--wpc-text);
	padding: 0.5rem 0.75rem;
	max-width: 5rem;
}

.woocommerce div.product form.cart .button {
	background: linear-gradient(135deg, var(--wpc-accent), #ff6b6b) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 0.75rem 1.75rem !important;
	font-weight: 700 !important;
	box-shadow: 0 10px 40px rgba(255, 45, 85, 0.35) !important;
}

.woocommerce div.product .woocommerce-tabs {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wpc-border);
}

/* WC core paints tabs light (#e9e6ed) + active white (#fff) + faux corners (::before/::after) — reset for dark UI */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
	padding: 0;
	margin: 0 0 1.25rem;
	list-style: none;
	border: none;
	position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
	display: none !important;
	content: none !important;
	border: none !important;
	box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid var(--wpc-border) !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 999px !important;
	display: inline-flex !important;
	position: relative;
	z-index: auto !important;
	color: var(--wpc-text-muted) !important;
	box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: rgba(0, 229, 255, 0.12) !important;
	border-color: rgba(0, 229, 255, 0.35) !important;
	color: var(--wpc-text) !important;
	z-index: auto !important;
	border-bottom-color: rgba(0, 229, 255, 0.35) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 0.55rem 1.15rem !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	color: inherit !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	border: none !important;
	border-radius: inherit !important;
	background: transparent !important;
	text-shadow: none !important;
	box-sizing: border-box;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wpc-text) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wpc-text) !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0 0 1.75rem;
	padding: 1rem 0 0;
	color: var(--wpc-text-muted);
	border: none;
	background: transparent;
}

.woocommerce-Tabs-panel {
	color: var(--wpc-text-muted);
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	font-family: var(--wpc-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--wpc-text);
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.woocommerce div.product .woocommerce-tabs #review_form_wrapper {
	margin-top: 1rem;
	padding: 1.15rem 1.25rem;
	border-radius: var(--wpc-radius);
	border: 1px solid var(--wpc-border);
	background: var(--wpc-surface);
}

.woocommerce div.product .woocommerce-tabs #reviews .comment-reply-title,
.woocommerce div.product .woocommerce-tabs #reviews label {
	color: var(--wpc-text);
}

.woocommerce div.product .woocommerce-tabs #reviews .comment-form input[type="text"],
.woocommerce div.product .woocommerce-tabs #reviews .comment-form input[type="email"],
.woocommerce div.product .woocommerce-tabs #reviews .comment-form textarea,
.woocommerce div.product .woocommerce-tabs #reviews select#rating {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: var(--wpc-surface-2);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius-sm);
	color: var(--wpc-text);
	padding: 0.55rem 0.75rem;
	font-family: inherit;
	font-size: 0.95rem;
}

.woocommerce div.product .woocommerce-tabs #reviews select#rating {
	max-width: 22rem;
	cursor: pointer;
}

.woocommerce div.product .woocommerce-tabs #reviews .woocommerce-Reviews-title {
	font-family: var(--wpc-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--wpc-text);
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.woocommerce div.product .woocommerce-tabs #reviews .comment-form .form-submit input {
	background: linear-gradient(135deg, var(--wpc-accent), #ff6b6b) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 0.65rem 1.5rem !important;
	font-weight: 700 !important;
	cursor: pointer;
}

.woocommerce table.shop_attributes {
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
	overflow: hidden;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	border-bottom: 1px solid var(--wpc-border);
	padding: 0.75rem 1rem;
}

/* Related / upsells */
.woocommerce .related.products,
.woocommerce .upsells.products {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wpc-border);
}

.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
	font-family: var(--wpc-display);
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 1.25rem;
}

.woocommerce .related.products ul.products,
.woocommerce .upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 800px) {
	.woocommerce .related.products ul.products,
	.woocommerce .upsells.products ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Cart & checkout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
	max-width: 100%;
}

.woocommerce table.shop_table {
	border: 1px solid var(--wpc-border) !important;
	border-radius: var(--wpc-radius) !important;
	overflow: hidden;
	background: var(--wpc-surface) !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--wpc-border) !important;
	padding: 0.85rem 1rem !important;
}

.woocommerce #payment {
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
}

.woocommerce #payment div.payment_box {
	background: var(--wpc-bg-elevated);
	color: var(--wpc-text-muted);
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-left-width: 4px !important;
	border-radius: var(--wpc-radius-sm);
	color: var(--wpc-text);
}

.woocommerce .woocommerce-message {
	border-left-color: #22c55e !important;
}

.woocommerce .woocommerce-info {
	border-left-color: var(--wpc-accent-2) !important;
}

.woocommerce .woocommerce-error {
	border-left-color: var(--wpc-accent) !important;
}

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation {
	background: var(--wpc-surface);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
	padding: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 0.6rem 0.85rem;
	color: var(--wpc-text-muted);
	text-decoration: none;
	border-radius: var(--wpc-radius-sm);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	background: rgba(0, 229, 255, 0.08);
	color: var(--wpc-accent-2);
}

/*
 * Checkout & cart billing/shipping — match support/contact .wpc-form + .wpc-input (forms.css variables).
 */
body.woocommerce-checkout .woocommerce form.checkout .form-row,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form .form-row,
body.woocommerce-account .woocommerce form.woocommerce-address-fields .form-row,
body.woocommerce-account .woocommerce form.edit-account .form-row {
	padding: 0 !important;
	margin: 0 0 1.25rem;
}

body.woocommerce-checkout .woocommerce form.checkout .form-row label:not(.woocommerce-form__label-for-checkbox),
body.woocommerce-cart .woocommerce form.woocommerce-cart-form .form-row label:not(.woocommerce-form__label-for-checkbox),
body.woocommerce-account .woocommerce form .form-row label:not(.woocommerce-form__label-for-checkbox) {
	display: block;
	font-weight: 600;
	font-size: 0.9375rem;
	margin: 0 0 0.5rem;
	color: var(--wpc-text);
	line-height: 1.35;
}

body.woocommerce-checkout .woocommerce form.checkout .form-row label.woocommerce-form__label-for-checkbox,
body.woocommerce-checkout .woocommerce form.checkout .form-row label.checkbox {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 500;
	margin-bottom: 0;
	cursor: pointer;
}

body.woocommerce-checkout .woocommerce form.checkout abbr.required,
body.woocommerce-cart .woocommerce abbr.required {
	color: var(--wpc-accent);
	text-decoration: none;
	font-weight: 700;
}

body.woocommerce-checkout .woocommerce form.checkout .woocommerce-input-wrapper,
body.woocommerce-cart .woocommerce .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

body.woocommerce-checkout .woocommerce form.checkout input.input-text,
body.woocommerce-checkout .woocommerce form.checkout textarea,
body.woocommerce-checkout .woocommerce form.checkout select,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form input.input-text,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form textarea,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form select,
body.woocommerce-account .woocommerce form input.input-text,
body.woocommerce-account .woocommerce form textarea,
body.woocommerce-account .woocommerce form select {
	width: 100%;
	max-width: 100%;
	font-family: var(--wpc-font);
	font-size: var(--wpc-control-font, 1rem);
	min-height: var(--wpc-control-min-h, 2.75rem);
	padding: 0.65rem var(--wpc-control-pad-x, 1rem);
	border-radius: var(--wpc-control-radius, 10px);
	border: 1px solid var(--wpc-control-border, rgba(255, 255, 255, 0.14));
	background-color: var(--wpc-control-bg, #0a0a10);
	color: var(--wpc-text);
	line-height: 1.45;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

body.woocommerce-checkout .woocommerce form.checkout textarea,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form textarea {
	min-height: 6.5rem;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	resize: vertical;
}

body.woocommerce-checkout .woocommerce form.checkout input.input-text::placeholder,
body.woocommerce-checkout .woocommerce form.checkout textarea::placeholder,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form input.input-text::placeholder,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form textarea::placeholder {
	color: rgba(168, 168, 184, 0.8);
	opacity: 1;
}

body.woocommerce-checkout .woocommerce form.checkout input.input-text:hover:not(:disabled):not(:focus-visible),
body.woocommerce-checkout .woocommerce form.checkout textarea:hover:not(:disabled):not(:focus-visible),
body.woocommerce-checkout .woocommerce form.checkout select:hover:not(:disabled):not(:focus-visible),
body.woocommerce-cart .woocommerce form.woocommerce-cart-form input.input-text:hover:not(:disabled):not(:focus-visible),
body.woocommerce-cart .woocommerce form.woocommerce-cart-form textarea:hover:not(:disabled):not(:focus-visible),
body.woocommerce-cart .woocommerce form.woocommerce-cart-form select:hover:not(:disabled):not(:focus-visible) {
	border-color: var(--wpc-control-border-hover, rgba(255, 255, 255, 0.22));
	background-color: var(--wpc-control-bg-hover, #0e0e16);
}

body.woocommerce-checkout .woocommerce form.checkout input.input-text:focus,
body.woocommerce-checkout .woocommerce form.checkout textarea:focus,
body.woocommerce-checkout .woocommerce form.checkout select:focus,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form input.input-text:focus,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form textarea:focus,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form select:focus {
	outline: none;
}

body.woocommerce-checkout .woocommerce form.checkout input.input-text:focus-visible,
body.woocommerce-checkout .woocommerce form.checkout textarea:focus-visible,
body.woocommerce-checkout .woocommerce form.checkout select:focus-visible,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form input.input-text:focus-visible,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form textarea:focus-visible,
body.woocommerce-cart .woocommerce form.woocommerce-cart-form select:focus-visible,
body.woocommerce-account .woocommerce form input.input-text:focus-visible,
body.woocommerce-account .woocommerce form textarea:focus-visible,
body.woocommerce-account .woocommerce form select:focus-visible {
	border-color: var(--wpc-focus-border, rgba(0, 229, 255, 0.55));
	box-shadow: var(--wpc-focus-ring, 0 0 0 3px rgba(0, 229, 255, 0.28));
}

/* Select2 (country / state) — same chrome as .wpc-select */
body.woocommerce-checkout .select2-container--default .select2-selection--single,
body.woocommerce-cart .select2-container--default .select2-selection--single {
	min-height: var(--wpc-control-min-h, 2.75rem);
	border: 1px solid var(--wpc-control-border, rgba(255, 255, 255, 0.14)) !important;
	border-radius: var(--wpc-control-radius, 10px) !important;
	background-color: var(--wpc-control-bg, #0a0a10) !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
body.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-cart .select2-container--default.select2-container--open .select2-selection--single,
body.woocommerce-cart .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--wpc-focus-border, rgba(0, 229, 255, 0.55)) !important;
	box-shadow: var(--wpc-focus-ring, 0 0 0 3px rgba(0, 229, 255, 0.28));
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--wpc-text) !important;
	line-height: calc(var(--wpc-control-min-h, 2.75rem) - 2px);
	padding-left: var(--wpc-control-pad-x, 1rem);
	padding-right: 2.75rem;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	top: 0;
	right: 0.5rem;
	width: 1.5rem;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-color: #a8a8b8 transparent transparent transparent;
	margin-top: -3px;
}

body.woocommerce-checkout .select2-dropdown,
body.woocommerce-cart .select2-dropdown {
	border: 1px solid var(--wpc-border) !important;
	border-radius: var(--wpc-radius-sm, 8px) !important;
	background: var(--wpc-surface, #12121a) !important;
	color: var(--wpc-text);
	overflow: hidden;
}

body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-cart .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: rgba(0, 229, 255, 0.15) !important;
	color: var(--wpc-text) !important;
}

body.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected="true"],
body.woocommerce-cart .select2-container--default .select2-results__option[aria-selected="true"] {
	background: rgba(0, 229, 255, 0.08) !important;
}

/* Section titles on checkout — align with .wpc-form-panel__title */
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3 {
	font-family: var(--wpc-display);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--wpc-text);
}

body.woocommerce-checkout #order_review_heading {
	font-family: var(--wpc-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--wpc-text);
}

/* Match .wpc-form-panel card treatment from contact/support pages */
body.woocommerce-checkout .woocommerce #customer_details {
	margin-bottom: 1.75rem;
	padding: clamp(1.35rem, 3vw, 1.75rem);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(8, 8, 12, 0.5) 100%);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

body.woocommerce-checkout .woocommerce #order_review.woocommerce-checkout-review-order {
	padding: clamp(1.25rem, 2.5vw, 1.5rem);
	border: 1px solid var(--wpc-border);
	border-radius: var(--wpc-radius);
	background: var(--wpc-surface);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Primary checkout action — match .wpc-btn--primary */
body.woocommerce-checkout #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-height: var(--wpc-control-min-h, 2.75rem);
	padding: 0.75rem 1.5rem !important;
	font-family: var(--wpc-font) !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	border-radius: 999px !important;
	border: none !important;
	cursor: pointer;
	background: linear-gradient(135deg, var(--wpc-accent), #ff6b6b) !important;
	color: #fff !important;
	box-shadow: 0 8px 32px rgba(255, 45, 85, 0.35) !important;
	transition: transform 0.15s ease, box-shadow 0.2s ease !important;
}

body.woocommerce-checkout #place_order:hover {
	transform: translateY(-1px);
	color: #fff !important;
}

/* Fallback: any remaining .input-text on WC pages */
.woocommerce .input-text,
.woocommerce-page .input-text,
.woocommerce textarea,
.woocommerce select {
	font-family: var(--wpc-font);
	font-size: var(--wpc-control-font, 1rem);
	min-height: var(--wpc-control-min-h, 2.75rem);
	border-radius: var(--wpc-control-radius, 10px);
	border: 1px solid var(--wpc-control-border, rgba(255, 255, 255, 0.14));
	background-color: var(--wpc-control-bg, #0a0a10);
	color: var(--wpc-text);
}

.woocommerce .input-text:focus-visible,
.woocommerce textarea:focus-visible,
.woocommerce select:focus-visible {
	outline: none;
	border-color: var(--wpc-focus-border, rgba(0, 229, 255, 0.55));
	box-shadow: var(--wpc-focus-ring, 0 0 0 3px rgba(0, 229, 255, 0.28));
}

.woocommerce form .form-row {
	margin: 0 0 1rem;
}

/*
 * WooCommerce Block checkout / cart — classic `form.checkout` rules do not apply.
 * WC sets inputs to #fff in packages-style.css; load order + !important below fixes dark theme.
 */
body.woocommerce-checkout .wc-block-components-text-input input:not( [type="checkbox"] ):not( [type="radio"] ),
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input:not( [type="checkbox"] ):not( [type="radio"] ),
body.woocommerce-cart .wc-block-components-text-input input:not( [type="checkbox"] ):not( [type="radio"] ),
body.woocommerce-cart .wc-block-components-form .wc-block-components-text-input input:not( [type="checkbox"] ):not( [type="radio"] ) {
	background-color: var(--wpc-control-bg) !important;
	border: 1px solid var(--wpc-control-border) !important;
	border-radius: var(--wpc-control-radius) !important;
	color: var(--wpc-text) !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:hover:not( :disabled ):not( :focus-visible ),
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input:hover:not( :disabled ):not( :focus-visible ),
body.woocommerce-cart .wc-block-components-text-input input:hover:not( :disabled ):not( :focus-visible ) {
	border-color: var(--wpc-control-border-hover) !important;
	background-color: var(--wpc-control-bg-hover) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input:focus-visible,
body.woocommerce-cart .wc-block-components-text-input input:focus-visible {
	border-color: var(--wpc-focus-border) !important;
	box-shadow: var(--wpc-focus-ring) !important;
	outline: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input label,
body.woocommerce-cart .wc-block-components-text-input label {
	color: var(--wpc-text-muted) !important;
}

body.woocommerce-checkout .wc-block-components-text-input.is-active label,
body.woocommerce-checkout .wc-block-components-text-input--has-value label,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input.is-active label,
body.woocommerce-cart .wc-block-components-text-input.is-active label {
	color: var(--wpc-text) !important;
}

body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-cart .wc-block-components-textarea {
	background-color: var(--wpc-control-bg) !important;
	border: 1px solid var(--wpc-control-border) !important;
	border-radius: var(--wpc-control-radius) !important;
	color: var(--wpc-text) !important;
}

body.woocommerce-checkout .wc-block-components-textarea:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus-visible,
body.woocommerce-cart .wc-block-components-textarea:focus-visible {
	border-color: var(--wpc-focus-border) !important;
	box-shadow: var(--wpc-focus-ring) !important;
	outline: none !important;
}

body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container,
body.woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__container {
	background-color: var(--wpc-control-bg) !important;
	border-radius: var(--wpc-control-radius) !important;
}

body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
body.woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__select {
	background-color: transparent !important;
	border: 1px solid var(--wpc-control-border) !important;
	border-radius: var(--wpc-control-radius) !important;
	color: var(--wpc-text) !important;
	min-height: var(--wpc-control-min-h) !important;
}

body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus-visible,
body.woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__select:focus-visible {
	border-color: var(--wpc-focus-border) !important;
	box-shadow: var(--wpc-focus-ring) !important;
	outline: none !important;
}

body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
body.woocommerce-cart .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	background-color: var(--wpc-control-bg) !important;
	border-color: var(--wpc-control-border) !important;
}

body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked,
body.woocommerce-cart .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background-color: var(--wpc-accent-2) !important;
	border-color: var(--wpc-accent-2) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-cart .wc-block-components-notice-banner {
	background: var(--wpc-surface) !important;
	border: 1px solid var(--wpc-border) !important;
	color: var(--wpc-text) !important;
	border-radius: var(--wpc-radius-sm) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-error,
body.woocommerce-checkout .wc-block-components-notice-banner.is-warning {
	border-left: 4px solid var(--wpc-accent) !important;
}

/* Block “Place order” — not #place_order; classic rule above does not apply */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button,
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
	background: linear-gradient(135deg, var(--wpc-accent), #ff6b6b) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	box-shadow: 0 8px 32px rgba(255, 45, 85, 0.35) !important;
	transition: transform 0.15s ease, box-shadow 0.2s ease !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button:hover:not( :disabled ),
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover:not( :disabled ) {
	transform: translateY(-1px);
	color: #fff !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button.text {
	color: #fff !important;
	opacity: 1 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title {
	color: var(--wpc-text) !important;
}

/* Elementor hero on home */
.wpc-home-hero--elementor {
	border-bottom: 1px solid var(--wpc-border);
}

.wpc-home-promo--elementor {
	background: var(--wpc-surface);
	border-bottom: 1px solid var(--wpc-border);
}
