/* ==========================================================================
   CoreLix — WooCommerce pages (shop, product, cart, checkout, account).
   Product cards themselves are styled by the CoreLix Core plugin.
   ========================================================================== */

/* ---------- WooCommerce buttons follow the theme ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce-page a.button.alt, .woocommerce-page button.button.alt,
.cx-minicart a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 22px;
	border: 2px solid var(--cx-primary);
	border-radius: var(--cx-r-pill);
	background-color: var(--cx-primary);
	color: #fff;
	font-family: var(--cx-font);
	font-size: var(--cx-fs-md);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce-page a.button:hover, .woocommerce-page button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .cx-minicart a.button:hover {
	background-color: var(--cx-primary-dark);
	border-color: var(--cx-primary-dark);
	color: #fff;
}
/* Unavailable buttons (choose options first, demo items): grey and readable instead of faded purple. */
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled], .woocommerce a.button.disabled,
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled] {
	opacity: 1; padding: 10px 22px; background-color: var(--cx-line); border-color: var(--cx-line); color: var(--cx-ink-2);
}
.woocommerce a.button.wc-backward, .woocommerce table.cart td.actions > .button { background-color: transparent; color: var(--cx-ink); border-color: var(--cx-line); }
.woocommerce a.button.wc-backward:hover, .woocommerce table.cart td.actions > .button:hover { background-color: var(--cx-surface); color: var(--cx-ink); border-color: var(--cx-ink); }

/* ---------- Shop layout ---------- */
.cx-shop { padding-block: 18px 56px; }
.cx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; color: var(--cx-muted); font-size: var(--cx-fs-sm); }
.cx-crumbs a { color: var(--cx-ink-2); text-decoration: none; }
.cx-crumbs a:hover { color: var(--cx-primary); }
.cx-crumbs__sep { opacity: .5; }
.cx-shop__grid { display: grid; gap: 28px; }
@media (min-width: 1024px) {
	.cx-shop--sidebar .cx-shop__grid { grid-template-columns: 270px minmax(0, 1fr); grid-template-areas: "side main"; }
	.cx-shop--sidebar .cx-shop__main { grid-area: main; }
	/* Sticks while the products scroll; a long filter list scrolls inside it instead of hiding below the screen. */
	.cx-shop--sidebar .cx-shop__side { grid-area: side; align-self: start; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	.cx-shop__side-head { display: none; }
}
.cx-shop__main { min-width: 0; }

.woocommerce-products-header { margin-bottom: 14px; }
.woocommerce-products-header__title { margin-bottom: 6px; }
.term-description { color: var(--cx-ink-2); max-width: 75ch; }

.cx-chips { display: flex; gap: 8px; margin: 14px 0 6px; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.cx-chips::-webkit-scrollbar { display: none; }
.cx-chip {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	padding: 8px 14px; border: 1px solid var(--cx-line); border-radius: var(--cx-r-pill);
	background: var(--cx-surface); color: var(--cx-ink); text-decoration: none; font-size: var(--cx-fs-sm); font-weight: 500;
}
.cx-chip .cx-icon { color: var(--cx-primary); }
.cx-chip:hover { border-color: var(--cx-primary); color: var(--cx-primary); }

.cx-shopbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 12px; }
.cx-shopbar .woocommerce-result-count { margin: 0; color: var(--cx-muted); font-size: var(--cx-fs-sm); }
.cx-shopbar .woocommerce-ordering { margin: 0 0 0 auto; }
.cx-shopbar .woocommerce-ordering select { min-height: 42px; width: auto; padding-inline-end: 32px; font-size: var(--cx-fs-sm); font-weight: 500; }
.cx-shopbar__filter { min-height: 42px; padding: 8px 16px; font-size: var(--cx-fs-sm); }
@media (min-width: 1024px) { .cx-shopbar__filter { display: none; } }
.cx-activefilters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.cx-activefilters a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: var(--cx-r-pill); background: var(--cx-ink); color: #fff; font-size: var(--cx-fs-sm); text-decoration: none; }
.cx-activefilters a.cx-activefilters__clear { background: transparent; color: var(--cx-primary); padding-inline: 8px; }

/* Filter sidebar: drawer on phones/tablets */
.cx-shop__side { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r); padding: 6px 16px 10px; }
@media (max-width: 1023px) {
	.cx-shop__side {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 100;
		width: min(88vw, 360px); overflow-y: auto; border: 0; border-radius: 0; padding: 0 16px 24px;
		transform: translateX(-100%); transition: transform .3s var(--cx-ease); visibility: hidden;
	}
	[dir="rtl"] .cx-shop__side { transform: translateX(100%); }
	.cx-shop__side.is-open { transform: none; visibility: visible; box-shadow: var(--cx-shadow-lg); }
	.cx-shop__side-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0 -16px 4px; padding: 12px 16px; background: var(--cx-surface); border-bottom: 1px solid var(--cx-line); }
}
.cx-filter { padding: 14px 0; border-bottom: 1px solid var(--cx-line-soft); }
.cx-filter:last-child { border-bottom: 0; }
.cx-filter__title { margin: 0 0 10px; font-size: var(--cx-fs-md); }
.cx-filter__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cx-filter__list a {
	display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px;
	color: var(--cx-ink); text-decoration: none; font-size: var(--cx-fs-sm);
}
.cx-filter__list a:hover { background: var(--cx-line-soft); }
.cx-filter__list a small { margin-inline-start: auto; color: var(--cx-muted); }
.cx-filter__list a.is-active { color: var(--cx-primary); font-weight: 600; }
.cx-filter__list a .cx-grade { margin-inline-start: auto; }
.cx-filter__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--cx-line); border-radius: 6px; background: var(--cx-surface); }
.cx-filter__box--radio { border-radius: 50%; }
.is-active .cx-filter__box { background: var(--cx-primary); border-color: var(--cx-primary); color: #fff; }

/* ---------- Product grid (ul.products) ---------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { width: auto; margin: 0; float: none; padding: 0; }
@media (min-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) {
	.woocommerce ul.products.columns-4, .cx-shop:not(.cx-shop--sidebar) ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.cx-shop--sidebar ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1360px) { .cx-shop--sidebar ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.woocommerce nav.woocommerce-pagination ul { display: flex; gap: 6px; border: 0; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { min-width: 42px; height: 42px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--cx-line); border-radius: var(--cx-r-sm); background: var(--cx-surface); color: var(--cx-ink); font-weight: 600; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--cx-ink); border-color: var(--cx-ink); color: #fff; }

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice,
.wc-block-components-notice-banner {
	border: 0 !important;
	border-radius: var(--cx-r) !important;
	background: var(--cx-surface) !important;
	box-shadow: inset 4px 0 0 var(--cx-primary), var(--cx-shadow-sm);
	color: var(--cx-ink) !important;
	padding: 14px 18px 14px 22px !important;
	margin: 0 0 18px !important;
	list-style: none;
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-message { box-shadow: inset 4px 0 0 var(--cx-success), var(--cx-shadow-sm); }
.woocommerce-error { box-shadow: inset 4px 0 0 var(--cx-danger), var(--cx-shadow-sm); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-inline-start: auto; min-height: 38px; padding: 6px 16px; font-size: var(--cx-fs-sm); }

/* ---------- Single product ---------- */
.cx-shop--product .cx-shop__grid { display: block; }
.woocommerce div.product { position: relative; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
	.woocommerce div.product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
	.woocommerce div.product > .woocommerce-tabs,
	.woocommerce div.product > .related,
	.woocommerce div.product > .upsells,
	.woocommerce div.product > .cx-section-full { grid-column: 1 / -1; }
	.woocommerce div.product div.images.woocommerce-product-gallery { position: sticky; top: 150px; }
}
.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images {
	padding: 18px;
	border-radius: var(--cx-r-lg);
	background: var(--cx-surface);
	border: 1px solid var(--cx-line);
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img { border-radius: var(--cx-r); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; margin: 0 !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border: 2px solid var(--cx-line); border-radius: 10px; padding: 4px; background: var(--cx-bg); opacity: 1; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { border-color: var(--cx-primary); }
.woocommerce span.onsale { display: none; }

.woocommerce div.product .product_title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 8px; }
.woocommerce div.product .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--cx-fs-sm); }
.woocommerce div.product .woocommerce-product-rating .star-rating { margin: 0; }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
	margin: 0 0 6px;
	color: var(--cx-ink);
	font-family: var(--cx-font-display);
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}
.woocommerce div.product p.price del { order: 2; color: var(--cx-muted); font-size: .55em; font-weight: 500; opacity: 1; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--cx-ink-2); margin-top: 18px; }
.woocommerce div.product .stock { display: none; } /* replaced by the CoreLix availability line */

.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .quantity { margin: 0 !important; }
.woocommerce .quantity .qty {
	width: 92px; min-height: 52px; border-radius: var(--cx-r-pill); text-align: center; font-weight: 700;
}
.woocommerce div.product form.cart .button,
.woocommerce .single_add_to_cart_button {
	flex: 1;
	min-height: 52px;
	font-size: 1.0625rem;
	background: var(--cx-primary) !important;
	border-color: var(--cx-primary) !important;
}
.woocommerce .single_add_to_cart_button:hover { background: var(--cx-primary-dark) !important; }
.woocommerce div.product form.cart .button.disabled,
.woocommerce div.product form.cart .button:disabled,
.woocommerce div.product form.cart .button.disabled:hover {
	background: var(--cx-line-soft) !important; border-color: var(--cx-line) !important; color: var(--cx-ink-2) !important; opacity: 1 !important; cursor: not-allowed;
}
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce div.product form.cart table.variations { margin-bottom: 8px; border: 0; }
.woocommerce div.product form.cart table.variations th, .woocommerce div.product form.cart table.variations td { display: block; padding: 0; border: 0; text-align: start; line-height: 1.4; }
.woocommerce div.product form.cart table.variations th label { display: block; margin: 12px 0 8px; font-weight: 600; }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-top: 8px; font-size: var(--cx-fs-sm); }
.woocommerce div.product form.cart .single_variation_wrap .woocommerce-variation-price .price { font-size: 1.5rem; }
.woocommerce-variation-availability { display: none; }

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
	margin-top: 24px; padding: 8px 20px 20px; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg);
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; gap: 4px; margin: 0 0 18px; padding: 0; overflow-x: auto; border-bottom: 1px solid var(--cx-line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0; padding: 0; border: 0 !important; background: none !important; border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block; padding: 14px 14px 12px; color: var(--cx-muted) !important; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--cx-ink) !important; border-bottom-color: var(--cx-primary); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 12px; border: 0; border-bottom: 1px solid var(--cx-line-soft); font-style: normal; background: none !important; }
.woocommerce table.shop_attributes th { width: 34%; color: var(--cx-muted); font-weight: 500; }
.woocommerce table.shop_attributes td p { margin: 0; }

.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 { margin: 40px 0 16px; font-size: var(--cx-fs-xl); }

/* Ratings */
.woocommerce .star-rating { color: var(--cx-accent); font-size: .95em; }
.woocommerce #reviews #comments ol.commentlist li .comment-text { border-radius: var(--cx-r); border-color: var(--cx-line); }
.woocommerce #review_form #respond textarea { min-height: 120px; }

/* Mobile sticky buy bar */
.cx-buybar {
	position: fixed; inset-inline: 0; bottom: var(--cx-bottomnav-h); z-index: 75;
	display: flex; align-items: center; gap: 12px; padding: 10px var(--cx-gutter);
	background: var(--cx-surface); border-top: 1px solid var(--cx-line); box-shadow: 0 -10px 30px -16px rgba(21, 19, 43, .3);
	transform: translateY(110%); transition: transform .25s var(--cx-ease);
}
.cx-buybar.is-visible { transform: none; }
.cx-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cx-buybar__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--cx-fs-sm); color: var(--cx-ink-2); }
.cx-buybar__price { font-family: var(--cx-font-display); font-weight: 800; font-size: var(--cx-fs-lg); }
.cx-buybar__price del { display: none; }
.cx-buybar__price ins { text-decoration: none; }
.cx-buybar .cx-btn { min-height: 46px; padding-inline: 20px; }
@media (min-width: 1024px) { .cx-buybar { display: none !important; } }

/* ---------- Cart, checkout, account (classic) ---------- */
.woocommerce table.shop_table {
	border: 1px solid var(--cx-line); border-radius: var(--cx-r); background: var(--cx-surface); border-collapse: separate; overflow: hidden;
}
.woocommerce table.shop_table th { font-weight: 600; color: var(--cx-ink-2); background: var(--cx-line-soft); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 16px; border-color: var(--cx-line-soft); }
.woocommerce table.cart img { width: 72px; border-radius: 10px; background: var(--cx-bg); }
.woocommerce table.cart td.actions .coupon .input-text { width: 180px; min-height: 46px; border-radius: var(--cx-r-pill); padding-inline: 16px; }
.woocommerce a.remove { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--cx-danger) !important; font-size: 20px; }
.woocommerce a.remove:hover { background: var(--cx-danger); color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; max-width: 460px; margin-inline-start: auto; float: none; }
.woocommerce .cart-collaterals h2 { font-size: var(--cx-fs-xl); }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: 1.0625rem !important; }
/* Responsive cart table (WooCommerce's small-screen sheet is not loaded, so the theme does it). */
@media (max-width: 767px) {
	.woocommerce table.shop_table_responsive thead, .woocommerce-page table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive, .woocommerce table.shop_table_responsive tbody, .woocommerce table.shop_table_responsive tr, .woocommerce table.shop_table_responsive td { display: block; width: 100%; }
	.woocommerce table.shop_table_responsive tbody tr:first-child td:first-child { border-top: 0; }
	.woocommerce table.shop_table_responsive tr.cart_item { position: relative; padding: 8px 0; border-bottom: 1px solid var(--cx-line); }
	.woocommerce table.shop_table_responsive tr td { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: end !important; border: 0; }
	.woocommerce table.shop_table_responsive tr td[data-title]::before { content: attr(data-title); flex: none; color: var(--cx-muted); font-weight: 600; text-align: start; }
	.woocommerce table.shop_table_responsive tr td.product-remove { position: absolute; top: 6px; inset-inline-end: 6px; width: auto; padding: 0 !important; }
	.woocommerce table.shop_table_responsive tr td.product-thumbnail { display: block; text-align: start !important; }
	.woocommerce table.shop_table_responsive tr td.product-thumbnail::before, .woocommerce table.shop_table_responsive tr td.actions::before { display: none; }
	.woocommerce table.shop_table_responsive tr td.product-name { justify-content: flex-start; text-align: start !important; font-weight: 600; }
	.woocommerce table.shop_table_responsive tr td.product-name::before { display: none; }
	.woocommerce table.shop_table_responsive tr td.actions { display: block; text-align: start !important; }
	.woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { padding: 10px 14px; }
	.woocommerce table.cart td.actions .coupon { display: flex; gap: 8px; }
	.woocommerce table.cart td.actions .coupon .input-text { width: auto; flex: 1; min-width: 0; }
	.woocommerce table.cart td.actions .coupon { float: none; width: 100%; }
	.woocommerce table.cart td.actions .coupon .button { flex: none; width: auto; margin-top: 0; }
	.woocommerce table.cart td.actions .button { width: 100%; margin-top: 8px; }
}

.woocommerce form .form-row { margin-bottom: 14px; padding: 0; }
.woocommerce form .form-row label { margin-bottom: 6px; font-size: var(--cx-fs-sm); }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select { min-height: 48px; }
.select2-container--default .select2-selection--single { height: 48px; border: 1.5px solid var(--cx-line); border-radius: var(--cx-r-sm); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-inline: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }

.woocommerce-checkout .col2-set, .woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading { float: none; width: 100%; }
@media (min-width: 1024px) {
	form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
	form.checkout .col2-set { grid-column: 1; grid-row: 1 / span 3; }
	form.checkout #order_review_heading { grid-column: 2; margin-top: 0; }
	form.checkout #order_review { grid-column: 2; position: sticky; top: 150px; }
}
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout h3, #order_review_heading { font-size: var(--cx-fs-xl); }
.woocommerce-checkout .woocommerce-billing-fields, .woocommerce-checkout .woocommerce-shipping-fields, .woocommerce-checkout .woocommerce-additional-fields, .woocommerce-checkout #order_review {
	padding: 20px; margin-bottom: 18px; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg);
}
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment { background: var(--cx-bg); border-radius: var(--cx-r); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--cx-line); }
.woocommerce-checkout #payment div.payment_box { background: var(--cx-surface); color: var(--cx-ink-2); border-radius: var(--cx-r-sm); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--cx-surface); }
#place_order { width: 100%; min-height: 56px; font-size: 1.125rem !important; }
.woocommerce-checkout #order_review table.shop_table { border: 0; }

.woocommerce-order-received .woocommerce-order { max-width: 860px; }
.woocommerce ul.order_details { display: flex; flex-wrap: wrap; gap: 0; padding: 0; border: 1px solid var(--cx-line); border-radius: var(--cx-r); background: var(--cx-surface); overflow: hidden; }
.woocommerce ul.order_details li { flex: 1 1 160px; margin: 0; padding: 14px 16px; border: 0; border-inline-end: 1px solid var(--cx-line-soft); font-size: var(--cx-fs-sm); }
.woocommerce ul.order_details li strong { display: block; margin-top: 4px; font-size: var(--cx-fs-md); }

/* Account */
.woocommerce-account .woocommerce { display: grid; gap: 24px; }
@media (min-width: 900px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 240px minmax(0, 1fr); } }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 8px; list-style: none; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: var(--cx-r-sm); color: var(--cx-ink); text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--cx-primary-soft); color: var(--cx-primary-dark); }
.woocommerce-account:not(.logged-in) .u-columns { display: grid; gap: 24px; }
@media (min-width: 900px) { .woocommerce-account:not(.logged-in) .u-columns { grid-template-columns: 1fr 1fr; } }
.woocommerce-account .u-column1, .woocommerce-account .u-column2 { width: auto !important; float: none !important; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon, .woocommerce form.track_order {
	margin: 0; padding: 24px; border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg); background: var(--cx-surface);
}

/* Mini cart (drawer) */
.cx-minicart .woocommerce-mini-cart { margin: 0; padding: 0; list-style: none; }
.cx-minicart .woocommerce-mini-cart-item {
	position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 14px 32px 14px 0 !important; border-bottom: 1px solid var(--cx-line-soft);
}
.cx-minicart .woocommerce-mini-cart-item a:not(.remove) { grid-row: span 2; display: contents; color: var(--cx-ink); font-weight: 500; font-size: var(--cx-fs-sm); text-decoration: none; }
.cx-minicart .woocommerce-mini-cart-item img { grid-row: 1 / span 2; width: 64px !important; height: 64px; margin: 0 !important; object-fit: contain; border-radius: 10px; background: var(--cx-bg); float: none !important; }
.cx-minicart .woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--cx-muted); font-size: var(--cx-fs-sm); }
.cx-minicart .woocommerce-mini-cart-item .remove { position: absolute; top: 12px; inset-inline-end: 0; left: auto !important; }
.cx-minicart .woocommerce-mini-cart-item dl.variation { grid-column: 2; margin: 0; font-size: var(--cx-fs-xs); color: var(--cx-muted); }
.cx-minicart .woocommerce-mini-cart-item dl.variation dt, .cx-minicart .woocommerce-mini-cart-item dl.variation dd { display: inline; margin: 0; }
.cx-minicart .woocommerce-mini-cart-item dl.variation p { display: inline; margin: 0; }
.cx-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 16px 0 12px; padding: 0; border: 0 !important; font-size: var(--cx-fs-lg); }
.cx-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin: 0; }
.cx-minicart .woocommerce-mini-cart__buttons a.button { display: flex; width: 100%; margin: 0 !important; }
.cx-minicart .woocommerce-mini-cart__buttons a.button:not(.checkout) { order: 2; background-color: transparent; border-color: var(--cx-line); color: var(--cx-ink); }
.cx-minicart .woocommerce-mini-cart__buttons a.button:not(.checkout):hover { border-color: var(--cx-ink); background-color: transparent; color: var(--cx-ink); }
.cx-minicart .woocommerce-mini-cart__buttons { display: flex !important; flex-direction: column; }
.cx-minicart .woocommerce-mini-cart__empty-message { padding: 40px 0; text-align: center; color: var(--cx-muted); }

/* Block cart & checkout get the same colour language. */
.wc-block-components-button:not(.is-link) { border-radius: var(--cx-r-pill) !important; min-height: 50px; background: var(--cx-primary) !important; color: #fff !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: var(--cx-r-sm) !important; }
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { font-family: var(--cx-font); }

/* Product search results page headers */
.woocommerce-products-header__title.page-title { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }


/* ==========================================================================
   1.1 additions: filters, product page, demo states
   ========================================================================== */
.cx-filter__clear { margin: 8px 0 0; }

.cx-activefilters a { transition: background .15s, border-color .15s; }
.cx-pdp-brand { display: inline-block; margin-bottom: 4px; color: var(--cx-primary); font-size: var(--cx-fs-sm); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.cx-pdp-brand:hover { text-decoration: underline; }
.cx-btn--disabled { background: var(--cx-line); border-color: var(--cx-line); color: var(--cx-ink-2); cursor: not-allowed; pointer-events: none; }
.cx-demo-cart { margin: 12px 0 0; }
.cx-demo-cart .button { width: 100%; opacity: .55; cursor: not-allowed; }
.cx-empty--search { padding: 40px 16px; border: 1px dashed var(--cx-line); border-radius: var(--cx-r-lg); background: var(--cx-surface); }
.woocommerce-cart .cx-empty--cart + .return-to-shop { text-align: center; }
