/* Breadcrumbs above the product */
.uvdtf-breadcrumb {
	margin: 0 0 14px;
	font-size: 13px;
	color: #64748b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.uvdtf-breadcrumb a { color: #6d28d9; text-decoration: none; }
.uvdtf-breadcrumb a:hover { text-decoration: underline; }
.uvdtf-breadcrumb .sep { margin: 0 6px; color: #cbd5e1; }

/* Admin-only cost price */
.uvdtf-admin-cost {
	display: inline-block;
	margin: 6px 0 10px;
	padding: 6px 12px;
	background: #fff7ed;
	border: 1px dashed #fdba74;
	border-radius: 8px;
	font-size: 13px;
	color: #9a3412;
}
.uvdtf-admin-cost b { color: #7c2d12; }

/* Colour swatches (cross-link to sibling colour-products) */
.uvdtf-colors { margin: 6px 0 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.uvdtf-colors__head { font-size: 14px; color: #475569; margin-bottom: 8px; }
.uvdtf-colors__head b { color: #1f2937; }
.uvdtf-colors__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.uvdtf-color {
	display: block;
	width: 48px; height: 48px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid #e5e7eb;
	background: #fff;
	cursor: pointer;
	transition: border-color .12s, box-shadow .12s, transform .12s;
}
.uvdtf-color img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uvdtf-color__hex { display: block; width: 100%; height: 100%; }
.uvdtf-color:hover { border-color: #a78bfa; transform: translateY(-1px); }
.uvdtf-color.is-current { border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, .25); cursor: default; }
.uvdtf-color.is-out { opacity: .4; cursor: not-allowed; filter: grayscale(.6); }

/* Size buttons with per-size stock — big size letter + status dot */
.uvdtf-sizes { margin: 14px 0 8px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.uvdtf-sizes__head { font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
.uvdtf-sizes__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.uvdtf-size {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	min-width: 60px; height: 52px; padding: 0 14px;
	border: 1.5px solid #ddd6fe; border-radius: 12px;
	background: #fff; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s;
	font-family: inherit;
}
.uvdtf-size:hover { border-color: #a78bfa; }
.uvdtf-size.is-active { border-color: #7c3aed; background: #f5f3ff; box-shadow: 0 0 0 2px rgba(124, 58, 237, .2); }
.uvdtf-size__label { font-size: 18px; font-weight: 800; color: #1f2937; line-height: 1; }
/* Availability dot in the top-right corner */
.uvdtf-size__dot {
	position: absolute; top: 7px; right: 7px;
	width: 9px; height: 9px; border-radius: 50%;
	box-sizing: border-box;
}
.uvdtf-size__dot.is-in  { background: #22c55e; }
.uvdtf-size__dot.is-low { background: #f59e0b; }
.uvdtf-size__dot.is-out { background: #ef4444; }
.uvdtf-size.is-out { cursor: not-allowed; background: #f8fafc; border-color: #e5e7eb; }
.uvdtf-size.is-out .uvdtf-size__label { color: #b6bdc7; text-decoration: line-through; }
/* Legend — items stacked one under another (fits the narrow size column) */
.uvdtf-sizes__legend { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 12px; color: #64748b; }
.uvdtf-sizes__leg { display: flex; align-items: center; gap: 6px; }
.uvdtf-sizes__legend .uvdtf-size__dot { position: static; flex: 0 0 auto; }
.uvdtf-sizes__hint { font-size: 12px; color: #6d28d9; font-weight: 600; margin-top: 6px; }
/* Hide the theme's native size selector/swatches when our buttons are present. */
.single-product form.cart:has(.uvdtf-sizes) table.variations { display: none; }

/* Remove the social share row on product pages */
.single-product .product-share { display: none !important; }

/* 2-column layout: Крок 1 Розмір | Крок 2 Друк. Tier prices go below as info. */
.uvdtf-print__cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.uvdtf-print__aside { flex: 0 0 124px; }
.uvdtf-print__main { flex: 1 1 280px; min-width: 0; }
.uvdtf-print__aside .uvdtf-sizes { margin: 0; }
.uvdtf-print__aside .uvdtf-sizes__grid { flex-direction: column; gap: 7px; }
.uvdtf-print__aside .uvdtf-size { width: 100%; min-width: 0; height: 46px; }
/* Step chips (Крок 1 Розмір, Крок 2 Друк) */
.uvdtf-print__step { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: #1f2937; margin: 0 0 10px; }
.uvdtf-print__step-num { background: #7c3aed; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
/* Tier price table — informational block below the whole form */
.uvdtf-tiers-info { margin: 16px 0 0; }
.uvdtf-tiers-info .uvdtf-print__tiers { margin: 0; background: #fbfaff; }

/* Buy bar on TOP (quantity + button + total), size/print block below — via flex order */
.single-product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.single-product form.cart .woocommerce-variation-add-to-cart > .quantity { order: 1; }
.single-product form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button { order: 2; }
.single-product form.cart .woocommerce-variation-add-to-cart > .uvdtf-cart-total { order: 3; }
.single-product form.cart .woocommerce-variation-add-to-cart > .uvdtf-print { order: 5; flex: 1 1 100%; width: 100%; margin-top: 6px; }
.uvdtf-cart-total {
	display: inline-flex; align-items: baseline; gap: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.uvdtf-cart-total span { font-size: 14px; color: #475569; }
.uvdtf-cart-total b { font-size: 22px; font-weight: 800; color: #7c3aed; }
/* "від" prefix on the garment price */
.uvdtf-from { font-size: 0.62em; color: #64748b; font-weight: 600; text-transform: lowercase; }
.uvdtf-from-qty { font-size: 0.6em; color: #94a3b8; font-weight: 600; white-space: nowrap; }
@media (max-width: 680px) {
	.uvdtf-print__cols { gap: 14px; }
	.uvdtf-print__aside, .uvdtf-print__main { flex: 1 1 100%; width: 100%; }
	.uvdtf-print__aside .uvdtf-sizes__grid { flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.uvdtf-print__aside .uvdtf-size { width: auto; min-width: 60px; }
	.uvdtf-print__aside .uvdtf-sizes__legend { flex-direction: row; gap: 16px; }
}

/* Shop print block on the WooCommerce product page. */
.uvdtf-print {
	width: 100%;
	flex-basis: 100%;
	clear: both;
	box-sizing: border-box;
	margin: 16px 0;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #faf9ff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.uvdtf-print * { box-sizing: border-box; }
/* Keep the WooCommerce quantity + add-to-cart on their own full-width row below the block. */
.single-product form.cart .quantity { clear: both; }
.single-product form.cart .uvdtf-print + .quantity { margin-top: 4px; }
.uvdtf-print__head {
	font-size: 15px;
	margin-bottom: 12px;
	color: #1f2937;
}

/* Quantity tier grid (сетка) */
.uvdtf-print__tiers {
	margin-bottom: 14px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #ddd6fe;
	border-radius: 8px;
}
.uvdtf-print__tiers-head { font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
.uvdtf-print__tiers-list { list-style: none; margin: 0; padding: 0; }
.uvdtf-print__tier {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	padding: 4px 0;
	border-bottom: 1px dashed #eee;
}
.uvdtf-print__tier:last-child { border-bottom: 0; }
.uvdtf-print__tier span { color: #475569; }
.uvdtf-print__tier b { color: #1f2937; }
.uvdtf-print__tier.is-base { color: #166534; }
.uvdtf-print__tier.is-base b { color: #16a34a; }
.uvdtf-print__tiers-note { display: block; margin-top: 6px; color: #64748b; font-size: 12px; line-height: 1.4; }
.uvdtf-print__rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.uvdtf-print__row-item {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 8px;
	background: #fff;
	border: 1px solid #ddd6fe;
	border-radius: 8px;
}
.uvdtf-print__cell { display: flex; flex-direction: column; gap: 3px; font-size: 13px; flex: 1; min-width: 0; }
.uvdtf-print__cell span { color: #475569; }
.uvdtf-print__cell select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #ddd6fe;
	border-radius: 7px;
	background: #faf9ff;
	font-size: 14px;
	line-height: 1.4;
	height: auto;
	min-height: 44px;
	box-sizing: border-box;
}
.uvdtf-print__remove {
	flex: 0 0 auto;
	width: 40px; height: 44px;
	border: 1px solid #fecaca;
	background: #fff5f5;
	color: #dc2626;
	border-radius: 7px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.uvdtf-print__remove:hover { background: #fee2e2; }
.uvdtf-print__add {
	display: inline-block;
	margin-bottom: 14px;
	padding: 8px 14px;
	border: 1px dashed #a78bfa;
	background: #fff;
	color: #6d28d9;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
/* Keep our text color on hover — XStore paints button text white on hover. */
.uvdtf-print__add,
.uvdtf-print__add:hover,
.uvdtf-print__add:focus { color: #6d28d9 !important; }
.uvdtf-print__add:hover { background: #f5f3ff; border-color: #7c3aed; }

.uvdtf-print__artwork { margin-bottom: 12px; }
.uvdtf-print__artwork label { display: block; font-size: 14px; }
.uvdtf-print__artwork select {
	width: 100%;
	max-width: 380px;
	margin-top: 4px;
	padding: 8px 10px;
	border: 1px solid #ddd6fe;
	border-radius: 8px;
	background: #fff;
}
.uvdtf-print__hint { display: block; color: #64748b; font-size: 12px; margin-top: 4px; }

.uvdtf-print__cart-hint {
	margin: 4px 0 10px;
	padding: 8px 10px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 8px;
	font-size: 13px;
	color: #166534;
}
.uvdtf-print__price {
	border-top: 1px dashed #ddd6fe;
	padding-top: 10px;
}
.uvdtf-print__prow {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #475569;
	padding: 3px 0;
}
.uvdtf-print__prow b { color: #1f2937; }
/* Ставка поточної тиражної сходинки нанесення (термоперенос). */
.uvdtf-print__rate { color: #7c3aed; font-size: 12px; white-space: nowrap; }
.uvdtf-print__prow--total {
	border-top: 1px solid #e5e7eb;
	margin-top: 6px;
	padding-top: 8px;
	font-size: 17px;
}
.uvdtf-print__prow--total span { font-weight: 600; color: #1f2937; }
.uvdtf-print__prow--total b { color: #7c3aed; font-weight: 800; }

/* ===== Artwork upload on product page ===== */
.uvdtf-upload { margin: 10px 0 12px; padding: 12px; border: 1px dashed #c4b5fd; border-radius: 10px; background: #faf5ff; }
.uvdtf-upload__label { display: block; font-weight: 600; color: #6d28d9; margin-bottom: 8px; }
.uvdtf-upload__btn { display: inline-block; cursor: pointer; padding: 8px 14px; background: #7c3aed; color: #fff; border-radius: 8px; font-weight: 600; font-size: 14px; }
.uvdtf-upload__btn:hover { background: #6d28d9; }
.uvdtf-upload__list { margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.uvdtf-upload__item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border: 1px solid #e9d5ff; border-radius: 8px; font-size: 13px; }
.uvdtf-upload__item.is-ok { border-color: #86efac; }
.uvdtf-upload__item.is-error { border-color: #fca5a5; background: #fef2f2; }
.uvdtf-upload__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2937; }
.uvdtf-upload__meta { color: #6b7280; font-size: 12px; white-space: nowrap; }
.uvdtf-upload__rm { border: none; background: #f3e8ff; color: #7c3aed; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; }
.uvdtf-upload__rm:hover { background: #ef4444; color: #fff; }

/* ===== Size guide ===== */
.uvdtf-sizeguide { margin-top: 12px; border-top: 1px solid #eee; padding-top: 10px; }
.uvdtf-sizeguide > summary { cursor: pointer; font-weight: 600; color: #6d28d9; list-style: none; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.uvdtf-sizeguide > summary::-webkit-details-marker { display: none; }
.uvdtf-sizeguide > summary:hover { color: #5b21b6; }
.uvdtf-sizeguide[open] > summary { margin-bottom: 8px; }
.uvdtf-sizeguide__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.uvdtf-sizeguide__table th, .uvdtf-sizeguide__table td { border: 1px solid #e9d5ff; padding: 5px 8px; text-align: center; }
.uvdtf-sizeguide__table thead th { background: #faf5ff; color: #6d28d9; font-weight: 600; }
.uvdtf-sizeguide__table tbody td:first-child { font-weight: 600; }
.uvdtf-sizeguide__table tbody tr:nth-child(even) { background: #fcfbff; }
.uvdtf-sizeguide__note { font-size: 11px; color: #6b7280; margin: 8px 0 0; line-height: 1.4; }

/* ===== Size guide: header trigger + popup ===== */
.uvdtf-sizehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.uvdtf-sizeguide-btn { background: none; border: 1px solid #c4b5fd; color: #6d28d9; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; line-height: 1.4; }
.uvdtf-sizeguide-btn:hover { background: #f5f3ff; border-color: #a78bfa; }
.uvdtf-sizemodal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.uvdtf-sizemodal[hidden] { display: none; }
.uvdtf-sizemodal__overlay { position: absolute; inset: 0; background: rgba(17,24,39,.55); }
.uvdtf-sizemodal__box { position: relative; background: #fff; border-radius: 14px; padding: 22px 22px 18px; max-width: 460px; width: 100%; max-height: 86vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.uvdtf-sizemodal__x { position: absolute; top: 10px; right: 12px; border: none; background: #f3e8ff; color: #7c3aed; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.uvdtf-sizemodal__x:hover { background: #ef4444; color: #fff; }
.uvdtf-sizemodal__title { margin: 0 0 14px; font-size: 18px; color: #1f2937; }

/* ===== Size guide: polished table ===== */
.uvdtf-sizeguide-btn { display: inline-flex; align-items: center; gap: 5px; }
.uvdtf-sizeguide-btn__ico { font-size: 14px; }
.uvdtf-sizemodal__box { max-width: 480px; padding: 24px; }
.uvdtf-sizemodal__title { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; color: #4c1d95; }
.uvdtf-sizemodal__scroll { max-height: 60vh; overflow: auto; border-radius: 12px; border: 1px solid #ece9fb; }
.uvdtf-sizemodal__scroll .uvdtf-sizeguide__table { border: 0; }
.uvdtf-sizeguide__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; overflow: hidden; }
.uvdtf-sizeguide__table thead th { position: sticky; top: 0; z-index: 1; background: linear-gradient(180deg,#7c3aed,#6d28d9); color: #fff; font-weight: 700; padding: 11px 10px; text-align: center; border: 0; line-height: 1.2; }
.uvdtf-sizeguide__table thead th small { display: block; font-weight: 500; font-size: 10px; opacity: .8; }
.uvdtf-sizeguide__table tbody th, .uvdtf-sizeguide__table tbody td { padding: 10px; text-align: center; border: 0; border-bottom: 1px solid #f0eefb; }
.uvdtf-sizeguide__table tbody th { background: #faf5ff; color: #4c1d95; font-weight: 800; font-size: 15px; }
.uvdtf-sizeguide__table tbody tr:nth-child(even) td { background: #fcfbff; }
.uvdtf-sizeguide__table tbody tr:hover th { background: #f3e8ff; }
.uvdtf-sizeguide__table tbody tr:hover td { background: #f6f2ff; }
.uvdtf-sizeguide__table tbody tr:last-child th, .uvdtf-sizeguide__table tbody tr:last-child td { border-bottom: 0; }
.uvdtf-sizeguide__note { font-size: 12px; color: #6b7280; margin: 12px 2px 0; line-height: 1.5; }

/* ===== Size modal: hardening (portal to body, theme-proof) ===== */
body > .uvdtf-sizemodal { position: fixed !important; inset: 0 !important; z-index: 999999 !important; margin: 0 !important; display: flex !important; align-items: center; justify-content: center; }
body > .uvdtf-sizemodal[hidden] { display: none !important; }
.uvdtf-sizemodal * { box-sizing: border-box; }
.uvdtf-sizemodal__box { box-sizing: border-box; }
.uvdtf-sizemodal__x { min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; width: 32px !important; height: 32px !important; border-radius: 50% !important; display: flex !important; align-items: center; justify-content: center; flex: 0 0 auto; }
.uvdtf-sizemodal__title { padding-right: 36px; }

/* ===== Catalog card: available sizes ===== */
.uvdtf-loop-sizes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 6px 0 2px; }
.uvdtf-loop-size { font-size: 11px; line-height: 1; padding: 3px 6px; border: 1px solid #e5e0f5; border-radius: 5px; color: #4c1d95; background: #faf8ff; font-weight: 600; }

/* ===== Size modal: fit table, no right-column clipping ===== */
body > .uvdtf-sizemodal .uvdtf-sizemodal__box { max-width: min(480px, 94vw); width: 100%; }
.uvdtf-sizemodal__scroll { overflow-x: hidden; }
.uvdtf-sizeguide__table { table-layout: fixed; }
.uvdtf-sizeguide__table th, .uvdtf-sizeguide__table td { word-break: break-word; overflow-wrap: anywhere; padding-left: 6px; padding-right: 6px; }
.uvdtf-sizeguide__table thead th { font-size: 12px; }
.uvdtf-sizeguide__table thead th small { font-size: 9px; }

/* ===== Size modal: BULLETPROOF table fit (overrides any theme/earlier rule) ===== */
body > .uvdtf-sizemodal .uvdtf-sizemodal__box { max-width: min(520px, 96vw) !important; }
body > .uvdtf-sizemodal .uvdtf-sizemodal__scroll { overflow: auto !important; }
body > .uvdtf-sizemodal table.uvdtf-sizeguide__table { table-layout: fixed !important; width: 100% !important; overflow: visible !important; margin: 0 !important; }
body > .uvdtf-sizemodal .uvdtf-sizeguide__table th,
body > .uvdtf-sizemodal .uvdtf-sizeguide__table td { white-space: normal !important; word-break: break-word; overflow-wrap: anywhere; padding: 9px 4px !important; text-align: center !important; vertical-align: middle !important; text-transform: none !important; }
body > .uvdtf-sizemodal .uvdtf-sizeguide__table thead th { font-size: 11px !important; line-height: 1.25 !important; }
body > .uvdtf-sizemodal .uvdtf-sizeguide__table thead th small { display: block; font-weight: 500; font-size: 9px; opacity: .85; }

/* ===== Catalog filters: colour dots + colour list scroll ===== */
.uvdtf-cdot { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid #cbd5e1; vertical-align: middle; margin-right: 7px; flex: 0 0 auto; }
#woocommerce_layered_nav-2 .woocommerce-widget-layered-nav-list { max-height: 320px; overflow-y: auto; }
.woocommerce-widget-layered-nav-list a { display: inline-flex; align-items: center; }

/* ===== Size filter as TILES / chips (#woocommerce_layered_nav-1 = Розмір) ===== */
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list {
	display: flex !important; flex-wrap: wrap !important; gap: 8px !important;
	margin: 0 !important; padding: 0 !important; list-style: none !important; max-height: none !important;
}
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li,
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list__item {
	display: block !important; width: auto !important; float: none !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none !important;
}
/* kill the theme's checkbox pseudo-element on size items */
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li::before,
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li::after,
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li a::before,
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li a::after {
	display: none !important; content: none !important;
}
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li a {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	min-width: 44px; padding: 8px 13px !important; margin: 0 !important;
	border: 1.5px solid #d7dbe3 !important; border-radius: 9px !important;
	font-size: 14px !important; font-weight: 700 !important; color: #1f2937 !important; text-decoration: none !important;
	background: #fff !important; line-height: 1 !important; box-shadow: none !important;
	transition: border-color .12s, background .12s, color .12s;
}
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li a:hover {
	border-color: #a78bfa !important; background: #f5f3ff !important;
}
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list .count { display: none !important; }
/* sizes with no in-stock product are emptied server-side → hide the empty tile */
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li:empty { display: none !important; }
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item--chosen a {
	border-color: #7c3aed !important; background: #ede9fe !important; color: #6d28d9 !important;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, .18) !important; font-weight: 800 !important;
}
#woocommerce_layered_nav-1 .woocommerce-widget-layered-nav-list li.woocommerce-widget-layered-nav-list__item--chosen a::after {
	content: " ✕" !important; display: inline !important; font-size: 11px; margin-left: 4px; opacity: .75;
}

/* ===== Colour filter (#woocommerce_layered_nav-2): rows + chosen highlight ===== */
#woocommerce_layered_nav-2 .woocommerce-widget-layered-nav-list__item {
	padding: 5px 8px !important; margin: 1px 0 !important; border-radius: 8px; transition: background .12s;
}
#woocommerce_layered_nav-2 .woocommerce-widget-layered-nav-list__item:hover { background: #f8fafc; }
#woocommerce_layered_nav-2 .woocommerce-widget-layered-nav-list__item--chosen { background: #f5f3ff !important; }
#woocommerce_layered_nav-2 .woocommerce-widget-layered-nav-list__item--chosen a { color: #6d28d9 !important; font-weight: 700 !important; }

/* ===== Active filters bar (count + removable chips + reset) ===== */
.uvdtf-activefilters {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin: 0 0 16px; padding: 10px 12px;
	background: #f8fafc; border: 1px solid #e8ebf0; border-radius: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px;
}
.uvdtf-af__count { color: #475569; margin-right: 4px; }
.uvdtf-af__count b { color: #7c2d12; }
.uvdtf-af__chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 11px; border-radius: 999px; text-decoration: none;
	background: #ede9fe; color: #5b21b6 !important; font-weight: 600; border: 1px solid #ddd6fe;
	transition: background .12s, border-color .12s;
}
.uvdtf-af__chip:hover { background: #ddd6fe; border-color: #c4b5fd; }
.uvdtf-af__chip span { font-size: 15px; line-height: 1; opacity: .7; }
.uvdtf-af__reset {
	margin-left: auto; color: #b91c1c !important; text-decoration: none; font-weight: 600; white-space: nowrap;
}
.uvdtf-af__reset:hover { text-decoration: underline; }

/* ===== Category menu (pretty) — #woocommerce_product_categories-1 ===== */
#woocommerce_product_categories-1 .product-categories,
#woocommerce_product_categories-1 .product-categories ul {
	list-style: none !important; margin: 0 !important; padding: 0 !important;
}
#woocommerce_product_categories-1 .cat-item { margin: 0 !important; padding: 0 !important; border: 0 !important; }

/* top parent "Одяг" = section header */
#woocommerce_product_categories-1 > .product-categories > .cat-item > a {
	display: flex !important; align-items: center; justify-content: space-between;
	padding: 6px 10px 8px !important; margin-bottom: 6px;
	font-size: 12px !important; font-weight: 800 !important; letter-spacing: .05em; text-transform: uppercase;
	color: #94a3b8 !important; text-decoration: none !important; border-bottom: 1px solid #eef0f4;
	transition: color .14s;
}
#woocommerce_product_categories-1 > .product-categories > .cat-item > a:hover { color: #6d28d9 !important; }

/* children = nav pills */
#woocommerce_product_categories-1 .children { margin: 4px 0 0 !important; padding: 0 !important; }
#woocommerce_product_categories-1 .children .cat-item > a {
	display: flex !important; align-items: center; justify-content: space-between; gap: 8px;
	padding: 9px 12px !important; border-radius: 9px;
	color: #475569 !important; font-weight: 600 !important; font-size: 14px !important; text-decoration: none !important;
	transition: background .14s, color .14s, padding-left .14s;
}
#woocommerce_product_categories-1 .children .cat-item > a:hover {
	background: #f5f3ff !important; color: #6d28d9 !important; padding-left: 16px !important;
}
#woocommerce_product_categories-1 .children .current-cat > a {
	background: #7c3aed !important; color: #fff !important;
}
#woocommerce_product_categories-1 .children .current-cat > a:hover { background: #6d28d9 !important; padding-left: 12px !important; }

/* nested grandchildren (Фартухи under Аксесуари) */
#woocommerce_product_categories-1 .children .children {
	margin: 2px 0 4px 12px !important; padding-left: 8px !important; border-left: 2px solid #ede9fe;
}
#woocommerce_product_categories-1 .children .children .cat-item > a { font-size: 13px !important; color: #64748b !important; padding: 7px 12px !important; }

/* count badge */
#woocommerce_product_categories-1 .count {
	background: #eef2f7; color: #64748b; font-size: 11px; font-weight: 700;
	padding: 1px 8px; border-radius: 999px; line-height: 1.6; flex: 0 0 auto;
}
#woocommerce_product_categories-1 .children .cat-item > a:hover .count { background: #ddd6fe; color: #5b21b6; }
#woocommerce_product_categories-1 .children .current-cat > a .count { background: rgba(255, 255, 255, .25); color: #fff; }
