/* Parduotuvės archyvas: išdėstymas, kairysis filtrų stulpelis, prekių kortelės, įrankių juosta, puslapiavimas.
 * Visi selektoriai apriboti parduotuvės / kategorijų archyvais (body klasės), kad nepaveiktų kitų puslapių. */

/* ===== Spalvų ir dydžių žetonai ===== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag),
body.single-product :is(section.related, section.up-sells),
body.woocommerce-cart .cross-sells {
	--dsp-green: #033521;
	--dsp-green-hover: #0a4a30;
	--dsp-mint: #d5efe0;
	--dsp-mint-light: #ecf7f1;
	--dsp-text: #131313;
	--dsp-muted: #5b6b63;
	--dsp-border: #e1e8ed;
	--dsp-border-strong: #c9d6cf;
	--dsp-shadow: 0 4px 30px rgba(30, 30, 30, .03);
	--dsp-shadow-hover: 0 12px 32px rgba(3, 53, 33, .09);
}

/* =====================================================================
 * 1. FILTRAI (kairysis stulpelis ir mobilus filtrų panelis)
 * ===================================================================== */

/* Filtrų stulpelis kompiuteryje: be vidinio slinkimo — visi filtrai visada matomi */
@media (min-width: 1000px) {
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #sidebar > .ct-sidebar {
		/* vieta hover fonui ir indikatoriui */
		padding-inline: 12px;
		margin-inline: -12px;
	}
}
/* Lipnus tik tada, kai visas stulpelis telpa ekrane (~1073px filtrų + antraštė) */
@media (min-width: 1000px) and (min-height: 1240px) {
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #sidebar > .ct-sidebar {
		position: sticky;
		top: 112px;
	}
	body.admin-bar:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #sidebar > .ct-sidebar {
		top: 144px;
	}
}

/* Filtrų grupės: atskirtos plona linija */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-widget {
	margin: 0;
	padding-block: 22px;
	border-top: 1px solid var(--dsp-border);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-widget:first-child {
	padding-top: 0;
	border-top: 0;
}

/* Grupių antraštės */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.005em;
	color: var(--dsp-text);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget-title.ct-expandable-trigger {
	cursor: pointer;
	min-height: 28px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget-title .ct-icon {
	width: 10px;
	color: var(--dsp-muted);
}

/* Filtrų sąrašai (Blocksy) */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) ul.ct-filter-widget {
	gap: 2px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner a {
	min-height: 38px;
	padding: 6px 8px;
	margin-inline: -8px;
	border-radius: 8px;
	font-size: 15px;
	color: var(--dsp-text);
	transition: background-color .15s ease, color .15s ease;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner a:hover {
	background-color: var(--dsp-mint-light);
	color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner a.active {
	color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner a.active .ct-filter-label {
	font-weight: 600;
}

/* Žymimieji langeliai */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner .ct-checkbox {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border-radius: 4px;
	border-color: var(--dsp-border-strong);
	background-color: #fff;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner a:hover .ct-checkbox {
	border-color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner .ct-checkbox:checked {
	border-color: var(--dsp-green);
	background-color: var(--dsp-green);
}

/* Kiekio „piliulės“ */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner a > .ct-filter-count,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories .count {
	min-width: 28px;
	height: 22px;
	padding: 0 7px;
	border: 0;
	border-radius: 50px;
	background-color: #f1f5f3;
	color: var(--dsp-muted);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner a:hover > .ct-filter-count {
	background-color: var(--dsp-mint);
	color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-item-inner a.active > .ct-filter-count {
	background-color: var(--dsp-green);
	color: #fff;
}

/* Spalvų „swatch“ apskritimai */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-widget .ct-swatch-container {
	--swatch-size: 22px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-widget .ct-swatch {
	width: 22px;
	height: 22px;
	box-shadow: inset 0 0 0 1px rgba(19, 19, 19, .14);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-filter-widget a.active .ct-swatch {
	/* žiedas viduje — aktyvus apskritimas nepadidėja ir nepasislenka */
	border-color: var(--dsp-green);
	box-shadow: inset 0 0 0 2px #fff;
}

/* Kategorijų puslapyje: Blocksy kategorijų filtras dubliuoja WC „Kategorijos“ sąrašą (ta pati antraštė) — slepiame */
body.tax-product_cat :is(#sidebar, #woo-filters-panel) .widget_product_categories ~ .ct-widget:has(.ct-filter-widget a[data-key="product_cat"]) {
	display: none;
}

/* WooCommerce „Prekių kategorijos“ valdiklis (tik kategorijų puslapiuose) — kaip Blocksy sąrašas */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories ul.product-categories {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.cat-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	margin: 0 -8px;
	padding: 6px 8px;
	border-radius: 8px;
	font-size: 15px;
	transition: background-color .15s ease;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.cat-item > a {
	flex: 1;
	color: var(--dsp-text);
	text-decoration: none;
}
/* Visa eilutė paspaudžiama */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.cat-item > a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.cat-item:hover {
	background-color: var(--dsp-mint-light);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.cat-item:hover > a {
	color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories .count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-inline-start: auto;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.cat-item:hover > .count {
	background-color: var(--dsp-mint);
	color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.current-cat {
	background-color: var(--dsp-mint-light);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.current-cat > a {
	color: var(--dsp-green);
	font-weight: 600;
}
/* Aktyvi kategorija: kairėje žalias indikatorius */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.current-cat::before {
	content: "";
	position: absolute;
	inset-block: 9px;
	inset-inline-start: 0;
	width: 3px;
	border-radius: 3px;
	background-color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories li.current-cat > .count {
	background-color: var(--dsp-green);
	color: #fff;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .widget_product_categories ul.children {
	flex-basis: 100%;
	margin: 4px 0 0 12px;
	padding: 0;
	list-style: none;
}

/* Kainos filtras (Blocksy) — prekės ženklo spalvos */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-price-filter {
	--theme-palette-color-1: var(--dsp-green);
	--theme-form-field-border-initial-color: var(--dsp-mint);
	padding-top: 6px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-price-filter-slider {
	--handle-size: 20px;
	margin-bottom: 18px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-price-filter-slider [class*="ct-price-filter-range-handle"] {
	border-width: 2px;
	box-shadow: 0 2px 6px rgba(3, 53, 33, .15);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-price-filter-values {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border-radius: 50px;
	background-color: var(--dsp-mint-light);
	color: var(--dsp-muted);
	font-size: 14px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(#sidebar, #woo-filters-panel) .ct-price-filter-values [class*="ct-price-filter"] {
	color: var(--dsp-green);
}

/* Klasikinis WooCommerce kainos filtras (jei būtų naudojamas) */
.widget_price_filter .price_slider_amount {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 14px;
}
.widget_price_filter .price_slider_amount .price_label {
	order: -1;
	font-size: 14px;
}
.widget_price_filter .price_slider_amount .button {
	float: none;
	margin: 0;
}
.widget_price_filter .ui-slider .ui-slider-range,
.widget_price_filter .ui-slider .ui-slider-handle {
	background-color: #033521;
}
.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background-color: #d5efe0;
}

/* ===== Mobilus / planšetės filtrų panelis ===== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .ct-panel-actions {
	min-height: 64px;
	padding-block: 12px;
	border-bottom: 1px solid var(--dsp-border);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .ct-panel-heading {
	font-size: 20px;
	font-weight: 700;
	color: var(--dsp-text);
	text-transform: none;
	letter-spacing: 0;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .ct-toggle-close {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	border-color: var(--dsp-border);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .ct-panel-content-inner {
	padding-top: 22px;
	padding-bottom: 40px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .ct-filter-item-inner a,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .widget_product_categories li.cat-item {
	min-height: 44px;
}

/* =====================================================================
 * 2. ĮRANKIŲ JUOSTA (rezultatų skaičius, rikiavimas, mobilus „Filtrai“)
 * ===================================================================== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top {
	gap: 12px;
	margin-bottom: 24px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .woocommerce-result-count {
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--dsp-muted);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .woocommerce-ordering select {
	height: 44px;
	min-width: 240px;
	padding-inline: 14px 36px;
	border: 1px solid var(--dsp-border);
	border-radius: 6px;
	background-color: #fff;
	color: var(--dsp-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .15s ease;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .woocommerce-ordering select:hover,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .woocommerce-ordering select:focus {
	border-color: var(--dsp-green);
}

/* „Filtrai“ mygtukas (planšetė / mobilus) */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .ct-toggle-filter-panel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 44px;
	padding-inline: 18px;
	border: 1px solid var(--dsp-green);
	border-radius: 6px;
	background-color: var(--dsp-green);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	--theme-icon-color: #fff;
	--theme-icon-size: 14px;
	--toggle-button-radius: 6px;
	--toggle-button-padding: 0 18px;
	--toggle-button-background: var(--dsp-green);
	--toggle-button-border-color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .ct-toggle-filter-panel:is(:hover, :active) {
	background-color: var(--dsp-green-hover);
	border-color: var(--dsp-green-hover);
	color: #fff;
	--toggle-button-background: var(--dsp-green-hover);
	--toggle-button-border-color: var(--dsp-green-hover);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .ct-toggle-filter-panel svg {
	fill: currentColor;
}

/* Telefone: „Filtrai“ ir „Rikiuoti“ — du vienodi mygtukai per visą plotį */
@media (max-width: 689.98px) {
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		margin-bottom: 20px;
	}
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .ct-toggle-filter-panel {
		width: 100%;
	}
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .woocommerce-ordering {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		height: 44px;
		margin: 0;
		border: 1px solid var(--dsp-border-strong);
		border-radius: 6px;
		background-color: #fff;
		color: var(--dsp-green);
		font-size: 15px;
		font-weight: 600;
	}
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .woocommerce-ordering::before {
		content: "Rikiuoti";
		order: 2;
		pointer-events: none;
	}
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .woocommerce-ordering .ct-sort-icon {
		position: static;
		order: 1;
		width: 15px;
		height: 15px;
		margin: 0;
		fill: currentColor;
		pointer-events: none;
	}
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woo-listing-top .woocommerce-ordering select {
		position: absolute;
		inset: 0;
		width: 100%;
		min-width: 0;
		height: 100%;
		opacity: 0;
	}
}

/* =====================================================================
 * 3. AKTYVŪS FILTRAI (žymos virš prekių)
 * ===================================================================== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-products-container > .ct-active-filters {
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-active-filters > span {
	padding-inline-end: 4px;
	border: 0;
	color: var(--dsp-muted);
	font-size: 14px;
	font-weight: 600;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-active-filters > a {
	gap: 7px;
	min-height: 34px;
	padding: 4px 14px 4px 12px;
	border: 1px solid var(--dsp-mint);
	border-radius: 50px;
	background-color: var(--dsp-mint-light);
	color: var(--dsp-green);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-active-filters > a:hover {
	background-color: var(--dsp-green);
	border-color: var(--dsp-green);
	color: #fff;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-active-filters > a svg {
	width: 9px;
	height: 9px;
	flex-shrink: 0;
}
/* „Išvalyti filtrus“ — paskutinis, kaip teksto nuoroda */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-active-filters > span + a {
	order: 99;
	padding-inline: 6px;
	border-color: transparent;
	background-color: transparent;
	color: var(--dsp-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-active-filters > span + a:hover {
	background-color: transparent;
	border-color: transparent;
	color: var(--dsp-green);
}

/* =====================================================================
 * 4. PREKIŲ TINKLELIS IR KORTELĖS
 * ===================================================================== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products[data-products] {
	--grid-columns-gap: 24px;
	row-gap: 24px;
	column-gap: 24px;
}

:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product {
	display: flex;
	flex-direction: column;
	padding: 10px 10px 16px;
	border: 1px solid var(--dsp-border);
	border-radius: 12px;
	background-color: #fff;
	box-shadow: var(--dsp-shadow);
	text-align: start;
	transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
@media (hover: hover) {
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product:hover {
		border-color: var(--dsp-mint);
		box-shadow: var(--dsp-shadow-hover);
		transform: translateY(-2px);
	}
}

/* Nuotrauka */
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product figure {
	margin: 0 0 14px;
	overflow: hidden;
	border-radius: 8px;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-media-container {
	border-radius: 8px;
	overflow: hidden;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-media-container img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
@media (hover: hover) {
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product:hover .ct-media-container img {
		transform: scale(1.04);
	}
}

/* „Akcija“ ženkliukas */
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .onsale {
	top: 10px;
	left: 10px;
	right: auto;
	z-index: 2;
	min-height: 0;
	padding: 5px 10px;
	border: 0;
	border-radius: 6px;
	/* tas pats stilius kaip prekės puslapyje (shop-single.css) */
	background-color: var(--dsp-mint);
	color: var(--dsp-green);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	/* matomas ir ant tamsių nuotraukų */
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}

/* Greitos peržiūros mygtukas */
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-woo-card-extra {
	top: 10px;
	right: 10px;
	z-index: 2;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-open-quick-view {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: #fff;
	color: var(--dsp-green);
	box-shadow: 0 2px 10px rgba(3, 53, 33, .12);
	--theme-icon-color: var(--dsp-green);
	transition: background-color .15s ease, opacity .2s ease, transform .2s ease;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-open-quick-view:hover {
	background-color: var(--dsp-green);
	--theme-icon-color: #fff;
	--theme-icon-hover-color: #fff;
}
@media (hover: hover) and (min-width: 1000px) {
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-open-quick-view {
		opacity: 0;
		transform: translateY(-4px);
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product:is(:hover, :focus-within) .ct-open-quick-view {
		opacity: 1;
		transform: none;
	}
}

/* Turinys: kategorija, pavadinimas, kaina */
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product > :is(.entry-meta, h2, .price, .star-rating) {
	padding-inline: 4px;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .entry-meta {
	display: block;
	min-width: 0;
	max-width: 100%;
	margin: 0 0 6px;
	overflow: hidden;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .entry-meta li {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dsp-muted);
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .entry-meta a {
	color: inherit;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .entry-meta a:hover {
	color: var(--dsp-green);
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	/* visada 2 eilučių aukštis — kainos eilutėje vienodame aukštyje */
	min-height: calc(2em * 1.35);
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -.005em;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .woocommerce-loop-product__title a {
	color: var(--dsp-text);
	transition: color .15s ease;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .woocommerce-loop-product__title a:hover {
	color: var(--dsp-green);
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .price {
	display: block;
	margin: 0 0 16px;
	color: var(--dsp-green);
	font-size: 17px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .price .sale-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 8px;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .price del {
	order: 2;
	color: var(--dsp-muted);
	font-size: 14px;
	font-weight: 500;
	opacity: 1;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .price ins {
	order: 1;
	text-decoration: none;
	color: var(--dsp-green);
}

/* Mygtukas: visada kortelės apačioje, per visą plotį, vienodo aukščio */
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-woo-card-actions {
	align-self: stretch;
	justify-content: stretch;
	width: 100%;
	margin-top: auto;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-woo-card-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	width: 100%;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}
:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-woo-card-actions .added_to_cart {
	display: none;
}

/* Planšetė: 3 stulpeliai vietoje 2 — kortelės neištemptos */
@media (min-width: 690px) and (max-width: 999.98px) {
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products[data-products] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 20px;
		column-gap: 16px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .woocommerce-loop-product__title {
		font-size: 15px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-woo-card-actions .button {
		font-size: 14px;
	}
}

/* Telefonas: 2 stulpeliai, kompaktiškesnės kortelės */
@media (max-width: 689.98px) {
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products[data-products] {
		--grid-columns-gap: 12px;
		row-gap: 14px;
		column-gap: 12px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product {
		padding: 6px 6px 10px;
		border-radius: 10px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product figure {
		margin-bottom: 10px;
		border-radius: 6px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product :is(.ct-media-container, .ct-media-container img) {
		border-radius: 6px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product > :is(.entry-meta, h2, .price, .star-rating) {
		padding-inline: 2px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .entry-meta {
		margin-bottom: 4px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .entry-meta li {
		font-size: 11px;
		letter-spacing: .04em;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .woocommerce-loop-product__title {
		margin-bottom: 6px;
		font-size: 14px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .price {
		margin-bottom: 12px;
		font-size: 15px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .price del {
		font-size: 12px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-woo-card-actions .button {
		min-height: 44px;
		padding: 6px 8px;
		font-size: 13px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .onsale {
		top: 8px;
		left: 8px;
		padding: 4px 8px;
		font-size: 11px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-woo-card-extra {
		top: 8px;
		right: 8px;
	}
	:is(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag, body.single-product :where(section.related, section.up-sells), body.woocommerce-cart :where(.cross-sells)) ul.products[data-products] > li.product .ct-open-quick-view {
		width: 34px;
		height: 34px;
	}
}

/* =====================================================================
 * 5. PUSLAPIAVIMAS IR „RODYTI DAUGIAU“
 * ===================================================================== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination {
	margin-top: 48px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination[data-pagination="simple"] {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination[data-pagination="simple"] > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	grid-column: 2;
	margin: 0;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination[data-pagination="simple"] > div .page-numbers {
	margin: 0;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination[data-pagination="simple"] .prev {
	grid-column: 1;
	justify-self: start;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination[data-pagination="simple"] .next {
	grid-column: 3;
	justify-self: end;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--dsp-border);
	border-radius: 6px;
	background-color: #fff;
	color: var(--dsp-text);
	font-size: 15px;
	font-weight: 600;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination a.page-numbers:hover {
	border-color: var(--dsp-green);
	color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination .page-numbers.current {
	border-color: var(--dsp-green);
	background-color: var(--dsp-green);
	color: #fff;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination > div .page-numbers {
	flex: 0 0 auto;
	width: auto;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination :is(.prev, .next) {
	gap: 8px;
	padding-inline: 16px;
	font-size: 14px;
	text-transform: none;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination .ct-load-more {
	min-height: 48px;
	padding-inline: 28px;
	border-radius: 6px;
	background-color: var(--dsp-green);
	color: #fff;
	font-weight: 600;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-pagination .ct-load-more:hover {
	background-color: var(--dsp-green-hover);
}

/* =====================================================================
 * 6. TUŠČIA BŪSENA („Prekių nerasta“)
 * ===================================================================== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(.woocommerce-no-products-found, .woocommerce-info.woocommerce-no-products-found) {
	margin: 0;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-no-products-found .woocommerce-info,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) p.woocommerce-info.woocommerce-no-products-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 56px 24px;
	border: 1px dashed var(--dsp-border-strong);
	border-radius: 12px;
	background-color: var(--dsp-mint-light);
	color: var(--dsp-text);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-no-products-found .woocommerce-info::before,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) p.woocommerce-info.woocommerce-no-products-found::before {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 0 8px;
	border-radius: 50%;
	/* ikona yra kaukė (mask) — spalvą lemia background-color */
	background-color: var(--dsp-green);
	color: var(--dsp-green);
	font-size: 22px;
	-webkit-mask-size: 26px 26px;
	mask-size: 26px 26px;
}
/* Kai įjungti filtrai — patarimas, ką daryti toliau */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-active-filters ~ .woocommerce-no-products-found .woocommerce-info::after {
	content: "Pabandykite pakeisti arba išvalyti filtrus.";
	display: block;
	clear: none;
	font-size: 14px;
	font-weight: 400;
	color: var(--dsp-muted);
}

/* Kai prekių nerasta, Blocksy nepateikia filtrų stulpelio (lieka tuščias <aside> arba tik kainos filtras, kurį slepiame) — turinys per visą plotį */
@media (min-width: 1000px) {
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-container[data-sidebar]:is(:has(> aside:empty), :has(.woocommerce-no-products-found):has(> aside > .ct-sidebar > .ct-widget:only-child .ct-price-filter)) {
		grid-template-columns: minmax(0, 1fr);
	}
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-container[data-sidebar]:is(:has(> aside:empty), :has(.woocommerce-no-products-found):has(> aside > .ct-sidebar > .ct-widget:only-child .ct-price-filter)) > section {
		grid-column: 1 / -1;
	}
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ct-container[data-sidebar]:is(:has(> aside:empty), :has(.woocommerce-no-products-found):has(> aside > .ct-sidebar > .ct-widget:only-child .ct-price-filter)) > aside {
		display: none;
	}
}

/* Kai prekių nerasta: kainos filtras perskaičiuojamas iš tuščio rinkinio (pvz. „90 € – 9 €“) — slepiame */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag):has(.woocommerce-no-products-found) :is(#sidebar, #woo-filters-panel) :is(.ct-price-filter-values, .ct-price-filter-slider),
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag):has(.woocommerce-no-products-found) :is(#sidebar, #woo-filters-panel) .ct-widget:has(.ct-price-filter) {
	display: none;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag):has(.woocommerce-no-products-found) .ct-active-filters > a:has(.woocommerce-Price-amount) {
	display: none;
}

/* =====================================================================
 * 7. FILTRŲ PANELIO APAČIA („Išvalyti“ / „Rodyti prekes“), planšetė ir telefonas
 * ===================================================================== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .dsp-filter-footer {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	padding-bottom: max(12px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--dsp-border);
	background-color: #fff;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .dsp-filter-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding-inline: 18px;
	border: 1px solid var(--dsp-border-strong);
	border-radius: 6px;
	background-color: #fff;
	color: var(--dsp-green);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .dsp-filter-reset:hover {
	border-color: var(--dsp-green);
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .dsp-filter-apply {
	flex: 1;
	min-height: 48px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
}
@media (min-width: 1000px) {
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #woo-filters-panel .dsp-filter-footer {
		display: none;
	}
}

/* iOS: < 16px laukai sukelia priartinimą */
@media (max-width: 999.98px) {
	body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-ordering select {
		font-size: 16px;
	}
}
