/*
Theme Name: UCS Hello Child
Description: Foundation styles and WooCommerce helpers for the UCS Singapore Elementor site. Page layouts live in Elementor, not here.
Author: UCS
Template: hello-elementor
Version: 1.0.0
Text Domain: ucs-hello-child
License: GNU General Public License v3 or later.
*/

/* ---------------------------------------------------------------
   Tokens. Colours come from Elementor Site Settings (--e-global-*),
   with literal fallbacks so the CSS also works outside Elementor.
---------------------------------------------------------------- */
:root {
	--ucs-primary: var(--e-global-color-primary, #1865FB);
	--ucs-primary-hover: var(--e-global-color-ucsprimaryhover, #0151E3);
	--ucs-navy: var(--e-global-color-secondary, #051531);
	--ucs-muted-fg: var(--e-global-color-text, #576477);
	--ucs-tint: var(--e-global-color-accent, #D8E7FF);
	--ucs-muted: var(--e-global-color-ucsmuted, #F3F6FA);
	--ucs-border: var(--e-global-color-ucsborder, #DFE5ED);
	--ucs-input: var(--e-global-color-ucsinput, #D4DBE5);
	--ucs-success: var(--e-global-color-ucssuccess, #1C985A);
	--ucs-warning: var(--e-global-color-ucswarning, #DF911A);
	--ucs-danger: var(--e-global-color-ucsdanger, #E7000B);
	--ucs-shadow-soft: 0 1px 2px rgba(5, 21, 49, .04), 0 8px 24px -12px rgba(5, 21, 49, .12);
	--ucs-shadow-lift: 0 2px 4px rgba(5, 21, 49, .04), 0 24px 48px -20px rgba(24, 101, 251, .28);
	--ucs-gradient-navy: linear-gradient(120deg, #051531 0%, #061F53 60%, #0036B0 100%);
}

html { scroll-behavior: smooth; }
body {
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 { letter-spacing: -.025em; }
/* Source paragraphs carry no trailing margin; spacing comes from widget margins. */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Lucide icons are stroke icons: stop Elementor's icon colour from filling them. */
.elementor-widget svg.lucide,
.elementor-icon svg.lucide,
.elementor-button-icon svg.lucide,
.e-font-icon-svg.lucide {
	fill: none !important;
	stroke: currentColor;
}

/* Skip link */
.ucs-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: #fff; padding: .75rem; color: var(--ucs-navy);
}
.ucs-skip-link:focus { left: 0; }

/* ---------------------------------------------------------------
   Reusable classes (add in Elementor › Advanced › CSS Classes)
---------------------------------------------------------------- */

/* Card surface: white, 1px border, 12px radius, soft shadow */
.ucs-surface {
	background: #fff;
	border: 1px solid var(--ucs-border);
	border-radius: 12px;
	box-shadow: var(--ucs-shadow-soft);
}
/* Hover lift for cards */
.ucs-surface-hover { transition: box-shadow .25s, border-color .25s, transform .25s; }
.ucs-surface-hover:hover {
	box-shadow: var(--ucs-shadow-lift);
	border-color: var(--ucs-tint);
	transform: translateY(-2px);
}
/* Arrow nudges right when its card is hovered */
.ucs-surface-hover .ucs-arrow-link svg { transition: transform .2s; }
.ucs-surface-hover:hover .ucs-arrow-link svg { transform: translateX(4px); }

/* Promo panel grid-line overlay */
.ucs-grid-lines { position: relative; overflow: hidden; }
.ucs-grid-lines::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px;
}
.ucs-grid-lines > * { position: relative; }

/* "Why choose" hairline grid: 1px gaps over a border-coloured background */
.ucs-hairline-grid { gap: 1px !important; background: var(--ucs-border); border: 1px solid var(--ucs-border); border-radius: 12px; overflow: hidden; }
.ucs-hairline-grid > .e-con { background: #fff; }

/* FAQ accordion: hairline dividers between items, chevron flips when open */
.ucs-faq .e-n-accordion-item + .e-n-accordion-item { border-top: 1px solid var(--ucs-border); }
.ucs-faq .e-n-accordion-item-title { background: transparent !important; border: 0 !important; }
.ucs-faq .e-n-accordion-item-title-icon svg { transition: transform .2s; }
.ucs-faq .e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-opened svg { transform: rotate(180deg); }
.ucs-faq .e-n-accordion-item > .e-con { border: 0 !important; }

/* 4:3 image crop (repair photo) */
.ucs-ratio-4-3 img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

/* 16:10 image crop (About story) */
.ucs-ratio-16-10 img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }

/* Forms (Fluent Forms via its Elementor widget, class ucs-ff) — matches the source .field */
.ucs-ff .fluentform .ff-el-group { margin-bottom: 20px; }
.ucs-ff .fluentform .ff-t-container { gap: 20px; }
.ucs-ff .fluentform .ff-t-container .ff-t-cell { padding: 0 !important; }
.ucs-ff .fluentform .ff-el-input--label { margin-bottom: 6px; }
.ucs-ff .fluentform .ff-el-input--label label {
	font-size: 14px; font-weight: 500; line-height: 1.43; color: var(--ucs-navy);
}
.ucs-ff .fluentform .ff-el-form-control {
	height: 44px; padding: 0 14px; font-size: 14px; color: var(--ucs-navy);
	background: #fff; border: 1px solid var(--ucs-input) !important; border-radius: 8px !important; box-shadow: none;
}
.ucs-ff .fluentform select.ff-el-form-control { padding-right: 36px; }
.ucs-ff .fluentform textarea.ff-el-form-control { height: auto; min-height: 130px; padding: 12px 14px; }
.ucs-ff .fluentform .ff-el-form-control::placeholder { color: var(--ucs-muted-fg); opacity: .8; }
.ucs-ff .fluentform .ff-el-form-control:focus {
	outline: none; border-color: var(--ucs-primary) !important; box-shadow: 0 0 0 3px var(--ucs-tint);
}
.ucs-ff .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--ucs-danger) !important; }
.ucs-ff .fluentform .ff-el-is-error .text-danger,
.ucs-ff .fluentform .error.text-danger { margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--ucs-danger); }
.ucs-ff .fluentform .ff-el-help-message { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--ucs-muted-fg); font-style: normal; }
/* Inline radios sit on the input line (44px), as the source */
.ucs-ff .fluentform .ff_list_inline .ff-el-input--content { display: flex; align-items: center; gap: 20px; min-height: 44px; }
.ucs-ff .fluentform .ff_list_inline .ff-el-form-check { display: flex; align-items: center; margin: 0 !important; }
.ucs-ff .fluentform .ff-el-form-check-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; line-height: 1; color: var(--ucs-navy); }
.ucs-ff .fluentform .ff-el-form-check-label input { margin: 0; }
.ucs-ff .fluentform input[type="radio"] { accent-color: var(--ucs-primary); }
/* Submit button = source .btn-primary */
.ucs-ff .fluentform .ff-btn-submit {
	height: 44px; padding: 0 20px !important; border-radius: 8px !important; border: 0;
	font-size: 14px; font-weight: 600; line-height: 1; box-shadow: 0 6px 16px -8px var(--ucs-primary);
}
/* Repair: password note sits left of the right-aligned submit button */
.ucs-ff--repair .fluentform form > fieldset { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ucs-ff--repair .fluentform form > fieldset > * { flex: 1 1 100%; }
.ucs-ff--repair .fluentform form > fieldset > .ucs-ff-note-wrap,
.ucs-ff--repair .fluentform form > fieldset > .ff_submit_btn_wrapper { flex: 0 1 auto; margin-bottom: 0; }
.ucs-ff .fluentform .ff_submit_btn_wrapper { margin-bottom: 0; }
.ucs-ff .ucs-ff-note { margin: 0; font-size: 12px; color: var(--ucs-muted-fg); }
/* Success message replaces the form */
.ucs-ff .ff-message-success {
	margin: 0; padding: 16px; border: 0; border-radius: 8px; box-shadow: none;
	background: rgba(28, 152, 90, .08); color: var(--ucs-navy); font-size: 14px;
}
@media (max-width: 767px) {
	.ucs-ff .fluentform .ff-t-container { flex-direction: column; gap: 0; }
	.ucs-ff--repair .fluentform form > fieldset > .ff_submit_btn_wrapper,
	.ucs-ff--repair .fluentform form > fieldset > .ucs-ff-note-wrap { flex-basis: 100%; text-align: left; }
}

/* Anchor targets clear the sticky header (source scroll-mt-40) */
.elementor-element[id] { scroll-margin-top: 160px; }
.ucs-form .elementor-form > .elementor-message-success {
	margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: rgba(28, 152, 90, .08); font-size: 14px;
}

/* Inline emphasis */
.ucs-strong-link { font-weight: 600; }
.ucs-strong-link:hover { text-decoration: underline; }

/* "Browse →" nudges right on card hover */
.ucs-arrow-link .elementor-heading-title { display: inline-block; transition: transform .2s; }
.ucs-surface-hover:hover .ucs-arrow-link .elementor-heading-title { transform: translateX(4px); }

/* Buttons */
.ucs-btn-primary .elementor-button { box-shadow: 0 6px 16px -8px var(--ucs-primary); }
.ucs-btn-outline .elementor-button:hover { border-color: var(--ucs-primary) !important; }

/* Eyebrow text (Accent global typography already sets size/case) */
.ucs-eyebrow .elementor-heading-title { letter-spacing: .14em; }

/* Demo badge used in static content (testimonials) */
.ucs-badge-demo,
.ucs-badge {
	display: inline-flex; align-items: center;
	border-radius: 2px; padding: 2px 6px;
	font-size: 10px; font-weight: 700; line-height: 1.4;
	text-transform: uppercase; letter-spacing: .05em;
}
.ucs-badge-demo { background: rgba(223, 145, 26, .15); color: var(--ucs-warning); }
/* Loop-item badge (heading widget): block title so the box hugs the 10px label */
.ucs-loop-badge .elementor-heading-title { display: block; }
/* Testimonial text: no trailing paragraph gap */
.ucs-testimonial-text p:last-child { margin-bottom: 0; }

/* Testimonials Loop Carousel: arrows (in the outside gutters) and dots only when there is something
   to scroll; Swiper marks them "-lock" when every slide already fits. Phones: swipe + dots, full width. */
.ucs-testimonials .elementor-swiper-button.swiper-button-lock,
.ucs-testimonials .swiper-pagination-lock { display: none !important; }
.ucs-testimonials:has(.swiper-button-lock) .swiper { width: 100%; margin-inline: 0; }
.ucs-testimonials:has(.swiper-pagination-lock) .swiper { padding-bottom: 0; }
.ucs-testimonials .swiper-pagination-bullet-active { background: var(--ucs-primary); }
@media (max-width: 767px) {
	.ucs-testimonials .elementor-swiper-button { display: none !important; }
	.ucs-testimonials.elementor-arrows-position-outside .swiper { width: 100%; margin-inline: 0; }
}
.ucs-badge-sale { background: var(--ucs-primary); color: #fff; }

/* ---------------------------------------------------------------
   Header pieces
---------------------------------------------------------------- */
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would make it the containing
   block for position:fixed children, clipping the side cart and mobile menu to the header height. */
.ucs-header-sticky::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* Header rows share z-index 50; lift the bar holding the side cart / mobile menu above the nav row below it */
.ucs-header-sticky > .e-con:has(.elementor-menu-cart__container) { z-index: 60; }

/* Side cart (Elementor Pro Menu Cart) in the site's styling */
.elementor-menu-cart__main { padding: 24px !important; box-shadow: -12px 0 40px -16px rgba(5, 21, 49, .35); }
.elementor-menu-cart__product { align-items: center; padding: 16px 0 !important; }
.elementor-menu-cart__product-image img { border-radius: 8px; background: var(--ucs-muted); object-fit: cover; aspect-ratio: 1; }
.elementor-menu-cart__product-name a { color: var(--ucs-navy) !important; font-size: 14px; font-weight: 600; }
.elementor-menu-cart__product-price { color: var(--ucs-muted-fg) !important; font-size: 13px; }
.elementor-menu-cart__subtotal { font-size: 16px !important; color: var(--ucs-navy); }
.elementor-menu-cart__footer-buttons .elementor-button {
	height: 44px; display: flex !important; align-items: center; justify-content: center;
	border-radius: 8px !important; font-size: 14px !important; font-weight: 600 !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart { background: #fff !important; color: var(--ucs-navy) !important; border: 1px solid var(--ucs-input) !important; }
.elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover { border-color: var(--ucs-primary) !important; }
.elementor-menu-cart__footer-buttons .elementor-button--checkout { background: var(--ucs-primary) !important; color: #fff !important; }
.elementor-menu-cart__footer-buttons .elementor-button--checkout:hover { background: var(--ucs-primary-hover) !important; }

.ucs-underline-hover a:hover { text-decoration: underline; }

/* Footer contact block: labels in white */
.ucs-footer-contact strong { color: #fff; font-weight: 400; }

/* Product search field (woocommerce/product-searchform.php override) */
.ucs-search { position: relative; width: 100%; }
.ucs-search svg {
	position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
	width: 16px; height: 16px; color: var(--ucs-muted-fg); pointer-events: none;
	fill: none; stroke: currentColor;
}
.ucs-search input[type="search"] {
	width: 100%; height: 44px; padding: 0 14px 0 36px;
	border: 1px solid var(--ucs-input); border-radius: 8px;
	background: var(--ucs-muted); color: var(--ucs-navy); font-size: 14px;
}
.ucs-search input[type="search"]:focus { outline: none; border-color: var(--ucs-primary); box-shadow: 0 0 0 3px var(--ucs-tint); }
.ucs-search button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------
   FiboSearch (header widget .ucs-header-search, "Pirx" style) in the brand look.
   Input as the source header search; suggestions + details panel as two white cards.
   The dropdowns are appended to <body>, so those rules are not scoped to the header.
---------------------------------------------------------------- */
.ucs-header-search .dgwt-wcas-search-wrapp { max-width: none; min-width: 0; }
.ucs-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp { padding: 0; background: none; border-radius: 0; }
.ucs-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
	height: 44px; padding: 0 40px 0 40px !important; border: 1px solid var(--ucs-border) !important; border-radius: 8px !important;
	background: var(--ucs-muted) !important; color: var(--ucs-navy) !important; font: 400 14px/1.4 inherit; font-family: inherit;
	box-shadow: none !important; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.ucs-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::placeholder { color: var(--ucs-muted-fg); opacity: 1; }
.ucs-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:hover { background: var(--ucs-muted) !important; border-color: var(--ucs-input) !important; }
.ucs-header-search .dgwt-wcas-style-pirx.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
	background: #fff !important; border-color: var(--ucs-primary) !important; box-shadow: 0 0 0 3px var(--ucs-tint) !important;
}
/* Magnifier stays on the left (as the source); Enter submits */
.ucs-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
.ucs-header-search .dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
	left: 12px; right: auto; top: 50%; transform: translateY(-50%); width: 18px; min-width: 18px; height: 18px; min-height: 18px;
	pointer-events: none; animation: none;
}
.ucs-header-search .dgwt-wcas-search-submit svg.dgwt-wcas-ico-magnifier { width: 16px; height: 16px; fill: var(--ucs-muted-fg); }
.ucs-header-search .dgwt-wcas-close { right: 10px !important; color: var(--ucs-muted-fg); }
.ucs-header-search .dgwt-wcas-close:hover { color: var(--ucs-navy); }
.ucs-header-search .dgwt-wcas-preloader { right: 36px !important; }

/* Mobile menu: the FiboSearch widget sits at the top of the burger dropdown (moved there by assets/header.js);
   until then (and in the sticky-header spacer copy) it stays hidden in the icon row. The editor shows it. */
body:not(.elementor-editor-active) .ucs-header-icons > .ucs-menu-search { display: none; }
.elementor-nav-menu--dropdown .ucs-menu-search { width: 100%; padding: 16px 20px 8px; background: #fff; }
/* FiboSearch full-screen search on phones (opens when the field is tapped): room for the focus ring,
   suggestions fill the screen instead of floating as a card */
body .dgwt-wcas-overlay-mobile .dgwt-wcas-om-bar {
	height: auto; display: flex; align-items: center; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ucs-border);
}
body .dgwt-wcas-overlay-mobile .js-dgwt-wcas-om-return { flex: 0 0 48px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ucs-navy); }
body .dgwt-wcas-overlay-mobile .js-dgwt-wcas-om-return svg { position: static; width: 18px; height: 18px; fill: currentColor; }
body .dgwt-wcas-overlay-mobile .dgwt-wcas-search-wrapp { flex: 1; min-width: 0; }
body .dgwt-wcas-overlay-mobile .dgwt-wcas-sf-wrapp { padding: 0 !important; background: none !important; }
body .dgwt-wcas-overlay-mobile .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
	height: 44px; padding: 0 40px 0 14px !important; border: 1px solid var(--ucs-primary) !important; border-radius: 8px !important;
	background: #fff !important; box-shadow: 0 0 0 3px var(--ucs-tint) !important; color: var(--ucs-navy) !important;
	font-family: inherit; font-size: 16px; /* 16px: iOS doesn't zoom the page on focus */
}
body .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestions-wrapp { margin-top: 0; border: 0 !important; border-radius: 0; box-shadow: none; }

/* Suggestions card */
body .dgwt-wcas-suggestions-wrapp {
	margin-top: 8px; padding: 6px 0; border: 1px solid var(--ucs-border) !important; border-radius: 12px;
	background: #fff; box-shadow: var(--ucs-shadow-lift); overflow: hidden; font-family: inherit;
}
body .dgwt-wcas-suggestion { padding: 10px 16px; font-size: 14px; line-height: 1.4; color: var(--ucs-navy); transition: background-color .12s; }
body .dgwt-wcas-suggestion, body .dgwt-wcas-suggestion *, body .dgwt-wcas-details-wrapp a { text-decoration: none !important; }
body .dgwt-wcas-suggestion strong { font-weight: 700; color: var(--ucs-primary); }
body .dgwt-wcas-suggestion-selected, body .dgwt-wcas-suggestion:hover { background: var(--ucs-tint) !important; }
body .dgwt-wcas-suggestion-headline, body .dgwt-wcas-suggestion-headline:hover { background: none !important; cursor: default; padding: 12px 16px 6px; }
body .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	display: block; padding-bottom: 6px; border-bottom: 1px solid var(--ucs-border);
	font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ucs-muted-fg);
}
body .dgwt-wcas-has-headings .dgwt-wcas-suggestion-headline:first-child { padding-top: 6px; }
body .dgwt-wcas-si { width: 40px; flex: 0 0 40px; margin-right: 12px; }
body .dgwt-wcas-si img { width: 40px; height: 40px; padding: 3px; border: 0; border-radius: 6px; background: var(--ucs-muted); object-fit: contain; mix-blend-mode: multiply; }
body .dgwt-wcas-suggestion-more { justify-content: center; margin-top: 4px; border-top: 1px solid var(--ucs-border); font-weight: 600; color: var(--ucs-primary); }
body .dgwt-wcas-suggestion-nores { color: var(--ucs-muted-fg); }

/* Details card (product, or products in the hovered category) */
body .dgwt-wcas-details-wrapp {
	margin: 8px 0 0 8px; border: 1px solid var(--ucs-border) !important; border-radius: 12px;
	background: #fff; box-shadow: var(--ucs-shadow-lift); overflow: hidden; font-family: inherit; color: var(--ucs-navy);
}
body .dgwt-wcas-details-wrapp .dgwt-wcas-details-inner { padding: 0; } /* gutters set below (16px) */
body .dgwt-wcas-details-main-image { width: 100%; height: auto; margin: 0; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--ucs-muted); }
body .dgwt-wcas-details-inner-product .dgwt-wcas-product-details > a { display: block; width: auto; margin: 16px 16px 0; }
body .dgwt-wcas-details-main-image img { width: 100%; height: 100%; max-height: none; padding: 6%; object-fit: contain; mix-blend-mode: multiply; }
body .dgwt-wcas-details-space { margin: 0; padding: 14px 16px 16px; }
body .dgwt-wcas-details-product-title { display: block; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.375; color: var(--ucs-navy) !important; }
body .dgwt-wcas-details-product-title:hover { color: var(--ucs-primary) !important; }
body .dgwt-wcas-details-product-sku { display: block; margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--ucs-muted-fg); }
body .dgwt-wcas-pd-price { margin-top: 10px; font-size: 18px; font-weight: 700; color: var(--ucs-navy); display: flex; align-items: baseline; gap: 8px; }
body .dgwt-wcas-pd-price ins { order: -1; text-decoration: none; }
body .dgwt-wcas-pd-price del { font-size: 14px; font-weight: 400; color: var(--ucs-muted-fg); }
body .dgwt-wcas-details-hr { margin: 12px 0; border-top: 1px solid var(--ucs-border); }
body .dgwt-wcas-details-desc { font-size: 14px; line-height: 1.5; color: var(--ucs-muted-fg); }
/* Stock: dot + label (same as the product cards) */
body .dgwt-wcas-stock { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 500; color: var(--ucs-muted-fg) !important; }
body .dgwt-wcas-stock::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ucs-success); }
body .dgwt-wcas-stock.low-stock::before { background: var(--ucs-warning); }
body .dgwt-wcas-stock.out-of-stock::before { background: var(--ucs-danger); }
/* Quantity stepper + Add */
body .dgwt-wcas-pd-addtc-form { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
body .dgwt-wcas-pd-addtc .quantity {
	display: inline-flex; align-items: center; height: 36px; margin: 0; border: 1px solid var(--ucs-input); border-radius: 8px; overflow: hidden; background: #fff;
}
body .dgwt-wcas-pd-addtc .quantity .ucs-qty__btn { display: grid; place-items: center; width: 30px; height: 100%; padding: 0; border: 0; background: none; color: var(--ucs-navy); cursor: pointer; }
body .dgwt-wcas-pd-addtc .quantity .ucs-qty__btn:hover { background: var(--ucs-muted); }
body .dgwt-wcas-pd-addtc .quantity .ucs-qty__btn svg { width: 14px; height: 14px; }
body .dgwt-wcas-pd-addtc .quantity input.qty {
	width: 36px; height: 100%; padding: 0; border: 0 !important; background: none; text-align: center; font-size: 14px; font-weight: 600; color: var(--ucs-navy); -moz-appearance: textfield; box-shadow: none;
}
body .dgwt-wcas-pd-addtc .quantity input.qty::-webkit-inner-spin-button, body .dgwt-wcas-pd-addtc .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body .dgwt-wcas-pd-addtc .add_to_cart_inline { flex: 1; margin: 0 !important; padding: 0 !important; border: 0 !important; }
body .dgwt-wcas-pd-addtc .button {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; margin: 0;
	padding: 0 12px !important; border: 0; border-radius: 8px !important; background: var(--ucs-primary) !important; color: #fff !important;
	font-size: 14px; font-weight: 600; line-height: 1; box-shadow: 0 6px 16px -8px var(--ucs-primary);
}
body .dgwt-wcas-pd-addtc .button:hover { background: var(--ucs-primary-hover) !important; }
body .dgwt-wcas-pd-addtc .button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
body .dgwt-wcas-pd-addtc .button.ucs-btn-disabled { opacity: .5; pointer-events: none; box-shadow: none; }
body .dgwt-wcas-pd-addtc .added_to_cart { display: none; }
/* Category hovered: its products as rows */
body .dgwt-wcas-datails-title {
	display: block; margin: 0 16px 6px; padding: 14px 0 6px; border-bottom: 1px solid var(--ucs-border) !important;
	font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ucs-muted-fg);
}
body .dgwt-wcas-details-title-tax { font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit; }
body .dgwt-wcas-tax-product-details { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--ucs-navy); transition: background-color .12s; }
body .dgwt-wcas-tax-product-details:hover { background: var(--ucs-muted); }
body .dgwt-wcas-tpd-image { flex: 0 0 48px; width: 48px; height: 48px; margin: 0; border-radius: 6px; background: var(--ucs-muted) !important; }
body .dgwt-wcas-tpd-image img { width: 100%; height: 100%; padding: 3px; object-fit: contain; mix-blend-mode: multiply; }
body .dgwt-wcas-tpd-rest-title { font-size: 14px; font-weight: 600; line-height: 1.375; color: var(--ucs-navy); }
body .dgwt-wcas-tpd-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--ucs-navy); }
body .dgwt-wcas-tpd-price ins { order: -1; text-decoration: none; }
body .dgwt-wcas-tpd-price del { font-size: 12px; font-weight: 400; color: var(--ucs-muted-fg); }
body .dgwt-wcas-details-more-products { padding: 12px 16px 16px; }
body .dgwt-wcas-details-more-products a { font-size: 14px; font-weight: 600; color: var(--ucs-primary); }

/* Icon buttons in the header (account, wishlist, cart) */
.ucs-icon-btn .elementor-icon { border-radius: 6px; padding: 10px; transition: background-color .2s; }
.ucs-icon-btn .elementor-icon:hover { background: var(--ucs-muted); }

/* Counter badge (cart / wishlist) */
.ucs-header-icons .elementor-menu-cart__toggle .elementor-button-icon[data-counter]::before,
.ucs-count {
	font-size: 10px; font-weight: 700; min-width: 16px; line-height: 16px;
}

/* Wishlist counter shortcode output in the header */
.elementor-widget-shortcode .ucs-wishlist-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; color: var(--ucs-navy); }
.elementor-widget-shortcode .ucs-wishlist-link:hover { background: var(--ucs-muted); color: var(--ucs-navy); }
.ucs-wishlist-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.ucs-wishlist-link .ucs-count {
	position: absolute; right: 2px; top: 2px; border-radius: 999px; padding: 0 4px;
	background: var(--ucs-primary); color: #fff; text-align: center;
}
.elementor-widget-shortcode .ucs-wishlist-link .ucs-count { display: none; }
.elementor-widget-shortcode .ucs-wishlist-link.wishlist-counter-with-products .ucs-count { display: block; }

/* Wishlist hearts on cards: Lucide heart (outline), filled blue when the product is in the wishlist */
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinvwl_add_to_wishlist_button::before {
	content: "" !important; display: block; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinvwl_add_to_wishlist_button.tinvwl-product-in-list { color: var(--ucs-primary) !important; }
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinvwl_add_to_wishlist_button.tinvwl-product-in-list:hover { color: var(--ucs-primary-hover) !important; }

/* ---------------------------------------------------------------
   WooCommerce product cards (Elementor "Products" widget + archives)
   Markup is extended by functions.php hooks: badges, category label,
   stock dot and a price/button footer row.
---------------------------------------------------------------- */
.woocommerce ul.products li.product.ucs-card,
.elementor-widget-woocommerce-products ul.products li.product.ucs-card {
	display: flex; flex-direction: column; overflow: hidden; padding: 0 !important;
	background: #fff; border: 1px solid var(--ucs-border); border-radius: 12px;
	box-shadow: var(--ucs-shadow-soft);
	transition: box-shadow .25s, border-color .25s, transform .25s;
}
.woocommerce ul.products li.product.ucs-card:hover {
	box-shadow: var(--ucs-shadow-lift); border-color: var(--ucs-tint); transform: translateY(-2px);
}
li.product.ucs-card .ucs-card__media {
	position: relative; aspect-ratio: 4 / 3; background: var(--ucs-muted); display: block;
}
li.product.ucs-card .ucs-card__media > a { position: absolute; inset: 0; display: block; }
li.product.ucs-card .ucs-card__media img {
	width: 100% !important; height: 100% !important; margin: 0 !important; max-width: none;
	object-fit: contain; object-position: center; padding: 6%; mix-blend-mode: multiply;
}
li.product.ucs-card .ucs-card__badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
li.product.ucs-card .onsale { display: none !important; } /* replaced by .ucs-badge-sale */
li.product.ucs-card .ucs-card__wish { position: absolute; right: 12px; top: 12px; z-index: 2; }
li.product.ucs-card .ucs-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
li.product.ucs-card .ucs-card__cat { margin: 0; font-size: 12px; color: var(--ucs-muted-fg); }
li.product.ucs-card .woocommerce-loop-product__title {
	margin: 0 !important; padding: 0 !important; font-size: 14px !important; font-weight: 600; line-height: 1.375;
	color: var(--ucs-navy); letter-spacing: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
li.product.ucs-card .woocommerce-loop-product__title a { color: inherit; }
li.product.ucs-card .woocommerce-loop-product__title a:hover { color: var(--ucs-primary); }
li.product.ucs-card .ucs-card__footer { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.woocommerce ul.products li.product.ucs-card .price { margin: 0 !important; display: flex !important; align-items: baseline; gap: 8px; }
.woocommerce ul.products li.product.ucs-card .price ins { order: -1; } /* sale price before the struck-through price */
li.product.ucs-card .price ins, li.product.ucs-card .price > .amount, li.product.ucs-card .price > .woocommerce-Price-amount {
	font-size: 18px; font-weight: 700; color: var(--ucs-navy); text-decoration: none;
}
li.product.ucs-card .price del { font-size: 14px; font-weight: 400; color: var(--ucs-muted-fg); opacity: 1; }
.woocommerce ul.products li.product.ucs-card .ucs-card__footer .button {
	margin: 0 !important; display: inline-flex !important; align-items: center; gap: 6px; line-height: 1;
	height: 36px; padding: 0 12px !important; border-radius: 8px !important;
	background: var(--ucs-primary) !important; color: #fff !important; font-size: 14px; font-weight: 600;
	box-shadow: 0 6px 16px -8px var(--ucs-primary);
}
li.product.ucs-card .ucs-card__footer .button:hover { background: var(--ucs-primary-hover) !important; }
li.product.ucs-card .ucs-card__footer .button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
li.product.ucs-card .ucs-card__footer .button.ucs-btn-disabled { opacity: .5; pointer-events: none; }
li.product.ucs-card .added_to_cart { display: none; }
@media (max-width: 639px) {
	li.product.ucs-card .ucs-card__footer .button .ucs-btn-label { display: none; }
	/* Narrow cards: sale + old price may wrap instead of pushing the button out */
	.woocommerce ul.products li.product.ucs-card .price { flex-wrap: wrap; row-gap: 0; min-width: 0; }
	li.product.ucs-card .ucs-card__footer .button { flex: 0 0 auto; }
}

/* ---------------------------------------------------------------
   Shop archive (Products Archive template + inc/shop.php shortcodes)
---------------------------------------------------------------- */
/* Category pills (source: btn h-9, scrolls sideways when narrow) */
.ucs-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ucs-pills .ucs-pill {
	flex: 0 0 auto; display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
	border: 1px solid var(--ucs-input); border-radius: 8px; background: #fff;
	font-size: 14px; font-weight: 600; color: var(--ucs-navy); white-space: nowrap;
	transition: border-color .2s, color .2s, background-color .2s;
}
.ucs-pills .ucs-pill:hover { border-color: var(--ucs-primary); color: var(--ucs-primary); }
.ucs-pills .ucs-pill.is-active {
	background: var(--ucs-primary); border-color: var(--ucs-primary); color: #fff;
	box-shadow: 0 6px 16px -8px var(--ucs-primary);
}

/* Shared field look (source .field) */
.ucs-field {
	width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--ucs-input); border-radius: 8px;
	background: #fff; color: var(--ucs-navy); font-size: 14px; font-family: inherit;
}
.ucs-field:focus { outline: none; border-color: var(--ucs-primary); box-shadow: 0 0 0 3px var(--ucs-tint); }
.ucs-field--auto { width: auto; height: 40px; padding-right: 32px; }

/* Filter panel */
.ucs-filters { display: flex; flex-direction: column; gap: 24px; padding: 20px; }
.ucs-filters__group { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ucs-filters__group > label, .ucs-filters__group > legend { font-size: 14px; font-weight: 600; color: var(--ucs-navy); padding: 0; margin: 0 0 0; }
.ucs-filters__group > legend { margin-bottom: 8px; }
.ucs-range { width: 100%; margin-top: 4px; accent-color: var(--ucs-primary); }
.ucs-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--ucs-navy); cursor: pointer; }
.ucs-check input { accent-color: var(--ucs-primary); margin: 0; }
/* Source: full-width outline "Clear filters" button at the bottom of the panel */
.ucs-filters .ucs-filters__clear { width: 100%; }

/* Empty listing card ("No products match") */
.ucs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px; }
.ucs-empty__icon { color: var(--ucs-muted-fg); }
.ucs-empty__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; }
.ucs-empty__title { margin: 16px 0 0; font-size: 20px; font-weight: 700; color: var(--ucs-navy); letter-spacing: -.025em; }
.ucs-empty__text { margin: 8px 0 24px; font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-empty .ucs-btn-primary-link { display: inline-flex !important; }
.ucs-btn-plain { height: 40px; padding: 0 16px; border: 1px solid var(--ucs-input); border-radius: 8px; background: #fff; font-weight: 600; }

/* Toolbar: count · Filters · Sort */
.ucs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ucs-toolbar__count { margin: 0; font-size: 14px; color: var(--ucs-muted-fg); white-space: nowrap; }
.ucs-toolbar__count span { font-weight: 600; color: var(--ucs-navy); }
.ucs-toolbar__actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 639px) {
	.ucs-toolbar__actions .ucs-field--auto { max-width: 132px; }
}
.ucs-toolbar__actions form { margin: 0; }
/* Outline style (source .btn-outline); !important beats the kit's global <button> colours */
.ucs-toolbar__filters {
	display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px !important;
	border: 1px solid var(--ucs-input) !important; border-radius: 8px !important; background: #fff !important; color: var(--ucs-navy) !important;
	font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: none !important;
}
.ucs-toolbar__filters:hover, .ucs-toolbar__filters[aria-expanded="true"] { border-color: var(--ucs-primary) !important; color: var(--ucs-primary) !important; }
.ucs-toolbar__filters svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }

/* Sidebar: always shown ≥1024px; below that it opens from the Filters button */
@media (max-width: 1023px) {
	.ucs-toolbar__filters { display: inline-flex; }
	.ucs-shop-sidebar { display: none !important; }
	body.ucs-filters-open .ucs-shop-sidebar { display: flex !important; }
}

/* Products grid inside the archive widget */
.ucs-archive ul.products { margin: 0 !important; }
@media (max-width: 767px) {
	.ucs-archive.elementor-wc-products ul.products,
	.ucs-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.ucs-js .ucs-archive .woocommerce-pagination { display: none; } /* replaced by Load more */
.ucs-archive .woocommerce-pagination { margin-top: 32px; }
.ucs-load-more[hidden] { display: none !important; }

/* Empty state (source: "No products match") */
.ucs-archive .elementor-products-nothing-found,
.ucs-archive .woocommerce-info {
	padding: 64px 20px; text-align: center; border: 1px dashed var(--ucs-input); border-radius: 12px;
	background: #fff; color: var(--ucs-muted-fg); font-size: 14px;
}
.ucs-empty-title { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 600; color: var(--ucs-navy); }

/* ---------------------------------------------------------------
   Single product (Single Product template + inc/product.php)
---------------------------------------------------------------- */
.ucs-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Breadcrumb */
.ucs-breadcrumb { font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-breadcrumb a { color: var(--ucs-muted-fg); }
.ucs-breadcrumb a:hover { color: var(--ucs-primary); }
.elementor-widget-woocommerce-breadcrumb .ucs-breadcrumb { color: var(--ucs-navy); }

/* Gallery: 4:3 surface well, image contained with 6% padding; 80px thumbnails */
.ucs-gallery .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.ucs-gallery .woocommerce-product-gallery .flex-viewport,
.ucs-gallery .woocommerce-product-gallery__wrapper:only-child,
.ucs-gallery .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper {
	background: var(--ucs-muted); border: 1px solid var(--ucs-border); border-radius: 12px;
	box-shadow: var(--ucs-shadow-soft); overflow: hidden;
}
.ucs-gallery .woocommerce-product-gallery__image { aspect-ratio: 4 / 3; display: flex !important; align-items: center; justify-content: center; }
.ucs-gallery .woocommerce-product-gallery__image a { display: flex; width: 100%; height: 100%; pointer-events: none; }
.ucs-gallery .woocommerce-product-gallery__image img {
	width: 100% !important; height: 100% !important; object-fit: contain; padding: 6%; mix-blend-mode: multiply;
}
.ucs-gallery .flex-control-thumbs { display: flex; gap: 12px; margin: 12px 0 0 !important; padding: 0; }
.ucs-gallery .flex-control-thumbs li { width: 80px !important; height: 80px; margin: 0 !important; list-style: none; }
.ucs-gallery .flex-control-thumbs img {
	width: 80px; height: 80px; object-fit: contain; padding: 4px; background: var(--ucs-muted);
	border: 2px solid var(--ucs-border); border-radius: 6px; opacity: 1 !important; cursor: pointer; mix-blend-mode: normal;
}
.ucs-gallery .flex-control-thumbs img.flex-active { border-color: var(--ucs-primary); }
.ucs-gallery .woocommerce-product-gallery__trigger { display: none; }

/* Demo · Brand · SKU */
.ucs-product-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ucs-muted-fg); }

/* Price + stock */
.ucs-price-row .price { margin: 0 !important; display: flex !important; align-items: baseline; gap: 8px; }
.ucs-price-row .price ins { order: -1; text-decoration: none; }
.ucs-price-row .price del { font-size: 18px; font-weight: 400; color: var(--ucs-muted-fg); opacity: 1; }
.ucs-stock-widget .stock { margin: 0 !important; }

/* Add to cart: options as pills, − 1 + stepper, full-width primary button */
.ucs-atc form.cart { margin: 0 !important; }
.ucs-atc table.variations { margin: 0 0 32px !important; border: 0; }
.ucs-atc table.variations tr { display: block; margin-bottom: 20px; }
.ucs-atc table.variations tr:last-child { margin-bottom: 0; }
.ucs-atc table.variations th, .ucs-atc table.variations td { display: block; padding: 0 !important; border: 0; background: none !important; text-align: left; line-height: 1.4; }
.ucs-atc table.variations th label { font-size: 14px; font-weight: 600; color: var(--ucs-navy); margin: 0 0 12px; }
.ucs-atc .reset_variations,
.ucs-atc .woocommerce-variation-price,
.ucs-atc .woocommerce-variation-availability,
.ucs-atc .woocommerce-variation-description { display: none !important; }
.ucs-pills--options { flex-wrap: wrap; overflow: visible; }
.ucs-pills--options .ucs-pill { height: 40px; cursor: pointer; }
.ucs-pills--options .ucs-pill:disabled { opacity: .45; cursor: not-allowed; }

.ucs-atc form.cart:not(.variations_form),
.ucs-atc .woocommerce-variation-add-to-cart { display: flex !important; gap: 12px; align-items: stretch; flex-wrap: nowrap; }
.ucs-atc .quantity {
	display: flex !important; align-items: center; margin: 0 !important; height: 44px;
	border: 1px solid var(--ucs-input); border-radius: 8px; background: #fff;
}
.ucs-qty__btn {
	display: grid !important; place-items: center; width: 44px; height: 42px; padding: 0 !important;
	border: 0 !important; background: transparent !important; color: var(--ucs-navy) !important; cursor: pointer; box-shadow: none !important;
}
.ucs-qty__btn:hover { color: var(--ucs-primary) !important; }
.ucs-qty__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.quantity input.qty {
	width: 32px !important; height: 42px; padding: 0 !important; border: 0 !important; background: transparent;
	text-align: center; font-weight: 600; font-size: 16px; color: var(--ucs-navy); -moz-appearance: textfield; box-shadow: none !important;
}
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ucs-atc .single_add_to_cart_button {
	flex: 1 1 auto; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
	height: 44px; margin: 0 !important; padding: 0 20px !important; border: 0 !important; border-radius: 8px !important;
	background: var(--ucs-primary) !important; color: #fff !important; font-size: 14px; font-weight: 600;
	box-shadow: 0 6px 16px -8px var(--ucs-primary);
}
.ucs-atc .single_add_to_cart_button:hover { background: var(--ucs-primary-hover) !important; }
.ucs-atc .single_add_to_cart_button::before {
	content: ""; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ucs-atc .single_add_to_cart_button.disabled { opacity: .5; }
.ucs-atc .tinv-wraper { display: none; } /* source product page has no wishlist button */
.ucs-atc .stock.out-of-stock { margin: 0; }

/* Specifications: attribute table as a surface with hairline rows */
.ucs-specs table.woocommerce-product-attributes {
	width: 100%; margin: 0 !important; border: 1px solid var(--ucs-border) !important; border-radius: 12px;
	border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; box-shadow: var(--ucs-shadow-soft);
}
.ucs-specs table.woocommerce-product-attributes tr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 20px; }
.ucs-specs table.woocommerce-product-attributes tr + tr { border-top: 1px solid var(--ucs-border); }
.ucs-specs table.woocommerce-product-attributes th,
.ucs-specs table.woocommerce-product-attributes td {
	padding: 0 !important; border: 0 !important; background: none !important; font-size: 14px; line-height: 1.43; text-align: left; font-style: normal;
}
.ucs-specs table.woocommerce-product-attributes th { font-weight: 400; color: var(--ucs-muted-fg); width: auto; }
.ucs-specs table.woocommerce-product-attributes td { font-weight: 500; color: var(--ucs-navy); }
.ucs-specs table.woocommerce-product-attributes td p { margin: 0 !important; padding: 0 !important; } /* WooCommerce adds 8px padding */

/* Description + reviews text */
.ucs-description, .ucs-description p { color: var(--ucs-muted-fg); line-height: 1.625; }
.ucs-description p { margin: 0 0 1em; }
.ucs-description p:last-child { margin-bottom: 0; }
.ucs-reviews-empty { margin: 0; color: var(--ucs-muted-fg); }

/* Product card Loop Item (Elementor Loop Grid: related products). Same look as the WooCommerce cards;
   the widgets carry type/colour settings, these rules add positioning and the card mechanics. */
.ucs-pcard { overflow: hidden; height: 100%; transition: box-shadow .25s, border-color .25s, transform .25s; }
.ucs-pcard:hover { box-shadow: var(--ucs-shadow-lift); border-color: var(--ucs-tint); transform: translateY(-2px); }
.ucs-pcard__media { position: relative; aspect-ratio: 4 / 3; }
.ucs-pcard .ucs-pcard__img { position: absolute; inset: 0; width: 100% !important; margin: 0; }
.ucs-pcard__img a, .ucs-pcard__img img { display: block; width: 100%; height: 100%; }
.ucs-pcard__img img { max-width: none; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.ucs-pcard .ucs-pcard__badges { position: absolute; left: 12px; top: 12px; z-index: 2; }
.ucs-pcard .ucs-pcard__wish { position: absolute; right: 12px; top: 12px; z-index: 2; width: auto !important; }
.ucs-pcard__body { flex: 1; }
.ucs-pcard__title .elementor-heading-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ucs-pcard__title a { color: inherit; }
.ucs-pcard__title a:hover { color: var(--ucs-primary); }
.ucs-pcard__footer { margin-top: auto; }
.ucs-pcard__price .price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.ucs-pcard__price .price ins { order: -1; text-decoration: none; }
.ucs-pcard__price .price del { font-size: 14px; font-weight: 400; color: var(--ucs-muted-fg); opacity: 1; }
.ucs-loop-atc .elementor-button-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.ucs-loop-atc .added_to_cart { display: none; }
/* Out of stock: WooCommerce leaves off "add_to_cart_button"; show the button disabled, as the source */
.ucs-loop-atc .elementor-button:not(.add_to_cart_button) { opacity: .5; pointer-events: none; }
.ucs-related-wrap:not(:has(.e-loop-item)) { display: none; } /* no related products: no heading either */
@media (max-width: 639px) {
	.ucs-loop-atc .elementor-button-text { display: none; }
}

/* Related products: 4 columns (2 below 768px) */
.ucs-related ul.products { margin: 0 !important; }
@media (max-width: 767px) {
	.ucs-related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------------------------------------------------------------
   Cart + Checkout (Elementor Cart/Checkout widgets + woocommerce/* overrides)
---------------------------------------------------------------- */
.ucs-cart .e-cart__container,
.ucs-checkout .e-checkout__container {
	display: grid !important; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start;
}
.ucs-cart .e-cart__column, .ucs-checkout .e-checkout__column { width: auto !important; padding: 0 !important; margin: 0 !important; }
@media (max-width: 1023px) {
	.ucs-cart .e-cart__container, .ucs-checkout .e-checkout__container { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.ucs-cart .e-cart-section, .ucs-cart .e-shop-table, .ucs-cart .e-cart-totals,
.ucs-checkout .e-checkout__order_review, .ucs-checkout .e-checkout__order_review-2,
.ucs-checkout #customer_details .col-1, .ucs-checkout #customer_details .col-2 {
	padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; width: auto !important; float: none !important;
}
.ucs-checkout #customer_details { display: flex; flex-direction: column; gap: 24px; }
.ucs-checkout #customer_details::before, .ucs-checkout #customer_details::after { display: none; } /* clearfix would add a flex gap */
.ucs-checkout .woocommerce-shipping-fields { display: flex; flex-direction: column; gap: 24px; }
.ucs-checkout .woocommerce-additional-fields:empty { display: none; }

/* Shared summary rows */
.ucs-summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ucs-muted-fg); padding: 6px 0; }
.ucs-summary__row > span:last-child { color: var(--ucs-navy); text-align: right; }
.ucs-summary__total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ucs-border); font-size: 16px; font-weight: 700; color: var(--ucs-navy); }
.ucs-summary__total > span:first-child { color: var(--ucs-navy); }
.ucs-cart .ucs-summary__title, .ucs-checkout #order_review_heading {
	margin: 0 0 20px !important; font-size: 18px !important; font-weight: 600 !important; line-height: 1.4; color: var(--ucs-navy) !important; letter-spacing: -.025em;
}

/* Cart items */
.ucs-cart-list { padding: 0; overflow: hidden; }
.ucs-cart-item { display: flex; gap: 16px; padding: 20px; }
.ucs-cart-item + .ucs-cart-item { border-top: 1px solid var(--ucs-border); }
.ucs-cart-item__thumb { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 8px; background: var(--ucs-muted); border: 1px solid var(--ucs-border); overflow: hidden; }
.ucs-cart-item__thumb img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.ucs-cart-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ucs-cart-item__top { display: flex; justify-content: space-between; gap: 16px; }
.ucs-cart .ucs-cart-item__name { font-size: 16px; font-weight: 600; color: var(--ucs-navy) !important; line-height: 1.4; }
.ucs-cart .ucs-cart-item__name:hover { color: var(--ucs-primary) !important; }
.ucs-cart-item .variation { display: flex; gap: 4px; margin: 2px 0 0; font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-cart-item .variation dt, .ucs-cart-item .variation dd { margin: 0; font-weight: 400; }
.ucs-cart-item .variation dd p { margin: 0; }
.ucs-cart-item__each { margin: 2px 0 0; font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-cart-item__total { font-size: 16px; font-weight: 600; color: var(--ucs-navy); white-space: nowrap; }
.ucs-cart-item__actions { display: flex; align-items: center; gap: 12px; }
.ucs-cart-item .quantity { display: flex; align-items: center; height: 36px; border: 1px solid var(--ucs-input); border-radius: 8px; background: #fff; }
.ucs-cart-item .quantity .ucs-qty__btn { width: 36px; height: 34px; }
.ucs-cart-item .quantity input.qty { height: 34px; width: 32px !important; font-size: 14px; }
/* WooCommerce styles a.remove as a big bold ×; restore the source's quiet text link */
.ucs-cart .woocommerce a.remove.ucs-cart-item__remove {
	display: inline-flex; align-items: center; gap: 6px; font-size: 14px !important; font-weight: 400 !important; color: var(--ucs-muted-fg) !important;
	background: none !important; width: auto !important; height: auto !important; line-height: 1.4 !important; border-radius: 0 !important; text-align: left;
}
.ucs-cart-item__remove:hover { color: var(--ucs-danger) !important; }
.ucs-cart-item__remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.ucs-cart-actions { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* auto-update; button kept for WooCommerce */
@media (max-width: 639px) {
	.ucs-cart-item__thumb { flex-basis: 72px; width: 72px; height: 72px; }
	.ucs-cart-item__top { flex-direction: column; gap: 4px; }
}

/* Cart summary */
.ucs-summary { padding: 24px; }
.ucs-coupon { display: flex; gap: 8px; margin: 0 0 20px; }
.ucs-coupon .ucs-field { height: 40px; flex: 1; min-width: 0; }
.ucs-cart .ucs-coupon .ucs-btn-plain {
	height: 40px; flex: 0 0 auto; padding: 0 16px !important; border: 1px solid var(--ucs-input) !important; border-radius: 8px !important;
	background: #fff !important; color: var(--ucs-navy) !important; font-size: 14px; font-weight: 600; box-shadow: none !important;
}
.ucs-cart .ucs-coupon .ucs-btn-plain:hover { border-color: var(--ucs-primary) !important; color: var(--ucs-primary) !important; }
.ucs-summary__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding: 0 !important; }
.ucs-summary__actions .checkout-button, .ucs-btn-primary-link {
	display: flex !important; align-items: center; justify-content: center; height: 44px; margin: 0 !important; padding: 0 20px !important;
	border-radius: 8px !important; background: var(--ucs-primary) !important; color: #fff !important; font-size: 14px !important; font-weight: 600;
	box-shadow: 0 6px 16px -8px var(--ucs-primary);
}
.ucs-summary__actions .checkout-button:hover, .ucs-btn-primary-link:hover { background: var(--ucs-primary-hover) !important; }
.ucs-btn-outline-link, .elementor .ucs-btn-outline-link {
	display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--ucs-input); border-radius: 8px;
	background: #fff; color: var(--ucs-navy) !important; font-size: 14px; font-weight: 600;
}
.ucs-btn-outline-link:hover { border-color: var(--ucs-primary); color: var(--ucs-primary) !important; }
.ucs-summary .woocommerce-remove-coupon { margin-left: 6px; font-size: 12px; }

/* Empty cart */
.ucs-cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 20px; }
.ucs-cart-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: var(--ucs-muted); color: var(--ucs-muted-fg); }
.ucs-cart-empty__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; }
.ucs-cart-empty__title { margin: 20px 0 0; font-size: 24px; font-weight: 700; color: var(--ucs-navy); }
.ucs-cart-empty__text { margin: 8px 0 24px; color: var(--ucs-muted-fg); }
.ucs-cart-empty .ucs-btn-primary-link { display: inline-flex !important; }
.elementor:has(.ucs-cart-empty) .ucs-cart-title { display: none; } /* empty state has its own title */

/* Checkout cards */
.ucs-checkout .ucs-checkout-card {
	padding: 24px !important; margin: 0 !important; background: #fff !important; border: 1px solid var(--ucs-border) !important;
	border-radius: 12px !important; box-shadow: var(--ucs-shadow-soft) !important;
}
.ucs-checkout-card[hidden] { display: none !important; }
.ucs-checkout-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 20px !important; font-size: 18px !important; font-weight: 600; color: var(--ucs-navy); letter-spacing: -.025em; }
.ucs-checkout-card__title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.ucs-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.ucs-fields[hidden] { display: none; }
.ucs-fields .form-row { margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important; }
.ucs-fields .form-row-wide, .ucs-fields .ucs-check-row { grid-column: 1 / -1; }
.ucs-fields #billing_uen_field { grid-column: 2; }
/* Address rows as the source: street full width, then unit | postal code (WooCommerce marks them all "wide") */
.ucs-fields #shipping_address_2_field, .ucs-fields #billing_postcode_field { grid-column: 1; }
.ucs-fields #shipping_postcode_field { grid-column: 2; }
@media (max-width: 639px) {
	.ucs-fields { grid-template-columns: 1fr; }
	.ucs-fields #billing_uen_field, .ucs-fields #shipping_address_2_field,
	.ucs-fields #shipping_postcode_field, .ucs-fields #billing_postcode_field { grid-column: auto; }
}
.ucs-checkout .form-row label { display: block; margin: 0 0 6px !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.43; color: var(--ucs-navy) !important; }
.ucs-checkout .form-row label .required, .ucs-checkout .form-row label .optional { display: none; }
/* !important: the checkout widget sizes fields with its own padding variables */
.ucs-checkout .form-row .input-text,
.ucs-checkout .form-row select {
	box-sizing: border-box; width: 100%; height: 44px !important; min-height: 44px; padding: 0 14px !important; line-height: 42px !important;
	border: 1px solid var(--ucs-input) !important; border-radius: 8px !important;
	background: #fff !important; color: var(--ucs-navy) !important; font-size: 14px !important; box-shadow: none !important;
}
.ucs-checkout .form-row .input-text:focus { outline: none; border-color: var(--ucs-primary) !important; box-shadow: 0 0 0 3px var(--ucs-tint) !important; }
.ucs-checkout .form-row.woocommerce-invalid .input-text { border-color: var(--ucs-danger) !important; }
.ucs-checkout .form-row.woocommerce-validated .input-text { border-color: var(--ucs-input) !important; }
.ucs-checkout .checkout-inline-error-message { margin: 6px 0 0; font-size: 12px; font-weight: 500; color: var(--ucs-danger); }
.ucs-checkout .woocommerce-NoticeGroup-checkout { display: none; } /* errors are shown inline under each field */
.ucs-checkout #shipping_country_field, .ucs-checkout #billing_country_field { display: none !important; }
.ucs-check-row label, .ucs-checkout .woocommerce-form__label-for-checkbox {
	display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: 14px !important; font-weight: 400 !important; color: var(--ucs-navy); cursor: pointer;
}
.ucs-checkout input[type="checkbox"], .ucs-checkout input[type="radio"] { accent-color: var(--ucs-primary); margin: 0; }
.ucs-country { margin: 16px 0 0; font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-country strong { color: var(--ucs-navy); font-weight: 500; }

/* Delivery options */
.ucs-delivery-methods { display: flex; flex-direction: column; gap: 12px; }
.ucs-delivery {
	display: flex; align-items: center; gap: 14px; padding: 16px; margin: 0;
	border: 1px solid var(--ucs-border); border-radius: 8px; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.ucs-delivery:hover { border-color: var(--ucs-input); }
.ucs-delivery.is-checked, .ucs-delivery:has(input:checked) { border-color: var(--ucs-primary); background: rgba(216, 231, 255, .45); }
.ucs-delivery__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ucs-delivery__name { font-size: 14px; font-weight: 600; color: var(--ucs-navy); }
.ucs-delivery__note { font-size: 12px; color: var(--ucs-muted-fg); }
.ucs-delivery__price { font-size: 14px; font-weight: 600; color: var(--ucs-navy); white-space: nowrap; }

/* Payment notice */
.ucs-payment-note { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--ucs-navy); background: #FDF6EC; border: 1px solid #F3DDB8; border-radius: 8px; }

/* Order summary (right): one card with items, totals, terms and Place Order */
.ucs-checkout .e-checkout__column-inner { padding: 24px; background: #fff; border: 1px solid var(--ucs-border); border-radius: 12px; box-shadow: var(--ucs-shadow-soft); }
.ucs-review__items { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--ucs-border); }
.ucs-review__item { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--ucs-navy); }
.ucs-review__var, .ucs-review__qty { color: var(--ucs-muted-fg); }
.ucs-review__item .product-total { white-space: nowrap; }
.ucs-checkout #payment { background: none !important; border-radius: 0; margin-top: 16px; }
.ucs-checkout #payment .wc_payment_methods { display: none !important; } /* single offline method, explained in the Payment card */
.ucs-checkout #payment .place-order { padding: 0 !important; margin: 0 !important; }
.ucs-checkout .woocommerce-terms-and-conditions-wrapper { margin: 0 0 16px; }
.ucs-checkout .woocommerce-terms-and-conditions-wrapper label { display: flex !important; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.43; color: var(--ucs-navy); }
.ucs-checkout .woocommerce-terms-and-conditions-wrapper label input { margin-top: 3px; }
.ucs-checkout .woocommerce-terms-and-conditions-wrapper a { color: var(--ucs-primary); text-decoration: underline; }
.ucs-checkout .woocommerce-terms-and-conditions-wrapper .required { display: none; }
.ucs-checkout #place_order {
	width: 100%; height: 44px; margin: 0 !important; padding: 0 20px !important; border: 0 !important; border-radius: 8px !important;
	background: var(--ucs-primary) !important; color: #fff !important; font-size: 14px !important; font-weight: 600; float: none;
	box-shadow: 0 6px 16px -8px var(--ucs-primary);
}
.ucs-checkout #place_order:hover { background: var(--ucs-primary-hover) !important; }

/* ---------------------------------------------------------------
   Order received (woocommerce/checkout/thankyou.php)
---------------------------------------------------------------- */
body.woocommerce-order-received .ucs-checkout-title { display: none; } /* page H1 "Checkout" */
.ucs-order { max-width: 880px; margin: 0 auto; padding: 24px 0 8px; }
.ucs-order__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ucs-order__icon { color: var(--ucs-success); line-height: 0; }
.ucs-order__icon svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2; }
.ucs-order__icon--error { color: var(--ucs-danger); }
.ucs-order__icon--muted { color: var(--ucs-muted-fg); }
.ucs-order__title { margin: 20px 0 0 !important; font-size: 36px !important; font-weight: 700; line-height: 1.2; color: var(--ucs-navy); letter-spacing: -.025em; }
.ucs-order__number { margin: 12px 0 0; font-size: 16px; color: var(--ucs-muted-fg); }
.ucs-order__number strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--ucs-navy); }
.ucs-order__notice {
	margin: 40px 0 0; padding: 18px 20px; font-size: 16px; line-height: 1.6; color: var(--ucs-navy);
	background: #FDF6EC; border: 1px solid #F3DDB8; border-radius: 8px;
}
.ucs-order__notice--error { background: rgba(231, 0, 11, .06); border-color: rgba(231, 0, 11, .25); }
.ucs-order__card { margin-top: 40px; padding: 0; overflow: hidden; }
.ucs-order__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin: 0; padding: 32px 30px; }
.ucs-order__meta > div { margin: 0; }
.ucs-order__meta-wide { grid-column: 1 / -1; }
.ucs-order__meta dt { margin: 0 0 6px; font-size: 16px; font-weight: 400; color: var(--ucs-muted-fg); }
.ucs-order__meta dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ucs-navy); }
.ucs-order__items { list-style: none; margin: 0; padding: 32px 30px; border-top: 1px solid var(--ucs-border); }
.ucs-order__items li, .ucs-order__totals > div { display: flex; justify-content: space-between; gap: 16px; }
.ucs-order__items li { padding: 4px 0; font-size: 16px; color: var(--ucs-navy); }
.ucs-order__items li > span:last-child, .ucs-order__totals > div > span:last-child { white-space: nowrap; color: var(--ucs-navy); }
.ucs-order__totals { padding: 28px 30px 32px; border-top: 1px solid var(--ucs-border); }
.ucs-order__totals > div { padding: 6px 0; font-size: 16px; color: var(--ucs-muted-fg); }
.ucs-order__totals .ucs-order__total { padding-top: 10px; font-size: 20px; font-weight: 700; color: var(--ucs-navy); }
.ucs-order__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.ucs-order__actions a { display: inline-flex !important; align-items: center; min-width: 0; height: 48px !important; padding: 0 24px !important; font-size: 16px !important; }
@media (max-width: 639px) {
	.ucs-order { padding-top: 8px; }
	.ucs-order__icon svg { width: 56px; height: 56px; }
	.ucs-order__title { font-size: 30px !important; }
	.ucs-order__notice { margin-top: 28px; font-size: 14px; }
	.ucs-order__card { margin-top: 28px; }
	.ucs-order__meta { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
	.ucs-order__items, .ucs-order__totals { padding: 22px 20px; }
	.ucs-order__items li, .ucs-order__totals > div { font-size: 14px; }
	.ucs-order__totals .ucs-order__total { font-size: 18px; }
	.ucs-order__actions { flex-direction: column-reverse; gap: 12px; margin-top: 28px; }
	.ucs-order__actions a { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------
   My Account (Elementor My Account widget + woocommerce/myaccount/* overrides)
---------------------------------------------------------------- */
/* Two columns as the source: 400px card | content */
/* Signed out: .ucs-account-grid (form-login.php). Signed in: WooCommerce's nav + content (grid only when the nav exists). */
.ucs-account-grid,
.ucs-account .e-my-account-tab > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid !important; grid-template-columns: 400px minmax(0, 1fr); gap: 32px; align-items: start;
}
.ucs-account .e-my-account-tab > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
/* Pro's vertical-tabs CSS reorders the children; pin menu left, content right */
.ucs-account .e-my-account-tab > .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; order: 0 !important; }
.ucs-account .e-my-account-tab > .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; order: 0 !important; }
@media (max-width: 1023px) {
	.ucs-account .e-my-account-tab > .woocommerce > .woocommerce-MyAccount-navigation,
	.ucs-account .e-my-account-tab > .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; }
}
.ucs-account .e-my-account-tab > .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
@media (max-width: 1023px) {
	.ucs-account-grid, .ucs-account .e-my-account-tab > .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.ucs-account .woocommerce-MyAccount-navigation,
.ucs-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.ucs-account .woocommerce-MyAccount-content-wrapper { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.ucs-account-side { display: flex; flex-direction: column; gap: 24px; }

/* Cards */
.ucs-account-auth, .ucs-account-card { padding: 24px !important; }
.ucs-account .ucs-account-card__title { margin: 0 !important; font-size: 18px !important; font-weight: 700 !important; color: var(--ucs-navy) !important; letter-spacing: -.025em; }
.ucs-account-card__text { margin: 8px 0 0; font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-account-card__more { margin: 16px 0 0; font-size: 14px; font-weight: 600; }
.ucs-account-card__links { display: flex; gap: 20px; margin: 16px 0 0; font-size: 14px; font-weight: 600; }

/* Sign in / Register tabs (source: muted track, white active tab) */
.ucs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 8px; background: var(--ucs-muted); }
.ucs-tabs [role="tab"] {
	height: 40px; padding: 0 !important; border: 0 !important; border-radius: 6px !important; background: transparent !important;
	color: var(--ucs-muted-fg) !important; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none !important;
}
.ucs-tabs [role="tab"][aria-selected="true"] { background: #fff !important; color: var(--ucs-navy) !important; box-shadow: var(--ucs-shadow-soft) !important; }
.ucs-tabs [role="tab"]:focus-visible { outline: 2px solid var(--ucs-primary); outline-offset: 2px; }
.ucs-account-auth [role="tabpanel"][hidden] { display: none; }

/* Forms (login, register, addresses, account details, lost password) */
.ucs-account form .form-row { margin: 0 0 16px !important; padding: 0 !important; }
.ucs-account form label { display: block; margin: 0 0 6px; font-size: 14px !important; font-weight: 500; color: var(--ucs-navy) !important; }
.ucs-account form label .required { color: var(--ucs-muted-fg); }
.ucs-account form .input-text, .ucs-account form select {
	box-sizing: border-box; width: 100%; height: 44px !important; padding: 0 14px !important; line-height: 42px;
	border: 1px solid var(--ucs-input) !important; border-radius: 8px !important; background: #fff !important; color: var(--ucs-navy) !important; font-size: 14px !important; box-shadow: none !important;
}
.ucs-account form .input-text:focus { outline: none; border-color: var(--ucs-primary) !important; box-shadow: 0 0 0 3px var(--ucs-tint) !important; }
.ucs-account form .button, .ucs-account-submit {
	display: inline-flex !important; align-items: center; justify-content: center; height: 44px; padding: 0 20px !important; border: 0 !important;
	border-radius: 8px !important; background: var(--ucs-primary) !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important;
	box-shadow: 0 6px 16px -8px var(--ucs-primary);
}
.ucs-account form .button:hover { background: var(--ucs-primary-hover) !important; }
.ucs-account-submit { width: 100%; }
.ucs-account-hint { margin: 12px 0 0 !important; font-size: 12px; color: var(--ucs-muted-fg); }
.ucs-account .ucs-account-hint a, .ucs-account .ucs-account-card__links a, .ucs-account .ucs-account-card__more a,
.ucs-account .ucs-order-row__end a, .ucs-account .ucs-account-order__back a { color: var(--ucs-primary) !important; }

/* Signed-in navigation card */
.ucs-account .woocommerce-MyAccount-navigation.ucs-account-nav { padding: 20px !important; }
.ucs-account-nav__user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--ucs-border); }
.ucs-account-nav__avatar { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 999px; background: var(--ucs-tint); color: var(--ucs-primary); font-weight: 700; }
.ucs-account-nav__who { display: flex; flex-direction: column; min-width: 0; }
.ucs-account-nav__name { font-size: 14px; font-weight: 600; color: var(--ucs-navy); }
.ucs-account-nav__email { font-size: 12px; color: var(--ucs-muted-fg); overflow: hidden; text-overflow: ellipsis; }
.ucs-account-nav ul { list-style: none; margin: 0; padding: 0; }
.ucs-account-nav li a {
	display: block; padding: 10px 12px !important; border: 0 !important; border-radius: 8px; font-size: 14px; font-weight: 500;
	color: var(--ucs-navy) !important; background: none !important;
}
.ucs-account-nav li a:hover { background: var(--ucs-muted) !important; }
.ucs-account-nav li.is-active a { background: var(--ucs-tint) !important; color: var(--ucs-primary) !important; font-weight: 600; }
.ucs-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--ucs-muted-fg) !important; }

/* Order rows (source: mono number, date · status, total, Details) */
.ucs-order-list { list-style: none; margin: 16px 0 0; padding: 0; }
.ucs-order-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.ucs-order-row + .ucs-order-row { border-top: 1px solid var(--ucs-border); }
.ucs-order-row__num { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; color: var(--ucs-navy); }
.ucs-order-row__meta { margin: 2px 0 0; font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-order-row__end { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.ucs-order-row__end strong { color: var(--ucs-navy); }
.ucs-order-row__end a { font-size: 14px; color: var(--ucs-primary); }
@media (max-width: 639px) {
	.ucs-order-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Empty order history */
.ucs-account-empty { display: flex; flex-direction: column; align-items: center; padding: 32px 0 8px; text-align: center; }
.ucs-account-empty svg { width: 36px; height: 36px; fill: none; stroke: var(--ucs-muted-fg); stroke-width: 2; }
.ucs-account-empty p { margin: 12px 0 16px; font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-account-empty .ucs-btn-outline-link { display: inline-flex; padding: 0 20px; }

/* Saved addresses & details */
.ucs-account-details { margin: 16px 0 0; display: grid; gap: 12px; }
.ucs-account-details dt { font-size: 12px; color: var(--ucs-muted-fg); }
.ucs-account-details dd { margin: 2px 0 0; font-size: 14px; color: var(--ucs-navy); }

/* Content pages (addresses, account details, view order) */
.ucs-account .e-my-account-tab__edit-address .woocommerce-MyAccount-content,
.ucs-account .e-my-account-tab__edit-account .woocommerce-MyAccount-content {
	padding: 24px !important; background: #fff; border: 1px solid var(--ucs-border); border-radius: 12px; box-shadow: var(--ucs-shadow-soft);
}
.ucs-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ucs-account .woocommerce-Addresses::before, .ucs-account .woocommerce-Addresses::after { display: none; }
.ucs-account .woocommerce-Address { width: auto !important; float: none !important; }
.ucs-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; }
.ucs-account .woocommerce-Address-title h2 { font-size: 16px !important; margin: 0 !important; }
.ucs-account .woocommerce-Address address { margin-top: 8px; padding: 0 !important; border: 0 !important; font-style: normal; font-size: 14px; color: var(--ucs-muted-fg); }
@media (max-width: 639px) { .ucs-account .woocommerce-Addresses { grid-template-columns: 1fr; } }
.ucs-account fieldset { margin: 8px 0 16px; padding: 16px; border: 1px solid var(--ucs-border); border-radius: 8px; }
.ucs-account fieldset legend { padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--ucs-navy); }
.ucs-account-order__back { margin: 0 0 8px; font-size: 14px; }
.ucs-account-order__title { margin: 0 !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px !important; color: var(--ucs-navy) !important; }
.ucs-account-order__meta { margin: 4px 0 0; font-size: 14px; color: var(--ucs-muted-fg); }
.ucs-account-order .ucs-order__notice, .ucs-account-order .ucs-order__card { margin-top: 24px; }
.ucs-account-order__notes { margin-top: 24px; }
.ucs-account-order__notes ol { margin: 12px 0 0; padding-left: 18px; font-size: 14px; }

/* WooCommerce notices (cart, product, checkout, account): white card + Lucide status icon + outline button.
   Replaces WooCommerce's default top bar, icon font and grey button. The shop's empty state keeps its own look. */
/* Grid: icon | text | button (button under the text on phones) */
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.ucs-archive *) {
	display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 10px;
	margin: 0 0 24px !important; padding: 14px 16px !important; list-style: none;
	background: #fff !important; border: 1px solid var(--ucs-border) !important; border-radius: 12px;
	box-shadow: var(--ucs-shadow-soft); font-size: 14px; line-height: 1.5; color: var(--ucs-navy) !important;
}
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.ucs-archive *):focus { outline: none; }
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.ucs-archive *):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ucs-tint); }
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.ucs-archive *)::before {
	content: "" !important; position: static; grid-column: 1; grid-row: 1; width: 20px; height: 20px; margin: 0;
	background: currentColor; font-family: inherit;
	-webkit-mask: var(--ucs-notice-icon) center / contain no-repeat; mask: var(--ucs-notice-icon) center / contain no-repeat;
}
body .woocommerce-message:not(.ucs-archive *)::before {
	color: var(--ucs-success);
	--ucs-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
body .woocommerce-info:not(.ucs-archive *)::before {
	color: var(--ucs-primary);
	--ucs-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}
/* Errors are a list: icon in its own column, one message per row */
body .woocommerce-error:not(.ucs-archive *) {
	grid-template-columns: 20px minmax(0, 1fr); align-items: start; row-gap: 4px;
	border-color: rgba(231, 0, 11, .3) !important;
}
body .woocommerce-error:not(.ucs-archive *)::before {
	margin-top: 1px; color: var(--ucs-danger);
	--ucs-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
}
body .woocommerce-error:not(.ucs-archive *) > li { grid-column: 2; margin: 0; padding: 0; }
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.ucs-archive *) a:not(.button) { color: var(--ucs-primary); text-decoration: underline; text-underline-offset: 2px; }
/* "Continue shopping" / "View cart": outline button on the right (below the text on phones) */
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.ucs-archive *) a.button {
	grid-column: 3; grid-row: 1; float: none !important; margin: 0 !important; display: inline-flex; align-items: center;
	height: 36px; padding: 0 14px !important; border: 1px solid var(--ucs-input) !important; border-radius: 8px !important;
	background: #fff !important; color: var(--ucs-navy) !important; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none;
	box-shadow: none; transition: border-color .2s, color .2s;
}
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.ucs-archive *) a.button:hover { border-color: var(--ucs-primary) !important; color: var(--ucs-primary) !important; }
@media (max-width: 639px) {
	body :is(.woocommerce-message, .woocommerce-info):not(.ucs-archive *) { grid-template-columns: 20px minmax(0, 1fr); }
	body :is(.woocommerce-message, .woocommerce-info):not(.ucs-archive *) a.button { grid-column: 2; grid-row: 2; justify-self: start; }
}

/* Stock indicator: dot + label */
.ucs-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ucs-muted-fg); }
.ucs-stock::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ucs-success); }
.ucs-stock--low::before { background: var(--ucs-warning); }
.ucs-stock--out::before { background: var(--ucs-danger); }

/* Wishlist heart on cards (TI WooCommerce Wishlist output, restyled) */
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinv-wishlist { margin: 0 !important; }
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinvwl_add_to_wishlist_button {
	display: grid !important; place-items: center; width: 32px; height: 32px; margin: 0 !important;
	border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: var(--ucs-shadow-soft);
	font-size: 0 !important; color: var(--ucs-navy);
}
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinvwl_add_to_wishlist_button::before {
	position: static !important; margin: 0 !important; font-size: 16px !important; line-height: 1 !important;
}
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinvwl_add_to_wishlist_button:hover { color: var(--ucs-primary); }
:is(li.product.ucs-card, .ucs-pcard) .ucs-card__wish .tinvwl-tooltip { display: none; }
