/*
 * Production Store — WooCommerce overrides.
 * Loaded after theme.css.
 */

/* ============================================================
   Product card glue (match FRONT / nawres .product-card)
   ============================================================ */
.product-card .product-card__media-link {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.product-card .product-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card .product-card__vendor {
	display: none !important;
}

.product-card .product-card__favorite {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
}

.product-card .product-card__favorite .yith-wcwl-add-to-wishlist {
	margin: 0;
	width: 34px;
	height: 34px;
}

.product-card .product-card__favorite .yith-wcwl-add-to-wishlist > div,
.product-card .product-card__favorite .yith-wcwl-add-button,
.product-card .product-card__favorite .yith-wcwl-wishlistexistsbrowse,
.product-card .product-card__favorite .yith-wcwl-wishlistaddedbrowse {
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0;
	width: 34px;
	height: 34px;
}

.product-card .product-card__favorite a,
.product-card .product-card__favorite .yith-wcwl-add-button a,
.product-card .product-card__favorite .delete_item,
.product-card .product-card__favorite .yith-wcwl-wishlistexistsbrowse a,
.product-card .product-card__favorite .yith-wcwl-wishlistaddedbrowse a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--product-line, rgba(15, 23, 42, 0.12)) !important;
	border-radius: 999px !important;
	background: var(--surface, #fff) !important;
	color: var(--text, #0f172a) !important;
	box-shadow: none !important;
	text-indent: 0 !important;
	overflow: hidden;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
}

.product-card .product-card__favorite a::before,
.product-card .product-card__favorite a i,
.product-card .product-card__favorite a .yith-wcwl-icon {
	font-size: 0.95rem !important;
	line-height: 1 !important;
	margin: 0 !important;
	color: inherit !important;
}

.product-card .product-card__favorite a:hover,
.product-card .product-card__favorite .yith-wcwl-add-button a:hover {
	border-color: rgba(230, 30, 37, 0.42) !important;
	background: rgba(230, 30, 37, 0.08) !important;
	color: var(--red, #e61e25) !important;
}

.popular-showcase .product-card__favorite a,
.popular-showcase .product-card__favorite .yith-wcwl-add-button a,
.popular-showcase .product-card__quick-view,
.product-showcase .product-card__favorite a,
.product-showcase .product-card__favorite .yith-wcwl-add-button a,
.product-showcase .product-card__quick-view {
	border-color: var(--cart-cta, #1e3a8a) !important;
	background: var(--surface-2, var(--surface)) !important;
	color: var(--cart-cta, #1e3a8a) !important;
}

.popular-showcase .product-card__quick-view:hover,
.product-showcase .product-card__quick-view:hover {
	border-color: var(--cart-cta, #1e3a8a) !important;
	background: var(--cart-cta, #1e3a8a) !important;
	color: #fff !important;
}

.popular-showcase .product-card__favorite a:hover,
.popular-showcase .product-card__favorite .yith-wcwl-add-button a:hover,
.product-showcase .product-card__favorite a:hover {
	border-color: rgba(230, 30, 37, 0.42) !important;
	background: rgba(230, 30, 37, 0.08) !important;
	color: var(--red, #e61e25) !important;
}

/* ------------------------------------------------------------
   Favoris — cercle comme la loupe ; rouge plein seulement si actif
   ------------------------------------------------------------ */
.product-card__actions .product-card__favorite-btn,
.product-card .product-card__favorite a,
.product-card .product-card__favorite .yith-wcwl-add-button a,
.popular-showcase .product-card__favorite a,
.popular-showcase .product-card__favorite .yith-wcwl-add-button a,
.product-showcase .product-card__favorite a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--product-line, rgba(15, 23, 42, 0.12)) !important;
	border-radius: 999px !important;
	background: var(--surface, #fff) !important;
	color: var(--text, #0f172a) !important;
	box-shadow: none !important;
	opacity: 1 !important;
	backdrop-filter: none !important;
	cursor: pointer;
	text-decoration: none !important;
	transition:
		background 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease;
}

/* Meme bordure que la loupe : le coeur utilisait la variante translucide. */
.popular-showcase .product-card__actions .product-card__favorite-btn,
.popular-showcase .product-card__favorite a,
.popular-showcase .product-card__favorite .yith-wcwl-add-button a,
.product-showcase .product-card__actions .product-card__favorite-btn,
.product-showcase .product-card__favorite a {
	border-color: var(--cart-cta, #1e3a8a) !important;
	background: var(--surface-2, var(--surface)) !important;
	color: var(--cart-cta, #1e3a8a) !important;
}

.product-card__actions .product-card__favorite-btn .icon,
.product-card .product-card__favorite a svg,
.popular-showcase .product-card__favorite a svg,
.product-showcase .product-card__favorite a svg {
	width: 1rem !important;
	height: 1rem !important;
	min-width: 1rem !important;
	min-height: 1rem !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.75;
}

.product-card__actions .product-card__favorite-btn:hover,
.product-card .product-card__favorite a:hover,
.popular-showcase .product-card__favorite a:hover,
.popular-showcase .product-card__favorite .yith-wcwl-add-button a:hover,
.product-showcase .product-card__favorite a:hover {
	border-color: rgba(230, 30, 37, 0.42) !important;
	background: rgba(230, 30, 37, 0.08) !important;
	color: var(--red, #e61e25) !important;
	box-shadow: none !important;
	transform: none;
}

.product-card__actions .product-card__favorite-btn.is-active,
.product-card__actions .product-card__favorite-btn.is-active:hover,
.product-card .product-card__favorite .yith-wcwl-wishlistexistsbrowse a,
.product-card .product-card__favorite .yith-wcwl-wishlistaddedbrowse a,
.popular-showcase .product-card__favorite .yith-wcwl-wishlistexistsbrowse a,
.popular-showcase .product-card__favorite .yith-wcwl-wishlistaddedbrowse a,
.product-showcase .product-card__favorite .yith-wcwl-wishlistexistsbrowse a,
.product-showcase .product-card__favorite .yith-wcwl-wishlistaddedbrowse a {
	border-color: var(--red, #e61e25) !important;
	background: var(--red, #e61e25) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(230, 30, 37, 0.28) !important;
}

.product-card__actions .product-card__favorite-btn.is-active .icon,
.product-card .product-card__favorite .yith-wcwl-wishlistexistsbrowse a svg,
.product-card .product-card__favorite .yith-wcwl-wishlistaddedbrowse a svg,
.product-card .product-card__favorite .yith-wcwl-wishlistexistsbrowse a i,
.product-card .product-card__favorite .yith-wcwl-wishlistaddedbrowse a i {
	fill: currentColor !important;
	stroke: currentColor !important;
}

.product-card__price del,
.woocommerce ul.products .product-card__price del {
	display: inline-flex;
	align-items: baseline;
	margin: 0;
	opacity: 1;
	color: var(--red, #e61e25) !important;
	font-size: 0.78rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-decoration: line-through !important;
}

.product-card__price del .woocommerce-Price-amount,
.product-card__price del .amount,
.product-card__price del bdi {
	color: var(--red, #e61e25) !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-decoration: inherit !important;
}

/* ============================================================
   Product card — title, price, CTA hierarchy
   ============================================================ */
.product-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.7rem;
	padding: 1rem !important;
	min-width: 0;
}

.product-card__meta {
	min-height: 0;
	margin: 0;
	font-size: 0.58rem !important;
}

.product-card__title,
.product-card h3.product-card__title,
.product-card h3,
.woocommerce ul.products li.product .product-card__title,
.woocommerce ul.products li.product h3 {
	display: block;
	max-width: 100%;
	margin: 0 !important;
	min-height: 0 !important;
	overflow: hidden;
	color: var(--product-text, var(--text)) !important;
	font-size: 0.8rem !important;
	font-weight: 900 !important;
	line-height: 1.28 !important;
	letter-spacing: -0.01em;
	text-transform: none !important;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product-card__title-link,
.product-card__title a,
.product-card h3 a {
	color: inherit !important;
	text-decoration: none !important;
}

.product-card__title-link:hover,
.product-card__title a:hover,
.product-card h3 a:hover {
	color: var(--red, #e61e25) !important;
}

.product-card__pricing {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
  margin: 0 !important;
  width: 100%;
}

.product-card__price {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0 !important;
  min-width: 0;
  flex: 1 1 auto;
}

.product-card__price-main {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28rem 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.product-card__price span,
.product-card__price .woocommerce-Price-amount,
.product-card__price .amount,
.product-card__price bdi {
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}

.product-card__price strong,
.product-card__price-current,
.product-card__price strong .woocommerce-Price-amount,
.product-card__price strong .amount,
.product-card__price strong bdi,
.product-card__price-current .woocommerce-Price-amount,
.product-card__price-current .amount,
.product-card__price-current bdi {
	color: var(--product-text, var(--text)) !important;
	font-size: 0.88rem !important;
	font-weight: 900 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em;
}

.product-card__price del,
.product-card__price-compare,
.woocommerce ul.products .product-card__price del,
.woocommerce ul.products .product-card__price-compare {
	display: inline-flex;
	align-items: baseline;
	margin: 0;
	opacity: 1;
	color: var(--red, #e61e25) !important;
	font-size: 0.68rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-decoration: line-through !important;
}

.product-card__price del .woocommerce-Price-amount,
.product-card__price del .amount,
.product-card__price del bdi,
.product-card__price-compare .woocommerce-Price-amount,
.product-card__price-compare .amount,
.product-card__price-compare bdi {
	color: var(--red, #e61e25) !important;
}

.product-card__price .product-card__savings,
.product-card__price > span.product-card__savings {
	color: var(--red, #e61e25) !important;
	font-size: 0.54rem !important;
	font-weight: 900 !important;
}

.product-card p,
.product-card__body p {
	font-size: 0.62rem !important;
	line-height: 1.38 !important;
}

.product-card__cta,
.product-card .product-card__cta,
.woocommerce ul.products li.product .product-card__cta,
a.product-card__cta.button,
button.product-card__cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 46px;
	margin: auto 0 0 !important;
	padding: 0.7rem 0.9rem !important;
	border: 0 !important;
	border-radius: 0.8rem !important;
	background: linear-gradient(135deg, var(--cart-cta, #1e3a8a), var(--cart-cta-dark, #152a66)) !important;
	color: #fff !important;
	font-size: 0.72rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(30, 58, 138, 0.22);
	cursor: pointer;
}

.product-card__cta:hover,
.product-card .product-card__cta:hover {
	filter: brightness(1.06);
	color: #fff !important;
}

.product-card__cta .icon,
.product-card__cta .svg-icon {
	width: 1.05rem;
	height: 1.05rem;
	flex: 0 0 auto;
}

.product-card__cta.added,
.product-card .product-card__cta.added {
	opacity: 0.9;
}

.product-card__wish {
	display: none !important;
}

@media (max-width: 767px) {
	.product-card h3,
	.product-card__title,
	.product-card h3.product-card__title {
		display: -webkit-box;
		overflow: hidden;
		font-size: 0.78rem !important;
		line-height: 1.35 !important;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.product-card__body > p,
	.product-card__specs {
		display: none;
	}

	.product-card__meta {
		font-size: 0.56rem !important;
		gap: 0.25rem;
	}

	.product-card__pricing,
	.popular-showcase .product-card__pricing,
	.product-showcase .product-card__pricing {
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 0.45rem !important;
		width: 100%;
	}

	.product-card__price,
	.popular-showcase .product-card__price,
	.product-showcase .product-card__price {
		flex-direction: column !important;
		align-items: flex-start !important;
		flex-wrap: nowrap !important;
		gap: 0.12rem !important;
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
	}

	.product-card__price-main {
		gap: 0.22rem 0.35rem;
	}

	.product-card__price strong,
	.product-card__price-current,
	.product-card__price strong .woocommerce-Price-amount,
	.product-card__price-current .woocommerce-Price-amount {
		font-size: 0.82rem !important;
		line-height: 1.1 !important;
	}

	.product-card__price del,
	.product-card__price-compare,
	.product-card__price del .woocommerce-Price-amount,
	.product-card__price-compare .woocommerce-Price-amount {
		font-size: 0.62rem !important;
		line-height: 1.15 !important;
	}

	.product-card__price .product-card__savings {
		font-size: 0.52rem !important;
	}

	.product-card__actions,
	.product-card__body .product-card__actions,
	.popular-showcase .product-card__actions,
	.product-showcase .product-card__actions {
		justify-content: flex-end !important;
		width: auto !important;
		flex: 0 0 auto;
		margin: 0 !important;
		gap: 0 !important;
	}

	.product-card__quick-view {
		display: none !important;
	}

	.product-card .product-card__favorite,
	.product-card .product-card__favorite .yith-wcwl-add-to-wishlist,
	.product-card .product-card__favorite .yith-wcwl-add-to-wishlist > div,
	.product-card .product-card__favorite .yith-wcwl-add-button,
	.product-card .product-card__favorite .yith-wcwl-wishlistexistsbrowse,
	.product-card .product-card__favorite .yith-wcwl-wishlistaddedbrowse {
		width: 34px;
		height: 34px;
	}

	.product-card .product-card__actions button,
	.product-card .product-card__actions .product-card__favorite a,
	.product-card .product-card__actions .product-card__favorite .yith-wcwl-add-button a,
	.product-card__actions .product-card__favorite-btn {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		min-height: 34px !important;
	}

	.product-card__body {
		gap: 0.45rem;
		padding: 0.65rem 0.7rem 0.75rem;
	}

	.product-card__cta,
	.product-card .product-card__cta {
		min-height: 34px;
		margin-top: 0.15rem !important;
		padding: 0.42rem 0.55rem !important;
		font-size: 0.64rem !important;
		gap: 0.28rem;
		border-radius: 0.65rem !important;
	}

	.product-card__cta .icon,
	.product-card__cta .svg-icon {
		width: 0.9rem;
		height: 0.9rem;
	}
}

/* ============================================================
   WC loop / shop archive — use the marketplace product-grid
   ============================================================ */
.woocommerce .products,
.woocommerce-page .products,
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin: 0 0 1rem;
}

.woocommerce .woocommerce-ordering select {
	background: var(--surface);
	color: inherit;
	border: 1px solid var(--line);
	padding: 0.5rem 0.8rem;
	border-radius: 10px;
}

/* ============================================================
   Single product page — gallery + buy box (no Storefront float fight)
   ============================================================ */
.single-product .product-listing {
	width: min(1240px, calc(100% - 2rem));
	margin: 1.25rem auto 3rem;
}

.single-product div.product.product-detail,
.single-product div.product {
	display: flex !important;
	flex-direction: column !important;
	gap: 1rem !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Kill WC / Storefront 48% float layout */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product div.images,
.single-product div.product .summary,
.single-product div.product .entry-summary,
.single-product .product-detail__gallery .woocommerce-product-gallery,
.single-product .product-detail__info.summary {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}

.single-product .product-detail__layout {
	display: grid !important;
	grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
	gap: 1.35rem;
	align-items: start;
	padding: 1.1rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
	box-shadow: var(--shadow-soft, 0 12px 32px rgba(15, 23, 42, 0.06));
}

.single-product .product-detail__gallery-col {
	position: relative;
	width: 100%;
	max-width: 460px;
	min-width: 0;
}

.single-product .product-detail__sale-badge {
	position: absolute;
	z-index: 5;
	top: 0.85rem;
	left: 0.85rem;
	display: inline-flex;
	margin: 0;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--sale, #e61e25);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.02em;
}

.single-product .product-detail__info {
	display: grid;
	gap: 0.7rem;
	align-content: start;
	min-width: 0;
	color: var(--text);
}

.single-product .product-detail__brand,
.single-product .product-detail__category {
	margin: 0;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.single-product .product-detail__brand a,
.single-product .product-detail__category a {
	color: inherit;
	text-decoration: none;
}

.single-product .product-detail__info .product_title,
.single-product .product_title {
	margin: 0 !important;
	color: var(--text) !important;
	font-size: clamp(1.15rem, 2.2vw, 1.55rem) !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em;
	text-transform: none !important;
	word-break: normal;
	overflow-wrap: anywhere;
}

.single-product .product-detail__rating .icon {
	width: 0.85rem;
	height: 0.85rem;
	flex: 0 0 auto;
}

.single-product .product-detail__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.65rem;
	margin: 0;
}

.single-product .product-detail__price .price,
.single-product .product-detail__price .amount,
.single-product .product-detail__price del,
.single-product .product-detail__price ins,
.single-product .product-detail__price span,
.single-product .product-detail__price bdi {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	background: transparent;
	text-decoration: none;
}

.single-product .product-detail__price .price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.55rem;
	margin: 0;
	color: var(--red, #e61e25);
	font-size: clamp(1.25rem, 2.5vw, 1.55rem);
	font-weight: 900;
	letter-spacing: -0.01em;
}

.single-product .product-detail__price del {
	opacity: 0.65;
	color: var(--muted) !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	text-decoration: line-through;
}

.single-product .product-detail__price ins {
	color: var(--red, #e61e25) !important;
	font-size: inherit !important;
	font-weight: 900 !important;
	text-decoration: none;
}

.single-product .product-detail__savings {
	display: inline-flex;
	padding: 0.22rem 0.5rem;
	border-radius: 999px;
	background: rgba(230, 30, 37, 0.12);
	color: var(--red, #e61e25);
	font-size: 0.72rem;
	font-weight: 900;
}

.single-product .product-detail__availability {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 26px;
	margin: 0;
	padding: 0 0.6rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 900;
}

.single-product .product-detail__availability--in-stock {
	background: rgba(22, 163, 74, 0.12);
	color: #16a34a;
}

.single-product .product-detail__availability--limited {
	background: rgba(245, 158, 11, 0.14);
	color: #d97706;
}

.single-product .product-detail__availability--out {
	background: rgba(230, 30, 37, 0.12);
	color: var(--red, #e61e25);
}

.single-product .product-detail__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
}

.single-product .product-detail__badges .product-card__badge {
	position: static;
}

.single-product .product-detail__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
}

.single-product .product-detail__chip {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 0.55rem;
	border: 1px solid var(--product-line, var(--line));
	border-radius: 999px;
	background: var(--product-chip-bg, var(--surface-2));
	color: var(--product-muted, var(--text-soft));
	font-size: 0.68rem;
	font-weight: 900;
}

.single-product .product-detail__lead,
.single-product .product-detail__excerpt,
.single-product .woocommerce-product-details__short-description {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.92rem;
	line-height: 1.55;
	font-weight: 700;
}

.single-product .product-detail__actions {
	--product-action-h: 48px;
	display: flex;
	align-items: stretch;
	gap: 0.55rem;
	margin: 0;
	padding-top: 0.15rem;
	min-height: var(--product-action-h);
}

/* Front office parity: one click adds a single unit, quantity is edited in the cart. */
.single-product .product-detail__cart .quantity {
	display: none !important;
}

.single-product .product-detail__cart {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: stretch;
}

.single-product .product-detail__cart form.cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.55rem;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.single-product .product-detail__cart .quantity {
	margin: 0;
	float: none !important;
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.2rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: var(--surface-2);
	min-height: 48px;
}

.single-product .product-detail__cart .quantity .qty {
	width: 2.6rem;
	min-height: 40px;
	padding: 0.35rem 0.15rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	color: var(--text);
	font-weight: 800;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.single-product .product-detail__cart .quantity .qty::-webkit-outer-spin-button,
.single-product .product-detail__cart .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce .quantity .qty-btn,
.single-product .product-detail__cart .quantity .qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	user-select: none;
}

.woocommerce .quantity .qty-btn:hover,
.single-product .product-detail__cart .quantity .qty-btn:hover {
	background: rgba(230, 30, 37, 0.1);
	color: var(--red, #e61e25);
}

.woocommerce .quantity .qty-btn:disabled,
.single-product .product-detail__cart .quantity .qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

@media (max-width: 700px) {
	.single-product .product-detail__actions {
		--product-action-h: 48px;
		align-items: stretch;
	}

	.single-product .product-detail__cart form.cart {
		flex-wrap: nowrap;
		gap: 0.5rem;
	}

	.single-product .product-detail__cart .quantity {
		flex: 0 0 auto;
		min-height: 44px;
		padding: 0.15rem;
		border-color: rgba(230, 30, 37, 0.45);
	}

	.single-product .product-detail__cart .quantity .qty {
		width: 2.2rem;
		min-height: 36px;
		font-size: 0.92rem;
	}

	.single-product .product-detail__cart .quantity .qty-btn {
		width: 30px;
		height: 30px;
		font-size: 1.05rem;
	}

	.single-product .product-detail__cart .single_add_to_cart_button,
	.single-product button.single_add_to_cart_button {
		flex: 1 1 auto;
		height: var(--product-action-h) !important;
		min-height: var(--product-action-h) !important;
		max-height: var(--product-action-h) !important;
		padding: 0 0.85rem !important;
		font-size: 0.86rem !important;
	}

	.single-product .product-detail__wishlist-wrap,
	.single-product .product-detail__favorite-btn,
	.product-detail__wishlist-wrap .product-detail__favorite-btn {
		width: var(--product-action-h);
		min-width: var(--product-action-h);
		height: var(--product-action-h) !important;
		min-height: var(--product-action-h) !important;
		max-height: var(--product-action-h) !important;
	}
}

.single-product .product-detail__cart .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.single-product .product-detail__cart .button.single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.45rem;
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
	height: var(--product-action-h, 48px) !important;
	min-height: var(--product-action-h, 48px) !important;
	max-height: var(--product-action-h, 48px) !important;
	margin: 0 !important;
	padding: 0 1.1rem !important;
	border: 0 !important;
	border-radius: 0.65rem !important;
	background: linear-gradient(135deg, var(--cart-cta, #1e3a8a), var(--cart-cta-dark, #172554)) !important;
	color: #fff !important;
	font-size: 0.84rem !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	box-shadow: 0 14px 30px var(--cart-cta-shadow, rgba(30, 58, 138, 0.22));
	cursor: pointer;
	box-sizing: border-box !important;
	vertical-align: middle;
}

.single-product .product-detail__cart .single_add_to_cart_button::before {
	content: "";
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2 3h3l3.1 13.2a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 1.9-1.4L22 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2 3h3l3.1 13.2a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 1.9-1.4L22 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.single-product .product-detail__trust {
	list-style: none;
	display: grid;
	gap: 0.35rem;
	margin: 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--line);
}

.single-product .product-trust-rows {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0.85rem;
	display: grid;
	gap: 0.55rem;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	background: var(--surface-2);
}

.single-product .product-detail__trust li,
.single-product .product-trust-rows .trust-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	color: var(--text-soft);
	font-size: 0.72rem;
	font-weight: 800;
}

.single-product .product-detail__trust .icon {
	width: 0.85rem;
	height: 0.85rem;
	flex: 0 0 auto;
	color: inherit;
}

.single-product .product-trust-rows .icon {
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
	color: var(--red, #e61e25);
}

/* Wishlist icon button beside add-to-cart — same height as CTA */
.single-product .product-detail__wishlist-wrap {
	flex: 0 0 var(--product-action-h, 48px);
	width: var(--product-action-h, 48px);
	min-width: var(--product-action-h, 48px);
	height: var(--product-action-h, 48px);
	align-self: stretch;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.single-product .product-detail__wishlist-wrap .yith-wcwl-add-to-wishlist {
	margin: 0;
	width: 100%;
	height: 100%;
}

.single-product .product-detail__wishlist-wrap .yith-wcwl-add-to-wishlist > div {
	width: 100%;
	height: 100%;
}

.single-product .product-detail__wishlist-wrap a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0.65rem !important;
	background: linear-gradient(135deg, var(--cart-cta, #1e3a8a), var(--cart-cta-dark, #172554)) !important;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: -9999px;
	overflow: hidden;
	box-shadow: 0 14px 30px var(--cart-cta-shadow, rgba(30, 58, 138, 0.22)) !important;
	box-sizing: border-box;
}

.single-product .product-detail__wishlist-wrap a::before {
	content: "";
	display: block;
	width: 1.15rem;
	height: 1.15rem;
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center / contain no-repeat;
	text-indent: 0;
}

.single-product .product-detail__wishlist-wrap a:hover,
.single-product .product-detail__wishlist-wrap .yith-wcwl-wishlistaddedbrowse a,
.single-product .product-detail__wishlist-wrap .yith-wcwl-wishlistexistsbrowse a {
	color: #fff !important;
	filter: brightness(1.08);
}

.single-product .product-detail__wishlist-wrap .feedback,
.single-product .product-detail__wishlist-wrap .yith-wcwl-icon {
	display: none !important;
}

.single-product .product-detail__favorite-btn,
.product-detail__wishlist-wrap .product-detail__favorite-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 1 1 auto;
	width: 100% !important;
	height: 100% !important;
	min-width: 0;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0.65rem !important;
	border: 0 !important;
	background: linear-gradient(135deg, var(--cart-cta, #1e3a8a), var(--cart-cta-dark, #172554)) !important;
	color: #fff !important;
	box-shadow: 0 14px 30px var(--cart-cta-shadow, rgba(30, 58, 138, 0.22));
	cursor: pointer;
	box-sizing: border-box !important;
	line-height: 0 !important;
	transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.single-product .product-detail__favorite-btn:hover {
	filter: brightness(1.08);
}

.single-product .product-detail__favorite-btn .icon,
.single-product .product-detail__favorite-btn svg {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
	display: block;
}

.single-product .product-detail__favorite-btn.is-active {
	border: 0 !important;
	background: linear-gradient(135deg, #e11d48, #be123c) !important;
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(225, 29, 72, 0.28);
}

.favorites-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.favorites-page .favorites-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Description + specs panels */
.single-product .product-detail__panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	width: 100%;
	align-items: start;
}

.single-product .product-detail__panels--single {
	grid-template-columns: 1fr;
}

.single-product .product-detail__panel {
	display: grid;
	grid-template-rows: auto 1fr;
	align-content: start;
	gap: 0.7rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.95rem;
	background: var(--surface);
	box-shadow: var(--shadow-soft, 0 12px 32px rgba(15, 23, 42, 0.06));
	min-width: 0;
}

.single-product .product-detail__panel h2 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 900;
	color: var(--text);
}

.single-product .product-detail__description-shell {
	position: relative;
	display: grid;
	gap: 0.55rem;
	min-width: 0;
}

.single-product .product-detail__description {
	display: grid;
	gap: 0.6rem;
	color: var(--text-soft);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.55;
}

.single-product .product-detail__description-shell.is-collapsed .product-detail__description {
	overflow: hidden;
}

.single-product .product-detail__description-shell.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2.1rem;
	height: 2.75rem;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent, var(--surface));
}

.single-product .product-detail__description-shell.is-expanded::after {
	display: none;
}

.single-product .product-detail__desc-toggle {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: fit-content;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--red, #e61e25);
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.2;
	cursor: pointer;
	position: relative;
	z-index: 1;
}

.single-product .product-detail__desc-toggle:hover {
	text-decoration: underline;
}

.single-product .product-detail__desc-toggle[hidden] {
	display: none !important;
}

.single-product .product-detail__description > *:first-child {
	margin-top: 0;
}

.single-product .product-detail__description > *:last-child {
	margin-bottom: 0;
}

.single-product .product-detail__specs {
	display: grid;
	gap: 0;
	margin: 0;
}

.single-product .product-detail__spec-row {
	display: grid;
	grid-template-columns: minmax(100px, 0.85fr) minmax(0, 1.15fr);
	gap: 0.6rem;
	padding: 0.58rem 0;
	border-bottom: 1px solid var(--line);
}

.single-product .product-detail__spec-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.single-product .product-detail__spec-row dt {
	margin: 0;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 900;
}

.single-product .product-detail__spec-row dd {
	margin: 0;
	color: var(--text);
	font-size: 0.78rem;
	font-weight: 800;
}

/* Reviews block */
.single-product .product-detail__reviews {
	padding: 1.1rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
	box-shadow: var(--shadow-soft, 0 12px 32px rgba(15, 23, 42, 0.06));
}

.single-product .product-detail__reviews > h2 {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 900;
	color: var(--text);
}

.single-product .product-detail__reviews #review_form_wrapper,
.single-product .product-detail__reviews #reviews {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.single-product .product-detail__reviews .woocommerce-Reviews-title {
	font-size: 0.95rem;
	font-weight: 900;
}

.single-product .product-detail__meta-strip,
.single-product .product_meta {
	margin: 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--line);
	color: var(--text-soft);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.55;
}

.single-product .product_meta a {
	color: var(--text);
	text-decoration: none;
}

.single-product .product_meta a:hover {
	color: var(--red, #e61e25);
}

/* Tabs — horizontal, not crushed beside the buy box */
.single-product .product-detail__tabs {
	width: 100%;
}

.single-product .product-detail__tabs .woocommerce-tabs {
	display: block !important;
	margin: 0;
	padding: 1.1rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
}

.single-product .woocommerce-tabs ul.tabs,
.single-product .product-detail__tabs .tabs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem !important;
	padding: 0 0 0.75rem !important;
	list-style: none !important;
	border: 0 !important;
	border-bottom: 1px solid var(--line) !important;
	float: none !important;
	width: 100% !important;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after {
	display: none !important;
	content: none !important;
}

.single-product .woocommerce-tabs ul.tabs li,
.single-product .product-detail__tabs .tabs li {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	border-radius: 0.65rem;
}

.single-product .woocommerce-tabs ul.tabs li a,
.single-product .product-detail__tabs .tabs li a {
	display: block !important;
	padding: 0.55rem 0.9rem !important;
	border: 1px solid var(--line) !important;
	border-radius: 0.65rem !important;
	background: var(--surface-2) !important;
	color: var(--text) !important;
	font-weight: 800 !important;
	text-decoration: none !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .product-detail__tabs .tabs li.active a {
	border-color: rgba(230, 30, 37, 0.35) !important;
	background: color-mix(in srgb, var(--red, #e61e25) 10%, var(--surface-2)) !important;
	color: var(--red, #e61e25) !important;
}

.single-product .woocommerce-tabs .panel,
.single-product .product-detail__tabs .panel {
	display: block !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0.35rem 0 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--text);
	line-height: 1.6;
}

.single-product .product-detail__related {
	display: grid;
	gap: 0.85rem;
	width: 100%;
	min-width: 0;
}

/* WC outputs <section class="related products"> wrapping h2 + .product-grid.
   Do NOT treat that section as the product card grid (it collapses cards). */
.single-product .product-detail__related .related.products,
.single-product .product-detail__related .upsells.products,
.single-product section.related.products,
.single-product section.upsells.products {
	display: flex !important;
	flex-direction: column;
	gap: 0.85rem;
	width: 100%;
	margin: 0;
	padding: 0;
	float: none !important;
	list-style: none;
}

.single-product .product-detail__related > h2,
.single-product .related > h2,
.single-product .upsells > h2 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--text);
}

.single-product .product-detail__related .product-grid,
.single-product .related .product-grid,
.single-product .upsells .product-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	width: 100%;
	min-width: 0;
}

.single-product .product-detail__related .product-card,
.single-product .related .product-card,
.single-product .upsells .product-card {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
}

/* Gallery stage uses ratio so it scales cleanly on all viewports */
.single-product .product-gallery__stage {
	height: auto;
	aspect-ratio: 1 / 1;
	max-height: 460px;
	width: 100%;
}

.single-product .product-gallery__thumbs {
	display: flex;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 0.45rem;
	max-width: 100%;
	margin: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 0.15rem;
}

.single-product .product-gallery__thumb {
	flex: 0 0 58px;
}

.single-product .category-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.3rem 0.35rem;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 0.15rem;
	overflow: hidden;
}

.single-product .category-breadcrumb .icon {
	flex: 0 0 auto;
	opacity: 0.7;
}

.single-product .category-breadcrumb span:last-of-type {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ============================================================
   Product detail — responsive (tablet → phone)
   ============================================================ */
@media (max-width: 1100px) {
	.single-product .product-detail__layout {
		grid-template-columns: minmax(280px, 1fr) minmax(0, 1.05fr);
		gap: 1.15rem;
	}

	.single-product .product-detail__gallery-col {
		max-width: none;
	}

	.single-product .product-detail__related .product-grid,
	.single-product .related .product-grid,
	.single-product .upsells .product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.single-product .product-listing {
		width: min(1240px, calc(100% - 1.5rem));
		margin: 1rem auto 2.5rem;
	}

	.single-product .product-detail__layout {
		grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
		gap: 1rem;
		padding: 1rem;
	}

	.single-product .product-gallery__stage {
		max-height: 400px;
	}

	.single-product .product-detail__related .product-grid,
	.single-product .related .product-grid,
	.single-product .upsells .product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
	}
}

@media (max-width: 820px) {
	.single-product .product-listing {
		width: 100%;
		margin: 0.75rem auto 2rem;
		padding-inline: 0.75rem;
		box-sizing: border-box;
	}

	/* Breadcrumb */
	.single-product .category-breadcrumb {
		font-size: 0.72rem;
		gap: 0.2rem 0.28rem;
		margin-bottom: 0.35rem;
	}

	/* Hero card: stack gallery above buy box */
	.single-product .product-detail__layout {
		grid-template-columns: 1fr !important;
		gap: 1rem;
		padding: 0.9rem;
		border-radius: 0.9rem;
	}

	.single-product .product-detail__gallery-col {
		max-width: none;
		width: 100%;
		justify-self: stretch;
	}

	.single-product .product-gallery__stage {
		max-height: none;
		aspect-ratio: 1 / 1;
		border-radius: 0.75rem;
	}

	.single-product .product-detail__sale-badge {
		top: 0.7rem;
		left: 0.7rem;
		font-size: 0.7rem;
		padding: 0.3rem 0.6rem;
	}

	.single-product .product-gallery__thumbs {
		justify-content: center;
		padding-inline: 0.15rem;
	}

	/* Buy box */
	.single-product .product-detail__info {
		gap: 0.6rem;
		padding: 0;
	}

	.single-product .product-detail__info .product_title,
	.single-product .product_title {
		font-size: clamp(1.05rem, 4.6vw, 1.35rem) !important;
	}

	.single-product .product-detail__price .price {
		font-size: clamp(1.2rem, 5vw, 1.45rem);
	}

	.single-product .product-detail__actions {
		--product-action-h: 48px;
		width: 100%;
	}

	.single-product .product-detail__cart .single_add_to_cart_button,
	.single-product button.single_add_to_cart_button {
		font-size: 0.86rem !important;
		padding: 0 0.9rem !important;
	}

	.single-product .product-detail__trust {
		padding-top: 0.65rem;
		gap: 0.4rem;
	}

	.single-product .product-detail__trust li {
		font-size: 0.7rem;
	}

	/* Description + characteristics: stack */
	.single-product .product-detail__panels {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.single-product .product-detail__panel {
		padding: 0.9rem;
		border-radius: 0.85rem;
	}

	.single-product .product-detail__description {
		font-size: 0.8rem;
	}

	/* Reviews */
	.single-product .product-detail__reviews {
		padding: 0.9rem;
		border-radius: 0.85rem;
	}

	.single-product .product-detail__reviews .comment-form-author,
	.single-product .product-detail__reviews .comment-form-email,
	.single-product .product-detail__reviews .comment-form-comment,
	.single-product .product-detail__reviews .comment-form-rating,
	.single-product .product-detail__reviews textarea,
	.single-product .product-detail__reviews input[type="text"],
	.single-product .product-detail__reviews input[type="email"] {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}

	.single-product .product-detail__related > h2,
	.single-product .related > h2,
	.single-product .upsells > h2 {
		font-size: 1.05rem;
	}

	.single-product .product-detail__related .product-grid,
	.single-product .related .product-grid,
	.single-product .upsells .product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
}

@media (max-width: 520px) {
	.single-product .product-listing {
		padding-inline: 0.65rem;
		margin: 0.55rem auto 1.75rem;
	}

	.single-product .product-detail {
		gap: 0.75rem !important;
	}

	/* Breadcrumb: hide middle crumbs if overflowing feel — keep compact */
	.single-product .category-breadcrumb {
		font-size: 0.68rem;
		row-gap: 0.15rem;
	}

	.single-product .product-detail__layout {
		padding: 0.75rem;
		gap: 0.85rem;
		border-radius: 0.8rem;
	}

	.single-product .product-gallery__stage {
		aspect-ratio: 1 / 1;
		border-radius: 0.7rem;
	}

	.single-product .product-gallery__zoom-hint {
		right: 0.4rem;
		bottom: 0.4rem;
		font-size: 0.58rem;
		padding: 0.22rem 0.45rem;
	}

	.single-product .product-gallery__thumb {
		flex: 0 0 48px;
		width: 48px;
		height: 48px;
		border-radius: 0.45rem;
	}

	.single-product .product-detail__info {
		gap: 0.55rem;
	}

	.single-product .product-detail__brand,
	.single-product .product-detail__category {
		font-size: 0.68rem;
		letter-spacing: 0.05em;
	}

	.single-product .product-detail__info .product_title,
	.single-product .product_title {
		font-size: clamp(1rem, 5.2vw, 1.22rem) !important;
		line-height: 1.25 !important;
	}

	.single-product .product-detail__rating {
		font-size: 0.72rem;
	}

	.single-product .product-detail__chip {
		min-height: 24px;
		font-size: 0.64rem;
		padding: 0 0.48rem;
	}

	.single-product .product-detail__price .price {
		font-size: clamp(1.15rem, 5.5vw, 1.35rem);
	}

	.single-product .product-detail__savings {
		font-size: 0.68rem;
	}

	.single-product .product-detail__actions {
		--product-action-h: 46px;
		gap: 0.45rem;
	}

	.single-product .product-detail__wishlist-wrap {
		flex-basis: var(--product-action-h);
		width: var(--product-action-h);
		min-width: var(--product-action-h);
		height: var(--product-action-h);
	}

	.single-product .product-detail__cart .single_add_to_cart_button,
	.single-product button.single_add_to_cart_button {
		font-size: 0.82rem !important;
		padding: 0 0.75rem !important;
		border-radius: 0.6rem !important;
	}

	.single-product .product-detail__favorite-btn,
	.product-detail__wishlist-wrap .product-detail__favorite-btn {
		border-radius: 0.6rem !important;
	}

	.single-product .product-detail__trust li {
		font-size: 0.68rem;
		gap: 0.35rem;
	}

	.single-product .product-detail__panel {
		padding: 0.8rem;
		gap: 0.55rem;
	}

	.single-product .product-detail__panel h2 {
		font-size: 0.9rem;
	}

	.single-product .product-detail__spec-row {
		grid-template-columns: 1fr;
		gap: 0.15rem;
		padding: 0.5rem 0;
	}

	.single-product .product-detail__reviews {
		padding: 0.8rem;
	}

	.single-product .product-detail__reviews > h2 {
		font-size: 0.95rem;
		margin-bottom: 0.75rem;
	}

	.single-product .product-detail__related .product-grid,
	.single-product .related .product-grid,
	.single-product .upsells .product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}

	.single-product .product-detail__related > h2,
	.single-product .related > h2,
	.single-product .upsells > h2 {
		font-size: 1rem;
	}
}

@media (max-width: 380px) {
	.single-product .product-listing {
		padding-inline: 0.5rem;
	}

	.single-product .product-detail__layout {
		padding: 0.65rem;
	}

	.single-product .product-detail__actions {
		--product-action-h: 44px;
	}

	.single-product .product-detail__cart .single_add_to_cart_button,
	.single-product button.single_add_to_cart_button {
		font-size: 0.78rem !important;
		gap: 0.35rem;
	}

	.single-product .product-detail__related .product-grid,
	.single-product .related .product-grid,
	.single-product .upsells .product-grid {
		gap: 0.5rem;
	}
}

/* ============================================================
   Cart / checkout minimal
   ============================================================ */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
	width: min(1100px, calc(100% - 32px));
	margin: 1.5rem auto 3rem;
}

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

.woocommerce .shop_table_responsive,
.woocommerce-page .shop_table_responsive,
.woocommerce .woocommerce-orders-table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

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

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: linear-gradient(135deg, var(--cart-cta, #1e3a8a), var(--cart-cta-dark, #172554));
	color: #fff;
	border-radius: 10px;
	padding: 0.7rem 1.2rem;
	font-weight: 700;
	box-shadow: 0 14px 30px var(--cart-cta-shadow, rgba(30, 58, 138, 0.22));
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: linear-gradient(135deg, var(--cart-cta-hover, #2563eb), var(--cart-cta, #1e3a8a));
	color: #fff;
}

.woocommerce form .form-row label {
	font-weight: 600;
}

/* ============================================================
   Dokan vendor store page light adjustments
   ============================================================ */
.dokan-store-wrap .products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.1rem;
}

.dokan-store-wrap .products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

/* ============================================================
   Hide WC default chrome we replace
   ============================================================ */
.woocommerce .woocommerce-breadcrumb {
	display: none;
}

.woocommerce .woocommerce-notices-wrapper {
	margin: 0;
	padding: 0;
	border: 0;
	min-height: 0;
}

/* Default WC banners replaced by bottom-right toasts */
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-page .woocommerce-notices-wrapper,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error,
.shop-notice--toasted,
ul.woocommerce-error[hidden] {
	display: none !important;
}

body.account-page .page-title,
body.woocommerce-account .page-title,
body.account-page .entry-title,
body.connexion-page .page-title,
body.connexion-page .entry-title,
body.connexion-page .entry-header,
body.client-register-page .page-title,
body.client-register-page .entry-title,
body.client-register-page .entry-header,
body.vendor-auth-page .page-title,
body.vendor-auth-page .entry-title,
body.vendor-auth-page .entry-header,
body.ambassador-auth-page .page-title,
body.ambassador-auth-page .entry-title,
body.ambassador-auth-page .entry-header,
body.legal-page-body .page-title,
body.legal-page-body .entry-title,
body.legal-page-body .entry-header {
	display: none !important;
}

/* ============================================================
   H3: Footer socials links (template uses <a><span>)
   ============================================================ */
.socials a {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	color: var(--footer-text);
	font-size: 0.64rem;
	font-weight: 900;
	text-decoration: none;
	border: 1px solid var(--bottom-line);
	border-radius: 0.65rem;
	background: var(--bottom-chip-bg);
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.socials a:hover {
	color: var(--red, #e61e25);
	border-color: var(--red, #e61e25);
}

.socials a span {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

/* ============================================================
   H4: Footer legal nav (container is now <nav>)
   ============================================================ */
.footer-bottom .footer-legal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-bottom .footer-legal-nav ul,
.footer-bottom .footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-bottom .footer-legal-nav a {
	color: inherit;
	text-decoration: none;
}

.footer-bottom .footer-legal-nav a:hover {
	color: var(--red, #e61e25);
}

/* ============================================================
   M8: Neutralize Storefront chrome that conflicts with our layout
   ============================================================ */
.storefront-header-section,
.storefront-breadcrumb,
.storefront-handheld-footer-bar,
.site-footer .storefront-footer-widgets,
.storefront-primary-navigation,
.storefront-secondary-navigation {
	display: none !important;
}

/* Hide Storefront's own site header/footer since we render our own */
.site-header,
.site-footer {
	display: none !important;
}

/* Neutralize Storefront's .col-full width container without hiding content */
.site-content .col-full,
.site-footer .col-full,
.hentry .col-full {
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

body.storefront,
body[class*="storefront"] {
	background: var(--bg, #ffffff);
}

.site-main {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.woocommerce .site-main,
.woocommerce-page .site-main {
	width: min(1500px, calc(100% - 32px));
	margin: 1.5rem auto;
	box-sizing: border-box;
}

/* Single product / cart / checkout content width */
.single-product .site-main,
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
	width: min(1100px, calc(100% - 32px));
	margin: 1.5rem auto 3rem;
}

/* Ensure our marketplace-shell wraps the page cleanly */
body[class*="storefront"] #page,
body[class*="storefront"] .marketplace-shell {
	background: var(--bg, #ffffff);
}

/* Reset Storefront link/button colors to theme where needed */
.storefront-primary-navigation,
.storefront-secondary-navigation {
	display: none !important;
}

/* ============================================================
   WC form controls (dark-mode aware via var(--*))
   ============================================================ */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce input[type="search"],
.woocommerce textarea,
.woocommerce select,
.woocommerce .input-text,
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.woocommerce .input-text:focus {
	border-color: var(--red, #e61e25);
	box-shadow: 0 0 0 3px rgba(230, 30, 37, 0.14);
	outline: none;
}

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

.woocommerce form .form-row label,
.woocommerce form .form-row .optional,
.woocommerce form .form-row .required {
	color: var(--text-soft);
}

.woocommerce form .form-row .required {
	color: var(--red, #e61e25);
}

/* ============================================================
   Theme selects — one clean arrow, no browser/Storefront doubles
   (never apply inside WooCommerce Blocks combobox/country fields)
   ============================================================ */
select:not(.wc-blocks-components-select__select),
.woocommerce select:not(.wc-blocks-components-select__select),
.woocommerce-ordering select,
.woocommerce form .form-row select,
.category-toolbar select,
.category-toolbar__sort select,
.account-form select,
.auth-field select {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-color: var(--surface-2, var(--surface)) !important;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.75rem center !important;
	background-size: 0.9rem 0.9rem !important;
	padding-right: 2.35rem !important;
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	box-shadow: none;
	cursor: pointer;
}

/* WooCommerce Blocks country/state/combobox — NEVER tile select arrows */
.wc-block-checkout select,
.wc-block-cart select,
.wp-block-woocommerce-checkout select,
.wp-block-woocommerce-cart select,
.wc-block-components-country-input select,
.wc-block-components-state-input select,
.wc-block-components-combobox select,
.wc-block-components-select select,
.wc-block-components-combobox input,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-combobox .wc-block-components-combobox-control input {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-color: var(--surface-2) !important;
	background-image: none !important;
	background-repeat: no-repeat !important;
	background-position: initial !important;
	background-size: auto !important;
}

:root[data-theme="dark"] select:not(.wc-blocks-components-select__select),
:root[data-theme="dark"] .woocommerce select:not(.wc-blocks-components-select__select),
:root[data-theme="dark"] .woocommerce-ordering select,
:root[data-theme="dark"] .woocommerce form .form-row select,
:root[data-theme="dark"] .category-toolbar select,
:root[data-theme="dark"] .category-toolbar__sort select,
:root[data-theme="dark"] .account-form select,
:root[data-theme="dark"] .auth-field select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a4b4c7' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.75rem center !important;
	background-size: 0.9rem 0.9rem !important;
}

select::-ms-expand {
	display: none;
}

select:focus,
.woocommerce select:focus,
.woocommerce-ordering select:focus {
	border-color: rgba(230, 30, 37, 0.45);
	box-shadow: 0 0 0 3px rgba(230, 30, 37, 0.12);
	outline: none;
}

select option {
	background: var(--surface);
	color: var(--text);
}

/* Kill Storefront double arrows / deco next to selects */
.woocommerce-ordering::before,
.woocommerce-ordering::after,
.storefront-sorting::before,
.storefront-sorting::after {
	display: none !important;
	content: none !important;
}

.woocommerce-ordering {
	position: relative;
}

/* Do not paint an arrow on the search picker button */
button.search-bar__category,
.search-bar__category {
	background-image: none !important;
	padding-right: 0.85rem !important;
}

/* Select dropdown arrow — theme-aware (data URIs can't use CSS vars) */
.woocommerce select {
	min-height: 44px;
}

/* Header search bar category <select> (legacy fallback only) */
select.search-bar__category {
	cursor: pointer;
}

/* General form inputs outside WooCommerce (search, comments, etc.) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
textarea {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 10px;
}

/* Header search must keep theme colors on focus (override Storefront white paint) */
.market-header .search-bar input[type="search"]:focus,
.market-header .search-bar input:focus,
body .search-bar input[type="search"]:focus,
body .search-bar input:focus {
	background: var(--surface) !important;
	background-color: var(--surface) !important;
	color: var(--text) !important;
	-webkit-text-fill-color: var(--text) !important;
	box-shadow: inset 0 0 0 1000px var(--surface) !important;
}

:root[data-theme="dark"] .market-header .search-bar input[type="search"]:focus,
:root[data-theme="dark"] .market-header .search-bar input:focus,
:root[data-theme="dark"] body .search-bar input[type="search"]:focus,
:root[data-theme="dark"] body .search-bar input:focus {
	background: #0b1522 !important;
	background-color: #0b1522 !important;
	color: #f8fafc !important;
	-webkit-text-fill-color: #f8fafc !important;
	box-shadow: inset 0 0 0 1000px #0b1522 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	border-color: var(--red, #e61e25);
	box-shadow: 0 0 0 3px rgba(230, 30, 37, 0.14);
	outline: none;
}

input::placeholder,
textarea::placeholder {
	color: var(--muted);
}

/* ============================================================
   WC notices (messages / info / errors) — handled as toasts
   ============================================================ */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error {
	display: none !important;
}

/* ============================================================
   Single product page: tabs, related, gallery, summary
   ============================================================ */
.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0;
	margin: 2rem 0 1rem;
	list-style: none;
}

.single-product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 10px 10px 0 0;
	padding: 0;
}

.single-product .woocommerce-tabs ul.tabs li.active {
	border-color: var(--red, #e61e25);
	background: var(--surface);
}

.single-product .woocommerce-tabs ul.tabs li a {
	color: var(--text-soft);
	padding: 0.7rem 1.1rem;
	display: inline-block;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
	color: var(--text);
}

.single-product .woocommerce-tabs .panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 0 14px 14px 14px;
	padding: 1.4rem;
	margin: 0 0 2rem;
	color: var(--text-soft);
}

.single-product .related > h2,
.single-product .upsells > h2 {
	font-family: var(--font-main);
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	margin: 2rem 0 1rem;
	color: var(--text);
}

.single-product .product_meta,
.single-product .product_meta a,
.single-product .sku_wrapper,
.single-product .posted_in {
	color: var(--muted);
	font-size: 0.85rem;
}

.single-product .product_meta a:hover {
	color: var(--red, #e61e25);
}

/* Star ratings */
.woocommerce .star-rating,
.woocommerce p.stars,
.woocommerce p.stars a {
	color: #f5a623;
}

.woocommerce .comment-form-rating .stars a {
	color: #f5a623;
}

/* Quantity input */
.woocommerce .quantity {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
}

.woocommerce .quantity .qty {
	width: 4rem;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Product gallery thumbnails */
.single-product .flex-control-thumbs li {
	margin: 0.4rem;
}

.single-product .flex-control-thumbs img {
	border-radius: 10px;
	border: 1px solid var(--line);
}

.single-product .flex-control-thumbs img.flex-active {
	border-color: var(--red, #e61e25);
}

/* ============================================================
   Cart / checkout specifics
   ============================================================ */
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-account h2 {
	color: var(--text);
	font-family: var(--font-main);
}

.woocommerce-cart .cart_totals .shop_table,
.woocommerce-checkout .shop_table {
	margin-bottom: 1.2rem;
}

.woocommerce-cart .coupon .button,
.woocommerce-cart .cart_totals .button,
.woocommerce-checkout .button {
	width: auto;
}

.woocommerce-cart .product-thumbnail img {
	border-radius: 10px;
}

.woocommerce-cart .product-name a,
.woocommerce-cart .product-subtotal,
.woocommerce-cart .product-total {
	color: var(--text);
}

.woocommerce-cart .cart_item td,
.woocommerce-cart .cart_item th {
	color: var(--text-soft);
}

.woocommerce-cart .product-remove a {
	color: var(--muted) !important;
}

.woocommerce-cart .product-remove a:hover {
	color: var(--red, #e61e25) !important;
}

/* Checkout order review */
.woocommerce-checkout #order_review_heading {
	color: var(--text);
}

/* ============================================================
   My account page
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation ul,
.woocommerce-account .woocommerce-MyAccount-navigation li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0 !important;
	float: none !important;
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content {
	color: var(--text);
}

.woocommerce-account .woocommerce-MyAccount-content a {
	color: var(--red, #e61e25);
}

.woocommerce-account table.my_account_orders .button {
	background: transparent;
	color: var(--red, #e61e25);
	border: 1px solid var(--red, #e61e25);
}

/* ============================================================
   Pagination (WC + WP)
   ============================================================ */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul li {
	border: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 2rem 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
nav.woocommerce-pagination a,
nav.woocommerce-pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.6rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text-soft);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination a:hover {
	border-color: var(--red, #e61e25);
	color: var(--red, #e61e25);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination .current {
	background: var(--red, #e61e25);
	color: #fff;
	border-color: var(--red, #e61e25);
}

/* ============================================================
   WC price filter widget / layered nav (sidebar) — keep dark-aware
   ============================================================ */
.woocommerce .widget_price_filter .price_slider_wrapper .price_slider,
.woocommerce .widget_layered_nav ul li a,
.woocommerce .widget_product_categories ul li a {
	color: var(--text-soft);
}

.woocommerce .widget_price_filter .price_slider_amount .button {
	background: var(--red, #e61e25);
	color: #fff;
}

/* ============================================================
   No-products / empty states
   ============================================================ */
.no-products,
.woocommerce .woocommerce-info.empty,
p.no-products {
	color: var(--muted);
	padding: 1.5rem;
	border: 1px dashed var(--line);
	border-radius: 14px;
	text-align: center;
	background: var(--surface-2);
}

/* ============================================================
   Quick-view & wishlist plugin glue (YITH)
   ============================================================ */
.yith-wcwl-add-to-wishlist .yith-wcwl-add-button a,
.yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a,
.yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a {
	color: var(--text);
}

#yith-wcwl-popup-message {
	background: var(--surface) !important;
	color: var(--text) !important;
	border: 1px solid var(--line) !important;
	border-radius: 12px !important;
}

/* ============================================================
   Pro polish: focus-visible, selection, scrollbar, theme switch
   ============================================================ */

/* Keyboard focus ring — visible in both themes, never on mouse click */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--red, #e61e25);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Text selection */
::selection {
	background: rgba(230, 30, 37, 0.22);
	color: var(--text);
}

/* Custom scrollbars (WebKit + Firefox) — adapt to theme */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--line-strong);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--muted);
	background-clip: padding-box;
	border: 2px solid transparent;
}

/* Smooth transition when toggelling between light & dark.
   Scoped to a curated set of properties to avoid layout jank. */
body,
.marketplace-shell,
.top-strip,
.market-header,
.secondary-nav,
.hero,
.features,
.categories,
.product-showcase,
.promo-grid,
.seller-ambassador,
.advantages,
.brands,
.metrics,
.micro-trust,
.market-footer,
.product-card,
.category-card,
.promo-card,
.recruit-card,
.feature-card,
.search-bar,
.mobile-drawer__panel,
.woocommerce table.shop_table,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.single-product .woocommerce-tabs .panel {
	transition:
		background-color 280ms ease,
		border-color 280ms ease,
		color 280ms ease,
		box-shadow 280ms ease;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	body,
	.marketplace-shell,
	.top-strip,
	.market-header,
	.secondary-nav,
	.hero,
	.features,
	.categories,
	.product-showcase,
	.promo-grid,
	.seller-ambassador,
	.advantages,
	.brands,
	.metrics,
	.micro-trust,
	.market-footer,
	.product-card,
	.category-card,
	.promo-card,
	.recruit-card,
	.feature-card,
	.search-bar,
	.mobile-drawer__panel,
	.woocommerce table.shop_table,
	.woocommerce .woocommerce-message,
	.woocommerce .woocommerce-info,
	.woocommerce .woocommerce-error,
	.single-product .woocommerce-tabs .panel {
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}
}

/* Ensure the theme toggle button itself is keyboard-accessible & visible */
.theme-toggle:focus-visible,
.mobile-theme-toggle:focus-visible {
	outline: 2px solid var(--red, #e61e25);
	outline-offset: 3px;
}

/* ============================================================
   Auth pages — hide marketplace header, full-width shell
   ============================================================ */
.auth-body.auth-body--client .top-strip,
.auth-body.auth-body--client .market-header,
.auth-body.auth-body--client .secondary-nav,
.auth-body.auth-body--connexion .top-strip,
.auth-body.auth-body--connexion .market-header,
.auth-body.auth-body--connexion .secondary-nav {
	display: none !important;
}

.auth-body.auth-body--vendor .top-strip,
.auth-body.auth-body--vendor .market-header,
.auth-body.auth-body--vendor .secondary-nav,
.auth-body.auth-body--ambassador .top-strip,
.auth-body.auth-body--ambassador .market-header,
.auth-body.auth-body--ambassador .secondary-nav {
	display: none !important;
}

.auth-body.auth-body--client .site-main,
.auth-body.auth-body--connexion .site-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
}

.auth-body.auth-body--vendor .site-main,
.auth-body.auth-body--ambassador .site-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
}

.auth-body .woocommerce-ResetPassword.lost_reset_password,
.auth-body .lost_reset_password {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.auth-body .woocommerce-ResetPassword .form-row-first,
.auth-body .woocommerce-ResetPassword .form-row-last,
.auth-body .lost_reset_password .form-row-first,
.auth-body .lost_reset_password .form-row-last {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.auth-body .u-columns.col2-set {
	display: block;
}

.auth-body .u-column1,
.auth-body .u-column2 {
	width: 100%;
	float: none;
}

.auth-body .woocommerce-form .form-row {
	margin-bottom: 0.75rem;
}

/* ============================================================
   Category toolbar + ordering
   ============================================================ */
.category-toolbar .woocommerce-ordering {
	margin: 0;
}

.category-toolbar .woocommerce-ordering select {
	min-height: 40px;
	background-color: var(--surface);
	color: inherit;
	border: 1px solid var(--line);
	border-radius: 0.7rem;
	padding: 0.45rem 2.2rem 0.45rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 800;
}

.category-filter-group {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.category-filter-group h3 {
	margin: 0 0 0.55rem;
	font-size: 0.82rem;
	font-weight: 900;
}

.category-filter-group__body {
	display: grid;
	gap: 0.45rem;
}

.category-filters__form .auth-field input {
	width: 100%;
}

/* ============================================================
   Checkout layout
   ============================================================ */
.checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 1rem;
	align-items: start;
}

.checkout-card {
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
}

.checkout-listing .woocommerce-checkout-review-order-table {
	width: 100%;
}

.cart-summary__actions {
	display: grid;
	gap: 0.55rem;
	margin-top: 1rem;
}

.cart-coupon {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

/* ============================================================
   Account page — layout shell (details in sidebar block below)
   ============================================================ */
.product-detail__summary .product_title {
	margin: 0 0 0.5rem;
	font-size: 1.55rem;
}

.product-trust-rows {
	display: grid;
	gap: 0.45rem;
	margin: 1rem 0;
}

.product-trust-rows .trust-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text-soft);
}

@media (max-width: 900px) {
	.checkout-layout,
	.account-page-layout,
	.cart-page__layout {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Cart page — dedicated layout (classic shortcode)
   ============================================================ */
.cart-page-wrap,
.production-store-classic-cart .cart-page-wrap {
	display: grid;
	gap: 1rem;
}

.cart-page-header h1 {
	margin: 0;
	font-size: clamp(1.45rem, 2.4vw, 1.75rem);
	font-weight: 900;
	letter-spacing: -0.02em;
}

.cart-page-header__count {
	margin: 0.35rem 0 0;
	color: var(--text-soft);
	font-weight: 700;
}

.cart-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
	gap: 1.15rem;
	align-items: start;
}

.cart-page__items-carousel {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
	min-height: 0;
	padding: 0.85rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
}

.cart-page__items-carousel.is-carousel {
	height: var(--cart-carousel-shell-height, auto);
	max-height: var(--cart-carousel-shell-height, none);
}

.cart-page__carousel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 100%;
	height: 2.15rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 0.7rem;
	background: var(--surface-2, var(--surface));
	color: var(--text-soft);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cart-page__carousel-btn:hover:not(:disabled) {
	color: var(--text);
	border-color: color-mix(in srgb, var(--cart-cta, #1e3a8a) 55%, var(--line));
	background: color-mix(in srgb, var(--cart-cta, #1e3a8a) 10%, var(--surface));
}

.cart-page__carousel-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.cart-page__carousel-btn .icon {
	width: 1rem;
	height: 1rem;
}

.cart-page__carousel-btn--prev .icon {
	transform: rotate(-90deg);
}

.cart-page__carousel-btn--next .icon {
	transform: rotate(90deg);
}

.cart-page__carousel-btn[hidden] {
	display: none !important;
}

.cart-page__items {
	display: grid;
	gap: 0.65rem;
	align-content: start;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	padding: 0.1rem 0.15rem 0.1rem 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cart-page__items::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

.cart-page-item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	grid-template-areas:
		"media details total"
		"media qty remove";
	gap: 0.45rem 0.85rem;
	align-items: start;
	padding: 0.85rem;
	border: 1px solid var(--line);
	border-radius: 0.9rem;
	background: var(--surface-2, var(--surface));
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.cart-page-item__media {
	grid-area: media;
}

.cart-page-item__details {
	grid-area: details;
	min-width: 0;
}

.cart-page-item__qty {
	grid-area: qty;
	justify-self: start;
}

.cart-page-item__qty .quantity {
	min-height: 44px;
	padding: 0.15rem 0.25rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2, var(--surface));
}

.cart-page-item__qty .quantity .qty-btn {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.cart-page-item__qty .quantity .qty {
	width: 2.75rem;
	min-height: 36px;
	font-size: 0.95rem;
	font-weight: 900;
}

.cart-page-item__total {
	grid-area: total;
	justify-self: end;
	text-align: right;
}

.cart-page-item__remove {
	grid-area: remove;
	justify-self: end;
	align-self: end;
}

.cart-page-item__media img {
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 0.65rem;
	border: 1px solid var(--line);
	background: var(--surface);
}

.cart-page-item__brand {
	margin: 0 0 0.15rem;
	font-size: 0.68rem;
	font-weight: 800;
	color: var(--text-soft);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cart-page-item__title {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.3;
}

.cart-page-item__title a {
	color: inherit;
	text-decoration: none;
}

.cart-page-item__title a:hover {
	color: var(--cart-cta, #1e3a8a);
}

.cart-page-item__unit {
	margin: 0.3rem 0 0;
	font-size: 0.78rem;
	color: var(--text-soft);
	font-weight: 700;
}

.cart-page-item__total strong {
	font-size: 0.95rem;
	font-weight: 900;
	color: var(--text);
}

.cart-page-item__remove-link {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--line);
	border-radius: 0.55rem;
	color: var(--text-soft);
	background: var(--surface);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.cart-page-item__remove-link:hover {
	color: var(--red, #e61e25);
	border-color: color-mix(in srgb, var(--red, #e61e25) 45%, var(--line));
}

.cart-page__summary {
	position: sticky;
	top: 5.5rem;
	display: grid;
	gap: 0.75rem;
	padding: 1.15rem 1.1rem 1.2rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
	box-shadow: var(--shadow-soft, 0 12px 28px rgba(0, 0, 0, 0.08));
}

.cart-page__summary h2 {
	margin: 0 0 0.15rem;
	font-size: 1rem;
	font-weight: 900;
	letter-spacing: -0.01em;
}

.cart-page__summary .cart-coupon {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.45rem;
}

.cart-page__summary .cart-coupon input {
	min-height: 42px;
	border-radius: 0.65rem;
	border: 1px solid var(--line);
	background: var(--surface-2, var(--surface));
	color: var(--text);
	padding: 0.55rem 0.75rem;
}

.cart-page__summary .cart-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--text-soft);
}

.cart-page__summary .cart-summary__row strong {
	color: var(--text);
	font-weight: 850;
}

.cart-page__summary .cart-summary__row--total {
	margin-top: 0.2rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--line);
	font-size: 1.05rem;
	color: var(--text);
}

.cart-page__summary .cart-summary__row--total strong {
	color: var(--red, #e61e25);
	font-size: 1.2rem;
	font-weight: 900;
}

.cart-page__summary .cart-summary__actions {
	display: grid;
	gap: 0.55rem;
	margin-top: 0.25rem;
}

.cart-page__summary .cart-summary__actions .button {
	width: 100%;
	justify-content: center;
	min-height: 46px;
	border-radius: 0.75rem !important;
	font-weight: 850 !important;
}

.cart-page__summary .cart-summary__actions .button--primary {
	background: linear-gradient(135deg, var(--cart-cta, #1e3a8a), var(--cart-cta-dark, #172554)) !important;
	color: #fff !important;
	border: 0 !important;
}

@media (max-width: 900px) {
	.cart-page__items-carousel.is-carousel {
		height: min(58vh, 26rem);
		max-height: min(58vh, 26rem);
	}

	.cart-page__summary {
		position: static;
	}

	.cart-page-item {
		grid-template-columns: 68px minmax(0, 1fr);
		grid-template-areas:
			"media details"
			"media total"
			"qty qty"
			"remove remove";
		padding: 0.75rem;
		gap: 0.55rem 0.75rem;
	}

	.cart-page-item__qty {
		justify-self: stretch;
	}

	.cart-page-item__qty .quantity {
		display: flex;
		width: 100%;
		max-width: 12rem;
		justify-content: space-between;
	}

	.cart-page-item__qty .quantity .qty-btn {
		width: 44px;
		height: 44px;
	}

	.cart-page-item__remove {
		justify-self: start;
		align-self: center;
	}

	.cart-page-item__total {
		justify-self: start;
		text-align: left;
	}

	.cart-page__carousel-btn {
		min-height: 44px;
	}
}

.cart-page__continue a {
	color: var(--cart-cta, #1e3a8a);
	font-weight: 800;
}

/* ============================================================
   Account sidebar + panels
   ============================================================ */
.account-page-layout {
	display: grid;
	grid-template-columns: minmax(300px, 320px) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.account-sidebar {
	display: flex;
	flex-direction: column;
	min-height: min(72vh, 640px);
	padding: 1.35rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: 1.15rem;
	background: var(--surface);
	position: sticky;
	top: 5.5rem;
	box-shadow: var(--shadow-soft, 0 12px 32px rgba(0, 0, 0, 0.12));
}

.account-sidebar__profile {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1.25rem;
	padding: 1rem;
	border-radius: 0.95rem;
	background: var(--surface-2);
	border: 1px solid var(--line);
}

.account-sidebar .account-avatar {
	width: 3.5rem;
	height: 3.5rem;
	font-size: 1.25rem;
}

.account-sidebar__name {
	display: block;
	font-size: 1.08rem;
	font-weight: 900;
	color: var(--text);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.account-sidebar__email {
	display: none !important;
}

.account-nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	max-width: none !important;
	clear: none !important;
}

/* Storefront sets MyAccount nav to span(2 of 9) — breaks labels inside our sidebar */
.account-sidebar .woocommerce-MyAccount-navigation,
.woocommerce-account .account-sidebar .woocommerce-MyAccount-navigation {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	max-width: none !important;
	clear: none !important;
}

.account-nav__list,
.account-sidebar .woocommerce-MyAccount-navigation ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0.35rem !important;
	display: flex !important;
	flex-direction: column !important;
	flex: 1 !important;
	gap: 0.25rem !important;
	min-height: 100%;
}

.account-nav__item,
.account-sidebar .woocommerce-MyAccount-navigation li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
}

.account-nav__link,
.account-sidebar .woocommerce-MyAccount-navigation a {
	display: flex !important;
	align-items: center !important;
	gap: 0.85rem !important;
	width: 100% !important;
	padding: 0.9rem 1rem !important;
	border: 0 !important;
	border-radius: 0.8rem !important;
	font-size: 0.95rem !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	color: var(--text-soft) !important;
	text-decoration: none !important;
	background: transparent !important;
	box-sizing: border-box !important;
	transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

/* Kill Storefront / WC :before icons (double icons bug) */
.account-nav__link::before,
.account-nav__link::after,
.account-sidebar .woocommerce-MyAccount-navigation a::before,
.account-sidebar .woocommerce-MyAccount-navigation a::after,
.woocommerce-MyAccount-navigation ul li a::before,
.woocommerce-MyAccount-navigation ul li a::after {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.account-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 2.35rem;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 0.65rem;
	background: color-mix(in srgb, var(--surface-2) 88%, transparent);
	color: var(--text-soft);
}

.account-nav__icon .icon {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
}

.account-nav__label {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	word-break: normal;
	overflow-wrap: normal;
}

.account-nav__item.is-active .account-nav__link,
.account-nav__link:hover,
.account-sidebar .woocommerce-MyAccount-navigation li.is-active a,
.account-sidebar .woocommerce-MyAccount-navigation a:hover {
	border: 0 !important;
	background: color-mix(in srgb, var(--red, #e61e25) 10%, var(--surface-2)) !important;
	color: var(--text) !important;
	box-shadow: inset 3px 0 0 var(--red, #e61e25);
}

.account-nav__item.is-active .account-nav__icon,
.account-nav__link:hover .account-nav__icon {
	background: color-mix(in srgb, var(--red, #e61e25) 16%, transparent);
	color: var(--red, #e61e25);
}

.account-nav__item--logout {
	margin-top: auto !important;
	padding-top: 0.75rem !important;
	border-top: 1px solid var(--line);
}

.account-nav__item--logout .account-nav__link {
	color: var(--text-soft) !important;
}

.account-nav__item--logout .account-nav__link:hover {
	background: color-mix(in srgb, var(--red, #e61e25) 8%, var(--surface-2)) !important;
	color: var(--red, #e61e25) !important;
}

.account-panel {
	min-width: 0;
}

.account-card {
	padding: 1.15rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
	color: var(--text);
}

.account-card__header h2 {
	margin: 0 0 0.35rem;
	color: var(--text);
}

.account-card__header p {
	margin: 0;
	color: var(--text-soft);
}

.account-shortcut__label {
	color: var(--text);
}

.account-orders-table {
	width: 100%;
	border-collapse: collapse;
}

.account-orders-table th,
.account-orders-table td {
	padding: 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	color: var(--text);
}

.account-order-status__badge {
	display: inline-flex;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: var(--surface-2);
	font-size: 0.78rem;
	font-weight: 900;
}

/* Forms — profile + address */
.account-form,
.account-form__grid,
.woocommerce-address-fields__field-wrapper {
	display: grid;
	gap: 0.85rem;
}

.account-form__grid,
.woocommerce-address-fields__field-wrapper.account-form__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-form .form-row,
.account-form__grid .form-row,
.woocommerce-address-fields__field-wrapper .form-row {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 0.4rem;
	clear: none !important;
}

.account-form .form-row-wide,
.account-form__grid .form-row-wide,
.account-form__password,
.woocommerce-address-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

.account-form .form-row-first,
.account-form .form-row-last,
.woocommerce-address-fields__field-wrapper .form-row-first,
.woocommerce-address-fields__field-wrapper .form-row-last {
	width: 100% !important;
	float: none !important;
}

.account-form label,
.woocommerce-address-fields label {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.78rem;
	font-weight: 800;
}

.account-form .required,
.woocommerce-address-fields .required {
	color: var(--red, #e61e25);
}

.account-form .input-text,
.account-form select,
.account-form textarea,
.account-input,
.woocommerce-address-fields .input-text,
.woocommerce-address-fields select,
.woocommerce-address-fields textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--line) !important;
	border-radius: 0.75rem !important;
	background: var(--surface-2) !important;
	color: var(--text) !important;
	box-shadow: none !important;
	box-sizing: border-box;
	font-weight: 700;
}

.account-form .password-input,
.woocommerce-address-fields .password-input,
.woocommerce-EditAccountForm .password-input {
	display: flex !important;
	align-items: stretch !important;
	width: 100% !important;
	min-height: 48px;
	border-radius: 0.75rem !important;
	overflow: hidden;
	border: 1px solid var(--line) !important;
	background: var(--surface-2) !important;
	box-sizing: border-box;
}

.account-form .password-input .input-text,
.woocommerce-address-fields .password-input .input-text,
.woocommerce-EditAccountForm .password-input .input-text {
	border: 0 !important;
	border-radius: 0 !important;
	flex: 1 1 auto !important;
	background: transparent !important;
	box-shadow: none !important;
	min-width: 0;
	padding-right: 0.35rem !important;
}

.account-form .show-password-input,
.woocommerce-address-fields .show-password-input,
.woocommerce-EditAccountForm .show-password-input,
.account-form .ps-password-toggle,
.woocommerce-EditAccountForm .ps-password-toggle {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	flex: 0 0 2.75rem !important;
	width: 2.75rem !important;
	min-width: 2.75rem !important;
	min-height: 48px !important;
	align-self: stretch !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 1px solid var(--line) !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	color: var(--text-soft) !important;
	font-size: inherit !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	cursor: pointer;
	box-shadow: none !important;
}

.account-form .show-password-input.display-password,
.woocommerce-address-fields .show-password-input.display-password,
.woocommerce-EditAccountForm .show-password-input.display-password,
.account-form .ps-password-toggle.display-password,
.woocommerce-EditAccountForm .ps-password-toggle.display-password {
	color: var(--red, #e61e25) !important;
	background-image: none !important;
}

.account-form .show-password-input svg,
.woocommerce-address-fields .show-password-input svg,
.woocommerce-EditAccountForm .show-password-input svg,
.account-form .ps-password-toggle svg,
.woocommerce-EditAccountForm .ps-password-toggle svg {
	display: block !important;
	width: 1.15rem !important;
	height: 1.15rem !important;
	stroke: currentColor;
	fill: none;
	pointer-events: none;
}

:root[data-theme="dark"] .account-form .show-password-input,
:root[data-theme="dark"] .woocommerce-address-fields .show-password-input,
:root[data-theme="dark"] .woocommerce-EditAccountForm .show-password-input,
:root[data-theme="dark"] .account-form .ps-password-toggle,
:root[data-theme="dark"] .woocommerce-EditAccountForm .ps-password-toggle {
	color: #a4b4c7 !important;
	background-image: none !important;
}

.account-form__password {
	margin: 0.35rem 0 0;
	padding: 1rem;
	border: 1px solid var(--line) !important;
	border-radius: 0.95rem;
	background: var(--surface-2) !important;
	color: var(--text);
	display: grid;
	gap: 0.85rem;
}

.account-form__password legend {
	padding: 0 0.35rem;
	color: var(--text);
	font-size: 0.9rem;
	font-weight: 800;
	background: transparent;
}

.account-form__password-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.account-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin-top: 0.35rem;
}

.account-addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.account-address-card {
	display: grid;
	gap: 0.85rem;
	padding: 1.05rem;
	border: 1px solid var(--line);
	border-radius: 0.95rem;
	background: var(--surface-2);
	color: var(--text);
}

.account-address-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.account-address-card__head h3 {
	margin: 0;
	font-size: 0.95rem;
	color: var(--text);
}

.account-address-card address {
	margin: 0;
	font-style: normal;
	line-height: 1.55;
	color: var(--text-soft);
	font-weight: 600;
}

.account-address-card__empty {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.88rem;
}

.button--sm {
	padding: 0.4rem 0.7rem;
	font-size: 0.75rem;
}

.account-panel .button--primary,
.account-card .button--primary {
	color: #fff !important;
}

@media (max-width: 900px) {
	.account-page-layout {
		grid-template-columns: 1fr;
	}

	.account-sidebar {
		position: static;
		min-height: 0;
	}

	.account-nav__item--logout {
		margin-top: 0.5rem !important;
	}

	.account-form__grid,
	.account-form__password-grid,
	.account-addresses,
	.woocommerce-address-fields__field-wrapper.account-form__grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Category listing — slim header, WC widgets
   ============================================================ */
.category-listing__title {
	margin: 0 0 0.75rem;
}

.category-listing__title h1 {
	margin: 0;
	font-size: 1.45rem;
}

.category-filters__widgets .widget {
	margin-bottom: 1rem;
}

.category-filter-widget__title {
	margin: 0 0 0.55rem;
	font-size: 0.82rem;
	font-weight: 900;
}

.category-filters__widgets ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.category-filters__widgets a {
	color: inherit;
	font-weight: 700;
	font-size: 0.82rem;
}

.category-filters__empty {
	font-size: 0.82rem;
	color: var(--text-soft);
}

/* (single product styles moved above — gallery + buy box) */

/* ============================================================
   Dark/light — WC + Storefront leak fixes
   ============================================================ */
.woocommerce-page .site-main,
.woocommerce .site-main {
	background: transparent;
}

.woocommerce table.shop_table,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce-cart-form,
.woocommerce-checkout,
.account-card,
.cart-page-item,
.cart-page__summary,
.account-sidebar,
.category-filters,
.product-detail__tabs {
	background: var(--surface);
	color: var(--text);
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.account-form input,
.account-form select,
.cart-coupon input {
	background: var(--surface-2, var(--surface));
	color: var(--text);
	border-color: var(--line);
}

.account-form fieldset,
.woocommerce-EditAccountForm fieldset,
.woocommerce-address-fields fieldset {
	background: var(--surface-2) !important;
	border-color: var(--line) !important;
	color: var(--text) !important;
}

.account-form fieldset legend,
.woocommerce-EditAccountForm fieldset legend {
	color: var(--text) !important;
	background: transparent !important;
}

.account-form .clear,
.woocommerce-address-fields .clear,
.woocommerce-address-fields__field-wrapper::before,
.woocommerce-address-fields__field-wrapper::after,
.account-form__grid::before,
.account-form__grid::after {
	content: none !important;
	display: none !important;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	background: var(--surface);
	color: var(--text);
}

:root[data-theme="light"] .woocommerce .woocommerce-message,
:root[data-theme="light"] .woocommerce .woocommerce-info,
:root[data-theme="light"] .woocommerce .woocommerce-error {
	background: var(--surface);
}

@media (max-width: 1024px) {
	.cart-page-item {
		grid-template-columns: 68px minmax(0, 1fr);
		grid-template-areas:
			"media details"
			"media total"
			"qty qty"
			"remove remove";
	}

	.cart-page-item__media { grid-area: media; }
	.cart-page-item__details { grid-area: details; }
	.cart-page-item__qty { grid-area: qty; justify-self: stretch; }
	.cart-page-item__total { grid-area: total; justify-self: start; text-align: left; }
	.cart-page-item__remove { grid-area: remove; justify-self: start; }
}

@media (max-width: 900px) {
	.cart-page-item {
		grid-template-columns: 68px minmax(0, 1fr);
		grid-template-areas:
			"media details"
			"media total"
			"qty qty"
			"remove remove";
	}

	.cart-page-item__media { grid-area: media; }
	.cart-page-item__details { grid-area: details; }
	.cart-page-item__qty { grid-area: qty; justify-self: stretch; }
	.cart-page-item__total { grid-area: total; justify-self: start; text-align: left; }
	.cart-page-item__remove { grid-area: remove; justify-self: start; }

	.account-page-layout {
		grid-template-columns: 1fr;
	}

	.account-sidebar {
		position: static;
	}

	.account-form__grid,
	.account-addresses {
		grid-template-columns: 1fr;
	}

	.product-detail__related .product-grid,
	.related .product-grid,
	.upsells .product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ============================================================
   WooCommerce Blocks — Checkout / Cart (dark + light)
   ============================================================ */
body.checkout-page .site-main,
body.checkout-page .entry-content,
.wc-block-checkout,
.wp-block-woocommerce-checkout {
	color: var(--text);
}

body.checkout-page {
	background: var(--bg);
}

/* Section titles */
.wc-block-checkout__title,
.wc-block-components-checkout-step__title,
.wc-block-components-title,
.wc-block-components-panel__title,
.wc-block-checkout__sidebar .wc-block-components-title {
	color: var(--text) !important;
	font-weight: 900;
}

.wc-block-components-checkout-step__description,
.wc-block-components-form__description,
.wc-block-checkout__terms {
	color: var(--text-soft) !important;
}

/* Text inputs — labels ABOVE fields (no floating overlap) */
.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-select,
.wc-block-components-combobox .wc-block-components-combobox-control {
	position: relative !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	align-items: stretch !important;
	gap: 0.35rem !important;
	margin: 0 !important;
}

.wc-block-components-text-input > label,
.wc-block-components-combobox .wc-block-components-combobox-control > label,
.wc-block-components-select > label,
.wc-block-components-combobox-control > label {
	grid-row: 1 !important;
	order: -1 !important;
}

.wc-block-components-text-input > input,
.wc-block-components-combobox .wc-block-components-combobox-control > input,
.wc-block-components-select > select {
	grid-row: 2 !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input.is-active input,
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-address-form__address_2-toggle {
	position: relative !important;
	background: var(--surface-2) !important;
	color: var(--text) !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 0.75rem !important;
	box-shadow: none !important;
	min-height: 48px !important;
	padding: 0.75rem 0.95rem !important;
	width: 100% !important;
	box-sizing: border-box !important;
	line-height: 1.35 !important;
}

.wc-block-components-text-input label,
.wc-block-components-textarea label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-block-components-select .wc-block-components-select__label,
.wc-block-components-combobox-control label {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	translate: none !important;
	scale: none !important;
	inset: auto !important;
	display: block !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 0.1rem !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--text-soft) !important;
	font-size: 0.78rem !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.01em;
	pointer-events: none;
	opacity: 1 !important;
	z-index: auto !important;
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input.has-value label,
.wc-block-components-combobox.is-active .wc-block-components-combobox-control label,
.wc-block-components-combobox.has-value .wc-block-components-combobox-control label {
	position: static !important;
	transform: none !important;
	translate: none !important;
	scale: none !important;
	color: var(--text-soft) !important;
	font-size: 0.78rem !important;
}

.wc-block-components-text-input input::placeholder,
.wc-block-components-combobox .wc-block-components-combobox-control input::placeholder {
	color: var(--muted) !important;
	opacity: 1 !important;
}

/* Order notes — class is ON the <textarea> itself (WC hardcodes #fff) */
.wc-block-components-textarea,
textarea.wc-block-components-textarea,
.wp-block-woocommerce-checkout-order-note-block .wc-block-components-textarea,
.wc-block-checkout__order-notes .wc-block-components-textarea {
	display: block !important;
	width: 100% !important;
	min-height: 96px !important;
	margin: 0.5rem 0 0 !important;
	padding: 0.85rem 0.95rem !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 0.75rem !important;
	background: var(--surface-2) !important;
	background-color: var(--surface-2) !important;
	color: var(--text) !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	font-size: 0.92rem !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	resize: vertical;
}

.wc-block-components-textarea:focus,
textarea.wc-block-components-textarea:focus {
	background: var(--surface-2) !important;
	background-color: var(--surface-2) !important;
	border-color: rgba(230, 30, 37, 0.45) !important;
	box-shadow: 0 0 0 3px rgba(230, 30, 37, 0.12) !important;
	outline: none !important;
	color: var(--text) !important;
}

.wc-block-components-textarea:not(:placeholder-shown),
textarea.wc-block-components-textarea:not(:placeholder-shown) {
	color: var(--text) !important;
}

.wc-block-components-textarea::placeholder,
textarea.wc-block-components-textarea::placeholder {
	color: var(--muted) !important;
	opacity: 1 !important;
}

:root[data-theme="dark"] .wc-block-components-textarea,
:root[data-theme="dark"] textarea.wc-block-components-textarea,
:root[data-theme="dark"] .wc-block-checkout__order-notes .wc-block-components-textarea {
	background: var(--surface-2) !important;
	background-color: var(--surface-2) !important;
	color: #fff !important;
	border-color: var(--line) !important;
}

:root[data-theme="dark"] .wc-block-components-textarea::placeholder,
:root[data-theme="dark"] textarea.wc-block-components-textarea::placeholder {
	color: rgba(255, 255, 255, 0.55) !important;
}

/* ============================================================
   Country / State — WC .wc-blocks-components-select (white __container)
   ============================================================ */
.wc-blocks-components-select,
.wc-block-components-country-input,
.wc-block-components-state-input,
.wc-block-components-address-form__country,
.wc-block-components-address-form__state {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.wc-blocks-components-select .wc-blocks-components-select__container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0.4rem !important;
	position: relative !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	line-height: normal !important;
}

.wc-blocks-components-select .wc-blocks-components-select__label {
	position: static !important;
	inset: auto !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
	order: -1 !important;
	display: block !important;
	width: max-content !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	color: var(--text-soft) !important;
	font-size: 0.78rem !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	pointer-events: none !important;
	z-index: auto !important;
}

.wc-blocks-components-select .wc-blocks-components-select__select {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: block !important;
	width: 100% !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	padding: 0.75rem 2.5rem 0.75rem 0.95rem !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 0.75rem !important;
	background: var(--surface-2) !important;
	background-color: var(--surface-2) !important;
	background-image: none !important;
	color: var(--text) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: rgba(230, 30, 37, 0.45) !important;
	box-shadow: 0 0 0 3px rgba(230, 30, 37, 0.12) !important;
	outline: none !important;
	padding: 0.75rem 2.5rem 0.75rem 0.95rem !important;
}

.wc-blocks-components-select .wc-blocks-components-select__expand {
	top: auto !important;
	bottom: 1.05rem !important;
	transform: none !important;
	right: 0.95rem !important;
	fill: var(--text-soft) !important;
}

/* Legacy combobox fallback */
.wc-block-components-combobox,
.wc-block-components-address-form .wc-block-components-country-input,
.wc-block-components-address-form .wc-block-components-state-input {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.wc-block-components-country-input .wc-block-components-combobox,
.wc-block-components-state-input .wc-block-components-combobox {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.wc-block-components-country-input .wc-block-components-combobox-control,
.wc-block-components-state-input .wc-block-components-combobox-control,
.wc-block-components-combobox .wc-block-components-combobox-control,
.wc-block-components-combobox .components-base-control,
.wc-block-components-combobox .components-base-control__field,
.wc-block-components-combobox .components-combobox-control,
.wc-block-components-combobox .components-combobox-control__suggestions-container,
.wc-block-components-country-input .components-base-control,
.wc-block-components-country-input .components-base-control__field,
.wc-block-components-country-input .components-combobox-control,
.wc-block-components-country-input .components-combobox-control__suggestions-container,
.wc-block-components-state-input .components-base-control,
.wc-block-components-state-input .components-base-control__field,
.wc-block-components-state-input .components-combobox-control,
.wc-block-components-state-input .components-combobox-control__suggestions-container {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	overflow: visible !important;
}

/* Force label ABOVE the field — kill Woo floating label entirely */
html body.checkout-page .wc-block-components-country-input .wc-block-components-combobox-control,
html body.checkout-page .wc-block-components-state-input .wc-block-components-combobox-control,
html body.checkout-page .wc-block-components-combobox .wc-block-components-combobox-control,
html body .wc-block-components-country-input .wc-block-components-combobox-control,
html body .wc-block-components-state-input .wc-block-components-combobox-control {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0.4rem !important;
}

html body.checkout-page .wc-block-components-country-input .wc-block-components-combobox-control > label,
html body.checkout-page .wc-block-components-state-input .wc-block-components-combobox-control > label,
html body.checkout-page .wc-block-components-combobox .wc-block-components-combobox-control > label,
html body .wc-block-components-country-input .wc-block-components-combobox-control > label,
html body .wc-block-components-state-input .wc-block-components-combobox-control > label,
html body .wc-block-components-country-input label,
html body .wc-block-components-state-input label,
html body .wc-block-components-combobox label,
html body .wc-block-components-country-input .components-base-control__label,
html body .wc-block-components-state-input .components-base-control__label {
	order: -1 !important;
	position: static !important;
	inset: auto !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	transform: none !important;
	translate: none !important;
	scale: none !important;
	float: none !important;
	display: block !important;
	width: max-content !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--text-soft) !important;
	font-size: 0.78rem !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.01em;
	opacity: 1 !important;
	pointer-events: none !important;
	clip: auto !important;
	clip-path: none !important;
	z-index: auto !important;
}

html body .wc-block-components-country-input .wc-block-components-combobox-control > input,
html body .wc-block-components-state-input .wc-block-components-combobox-control > input,
html body .wc-block-components-country-input input,
html body .wc-block-components-state-input input,
html body .wc-block-components-combobox input {
	order: 2 !important;
}

.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-components-combobox input,
.wc-block-components-country-input select,
.wc-block-components-state-input select,
.wc-block-components-combobox select,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-country-input .wc-block-components-combobox-control input,
.wc-block-components-state-input .wc-block-components-combobox-control input {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: block !important;
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	padding: 0.75rem 2.5rem 0.75rem 0.95rem !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 0.75rem !important;
	background-color: var(--surface-2) !important;
	background-image: none !important;
	background-repeat: no-repeat !important;
	color: var(--text) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

/* One chevron only — on the input itself */
.wc-block-components-country-input .wc-block-components-combobox-control::after,
.wc-block-components-state-input .wc-block-components-combobox-control::after,
.wc-block-components-combobox > .wc-block-components-combobox-control::after {
	content: "" !important;
	position: absolute !important;
	right: 0.95rem !important;
	/* sit on the input row, not on the label */
	top: auto !important;
	bottom: 1.05rem !important;
	width: 0.9rem !important;
	height: 0.9rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	pointer-events: none !important;
	z-index: 3 !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: contain !important;
	opacity: 1 !important;
}

:root[data-theme="dark"] .wc-block-components-country-input .wc-block-components-combobox-control::after,
:root[data-theme="dark"] .wc-block-components-state-input .wc-block-components-combobox-control::after,
:root[data-theme="dark"] .wc-block-components-combobox > .wc-block-components-combobox-control::after {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

.wc-block-components-country-input .components-combobox-control__suggestions-container,
.wc-block-components-state-input .components-combobox-control__suggestions-container,
.wc-block-components-combobox .components-combobox-control__suggestions-container {
	display: block !important;
	width: 100% !important;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.wc-block-components-combobox .components-form-token-field__suggestions-list,
.wc-block-components-form-token-field-wrapper .components-form-token-field__suggestions-list {
	background: var(--surface) !important;
	border: 1px solid var(--line) !important;
	color: var(--text) !important;
	z-index: 40;
	background-image: none !important;
}

.wc-block-components-combobox .components-form-token-field__suggestion {
	color: var(--text) !important;
	background-image: none !important;
}

.wc-block-components-combobox .components-form-token-field__suggestion.is-highlighted {
	background: color-mix(in srgb, var(--red, #e61e25) 12%, var(--surface-2)) !important;
	color: var(--text) !important;
}

/* Validation: hide inline red banners — toasts handle errors */
.wc-block-components-validation-error,
.wc-block-components-notice-banner.is-error {
	display: none !important;
}

.wc-block-components-text-input.has-error input,
.wc-block-components-text-input.is-active.has-error input,
.wc-block-components-combobox.has-error input,
.wc-block-components-combobox.has-error .wc-block-components-combobox-control input,
.wc-block-components-select.has-error select {
	border-color: var(--line) !important;
	box-shadow: none !important;
}

/* Checkbox + radio — keep controls clear of text */
.wc-block-components-checkbox {
	display: flex !important;
	align-items: flex-start !important;
	gap: 0.65rem !important;
	margin: 0.35rem 0 0 !important;
}

.wc-block-components-checkbox label,
.wc-block-components-checkbox .wc-block-components-checkbox__label {
	display: inline-flex !important;
	align-items: flex-start !important;
	gap: 0.65rem !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--text) !important;
	font-weight: 750 !important;
	line-height: 1.45 !important;
	white-space: normal !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	position: static !important;
	flex: 0 0 1.15rem !important;
	width: 1.15rem !important;
	height: 1.15rem !important;
	margin: 0.15rem 0 0 !important;
	border: 1.5px solid var(--line-strong) !important;
	border-radius: 0.3rem !important;
	background: var(--surface-2) !important;
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
}

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 0 0.65rem !important;
	padding: 0.95rem 1rem 0.95rem 2.85rem !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 0.85rem !important;
	background: var(--surface) !important;
	color: var(--text) !important;
	min-height: 0 !important;
	overflow: visible !important;
}

.wc-block-components-radio-control__option:last-child,
.wc-block-components-radio-control-accordion-option:last-child {
	margin-bottom: 0 !important;
}

.wc-block-components-radio-control__input {
	position: absolute !important;
	left: 1rem !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 1.15rem !important;
	height: 1.15rem !important;
	min-width: 1.15rem !important;
	margin: 0 !important;
	border: 1.5px solid var(--line-strong) !important;
	border-radius: 999px !important;
	background: var(--surface-2) !important;
	appearance: auto !important;
	-webkit-appearance: radio !important;
	z-index: 2;
}

.wc-block-components-radio-control__option-layout,
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option-layout,
.wc-block-components-radio-control__label-group {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	justify-content: space-between !important;
	gap: 0.35rem 0.85rem !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wc-block-components-radio-control__label,
.wc-block-components-radio-control-accordion-option__label,
.wc-block-components-radio-control__title,
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__label {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	color: var(--text) !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
}

.wc-block-components-radio-control__description,
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__description {
	display: block !important;
	width: 100% !important;
	margin: 0.2rem 0 0 !important;
	padding: 0 !important;
	color: var(--text-soft) !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	white-space: normal !important;
}

.wc-block-components-radio-control__secondary-label,
.wc-block-components-radio-control__option .wc-block-components-formatted-money-amount,
.wc-block-components-radio-control-accordion-option .wc-block-formatted-money-amount,
.wc-block-components-radio-control-accordion-option .wc-block-components-formatted-money-amount {
	margin: 0 !important;
	font-weight: 800 !important;
	white-space: nowrap !important;
	color: var(--text) !important;
}

.wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control__option-checked,
.wc-block-components-radio-control__option--checked {
	border-color: color-mix(in srgb, var(--cart-cta, #1e3a8a) 55%, var(--line)) !important;
	background: color-mix(in srgb, var(--cart-cta, #1e3a8a) 8%, var(--surface)) !important;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--cart-cta, #1e3a8a) 18%, transparent);
}

/* Payment method content can nest deeply — force readable flow */
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control-accordion-content {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

.wc-block-components-radio-control-accordion-content {
	display: block !important;
	padding: 0.35rem 0 0 !important;
	margin: 0 !important;
	white-space: normal !important;
	overflow: visible !important;
}

/* Order summary sidebar */
.wc-block-checkout__sidebar,
.wc-block-components-order-summary {
	background: var(--surface) !important;
	color: var(--text) !important;
	border: 1px solid var(--line) !important;
	border-radius: 1rem !important;
}

.wc-block-components-order-summary-item,
.wc-block-components-product-name,
.wc-block-components-product-metadata,
.wc-block-components-order-summary-item__description,
.wc-block-components-order-summary-item__individual-prices {
	color: var(--text) !important;
}

.wc-block-components-order-summary-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 0.85rem 1rem;
	align-items: start;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--line);
}

.wc-block-components-order-summary-item__image {
	width: 72px;
	height: 72px;
	border-radius: 0.65rem;
	overflow: hidden;
	grid-row: 1 / span 2;
}

.wc-block-components-order-summary-item__description {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.wc-block-components-order-summary-item__individual-prices {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	justify-content: flex-start;
	text-align: left;
	grid-column: 2;
}

.wc-block-components-order-summary-item__individual-price {
	font-weight: 900;
	color: var(--red, #e61e25) !important;
	line-height: 1.3;
}

.wc-block-components-order-summary-item__individual-price del {
	color: var(--text-soft) !important;
	opacity: 0.75;
	font-weight: 700;
}

.wc-block-components-sale-badge {
	background: color-mix(in srgb, var(--red, #e61e25) 14%, transparent) !important;
	color: var(--red, #e61e25) !important;
	border-radius: 999px;
	padding: 0.2rem 0.55rem;
	font-size: 0.72rem;
	font-weight: 800;
	width: fit-content;
}

.wc-block-components-totals-item,
.wc-block-components-totals-footer-item {
	color: var(--text) !important;
	border-color: var(--line) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 900;
	font-size: 1.05rem;
}

/* Coupon accordion */
.wc-block-components-panel__button,
.wc-block-components-panel__button[aria-expanded="true"] {
	color: var(--text) !important;
	border: 1px solid var(--line) !important;
	border-radius: 0.75rem !important;
	background: var(--surface-2) !important;
}

/* Place order button */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button:not(.is-link) {
	background: linear-gradient(135deg, var(--cart-cta, #1e3a8a), var(--cart-cta-dark, #172554)) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0.85rem !important;
	font-weight: 800 !important;
	min-height: 48px;
}

/* Dark theme overrides — kill WC white input leak */
:root[data-theme="dark"] .wc-block-checkout,
:root[data-theme="dark"] body.checkout-page .wc-block-checkout {
	--wc-blocks-checkout-input-background: var(--surface-2);
	--wc-blocks-checkout-input-text-color: var(--text);
	--wc-blocks-checkout-input-border-color: var(--line);
}

:root[data-theme="dark"] .wc-block-components-country-input,
:root[data-theme="dark"] .wc-block-components-state-input,
:root[data-theme="dark"] .wc-block-components-country-input .wc-block-components-combobox,
:root[data-theme="dark"] .wc-block-components-state-input .wc-block-components-combobox,
:root[data-theme="dark"] .wc-block-components-country-input .wc-block-components-combobox-control,
:root[data-theme="dark"] .wc-block-components-state-input .wc-block-components-combobox-control,
:root[data-theme="dark"] .wc-block-components-country-input .components-base-control,
:root[data-theme="dark"] .wc-block-components-country-input .components-base-control__field,
:root[data-theme="dark"] .wc-block-components-country-input .components-combobox-control,
:root[data-theme="dark"] .wc-block-components-country-input .components-combobox-control__suggestions-container {
	background: transparent !important;
	background-color: transparent !important;
	border-color: transparent !important;
}

:root[data-theme="dark"] .wc-block-components-text-input input,
:root[data-theme="dark"] .wc-block-components-text-input.is-active input,
:root[data-theme="dark"] .wc-block-components-combobox .wc-block-components-combobox-control input,
:root[data-theme="dark"] .wc-block-components-textarea,
:root[data-theme="dark"] textarea.wc-block-components-textarea {
	background: var(--surface-2) !important;
	background-color: var(--surface-2) !important;
	color: var(--text) !important;
	border-color: var(--line) !important;
}

:root[data-theme="dark"] .wc-block-components-text-input label,
:root[data-theme="dark"] .wc-block-components-combobox .wc-block-components-combobox-control label {
	color: var(--text-soft) !important;
}

:root[data-theme="dark"] .wc-block-checkout__title,
:root[data-theme="dark"] .wc-block-components-checkout-step__title,
:root[data-theme="dark"] .wc-block-components-title {
	color: var(--text) !important;
}

:root[data-theme="dark"] .wc-block-checkout__sidebar {
	background: var(--surface) !important;
	border-color: var(--line) !important;
}

.wc-block-components-address-form__address_2-toggle {
	color: var(--text-soft) !important;
	font-weight: 700;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.wc-block-components-textarea:focus,
textarea.wc-block-components-textarea:focus,
.wc-block-components-select select:focus {
	border-color: rgba(230, 30, 37, 0.45) !important;
	box-shadow: 0 0 0 3px rgba(230, 30, 37, 0.12) !important;
	outline: none !important;
}

/* Classic checkout template (if used) */
.checkout-page .checkout-card,
.checkout-page .cart-summary,
.checkout-page .woocommerce-checkout .form-row input,
.checkout-page .woocommerce-checkout .form-row select,
.checkout-page .woocommerce-checkout .form-row textarea {
	background: var(--surface-2);
	color: var(--text);
	border-color: var(--line);
}

.checkout-page .woocommerce-checkout h3,
.checkout-page #order_review_heading {
	color: var(--text);
}

/* Empty cart — hide WC Blocks product recommendations */
body.cart-page .wc-block-cart.is-empty .wp-block-woocommerce-product-collection,
body.cart-page .wc-block-cart.is-empty .wc-block-product-template,
body.cart-page .wc-block-cart.is-empty .wc-block-grid,
body.cart-page .wc-block-cart.is-empty .wc-block-product-new,
body.cart-page .wc-block-cart:has(.wc-block-cart__empty-cart) .wp-block-woocommerce-product-collection,
body.cart-page .wc-block-cart:has(.wc-block-cart__empty-cart) .wc-block-product-template,
body.cart-page .wc-block-cart:has(.wc-block-cart__empty-cart) .wc-block-grid {
	display: none !important;
}

body.cart-page .wc-block-cart__empty-cart__title,
body.cart-page .wc-block-cart__empty-cart__description {
	color: var(--text-soft) !important;
}

/* Empty cart — hide/disable Proceed to checkout (desktop + sticky mobile) */
body.cart-page .wc-block-cart.is-empty .wc-block-cart__submit-container,
body.cart-page .wc-block-cart:has(.wc-block-cart__empty-cart) .wc-block-cart__submit-container,
body.cart-page .wc-block-cart.is-empty .wp-block-woocommerce-proceed-to-checkout-block,
body.cart-page .wc-block-cart:has(.wc-block-cart__empty-cart) .wp-block-woocommerce-proceed-to-checkout-block {
	display: none !important;
}

.cart-drawer__foot[data-cart-empty="1"] [data-cart-checkout-cta] {
	display: none !important;
}

/* Add to cart — keep it simple, no "View cart" link */
a.added_to_cart.wc-forward,
.woocommerce-notices-wrapper .added_to_cart,
.single-product a.added_to_cart,
.product-card a.added_to_cart,
ul.products a.added_to_cart {
	display: none !important;
}

/* ============================================================
   Cart + Checkout page shell (Blocks + classic)
   ============================================================ */
body.cart-page .site-main,
body.checkout-page .site-main {
	width: min(1180px, calc(100% - 2rem));
	margin: 1.25rem auto 3rem;
	padding: 0;
}

body.cart-page .entry-content,
body.checkout-page .entry-content {
	display: grid;
	gap: 1rem;
}

body.cart-page .wc-block-cart,
body.checkout-page .wc-block-checkout,
body.cart-page .wp-block-woocommerce-cart,
body.checkout-page .wp-block-woocommerce-checkout {
	padding: 1.2rem;
	border: 1px solid var(--line);
	border-radius: 1.15rem;
	background: var(--surface);
	box-shadow: var(--shadow-soft, 0 12px 32px rgba(15, 23, 42, 0.06));
}

/* Classic cart shortcode replaces the Cart block — no double chrome. */
body.cart-page .production-store-classic-cart,
body.cart-page .wp-block-woocommerce-cart.production-store-classic-cart {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.cart-page .wc-block-cart__main,
body.cart-page .wc-block-cart__sidebar,
body.checkout-page .wc-block-checkout__main,
body.checkout-page .wc-block-checkout__sidebar {
	gap: 1rem;
}

body.cart-page .wc-block-components-product-name,
body.cart-page .wc-block-cart-item__product,
body.checkout-page .wc-block-components-product-name {
	font-weight: 800;
	color: var(--text) !important;
}

body.cart-page .wc-block-cart-items,
body.cart-page .wc-block-cart__totals-title,
body.cart-page .wc-block-components-totals-wrapper {
	border-color: var(--line) !important;
}

body.cart-page .wc-block-cart-items__row,
body.cart-page .wc-block-components-order-summary-item {
	border-color: var(--line) !important;
}

body.cart-page .wc-block-cart__empty-cart,
body.cart-page .wc-block-cart__empty-cart__title {
	color: var(--text) !important;
}

body.cart-page .wc-block-cart__empty-cart__description,
body.cart-page .wc-block-components-product-metadata {
	color: var(--text-soft) !important;
}

body.cart-page .wc-block-components-button,
body.checkout-page .wc-block-components-button,
body.cart-page .wc-block-cart__submit-container .wc-block-components-button,
body.checkout-page .wc-block-components-checkout-place-order-button {
	min-height: 48px !important;
	border-radius: 0.85rem !important;
	font-weight: 800 !important;
}

body.cart-page .wc-block-components-button:not(.is-link),
body.checkout-page .wc-block-components-button:not(.is-link),
body.checkout-page .wc-block-components-checkout-place-order-button {
	background: linear-gradient(135deg, var(--cart-cta, #1e3a8a), var(--cart-cta-dark, #172554)) !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: 0 14px 28px var(--cart-cta-shadow, rgba(30, 58, 138, 0.22)) !important;
}

body.cart-page .wc-block-components-button:not(.is-link):hover,
body.checkout-page .wc-block-components-button:not(.is-link):hover,
body.checkout-page .wc-block-components-checkout-place-order-button:hover {
	background: linear-gradient(135deg, var(--cart-cta-hover, #1d4ed8), var(--cart-cta, #1e3a8a)) !important;
}

body.cart-page .wc-block-components-button.is-link,
body.checkout-page .wc-block-components-button.is-link {
	color: var(--red, #e61e25) !important;
}

body.cart-page .wc-block-cart__submit-container,
body.cart-page .wc-block-cart__submit-container--sticky {
	background: var(--surface) !important;
	border-top: 1px solid var(--line);
}

body.cart-page .wc-block-cart__submit-container::before {
	color: var(--line) !important;
}

body.checkout-page .wc-block-checkout,
body.checkout-page .wp-block-woocommerce-checkout {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}

body.checkout-page .wc-block-checkout__main,
body.checkout-page .wc-block-checkout__sidebar,
body.checkout-page .col2-set,
body.checkout-page .col-1,
body.checkout-page .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	min-width: 0 !important;
}

body.checkout-page .wc-block-checkout__main,
body.checkout-page .wc-block-checkout__sidebar {
	gap: 1rem !important;
}

body.checkout-page .wc-block-components-checkout-step,
body.checkout-page .wc-block-checkout__payment-method,
body.checkout-page .wc-block-checkout__shipping-method,
body.checkout-page .wc-block-checkout__order-notes {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
	padding: 1.15rem 1.2rem;
	margin: 0 0 1rem !important;
	box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.04));
	overflow: visible;
}

body.checkout-page .wc-block-checkout__terms {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	border: 0;
	background: transparent;
	padding: 0.35rem 0.15rem 0.85rem;
	margin: 0 0 0.75rem !important;
	box-shadow: none;
	color: var(--text-soft) !important;
	font-size: 0.82rem !important;
	font-weight: 700;
	line-height: 1.5 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
}

body.checkout-page .wc-block-checkout__actions {
	display: block !important;
	width: 100% !important;
	border: 0;
	padding: 0;
	background: transparent;
	margin: 0 0 0 !important;
	box-shadow: none;
}

body.checkout-page .wc-block-components-checkout-step__container {
	gap: 0.9rem !important;
}

body.checkout-page .wc-block-components-checkout-step__heading {
	margin: 0 0 0.35rem !important;
}

body.checkout-page .wc-block-components-checkout-step__title {
	font-size: 1.05rem !important;
	letter-spacing: -0.02em;
}

body.checkout-page .wc-block-components-address-form,
body.checkout-page .wc-block-components-form {
	gap: 0.85rem !important;
}

body.checkout-page .wc-block-components-address-form .wc-block-components-text-input,
body.checkout-page .wc-block-components-address-form .wc-block-components-country-input,
body.checkout-page .wc-block-components-address-form .wc-block-components-state-input {
	margin: 0 !important;
}

body.checkout-page .wc-block-components-checkbox {
	margin: 0.15rem 0 0 !important;
}

body.checkout-page .wc-block-components-checkbox label {
	gap: 0.55rem;
	line-height: 1.4;
}

body.checkout-page .wc-block-checkout__sidebar,
body.checkout-page .wp-block-woocommerce-checkout-totals-block {
	border: 1px solid var(--line) !important;
	border-radius: 1.15rem !important;
	background: var(--surface) !important;
	padding: 1.85rem 1.75rem 1.95rem !important;
	box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.04));
	box-sizing: border-box !important;
}

body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title,
body.checkout-page .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
	margin: 0 0 1.15rem !important;
	padding: 0 0 1rem !important;
	border-bottom: 1px solid var(--line) !important;
	font-size: 1.08rem !important;
	font-weight: 900 !important;
	letter-spacing: -0.02em;
}

body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary,
body.checkout-page .wc-block-checkout__sidebar > * {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
	width: 100% !important;
	min-width: 0 !important;
}

body.checkout-page .wc-block-components-order-summary-item {
	grid-template-columns: 72px minmax(0, 1fr) !important;
	gap: 0.9rem 1rem !important;
	padding: 1.35rem 0 !important;
	margin: 0 !important;
	border-bottom: 1px solid var(--line) !important;
}

body.checkout-page .wc-block-components-order-summary-item:last-child {
	border-bottom: 0 !important;
	padding-bottom: 0.55rem !important;
}

body.checkout-page .wc-block-components-order-summary-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.checkout-page .wc-block-components-product-name {
	font-size: 0.98rem !important;
	font-weight: 900 !important;
	line-height: 1.35 !important;
}

body.checkout-page .wc-block-components-product-metadata,
body.checkout-page .wc-block-components-product-details {
	color: var(--text-soft) !important;
	font-size: 0.8rem !important;
	line-height: 1.45 !important;
	margin-top: 0.2rem !important;
}

body.checkout-page .wc-block-components-order-summary-item__total-price,
body.checkout-page .wc-block-components-product-price {
	margin-top: 0.15rem;
}

body.checkout-page .wc-block-components-product-price {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 0.4rem 0.55rem !important;
}

body.checkout-page .wc-block-components-product-price__value,
body.checkout-page .wc-block-components-order-summary-item .price {
	font-size: 0.95rem !important;
	font-weight: 900 !important;
}

body.checkout-page .wc-block-components-order-summary-item .price del,
body.checkout-page .wc-block-components-product-price del {
	opacity: 0.65;
	font-weight: 700 !important;
}

body.checkout-page .wc-block-components-panel {
	margin: 1.35rem 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.checkout-page .wc-block-components-panel__button {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	min-height: 52px !important;
	padding: 0.95rem 1.1rem !important;
	margin: 0 !important;
	font-weight: 800 !important;
}

body.checkout-page .wc-block-components-panel__content {
	padding: 0.85rem 0 0.15rem !important;
}

body.checkout-page .wc-block-components-totals-coupon {
	margin: 0 !important;
}

body.checkout-page .wc-block-components-totals-wrapper {
	margin-top: 0.55rem !important;
	padding-top: 1.2rem !important;
	border-top: 1px solid var(--line) !important;
	display: grid !important;
	gap: 0.2rem !important;
}

body.checkout-page .wc-block-components-totals-item {
	padding: 0.85rem 0 !important;
	margin: 0 !important;
	border: 0 !important;
	gap: 0.85rem !important;
}

body.checkout-page .wc-block-components-totals-item + .wc-block-components-totals-item {
	border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
}

body.checkout-page .wc-block-components-totals-item__label,
body.checkout-page .wc-block-components-totals-item__value {
	font-size: 0.95rem !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
}

body.checkout-page .wc-block-components-totals-footer-item {
	padding: 1.2rem 0 0.35rem !important;
	margin-top: 0.45rem !important;
	border-top: 1px solid var(--line) !important;
}

body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.18rem !important;
	font-weight: 900 !important;
}

body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--red, #e61e25) !important;
}

body.checkout-page .wc-block-components-totals-item__description,
body.checkout-page .wc-block-components-totals-footer-item-tax-value {
	color: var(--text-soft) !important;
	font-size: 0.8rem !important;
	font-weight: 700;
	margin-top: 0.35rem !important;
	line-height: 1.4 !important;
}

body.checkout-page .wc-block-components-checkout-place-order-button {
	width: 100% !important;
	min-height: 52px !important;
	margin-top: 0.25rem !important;
}

body.checkout-page .wc-block-components-address-form__address_2-toggle {
	margin: 0 !important;
	padding: 0.55rem 0 !important;
	color: var(--cart-cta, #1e3a8a) !important;
	font-weight: 800 !important;
}

/* Restore WooCommerce Blocks native two-column flex.
   Do NOT grid the fields block — that crushes every step into tiny columns. */
body.checkout-page .wp-block-woocommerce-checkout-fields-block {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}

body.checkout-page .wc-block-components-sidebar-layout {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-start !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	gap: 1.25rem !important;
}

body.checkout-page .wc-block-components-main,
body.checkout-page .wp-block-woocommerce-checkout-fields-block.wc-block-components-main {
	box-sizing: border-box !important;
	float: none !important;
	flex: 1 1 0 !important;
	width: auto !important;
	max-width: none !important;
	min-width: min(100%, 280px) !important;
	margin: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.checkout-page .wc-block-components-sidebar,
body.checkout-page .wp-block-woocommerce-checkout-totals-block.wc-block-components-sidebar {
	box-sizing: border-box !important;
	float: none !important;
	flex: 0 1 340px !important;
	width: auto !important;
	max-width: 100% !important;
	min-width: min(100%, 260px) !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	position: sticky;
	top: 5.5rem;
}

@media (max-width: 900px) {
	body.checkout-page .wc-block-components-sidebar-layout {
		flex-direction: column !important;
		gap: 1rem !important;
	}

	body.checkout-page .wc-block-components-main,
	body.checkout-page .wc-block-components-sidebar,
	body.checkout-page .wp-block-woocommerce-checkout-fields-block.wc-block-components-main,
	body.checkout-page .wp-block-woocommerce-checkout-totals-block.wc-block-components-sidebar {
		flex: 1 1 auto !important;
		width: 100% !important;
		min-width: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		position: static;
	}
}

body.checkout-page .wc-block-components-text-input input,
body.checkout-page .wc-block-components-text-input textarea,
body.checkout-page .wc-block-components-select select,
body.checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input {
	min-height: 48px !important;
	padding: 0.7rem 0.9rem !important;
}

/* Locked account email on checkout — not editable */
body.checkout-page input.ps-email-locked,
body.checkout-page .ps-email-locked-wrap input[type="email"],
form.woocommerce-checkout input#billing_email[readonly],
form.checkout input#billing_email[readonly] {
	background: var(--surface-3, var(--surface-2)) !important;
	color: var(--text-soft) !important;
	cursor: not-allowed !important;
	opacity: 0.92;
	pointer-events: none;
}

body.checkout-page .wc-block-components-text-input label {
	font-weight: 800 !important;
}

body.checkout-page .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__label,
body.checkout-page .wc-block-components-radio-control__label {
	font-weight: 800 !important;
}

body.checkout-page .wc-block-components-radio-control__description {
	color: var(--text-soft) !important;
	font-size: 0.82rem !important;
	font-weight: 700;
	margin-top: 0.2rem;
	white-space: normal !important;
	word-break: normal !important;
}

body.checkout-page .page-title,
body.checkout-page .entry-title,
body.checkout-page h1.wp-block-post-title {
	display: none !important;
}

body.checkout-page .wc-block-components-checkout-step__title,
body.checkout-page .wc-block-components-title,
body.checkout-page .wc-block-components-checkbox label,
body.checkout-page .wc-block-components-radio-control__label {
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
}

body.checkout-page .wc-block-components-text-input,
body.checkout-page .wc-block-components-combobox,
body.checkout-page .wc-block-components-select,
body.checkout-page .wc-block-components-panel,
body.checkout-page .wc-block-components-totals-coupon {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

body.cart-page .wc-block-components-text-input input,
body.cart-page .wc-block-components-text-input textarea,
body.cart-page .wc-block-components-select select,
body.cart-page .wc-block-components-combobox .wc-block-components-combobox-control input {
	background: var(--surface-2) !important;
	color: var(--text) !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 0.75rem !important;
}

body.cart-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--red, #e61e25) !important;
	font-weight: 900;
}

@media (max-width: 900px) {
	body.cart-page .site-main,
	body.checkout-page .site-main {
		width: calc(100% - 1.5rem);
		margin-inline: auto;
	}

	body.cart-page .wc-block-cart,
	body.checkout-page .wc-block-checkout {
		padding: 1rem;
		border-radius: 1rem;
	}
}

/* ============================================================
   Checkout UI redesign — spacing, hierarchy, summary, responsive
   ============================================================ */
html body.checkout-page .site-main {
	width: min(1120px, calc(100% - 2rem));
	margin: 1.35rem auto 3.25rem;
}

/* Two-column shell: form + sticky summary */
html body.checkout-page .wc-block-components-sidebar-layout {
	display: grid !important;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr) !important;
	gap: 1.5rem !important;
	align-items: start !important;
	flex-wrap: nowrap !important;
}

html body.checkout-page .wc-block-components-main,
html body.checkout-page .wp-block-woocommerce-checkout-fields-block.wc-block-components-main {
	flex: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

html body.checkout-page .wc-block-components-sidebar,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block.wc-block-components-sidebar {
	flex: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	position: sticky;
	top: 5.25rem;
}

/* Step cards — clearer hierarchy + breathing room */
html body.checkout-page .wc-block-components-checkout-step,
html body.checkout-page .wc-block-checkout__payment-method,
html body.checkout-page .wc-block-checkout__shipping-method,
html body.checkout-page .wc-block-checkout__order-notes {
	padding: 1.35rem 1.4rem !important;
	margin: 0 0 1.15rem !important;
	border-radius: 1.05rem !important;
	border-color: var(--line) !important;
	background: var(--surface) !important;
}

html body.checkout-page .wc-block-components-checkout-step__heading {
	margin: 0 0 1rem !important;
	padding: 0 0 0.85rem !important;
	border-bottom: 1px solid var(--line);
}

html body.checkout-page .wc-block-components-checkout-step__title {
	font-size: 1.12rem !important;
	font-weight: 900 !important;
	letter-spacing: -0.02em;
	line-height: 1.25 !important;
}

html body.checkout-page .wc-block-components-checkout-step__container {
	gap: 1.15rem !important;
}

/* Labels above fields with real spacing */
html body.checkout-page .wc-block-components-text-input,
html body.checkout-page .wc-block-components-combobox,
html body.checkout-page .wc-block-components-select,
html body.checkout-page .wc-block-components-combobox .wc-block-components-combobox-control,
html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__container {
	gap: 0.55rem !important;
}

html body.checkout-page .wc-block-components-text-input > label,
html body.checkout-page .wc-block-components-combobox-control > label,
html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__label,
html body.checkout-page .wc-block-components-select .wc-block-components-select__label {
	margin: 0 0 0.1rem !important;
	font-size: 0.8rem !important;
	font-weight: 800 !important;
	color: var(--text-soft) !important;
	letter-spacing: 0.01em;
}

html body.checkout-page .wc-block-components-text-input input,
html body.checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input,
html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__select {
	min-height: 50px !important;
	padding: 0.8rem 1rem !important;
	border-radius: 0.8rem !important;
	border-width: 1.5px !important;
}

/* Address form grid — paired fields with room */
html body.checkout-page .wc-block-components-address-form {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 1.05rem 1rem !important;
	width: 100% !important;
}

html body.checkout-page .wc-block-components-address-form > * {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	flex: none !important;
	margin: 0 !important;
}

html body.checkout-page .wc-block-components-address-form__country,
html body.checkout-page .wc-block-components-address-form__address_1,
html body.checkout-page .wc-block-components-address-form__address_2,
html body.checkout-page .wc-block-components-address-form__company,
html body.checkout-page .wc-block-components-address-form__email,
html body.checkout-page .wc-block-components-address-form .wc-block-components-checkbox,
html body.checkout-page .wc-block-components-address-form__address_2-toggle {
	grid-column: 1 / -1;
}

html body.checkout-page .wc-block-components-checkbox {
	margin: 0.35rem 0 0 !important;
	padding-top: 0.25rem;
}

html body.checkout-page .wc-block-components-checkbox label {
	gap: 0.65rem !important;
	font-size: 0.86rem !important;
	font-weight: 700 !important;
	color: var(--text-soft) !important;
	line-height: 1.45 !important;
}

html body.checkout-page .wc-block-components-address-form__address_2-toggle {
	padding: 0.35rem 0 0.15rem !important;
	color: var(--cart-cta, #1e3a8a) !important;
	font-size: 0.84rem !important;
	font-weight: 800 !important;
}

/* Contact email step fields */
html body.checkout-page .wc-block-components-form {
	display: grid !important;
	gap: 1.05rem !important;
}

/* Sidebar card */
html body.checkout-page .wc-block-checkout__sidebar,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
	padding: 1.35rem 1.3rem 1.45rem !important;
	border-radius: 1.05rem !important;
	border: 1px solid var(--line) !important;
	background: var(--surface) !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title,
html body.checkout-page .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
	margin: 0 0 1rem !important;
	padding: 0 0 0.9rem !important;
	border-bottom: 1px solid var(--line) !important;
	font-size: 1.08rem !important;
}

/* Order line items — clean 3-col: image | info | line total */
html body.checkout-page .wc-block-components-order-summary-item {
	display: grid !important;
	grid-template-columns: 64px minmax(0, 1fr) auto !important;
	gap: 0.75rem 0.85rem !important;
	align-items: start !important;
	padding: 1rem 0 !important;
	border-bottom: 1px solid var(--line) !important;
}

html body.checkout-page .wc-block-components-order-summary-item__image {
	grid-column: 1;
	grid-row: 1;
	width: 64px !important;
	height: 64px !important;
	border-radius: 0.7rem !important;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--surface-2);
}

html body.checkout-page .wc-block-components-order-summary-item__description {
	grid-column: 2;
	grid-row: 1;
	display: grid !important;
	gap: 0.3rem !important;
	min-width: 0 !important;
}

html body.checkout-page .wc-block-components-order-summary-item__total-price {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	align-self: start;
	margin: 0 !important;
	text-align: right;
	white-space: nowrap;
}

html body.checkout-page .wc-block-components-product-name {
	font-size: 0.88rem !important;
	font-weight: 900 !important;
	line-height: 1.35 !important;
	color: var(--text) !important;
}

html body.checkout-page .wc-block-components-product-metadata,
html body.checkout-page .wc-block-components-product-details {
	margin: 0 !important;
	color: var(--muted) !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

/* Unit prices under product name — one clear row */
html body.checkout-page .wc-block-components-order-summary-item__individual-prices {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 0.35rem 0.55rem !important;
	margin-top: 0.35rem !important;
	grid-column: auto !important;
}

html body.checkout-page .wc-block-components-product-price {
	display: inline-flex !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	gap: 0.35rem 0.45rem !important;
	margin: 0 !important;
}

html body.checkout-page .wc-block-components-product-price del,
html body.checkout-page .wc-block-components-order-summary-item__individual-price del {
	color: var(--muted) !important;
	opacity: 0.8;
	font-size: 0.74rem !important;
	font-weight: 700 !important;
	text-decoration: line-through;
}

html body.checkout-page .wc-block-components-product-price__value,
html body.checkout-page .wc-block-components-product-price ins,
html body.checkout-page .wc-block-components-order-summary-item__individual-price {
	color: var(--red, #e61e25) !important;
	font-size: 0.84rem !important;
	font-weight: 900 !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
}

/* Line total on the right — neutral, not competing with unit sale price */
html body.checkout-page .wc-block-components-order-summary-item__total-price .price,
html body.checkout-page .wc-block-components-order-summary-item__total-price .wc-block-components-product-price,
html body.checkout-page .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value {
	color: var(--text) !important;
	font-size: 0.92rem !important;
	font-weight: 900 !important;
}

html body.checkout-page .wc-block-components-order-summary-item__total-price del {
	display: none !important;
}

/* Savings badge — under unit price, not next to line total */
html body.checkout-page .wc-block-components-sale-badge {
	display: inline-flex !important;
	align-items: center;
	width: fit-content;
	margin: 0 !important;
	padding: 0.18rem 0.5rem !important;
	border-radius: 999px !important;
	background: color-mix(in srgb, var(--red, #e61e25) 14%, transparent) !important;
	color: var(--red, #e61e25) !important;
	font-size: 0.68rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
}

/* Hide duplicate sale badge if WC also puts one in total-price column */
html body.checkout-page .wc-block-components-order-summary-item__total-price .wc-block-components-sale-badge {
	display: none !important;
}

/* Totals block */
html body.checkout-page .wc-block-components-totals-wrapper {
	margin-top: 0.35rem !important;
	padding-top: 1rem !important;
	gap: 0 !important;
}

html body.checkout-page .wc-block-components-totals-item {
	padding: 0.7rem 0 !important;
}

html body.checkout-page .wc-block-components-totals-footer-item {
	padding-top: 1rem !important;
	margin-top: 0.35rem !important;
}

html body.checkout-page .wc-block-components-panel {
	margin: 1rem 0 0.35rem !important;
}

html body.checkout-page .wc-block-components-panel__button {
	min-height: 48px !important;
	padding: 0.8rem 1rem !important;
	border-radius: 0.8rem !important;
}

html body.checkout-page .wc-block-components-checkout-place-order-button {
	min-height: 52px !important;
	margin-top: 0.5rem !important;
	border-radius: 0.85rem !important;
	font-size: 0.95rem !important;
}

/* ============================================================
   Checkout — vertical products carousel (order summary)
   CRITICAL: WC Blocks uses display:table on __content which
   ignores max-height/overflow. Force display:block first.
   ============================================================ */
html body.checkout-page .wc-block-components-order-summary__content,
html body.woocommerce-checkout .wc-block-components-order-summary__content,
html body.checkout-page .td-checkout-products-scroll.is-multi,
html body.woocommerce-checkout .td-checkout-products-scroll.is-multi,
.wc-block-checkout .wc-block-components-order-summary__content {
	display: block !important;
	width: 100% !important;
	max-height: min(15.5rem, 38vh) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding-right: 0 !important;
	box-sizing: border-box !important;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
	mask-image: none;
	-webkit-mask-image: none;
}

html body.checkout-page .td-checkout-products-scroll.is-single,
html body.woocommerce-checkout .td-checkout-products-scroll.is-single,
html body.checkout-page .wc-block-components-order-summary__content:has(.wc-block-components-order-summary-item:only-child),
html body.woocommerce-checkout .wc-block-components-order-summary__content:has(.wc-block-components-order-summary-item:only-child) {
	max-height: none !important;
	overflow: visible !important;
	mask-image: none;
	-webkit-mask-image: none;
}

html body.checkout-page .wc-block-components-order-summary__content::-webkit-scrollbar,
html body.woocommerce-checkout .wc-block-components-order-summary__content::-webkit-scrollbar,
html body.checkout-page .td-checkout-products-scroll::-webkit-scrollbar {
	width: 0 !important;
	height: 0 !important;
	display: none !important;
}

html body.checkout-page .wc-block-components-order-summary__content::-webkit-scrollbar-thumb,
html body.woocommerce-checkout .wc-block-components-order-summary__content::-webkit-scrollbar-thumb,
html body.checkout-page .td-checkout-products-scroll::-webkit-scrollbar-thumb {
	background: transparent;
}

html body.checkout-page .wc-block-components-order-summary__content .wc-block-components-order-summary-item,
html body.woocommerce-checkout .wc-block-components-order-summary__content .wc-block-components-order-summary-item,
html body.checkout-page .td-checkout-products-scroll .wc-block-components-order-summary-item {
	display: grid !important;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

html body.checkout-page .td-checkout-products-carousel,
html body.woocommerce-checkout .td-checkout-products-carousel {
	position: relative;
	display: grid;
	gap: 0.45rem;
	margin: 0.35rem 0 0.15rem;
	min-width: 0;
}

html body.checkout-page .td-checkout-products-carousel__controls,
html body.woocommerce-checkout .td-checkout-products-carousel__controls {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
}

html body.checkout-page .td-checkout-products-carousel__controls[hidden],
html body.woocommerce-checkout .td-checkout-products-carousel__controls[hidden],
html body.checkout-page .td-checkout-products-carousel.is-single .td-checkout-products-carousel__controls,
html body.woocommerce-checkout .td-checkout-products-carousel.is-single .td-checkout-products-carousel__controls,
html body.checkout-page .td-checkout-products-carousel:not(.is-scrollable) .td-checkout-products-carousel__controls,
html body.woocommerce-checkout .td-checkout-products-carousel:not(.is-scrollable) .td-checkout-products-carousel__controls {
	display: none !important;
}

html body.checkout-page .td-checkout-products-carousel__btn,
html body.woocommerce-checkout .td-checkout-products-carousel__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 1.85rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 0.55rem;
	background: var(--surface-2);
	color: var(--text-soft);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

html body.checkout-page .td-checkout-products-carousel__btn:hover:not(:disabled),
html body.woocommerce-checkout .td-checkout-products-carousel__btn:hover:not(:disabled) {
	border-color: color-mix(in srgb, var(--cart-cta, #1e3a8a) 45%, var(--line));
	background: color-mix(in srgb, var(--cart-cta, #1e3a8a) 12%, var(--surface-2));
}

html body.checkout-page .td-checkout-products-carousel__btn:disabled,
html body.woocommerce-checkout .td-checkout-products-carousel__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

html body.checkout-page .td-checkout-products-carousel__btn svg,
html body.woocommerce-checkout .td-checkout-products-carousel__btn svg {
	display: block;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary {
	border: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* ============================================================
   Checkout — responsive by section
   Breakpoints: 1100 / 980 / 720 / 480 / 380
   ============================================================ */

/* —— Tablet landscape: tighten two columns —— */
@media (max-width: 1100px) {
	html body.checkout-page .site-main {
		width: min(100%, calc(100% - 1.5rem));
		margin: 1.15rem auto 2.75rem;
	}

	html body.checkout-page .wc-block-components-sidebar-layout {
		grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr) !important;
		gap: 1.2rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-step,
	html body.checkout-page .wc-block-checkout__payment-method,
	html body.checkout-page .wc-block-checkout__shipping-method,
	html body.checkout-page .wc-block-checkout__order-notes,
	html body.checkout-page .wc-block-checkout__sidebar,
	html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
		padding: 1.2rem 1.15rem !important;
	}

	html body.checkout-page .wc-block-components-sidebar {
		top: 4.75rem;
	}
}

/* —— Tablet / small laptop: stack — summary first —— */
@media (max-width: 980px) {
	html body.checkout-page .wc-block-components-sidebar-layout {
		display: flex !important;
		flex-direction: column !important;
		grid-template-columns: none !important;
		gap: 1.1rem !important;
	}

	html body.checkout-page .wc-block-components-main,
	html body.checkout-page .wp-block-woocommerce-checkout-fields-block.wc-block-components-main {
		order: 1;
		width: 100% !important;
	}

	html body.checkout-page .wc-block-components-sidebar,
	html body.checkout-page .wp-block-woocommerce-checkout-totals-block.wc-block-components-sidebar {
		order: 2;
		position: static !important;
		width: 100% !important;
		top: auto;
	}

	html body.checkout-page .td-checkout-products-scroll.is-multi,
	html body.checkout-page .wc-block-components-order-summary__content,
	html body.woocommerce-checkout .wc-block-components-order-summary__content,
	.wc-block-checkout .wc-block-components-order-summary__content {
		display: block !important;
		max-height: min(15.5rem, 40vh) !important;
	}

	html body.checkout-page .wc-block-components-address-form {
		gap: 1rem 0.85rem !important;
	}

	/* Shipping / payment options: readable stack */
	html body.checkout-page .wc-block-components-radio-control__option,
	html body.checkout-page .wc-block-components-radio-control-accordion-option {
		padding: 0.95rem 1rem 0.95rem 2.75rem !important;
	}

	html body.checkout-page .wc-block-components-radio-control__option-layout {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.25rem !important;
	}

	html body.checkout-page .wc-block-components-radio-control__secondary-label,
	html body.checkout-page .wc-block-components-radio-control__option .wc-block-components-formatted-money-amount {
		align-self: flex-start !important;
	}
}

/* —— Large phone / small tablet —— */
@media (max-width: 720px) {
	html body.checkout-page .site-main {
		width: calc(100% - 1.25rem);
		margin: 0.9rem auto 2.35rem;
	}

	/* Coordonnées / Adresse / Notes / Payment cards */
	html body.checkout-page .wc-block-components-checkout-step,
	html body.checkout-page .wc-block-checkout__payment-method,
	html body.checkout-page .wc-block-checkout__shipping-method,
	html body.checkout-page .wc-block-checkout__order-notes,
	html body.checkout-page .wc-block-checkout__sidebar,
	html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
		padding: 1.05rem 0.95rem !important;
		margin-bottom: 0.95rem !important;
		border-radius: 0.9rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-step__heading {
		margin-bottom: 0.85rem !important;
		padding-bottom: 0.7rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-step__title,
	html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title {
		font-size: 1.02rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-step__container,
	html body.checkout-page .wc-block-components-form {
		gap: 0.95rem !important;
	}

	/* Address: single column */
	html body.checkout-page .wc-block-components-address-form {
		grid-template-columns: 1fr !important;
		gap: 0.9rem !important;
	}

	html body.checkout-page .wc-block-components-text-input input,
	html body.checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input,
	html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__select {
		min-height: 48px !important;
		padding: 0.7rem 0.9rem !important;
		font-size: 16px !important; /* avoid iOS zoom */
	}

	html body.checkout-page .wc-block-components-textarea,
	html body.checkout-page textarea.wc-block-components-textarea {
		min-height: 88px !important;
		font-size: 16px !important;
	}

	/* Résumé items */
	html body.checkout-page .wc-block-components-order-summary-item {
		grid-template-columns: 56px minmax(0, 1fr) auto !important;
		gap: 0.65rem 0.7rem !important;
		padding: 0.85rem 0 !important;
	}

	html body.checkout-page .wc-block-components-order-summary-item__image {
		width: 56px !important;
		height: 56px !important;
		border-radius: 0.6rem !important;
	}

	html body.checkout-page .wc-block-components-product-name {
		font-size: 0.84rem !important;
	}

	html body.checkout-page .wc-block-components-product-metadata,
	html body.checkout-page .wc-block-components-product-details {
		font-size: 0.7rem !important;
	}

	html body.checkout-page .wc-block-components-sale-badge {
		font-size: 0.64rem !important;
		padding: 0.15rem 0.45rem !important;
	}

	/* Coupon / totals / CTA */
	html body.checkout-page .wc-block-components-panel__button {
		min-height: 46px !important;
		padding: 0.7rem 0.9rem !important;
		font-size: 0.88rem !important;
	}

	html body.checkout-page .wc-block-components-totals-item {
		padding: 0.6rem 0 !important;
	}

	html body.checkout-page .wc-block-components-totals-item__label,
	html body.checkout-page .wc-block-components-totals-item__value {
		font-size: 0.9rem !important;
	}

	html body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
	html body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
		font-size: 1.08rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-place-order-button {
		min-height: 50px !important;
		font-size: 0.92rem !important;
		width: 100% !important;
	}

	html body.checkout-page .td-checkout-products-scroll.is-multi,
	html body.checkout-page .wc-block-components-order-summary__content,
	html body.woocommerce-checkout .wc-block-components-order-summary__content,
	.wc-block-checkout .wc-block-components-order-summary__content {
		display: block !important;
		max-height: min(14.5rem, 38vh) !important;
	}

	html body.checkout-page .wc-block-checkout__terms {
		font-size: 0.78rem !important;
		padding: 0.25rem 0 0.65rem !important;
	}

	html body.checkout-page .wc-block-checkout__actions {
		display: flex !important;
		flex-direction: column !important;
		gap: 0.65rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-return-to-cart-button,
	html body.checkout-page a.wc-block-components-checkout-return-to-cart-button {
		justify-content: center !important;
		width: 100% !important;
		text-align: center !important;
	}
}

/* —— Phone —— */
@media (max-width: 480px) {
	html body.checkout-page .site-main {
		width: calc(100% - 1rem);
		margin: 0.7rem auto 2rem;
	}

	html body.checkout-page .wc-block-components-checkout-step,
	html body.checkout-page .wc-block-checkout__payment-method,
	html body.checkout-page .wc-block-checkout__shipping-method,
	html body.checkout-page .wc-block-checkout__order-notes,
	html body.checkout-page .wc-block-checkout__sidebar,
	html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
		padding: 0.9rem 0.8rem !important;
		border-radius: 0.8rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-step__title {
		font-size: 0.98rem !important;
	}

	html body.checkout-page .wc-block-components-text-input > label,
	html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__label {
		font-size: 0.74rem !important;
	}

	html body.checkout-page .wc-block-components-checkbox label {
		font-size: 0.8rem !important;
		gap: 0.5rem !important;
	}

	/* Summary: total under product on very narrow screens if cramped */
	html body.checkout-page .wc-block-components-order-summary-item {
		grid-template-columns: 52px minmax(0, 1fr) !important;
		grid-template-areas:
			"image description"
			"image total" !important;
		gap: 0.45rem 0.65rem !important;
	}

	html body.checkout-page .wc-block-components-order-summary-item__image {
		grid-area: image;
		width: 52px !important;
		height: 52px !important;
	}

	html body.checkout-page .wc-block-components-order-summary-item__description {
		grid-area: description;
	}

	html body.checkout-page .wc-block-components-order-summary-item__total-price {
		grid-area: total;
		justify-self: start;
		text-align: left;
	}

	html body.checkout-page .wc-block-components-product-name {
		font-size: 0.8rem !important;
	}

	html body.checkout-page .wc-block-components-product-price__value,
	html body.checkout-page .wc-block-components-order-summary-item__individual-price {
		font-size: 0.78rem !important;
	}

	html body.checkout-page .wc-block-components-order-summary-item__total-price .price,
	html body.checkout-page .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value {
		font-size: 0.82rem !important;
	}

	/* Payment radios */
	html body.checkout-page .wc-block-components-radio-control__option,
	html body.checkout-page .wc-block-components-radio-control-accordion-option {
		padding: 0.85rem 0.85rem 0.85rem 2.55rem !important;
		border-radius: 0.75rem !important;
	}

	html body.checkout-page .wc-block-components-radio-control__input {
		left: 0.85rem !important;
	}

	html body.checkout-page .wc-block-components-radio-control__label {
		font-size: 0.86rem !important;
	}

	html body.checkout-page .wc-block-components-radio-control__description {
		font-size: 0.74rem !important;
	}

	html body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
	html body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
		font-size: 1.02rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-place-order-button {
		min-height: 48px !important;
		font-size: 0.88rem !important;
		border-radius: 0.75rem !important;
	}
}

/* —— Very small phones —— */
@media (max-width: 380px) {
	html body.checkout-page .site-main {
		width: calc(100% - 0.75rem);
		margin: 0.55rem auto 1.75rem;
	}

	html body.checkout-page .wc-block-components-checkout-step,
	html body.checkout-page .wc-block-checkout__payment-method,
	html body.checkout-page .wc-block-checkout__shipping-method,
	html body.checkout-page .wc-block-checkout__order-notes,
	html body.checkout-page .wc-block-checkout__sidebar,
	html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
		padding: 0.8rem 0.7rem !important;
	}

	html body.checkout-page .wc-block-components-order-summary-item {
		grid-template-columns: 48px minmax(0, 1fr) !important;
	}

	html body.checkout-page .wc-block-components-order-summary-item__image {
		width: 48px !important;
		height: 48px !important;
	}

	html body.checkout-page .wc-block-components-text-input input,
	html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__select {
		min-height: 46px !important;
		padding: 0.65rem 0.8rem !important;
	}
}

/* ============================================================
   Checkout design polish — compact hierarchy & organized sections
   ============================================================ */
html body.checkout-page .site-main,
html body.woocommerce-checkout .site-main {
	width: min(1040px, calc(100% - 1.75rem)) !important;
	margin: 1rem auto 2.5rem !important;
}

html body.checkout-page .wc-block-components-sidebar-layout,
html body.woocommerce-checkout .wc-block-components-sidebar-layout {
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr) !important;
	gap: 1rem !important;
	align-items: start !important;
}

html body.checkout-page .wc-block-components-checkout-step,
html body.checkout-page .wc-block-checkout__payment-method,
html body.checkout-page .wc-block-checkout__shipping-method,
html body.checkout-page .wc-block-checkout__order-notes,
html body.checkout-page .wc-block-checkout__sidebar,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block,
html body.woocommerce-checkout .wc-block-components-checkout-step,
html body.woocommerce-checkout .wc-block-checkout__sidebar {
	padding: 0.95rem 1rem !important;
	margin: 0 0 0.75rem !important;
	border-radius: 0.85rem !important;
	border: 1px solid var(--line) !important;
	background: var(--surface) !important;
	box-shadow: none !important;
}

html body.checkout-page .wc-block-checkout__sidebar,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
	margin-bottom: 0 !important;
	padding: 0.95rem 1rem 1.05rem !important;
}

html body.checkout-page .wc-block-components-checkout-step__heading,
html body.woocommerce-checkout .wc-block-components-checkout-step__heading {
	margin: 0 0 0.7rem !important;
	padding: 0 0 0.55rem !important;
	border-bottom: 1px solid var(--line) !important;
}

html body.checkout-page .wc-block-components-checkout-step__title,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title,
html body.checkout-page .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title,
html body.woocommerce-checkout .wc-block-components-checkout-step__title,
html body.woocommerce-checkout .wc-block-components-title {
	margin: 0 !important;
	font-size: 0.92rem !important;
	font-weight: 800 !important;
	letter-spacing: 0 !important;
	line-height: 1.3 !important;
	color: var(--text) !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title,
html body.checkout-page .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
	margin: 0 0 0.7rem !important;
	padding: 0 0 0.55rem !important;
	border-bottom: 1px solid var(--line) !important;
	font-size: 0.92rem !important;
}

html body.checkout-page .wc-block-components-checkout-step__container,
html body.checkout-page .wc-block-components-form,
html body.checkout-page .wc-block-components-address-form {
	gap: 0.75rem !important;
}

html body.checkout-page .wc-block-components-address-form {
	gap: 0.75rem 0.75rem !important;
}

html body.checkout-page .wc-block-components-text-input,
html body.checkout-page .wc-block-components-combobox,
html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__container {
	gap: 0.35rem !important;
}

html body.checkout-page .wc-block-components-text-input > label,
html body.checkout-page .wc-block-components-combobox-control > label,
html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__label,
html body.woocommerce-checkout .wc-block-components-text-input > label {
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	color: var(--muted) !important;
}

html body.checkout-page .wc-block-components-text-input input,
html body.checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input,
html body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__select,
html body.woocommerce-checkout .wc-block-components-text-input input {
	min-height: 42px !important;
	max-height: 42px !important;
	padding: 0.55rem 0.8rem !important;
	border-radius: 0.65rem !important;
	font-size: 0.86rem !important;
	font-weight: 650 !important;
}

html body.checkout-page .wc-block-components-checkbox label {
	font-size: 0.78rem !important;
	font-weight: 650 !important;
	gap: 0.5rem !important;
}

html body.checkout-page .wc-block-components-order-summary-item,
html body.woocommerce-checkout .wc-block-components-order-summary-item {
	grid-template-columns: 48px minmax(0, 1fr) auto !important;
	gap: 0.55rem 0.65rem !important;
	padding: 0.7rem 0 !important;
	align-items: start !important;
}

html body.checkout-page .wc-block-components-order-summary-item__image,
html body.woocommerce-checkout .wc-block-components-order-summary-item__image {
	width: 48px !important;
	height: 48px !important;
	border-radius: 0.55rem !important;
}

html body.checkout-page .wc-block-components-product-name,
html body.woocommerce-checkout .wc-block-components-product-name {
	font-size: 0.78rem !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

html body.checkout-page .wc-block-components-product-metadata,
html body.checkout-page .wc-block-components-product-details,
html body.woocommerce-checkout .wc-block-components-product-metadata,
html body.woocommerce-checkout .wc-block-components-product-details {
	font-size: 0.66rem !important;
	line-height: 1.35 !important;
	color: var(--muted) !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 0.1rem !important;
}

html body.checkout-page .wc-block-components-product-price__value,
html body.checkout-page .wc-block-components-product-price ins,
html body.checkout-page .wc-block-components-order-summary-item__individual-price {
	font-size: 0.76rem !important;
}

html body.checkout-page .wc-block-components-product-price del,
html body.checkout-page .wc-block-components-order-summary-item__individual-price del {
	font-size: 0.68rem !important;
}

html body.checkout-page .wc-block-components-sale-badge {
	font-size: 0.62rem !important;
	padding: 0.12rem 0.4rem !important;
}

html body.checkout-page .wc-block-components-order-summary-item__total-price .price,
html body.checkout-page .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value {
	font-size: 0.8rem !important;
	font-weight: 800 !important;
}

html body.checkout-page .wc-block-components-order-summary__content,
html body.woocommerce-checkout .wc-block-components-order-summary__content,
.wc-block-checkout .wc-block-components-order-summary__content {
	max-height: 13.5rem !important;
}

html body.checkout-page .td-checkout-products-carousel,
html body.woocommerce-checkout .td-checkout-products-carousel {
	margin: 0.15rem 0 0.35rem !important;
	gap: 0.35rem !important;
}

html body.checkout-page .td-checkout-products-carousel__btn,
html body.woocommerce-checkout .td-checkout-products-carousel__btn {
	width: 1.75rem !important;
	height: 1.75rem !important;
	opacity: 0.85;
}

html body.checkout-page .td-checkout-products-carousel__btn svg {
	width: 14px;
	height: 14px;
}

html body.checkout-page .wc-block-components-panel {
	margin: 0.55rem 0 0.15rem !important;
}

html body.checkout-page .wc-block-components-panel__button {
	min-height: 40px !important;
	padding: 0.55rem 0.8rem !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	border-radius: 0.65rem !important;
}

html body.checkout-page .wc-block-components-totals-wrapper {
	margin-top: 0.35rem !important;
	padding-top: 0.75rem !important;
}

html body.checkout-page .wc-block-components-totals-item {
	padding: 0.45rem 0 !important;
}

html body.checkout-page .wc-block-components-totals-item__label,
html body.checkout-page .wc-block-components-totals-item__value {
	font-size: 0.82rem !important;
	font-weight: 700 !important;
}

html body.checkout-page .wc-block-components-totals-footer-item {
	padding: 0.7rem 0 0.15rem !important;
	margin-top: 0.25rem !important;
}

html body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
html body.checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
html body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
html body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 0.95rem !important;
	font-weight: 800 !important;
}

html body.checkout-page .wc-block-components-totals-item__description,
html body.checkout-page .wc-block-components-totals-footer-item-tax-value {
	font-size: 0.7rem !important;
	margin-top: 0.2rem !important;
}

html body.checkout-page .wc-block-components-checkout-place-order-button {
	min-height: 46px !important;
	font-size: 0.88rem !important;
	border-radius: 0.7rem !important;
	margin-top: 0.45rem !important;
}

html body.checkout-page .wc-block-checkout__terms {
	font-size: 0.74rem !important;
	padding: 0.25rem 0 0.55rem !important;
	margin: 0 0 0.45rem !important;
}

html body.checkout-page .wc-block-components-radio-control__label {
	font-size: 0.84rem !important;
}

html body.checkout-page .wc-block-components-radio-control__description {
	font-size: 0.72rem !important;
}

/* Right column: contain content inside card, no overflow past borders */
html body.checkout-page .wc-block-checkout__sidebar,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block,
html body.woocommerce-checkout .wc-block-checkout__sidebar {
	overflow: hidden !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

html body.checkout-page .wc-block-checkout__sidebar > *,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block > *,
html body.checkout-page .wc-block-components-order-summary,
html body.checkout-page .wc-block-components-order-summary__content,
html body.checkout-page .wc-block-components-totals-wrapper,
html body.checkout-page .wc-block-components-panel {
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title,
html body.checkout-page .td-checkout-products-carousel__controls {
	text-align: center !important;
	justify-content: center !important;
}

html body.checkout-page .wc-block-components-order-summary-item,
html body.woocommerce-checkout .wc-block-components-order-summary-item {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	align-items: center !important;
}

html body.checkout-page .wc-block-components-order-summary-item__description,
html body.checkout-page .wc-block-components-product-name,
html body.checkout-page .wc-block-components-product-metadata,
html body.checkout-page .wc-block-components-product-details {
	min-width: 0 !important;
	max-width: 100% !important;
	overflow-wrap: anywhere !important;
	word-break: break-word !important;
}

html body.checkout-page .wc-block-components-order-summary-item__description {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-self: center !important;
	gap: 0.2rem !important;
	padding-block: 0.15rem !important;
}

html body.checkout-page .wc-block-components-order-summary-item__total-price {
	justify-self: end !important;
	align-self: center !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

/* Left checkout form: same height as résumé, scroll inside */
html body.checkout-page .wc-block-components-main.td-checkout-main-scroll,
html body.checkout-page .wp-block-woocommerce-checkout-fields-block.td-checkout-main-scroll {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
	padding-right: 0.25rem !important;
	box-sizing: border-box !important;
}

html body.checkout-page .td-checkout-main-scroll::-webkit-scrollbar {
	width: 6px;
}

html body.checkout-page .td-checkout-main-scroll::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.4);
}

html body.checkout-page .td-checkout-main-scroll::-webkit-scrollbar-track {
	background: transparent;
}

@media (max-width: 900px) {
	html body.checkout-page .wc-block-components-main.td-checkout-main-scroll,
	html body.checkout-page .wp-block-woocommerce-checkout-fields-block.td-checkout-main-scroll {
		max-height: none !important;
		overflow: visible !important;
		padding-right: 0 !important;
	}
}

html body.checkout-page .wc-block-components-totals-item,
html body.checkout-page .wc-block-components-totals-footer-item {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 0.75rem !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

html body.checkout-page .wc-block-components-totals-item__label,
html body.checkout-page .wc-block-components-totals-item__value {
	min-width: 0 !important;
	overflow-wrap: anywhere !important;
}

html body.checkout-page .wc-block-components-formatted-money-amount,
html body.checkout-page .wc-block-formatted-money-amount {
	white-space: nowrap !important;
}

@media (max-width: 980px) {
	html body.checkout-page .wc-block-components-sidebar-layout {
		gap: 0.85rem !important;
	}
}

@media (max-width: 720px) {
	html body.checkout-page .site-main {
		width: calc(100% - 1.1rem) !important;
		margin: 0.75rem auto 2rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-step,
	html body.checkout-page .wc-block-checkout__sidebar,
	html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
		padding: 0.85rem 0.85rem !important;
	}

	html body.checkout-page .wc-block-components-checkout-step__title,
	html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title {
		font-size: 0.88rem !important;
	}

	html body.checkout-page .wc-block-components-order-summary__content {
		max-height: 12.5rem !important;
	}
}

/* ------------------------------------------------------------------
   Right column compact: no gaps between sections, padded edges,
   centered content, smaller type
------------------------------------------------------------------- */
html body.checkout-page .wc-block-checkout__sidebar,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block,
html body.woocommerce-checkout .wc-block-checkout__sidebar {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 0 !important;
	padding: 1.15rem 1.2rem 1.25rem !important;
	margin: 0 !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

html body.checkout-page .wc-block-checkout__sidebar > *,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block > *,
html body.woocommerce-checkout .wc-block-checkout__sidebar > * {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-cart-items-block,
html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-totals-block,
html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-subtotal-block,
html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-fee-block,
html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-shipping-block,
html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-taxes-block,
html body.checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-discount-block,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-wrapper,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-panel,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-coupon {
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	gap: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title,
html body.checkout-page .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
	width: 100% !important;
	text-align: center !important;
	margin: 0 0 0.55rem !important;
	padding: 0 0 0.45rem !important;
	border-bottom: 1px solid var(--line) !important;
	font-size: 0.8rem !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
}

html body.checkout-page .td-checkout-products-carousel,
html body.woocommerce-checkout .td-checkout-products-carousel {
	margin: 0 !important;
	gap: 0.25rem !important;
	align-items: center !important;
}

html body.checkout-page .td-checkout-products-carousel__controls {
	margin: 0 0 0.2rem !important;
	justify-content: center !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item {
	grid-template-columns: 56px minmax(0, 1fr) auto !important;
	gap: 0.55rem 0.75rem !important;
	padding: 0.7rem 0 !important;
	margin: 0 !important;
	align-items: center !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item:first-child {
	padding-top: 0.25rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item:last-child {
	padding-bottom: 0.45rem !important;
	border-bottom: 0 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__image,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__image {
	width: 56px !important;
	height: 56px !important;
	border-radius: 0.6rem !important;
	align-self: center !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-name {
	font-size: 0.8rem !important;
	font-weight: 750 !important;
	line-height: 1.35 !important;
	text-align: left !important;
	margin: 0 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-metadata,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-details {
	font-size: 0.6rem !important;
	line-height: 1.25 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-price__value,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-price ins,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__individual-price,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__total-price .price,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value {
	font-size: 0.7rem !important;
	font-weight: 800 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-price del,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__individual-price del {
	font-size: 0.6rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-sale-badge {
	font-size: 0.55rem !important;
	padding: 0.08rem 0.3rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary__content,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary__content,
html body.checkout-page .td-checkout-products-scroll.is-multi {
	max-height: 13.5rem !important;
	margin: 0 !important;
	scrollbar-width: none !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-panel {
	margin: 0 !important;
	padding: 0.35rem 0 !important;
	border-top: 1px solid var(--line) !important;
	border-bottom: 1px solid var(--line) !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-panel__button {
	min-height: 34px !important;
	padding: 0.35rem 0.55rem !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	justify-content: center !important;
	text-align: center !important;
	border-radius: 0.5rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-panel__content {
	padding: 0.35rem 0 0.15rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
	margin: 0 !important;
	padding: 0.35rem 0 0 !important;
	border-top: 0 !important;
	gap: 0 !important;
	width: 100% !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
	padding: 0.28rem 0 !important;
	margin: 0 !important;
	gap: 0.5rem !important;
	justify-content: space-between !important;
	width: 100% !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item + .wc-block-components-totals-item {
	border-top: 0 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item__label,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item__value {
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
	padding: 0.45rem 0 0 !important;
	margin-top: 0.15rem !important;
	border-top: 1px solid var(--line) !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 0.84rem !important;
	font-weight: 850 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item__description,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item-tax-value {
	font-size: 0.62rem !important;
	margin-top: 0.1rem !important;
	text-align: center !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-formatted-money-amount,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-formatted-money-amount {
	font-size: inherit !important;
}

@media (max-width: 720px) {
	html body.checkout-page .wc-block-checkout__sidebar,
	html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
		padding: 0.95rem 0.95rem 1.05rem !important;
		gap: 0 !important;
	}

	html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title {
		font-size: 0.76rem !important;
	}

	html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary__content {
		max-height: 10.5rem !important;
	}
}

/* ============================================================
   Checkout — Résumé de commande = même carte que Coordonnées
   (override compact sidebar rules above)
   ============================================================ */
html body.checkout-page .wc-block-checkout__sidebar,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block,
html body.woocommerce-checkout .wc-block-checkout__sidebar {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 1rem !important;
	padding: 1.35rem 1.4rem 1.45rem !important;
	margin: 0 !important;
	border-radius: 1.05rem !important;
	border: 1px solid var(--line) !important;
	background: var(--surface) !important;
	box-shadow: none !important;
	overflow: visible !important;
	box-sizing: border-box !important;
}

html body.checkout-page .wc-block-checkout__sidebar > *,
html body.checkout-page .wp-block-woocommerce-checkout-totals-block > *,
html body.woocommerce-checkout .wc-block-checkout__sidebar > * {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title,
html body.checkout-page .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title {
	text-align: left !important;
	margin: 0 0 1rem !important;
	padding: 0 0 0.85rem !important;
	border-bottom: 1px solid var(--line) !important;
	font-size: 1.12rem !important;
	font-weight: 900 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.02em !important;
	color: var(--text) !important;
}

html body.checkout-page .td-checkout-products-carousel__controls {
	justify-content: center !important;
	margin: 0.15rem 0 0.35rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item {
	grid-template-columns: 64px minmax(0, 1fr) auto !important;
	gap: 0.75rem 0.85rem !important;
	padding: 1rem 0 !important;
	margin: 0 !important;
	align-items: center !important;
	border-bottom: 1px solid var(--line) !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item:first-child {
	padding-top: 0.15rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item:last-child {
	padding-bottom: 0.75rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__image,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__image {
	width: 64px !important;
	height: 64px !important;
	border-radius: 0.65rem !important;
	align-self: center !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-name {
	font-size: 0.9rem !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	text-align: left !important;
	margin: 0 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-metadata,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-details {
	font-size: 0.76rem !important;
	line-height: 1.35 !important;
	color: var(--text-soft) !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-price__value,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-price ins,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__individual-price,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__total-price .price,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value {
	font-size: 0.84rem !important;
	font-weight: 800 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-product-price del,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-item__individual-price del {
	font-size: 0.76rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary__content,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary__content,
html body.checkout-page .td-checkout-products-scroll.is-multi {
	max-height: min(15rem, 38vh) !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-panel {
	margin: 0.25rem 0 0 !important;
	padding: 0.5rem 0 !important;
	border-top: 1px solid var(--line) !important;
	border-bottom: 1px solid var(--line) !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-panel__button {
	min-height: 48px !important;
	padding: 0.65rem 0.85rem !important;
	font-size: 0.84rem !important;
	font-weight: 700 !important;
	border-radius: 0.75rem !important;
	justify-content: space-between !important;
	text-align: left !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
	margin: 0.35rem 0 0 !important;
	padding: 0.75rem 0 0 !important;
	border-top: 1px solid var(--line) !important;
	gap: 0.15rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
	padding: 0.45rem 0 !important;
	margin: 0 !important;
	gap: 0.75rem !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item__label,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item__value {
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
	padding: 0.75rem 0 0.15rem !important;
	margin-top: 0.25rem !important;
	border-top: 1px solid var(--line) !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.05rem !important;
	font-weight: 900 !important;
}

html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item-tax-value,
html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-item__description {
	font-size: 0.76rem !important;
	margin-top: 0.25rem !important;
	text-align: left !important;
	color: var(--text-soft) !important;
}

/* Gouvernorat — même grille que Ville */
html body.checkout-page .wc-block-components-address-form__city,
html body.checkout-page .wc-block-components-address-form__state {
	align-self: start !important;
}

html body.checkout-page .wc-block-components-address-form__state .wc-blocks-components-select,
html body.checkout-page .wc-block-components-address-form__state .wc-block-components-state-input,
html body.checkout-page .wc-block-components-address-form__state .wc-block-components-text-input,
html body.checkout-page .wc-block-components-address-form__state .wc-block-components-combobox {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0.55rem !important;
}

html body.checkout-page .wc-block-components-address-form__state .wc-blocks-components-select .wc-blocks-components-select__container {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.55rem !important;
}

html body.checkout-page .wc-block-components-address-form__state .wc-blocks-components-select__label,
html body.checkout-page .wc-block-components-address-form__state label,
html body.checkout-page .wc-block-components-address-form__state .wc-block-components-combobox-control > label {
	order: -1 !important;
	position: static !important;
	inset: auto !important;
	transform: none !important;
	margin: 0 !important;
}

html body.checkout-page .wc-block-components-address-form__state .wc-block-components-text-input.is-active label,
html body.checkout-page .wc-block-components-address-form__state .wc-block-components-text-input.has-value label,
html body.checkout-page .wc-block-components-address-form__state .wc-block-components-combobox.is-active label,
html body.checkout-page .wc-block-components-address-form__state .wc-block-components-combobox.has-value label {
	position: static !important;
	order: -1 !important;
	transform: none !important;
	top: auto !important;
	bottom: auto !important;
	font-size: 0.8rem !important;
}

html body.checkout-page .wc-block-components-address-form .wc-block-components-text-input input,
html body.checkout-page .wc-block-components-address-form .wc-blocks-components-select .wc-blocks-components-select__select,
html body.checkout-page .wc-block-components-address-form .wc-block-components-combobox .wc-block-components-combobox-control input {
	min-height: 50px !important;
	max-height: none !important;
	padding: 0.8rem 1rem !important;
	border-radius: 0.8rem !important;
	font-size: 0.95rem !important;
}

html body.checkout-page .wc-block-components-address-form .wc-block-components-text-input > label,
html body.checkout-page .wc-block-components-address-form .wc-blocks-components-select .wc-blocks-components-select__label,
html body.checkout-page .wc-block-components-address-form .wc-block-components-combobox-control > label {
	font-size: 0.8rem !important;
	font-weight: 800 !important;
	color: var(--text-soft) !important;
	margin: 0 0 0.1rem !important;
}

@media (max-width: 720px) {
	html body.checkout-page .wc-block-checkout__sidebar,
	html body.checkout-page .wp-block-woocommerce-checkout-totals-block {
		padding: 1rem 1.05rem 1.15rem !important;
	}

	html body.checkout-page .wc-block-checkout__sidebar .wc-block-components-title {
		font-size: 1rem !important;
	}
}

