/**
 * Shop filters — sticky sidebar, category bar, toolbar
 */

:root {
	--kr-filter-sticky-top: 88px;
	--kr-filter-sticky-gap: 8px;
}

/* Mobile filter toggle in page hero (replaces kr-shop-bar) */
.kr-page-hero__head .kr-shop-filter-mobile-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: var(--kr-btn-radius, 6px);
	border: 1.5px solid var(--kr-border, #e8e4df);
	background: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--kr-text, #1a1a1a);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	flex-shrink: 0;
}

.kr-page-hero__head .kr-shop-filter-mobile-toggle:hover,
.kr-page-hero__head .kr-shop-filter-mobile-toggle[aria-expanded="true"] {
	border-color: var(--kr-saffron, #ff7722);
	color: var(--kr-saffron, #ff7722);
	background: var(--kr-saffron-light, #fdf5f0);
}

@media (max-width: 991px) {
	.kr-page-hero__head .kr-shop-filter-mobile-toggle {
		display: inline-flex;
	}
}

.kr-has-shop-filters.woocommerce #secondary,
.kr-has-shop-filters.woocommerce-page #secondary {
	display: none !important;
}

/* Grid: sidebar + products (unwrap nested .woocommerce) */
.kr-shop-layout {
	display: grid;
	grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	width: 100%;
	max-width: var(--kr-container, 1200px);
	margin: 0 auto;
	padding: 0 16px 28px;
	background: transparent;
	border: none;
	box-shadow: none;
}

.kr-shop-layout > .woocommerce {
	display: contents;
}

.kr-shop-filters {
	grid-column: 1;
	grid-row: 1;
	align-self: start;
	position: sticky;
	top: var(--kr-filter-sticky-top, 88px);
	z-index: 40;
}

.kr-shop-products {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

/* Shop category bar removed — title lives in page hero after breadcrumb */
.kr-shop-bar {
	display: none !important;
}

.kr-shop-bar {
	position: sticky;
	top: var(--kr-filter-sticky-top, 96px);
	z-index: 25;
	margin-bottom: 14px;
	padding: 12px 0 14px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border: none;
	border-bottom: 1px solid var(--kr-border-light, #f0ece4);
	border-radius: 0;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.kr-shop-bar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.kr-shop-bar__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	color: var(--kr-text, #1a1a1a);
}

.kr-shop-bar__title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.kr-shop-bar__parent,
.kr-shop-bar__clear {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.kr-shop-bar__parent {
	color: var(--kr-text-mid, #4a4a4a);
	background: #fff;
	border: 1px solid var(--kr-border, #e8e4df);
}

.kr-shop-bar__parent:hover {
	border-color: var(--kr-saffron, #ff7722);
	color: var(--kr-saffron, #ff7722);
	background: var(--kr-saffron-light, #fdf5f0);
}

.kr-shop-bar__clear {
	color: var(--kr-saffron, #ff7722);
	background: var(--kr-saffron-light, #fdf5f0);
	border: 1px solid transparent;
}

.kr-shop-bar__clear:hover {
	background: var(--kr-saffron, #ff7722);
	color: #fff;
}

.kr-shop-bar__sub-label {
	margin: 0 0 8px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--kr-text-muted, #6b7280);
}

.kr-shop-bar__toggle {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: var(--kr-btn-radius, 6px);
	border: 1.5px solid var(--kr-border, #e8e4df);
	background: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--kr-text, #1a1a1a);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	flex-shrink: 0;
}

.kr-shop-bar__toggle:hover,
.kr-shop-bar__toggle[aria-expanded="true"] {
	border-color: var(--kr-saffron, #ff7722);
	color: var(--kr-saffron, #ff7722);
	background: var(--kr-saffron-light, #fdf5f0);
}

.kr-cat-pills-wrap {
	position: relative;
}

.kr-cat-pills-wrap::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 32px;
	height: 100%;
	background: linear-gradient(90deg, transparent, #fff);
	pointer-events: none;
	opacity: 0;
}

.kr-cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kr-cat-pills--sub {
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px dashed var(--kr-border-light, #f0ece4);
}

.kr-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 10px;
	border-radius: var(--kr-btn-radius, 6px);
	background: var(--kr-cream, #fdf6ec);
	border: 1.5px solid transparent;
	color: var(--kr-text-mid, #4a4a4a);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	white-space: nowrap;
}

.kr-cat-pill__img {
	width: 28px;
	height: 28px;
	border-radius: var(--kr-btn-radius, 6px);
	object-fit: cover;
	flex-shrink: 0;
}

.kr-cat-pill__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--kr-btn-radius, 6px);
	background: #fff;
	color: var(--kr-text-muted, #6b7280);
	flex-shrink: 0;
}

.kr-cat-pill:hover {
	border-color: var(--kr-saffron, #ff7722);
	color: var(--kr-saffron, #ff7722);
	background: #fff;
}

.kr-cat-pill.is-active {
	background: var(--kr-saffron, #ff7722);
	border-color: var(--kr-saffron, #ff7722);
	color: #fff;
	box-shadow: 0 3px 12px rgba(255, 119, 34, 0.28);
}

.kr-cat-pill.is-active .kr-cat-pill__icon {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.kr-cat-pill.is-active .kr-cat-pill__count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.kr-cat-pill--sub {
	font-size: 0.75rem;
	padding: 6px 12px;
	background: #fff;
	border-color: var(--kr-border, #e8e4df);
}

.kr-cat-pill__count {
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: var(--kr-btn-radius, 6px);
	background: #fff;
	color: var(--kr-text-muted, #6b7280);
}

/* ── Sidebar filters — sticky card ── */
.kr-shop-filters {
	position: sticky;
	top: var(--kr-filter-sticky-top, 96px);
	z-index: 30;
	max-height: var(--kr-filter-max-height, calc(100vh - var(--kr-filter-sticky-top, 96px) - 16px));
	overflow: visible;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.kr-shop-filters__inner {
	background: #fff;
	border: 1px solid var(--kr-border-light, #f0ece4);
	border-radius: 16px;
	box-shadow: var(--kr-shadow, 0 2px 16px rgba(0, 0, 0, 0.06));
	padding: 16px;
	max-height: var(--kr-filter-max-height, calc(100vh - var(--kr-filter-sticky-top, 96px) - 16px));
	transition: box-shadow 0.25s ease;
}

.kr-shop-filters.is-stuck .kr-shop-filters__inner {
	box-shadow: var(--kr-shadow-md, 0 10px 32px rgba(0, 0, 0, 0.1));
}

.kr-shop-filters__inner::-webkit-scrollbar {
	width: 5px;
}

.kr-shop-filters__inner::-webkit-scrollbar-thumb {
	background: var(--kr-border, #e8e4df);
	border-radius: 4px;
}

.kr-shop-filters__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--kr-border-light, #f0ece4);
}

.kr-shop-filters__close {
	display: none;
	background: none;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	color: var(--kr-text-muted, #6b7280);
	line-height: 1;
	padding: 4px;
}

/* Simple sidebar layout */
.kr-shop-filters__inner--simple {
	padding: 12px;
	border-radius: 12px;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.kr-shop-filters__inner--simple .kr-shop-filters__header {
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--kr-border-light, #f0ece4);
}

.kr-shop-filters__heading {
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 0;
	color: var(--kr-text, #1a1a1a);
}

.kr-filter-section {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--kr-border-light, #f0ece4);
}

.kr-filter-section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.kr-filter-section__title {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--kr-text-muted, #6b7280);
	margin: 0 0 10px;
}

.kr-filter-section__body {
	background: transparent;
}

.kr-filter-section--yith .kr-yith-filters-wrap .yith-wcan-filter {
	margin-bottom: 10px;
	padding-bottom: 10px;
}

.kr-filter-all-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--kr-btn-radius, 6px);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--kr-text, #1a1a1a);
	text-decoration: none;
	margin: 8px 0 4px;
	transition: background 0.15s, color 0.15s;
}

.kr-filter-all-link:hover,
.kr-filter-all-link.is-active {
	background: var(--kr-saffron-light, #fdf5f0);
	color: var(--kr-saffron, #ff7722);
}

/* Category tree */
.kr-cat-tree,
.kr-cat-tree__children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kr-cat-tree__children {
	padding-left: 10px;
	margin-top: 2px;
	border-left: 2px solid var(--kr-border-light, #f0ece4);
}

.kr-cat-tree__item:not(.is-open) > .kr-cat-tree__children {
	display: none;
}

.kr-cat-tree__row {
	display: flex;
	align-items: stretch;
	gap: 4px;
}

.kr-cat-tree__link {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border-radius: var(--kr-btn-radius, 6px);
	text-decoration: none;
	color: var(--kr-text-mid, #4a4a4a);
	font-size: 0.8125rem;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}

.kr-cat-tree__expand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	flex-shrink: 0;
	margin: 4px 4px 4px 0;
	padding: 0;
	border: 1px solid var(--kr-border-light, #f0ece4);
	border-radius: var(--kr-btn-radius, 6px);
	background: #fff;
	color: var(--kr-text-muted, #6b7280);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.kr-cat-tree__expand:hover {
	border-color: var(--kr-saffron, #ff7722);
	color: var(--kr-saffron, #ff7722);
	background: var(--kr-saffron-light, #fdf5f0);
}

.kr-cat-tree__thumb,
.kr-cat-tree__img,
.kr-cat-tree__link .kr-cat-pill__icon {
	display: none !important;
}

.kr-cat-tree__name {
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.kr-cat-tree__chevron {
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	flex-shrink: 0;
	opacity: 0.5;
	transition: transform 0.2s;
}

.kr-cat-tree__item.is-open > .kr-cat-tree__row .kr-cat-tree__chevron {
	transform: rotate(45deg);
}

.kr-shop-products .woocommerce-info,
.kr-shop-products .woocommerce-message,
.kr-shop-products .woocommerce-error {
	margin-bottom: 14px;
	border-radius: 12px;
}

.kr-shop-products .woocommerce-no-products-found {
	padding: 24px;
	background: var(--kr-cream, #faf8f4);
	border: 1px solid var(--kr-border-light, #f0ece4);
	border-radius: 12px;
	text-align: center;
}

.kr-cat-tree__link:hover,
.kr-cat-tree__item.is-active > .kr-cat-tree__link {
	background: var(--kr-saffron-light, #fdf5f0);
	color: var(--kr-saffron, #ff7722);
}

.kr-cat-tree__count {
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: var(--kr-btn-radius, 6px);
	background: var(--kr-cream, #fdf6ec);
	color: var(--kr-text-muted, #6b7280);
	flex-shrink: 0;
	margin-left: auto;
}

.kr-cat-tree__item.is-active > .kr-cat-tree__link .kr-cat-tree__count {
	background: var(--kr-saffron, #ff7722);
	color: #fff;
}

/* Hide duplicate YITH UI outside the custom sidebar */
.kr-has-shop-filters .yith-wcan-filters,
.kr-has-shop-filters .yith-wcan-reset-filters,
.kr-has-shop-filters .reset-filters {
	display: none !important;
}

.kr-has-shop-filters #krShopFilters .yith-wcan-filters {
	display: block !important;
}

.kr-has-shop-filters #krShopFilters .yith-wcan-reset-filters,
.kr-has-shop-filters #krShopFilters .reset-filters,
.kr-has-shop-filters .kr-yith-reset .yith-wcan-reset-filters,
.kr-has-shop-filters .kr-yith-reset .reset-filters {
	display: block !important;
}

/* ── YITH filters ── */
.kr-yith-filters-wrap .yith-wcan-filters {
	background: transparent !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

.kr-yith-filters-wrap .yith-wcan-filter {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--kr-border-light, #f0ece4);
}

.kr-yith-filters-wrap .yith-wcan-filter:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.kr-yith-filters-wrap .yith-wcan-filter h4,
.kr-yith-filters-wrap .filter-title {
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	color: var(--kr-text, #1a1a1a) !important;
	margin: 0 0 8px !important;
}

.kr-yith-filters-wrap .filter-items .filter-item label,
.kr-yith-filters-wrap .filter-content a {
	font-size: 0.8125rem !important;
	padding: 5px 0 !important;
}

.kr-yith-filters-wrap .filter-items .filter-item input:checked + label,
.kr-yith-filters-wrap .filter-content a.active {
	color: var(--kr-saffron, #ff7722) !important;
	font-weight: 600 !important;
}

.kr-yith-reset {
	margin-top: 10px;
}

.kr-yith-reset .reset-filters,
.kr-yith-reset .yith-wcan-reset-filters {
	width: 100%;
	padding: 10px 16px !important;
	border-radius: var(--kr-btn-radius, 6px) !important;
	background: #fff !important;
	border: 1.5px solid var(--kr-border, #e8e4df) !important;
	font-weight: 600 !important;
	font-size: 0.8125rem !important;
	color: var(--kr-text, #1a1a1a) !important;
	cursor: pointer;
	transition: all 0.2s;
}

.kr-yith-reset .reset-filters:hover {
	border-color: var(--kr-saffron, #ff7722) !important;
	color: var(--kr-saffron, #ff7722) !important;
}

/* ── Products column toolbar ── */
.kr-shop-products .woostify-sorting {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: #fff;
	border-bottom: 1px solid var(--kr-border-light, #f0ece4);
	padding: 10px 0px;
	margin-bottom: 10px;
}

.kr-shop-products .woocommerce-result-count {
	margin: 0 !important;
	font-size: 1rem;
	color: var(--kr-text-muted, #6b7280);
	float: none !important;
}

.kr-shop-products .woocommerce-ordering {
	margin: 0 !important;
	float: none !important;
}

.kr-shop-products .woocommerce-ordering select {
	border: 1.5px solid var(--kr-border, #e8e4df);
	border-radius: var(--kr-btn-radius, 6px);
	padding: 8px 32px 8px 12px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--kr-text, #1a1a1a);
	background: var(--kr-cream, #fdf6ec);
	min-width: 180px;
}

.kr-shop-products ul.products,
.kr-category-landing-loop ul.products {
	margin-top: 0;
	width: 100% !important;
	max-width: 100% !important;

}

.kr-has-shop-filters .kr-shop-products ul.products.columns-1,
.kr-has-shop-filters .kr-shop-products ul.products.columns-2,
.kr-has-shop-filters .kr-shop-products ul.products.columns-3,
.kr-has-shop-filters .kr-shop-products ul.products.columns-4,
.kr-has-shop-filters .kr-shop-products ul.products.columns-5,
.kr-has-shop-filters .kr-shop-products ul.products.columns-6,
.kr-has-shop-filters .kr-category-landing-loop ul.products.columns-1,
.kr-has-shop-filters .kr-category-landing-loop ul.products.columns-2,
.kr-has-shop-filters .kr-category-landing-loop ul.products.columns-3,
.kr-has-shop-filters .kr-category-landing-loop ul.products.columns-4,
.kr-has-shop-filters .kr-category-landing-loop ul.products.columns-5,
.kr-has-shop-filters .kr-category-landing-loop ul.products.columns-6 {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
}

.kr-shop-filter-overlay {
	display: none !important;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1001;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kr-shop-filter-overlay[hidden] {
	display: none !important;
	pointer-events: none !important;
}

.kr-shop-filter-overlay.is-open {
	display: block !important;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

body.kr-filters-open {
	overflow: hidden;
}

html.cart-sidebar-open body.kr-filters-open {
	overflow: hidden;
}

/* Shop page — no boxed main wrapper */
.kr-has-shop-filters .site-main,
.kr-has-shop-filters.woocommerce-page .site-main {
	padding-top: 0 !important;
	overflow: visible;
}

.kr-has-shop-filters .kr-shop-layout {
	overflow: visible;
}

.kr-has-shop-filters #primary,
.kr-has-shop-filters .content-area {
	padding-top: 0;
	max-width: 100%;
}

/* Desktop — sidebar always visible in grid (not off-screen like mobile drawer) */
@media (min-width: 992px) {
	#krShopFilters,
	.kr-shop-filters {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		transform: none !important;
		position: sticky;
		width: auto;
		height: auto;
		max-height: var(--kr-filter-max-height, calc(100vh - var(--kr-filter-sticky-top, 96px) - 16px));
	}

	.kr-shop-filters__inner {
		border-radius: 16px;
		height: auto;
		max-height: var(--kr-filter-max-height, calc(100vh - var(--kr-filter-sticky-top, 96px) - 16px));
	}

	.kr-shop-bar__toggle {
		display: none !important;
	}
}

.kr-tax-archive .kr-shop-layout {
	padding-top: 30px;
}

/* Custom category landing pages (WordPress pages) */
.kr-category-landing .kr-page-shell,
.kr-category-landing .kr-page-container--shop {
	padding: 0;
	max-width: 100%;
}

.kr-has-shop-filters.kr-category-landing .kr-page-container--shop {
	padding: 0px;
}

.kr-category-landing .kr-page-hero--after-banner {
	margin-bottom: 0;
}

.kr-category-landing .kr-page-hero--after-banner .page-bradcurm-container {
	padding-bottom: 8px;
}

.kr-category-landing .kr-content-card {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.kr-shop-layout--landing {
	padding-top: 0;
}

/* Primary category landings — categories sidebar only, no hero Filters button */
.kr-primary-category-landing .kr-page-hero__head .kr-shop-filter-mobile-toggle {
	display: none !important;
}

.kr-shop-filters__inner--categories-only {
	padding: 16px 12px;
}

.kr-shop-filters__inner--categories-only .kr-shop-filters__heading--categories {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--kr-text, #1a1a1a);
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--kr-border-light, #f0ece4);
}

.kr-shop-filters__inner--categories-only .kr-filter-section--categories {
	margin: 0;
	padding: 0;
	border: none;
}

/* Dynamic attribute filters */
.kr-filter-sections--attrs {
	margin-top: 4px;
}

.kr-cat-filter {
	margin-top: 8px;
}

.kr-filter-section--categories .kr-filter-all-link {
	margin-bottom: 4px;
}

.kr-attr-filter {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kr-attr-filter__item {
	margin: 2px 0;
}

.kr-attr-filter__label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--kr-btn-radius, 6px);
	color: var(--kr-text-mid, #4a4a4a);
	font-size: 0.8125rem;
	font-weight: 500;
	background: transparent;
	transition: background 0.15s, color 0.15s;
	cursor: pointer;
}

.kr-attr-filter__label:hover {
	background: var(--kr-cream, #f5f0e8);
	color: var(--kr-text, #1a1a1a);
}

.kr-attr-filter__label:has(.kr-attr-filter__checkbox:checked) {
	background: var(--kr-saffron-light, #fdf5f0);
	color: var(--kr-saffron, #ff7722);
	font-weight: 600;
}

.kr-attr-filter__control {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.kr-attr-filter__checkbox {
	position: absolute;
	inset: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.kr-attr-filter__check {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border: 1.5px solid var(--kr-border, #d8d2c8);
	border-radius: 4px;
	background: #fff;
	position: relative;
	pointer-events: none;
	transition: border-color 0.15s, background 0.15s;
}

.kr-attr-filter__checkbox:focus-visible + .kr-attr-filter__check {
	outline: 2px solid var(--kr-saffron, #ff7722);
	outline-offset: 2px;
}

.kr-attr-filter__checkbox:checked + .kr-attr-filter__check {
	border-color: var(--kr-saffron, #ff7722);
	background: var(--kr-saffron, #ff7722);
}

.kr-attr-filter__checkbox:checked + .kr-attr-filter__check::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.kr-attr-filter__name {
	flex: 1;
	min-width: 0;
}

.kr-attr-filter__count {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--kr-text-muted, #6b7280);
	background: var(--kr-cream, #f5f0e8);
	padding: 2px 8px;
	border-radius: 999px;
	line-height: 1.4;
}

.kr-attr-filter__label:has(.kr-attr-filter__checkbox:checked) .kr-attr-filter__count {
	background: rgba(255, 119, 34, 0.15);
	color: var(--kr-saffron, #ff7722);
}

.kr-filter-reset-wrap {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--kr-border, #d8d2c8);
}

.kr-filter-reset {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--kr-border, #d8d2c8);
	border-radius: var(--kr-btn-radius, 6px);
	background: #fff;
	color: var(--kr-text-mid, #4a4a4a);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.kr-filter-reset:hover {
	background: var(--kr-saffron-light, #fdf5f0);
	border-color: var(--kr-saffron, #ff7722);
	color: var(--kr-saffron, #ff7722);
}

.kr-filter-reset:focus-visible {
	outline: 2px solid var(--kr-saffron, #ff7722);
	outline-offset: 2px;
}

.kr-shop-product-results.is-loading {
	opacity: 0.55;
	pointer-events: none;
	position: relative;
	min-height: 120px;
}

.kr-shop-product-results.is-loading::after {
	content: '';
	position: absolute;
	inset: 40px 0;
	margin: auto;
	width: 36px;
	height: 36px;
	border: 3px solid var(--kr-border-light, #f0ece4);
	border-top-color: var(--kr-saffron, #ff7722);
	border-radius: 50%;
	animation: kr-filter-spin 0.7s linear infinite;
}

@keyframes kr-filter-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 992px) {
	.kr-primary-category-landing .kr-shop-filters {
		position: sticky;
		display: block;
		transform: none;
	}

	.kr-primary-category-landing .kr-shop-filters__inner--categories-only {
		box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
	}
}

.kr-category-landing-loop {
	width: 100%;
}

.kr-category-landing-loop .products {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Legacy Elementor / page-builder product grids (native loop handles products) */
.kr-category-landing-content .wpcsu-wrapper,
.kr-category-landing-content .wpcsu-carousel,
.kr-category-landing-content .wpcsu-grid,
.kr-category-landing-content ul.products,
.kr-category-landing-content .products,
.kr-category-landing-content li.product,
.kr-category-landing-content .kr-product-card,
.kr-category-landing-content .elementor-widget-woocommerce-products,
.kr-category-landing-content .elementor-widget-wc-archive-products,
.kr-category-landing-content .elementor-widget-loop-grid,
.kr-category-landing-content .elementor-widget-loop-carousel,
.kr-category-landing-content .woocommerce-result-count,
.kr-category-landing-content .woocommerce-ordering,
.kr-category-landing-content .woocommerce-notices-wrapper {
	display: none !important;
}

.kr-category-landing-content:empty,
.kr-category-landing-content:not(:has(:not(script):not(style))) {
	display: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.kr-category-landing .kr-category-landing-content .yith-wcan-filters,
.kr-category-landing .kr-category-landing-content .yith-wcan-filter,
.kr-category-landing .kr-category-landing-content .yith-wcan-reset-filters,
.kr-category-landing .kr-category-landing-content .widget_yith-woocommerce-ajax-product-filter,
.kr-has-shop-filters .kr-shop-products .yith-wcan-filters:not(#krShopFilters .yith-wcan-filters),
.kr-has-shop-filters .kr-shop-products .yith-wcan-filter,
.kr-has-shop-filters .kr-shop-products .yith-wcan-reset-filters,
.kr-has-shop-filters .site-main .yith-wcan-filters:not(#krShopFilters .yith-wcan-filters) {
	display: none !important;
}

/* YITH mobile / modal preset outside custom sidebar */
.kr-has-shop-filters .kr-shop-products .yith-wcan-filters.filters-modal,
.kr-has-shop-filters .kr-category-landing-content .yith-wcan-filters.filters-modal,
.kr-has-shop-filters .kr-shop-products .yith-wcan-filters.with-filter-button,
.kr-has-shop-filters .kr-category-landing-content .yith-wcan-filters.with-filter-button {
	display: none !important;
}

/* Desktop — left sidebar only; hide YITH mobile drawer trigger */
@media (min-width: 992px) {
	.kr-has-shop-filters .yith-wcan-mobile-opener,
	.kr-has-shop-filters .yith-wcan-filters-mobile,
	.kr-has-shop-filters .yith-wcan-filters-opener,
	.kr-has-shop-filters .yith-wcan-filters-modal,
	.kr-has-shop-filters .yith-wcan-filters-button-wrapper {
		display: none !important;
	}
}

/* Sticky sidebar — parent containers must not clip position:sticky */
.kedaranchal-theme.kr-has-shop-filters .site-content,
.kedaranchal-theme.kr-has-shop-filters #primary,
.kedaranchal-theme.kr-has-shop-filters .content-area,
.kedaranchal-theme.kr-has-shop-filters .site-main,
.kedaranchal-theme.kr-has-shop-filters .kr-page-container,
.kedaranchal-theme.kr-has-shop-filters .kr-page-container--shop,
.kedaranchal-theme.kr-has-shop-filters .kr-shop-layout,
.kedaranchal-theme.kr-has-shop-filters article.page,
.kedaranchal-theme.kr-has-shop-filters.kr-category-landing #primary,
.kedaranchal-theme.kr-has-shop-filters.kr-category-landing .site-main,
.kedaranchal-theme.kr-has-shop-filters.kr-category-landing .kr-page-container--shop,
.kedaranchal-theme.kr-has-shop-filters.kr-tax-archive #primary,
.kedaranchal-theme.kr-has-shop-filters.kr-tax-archive .site-main,
.kedaranchal-theme.kr-has-shop-filters.kr-tax-archive .content-area {
	overflow: visible !important;
}

.kedaranchal-theme.kr-has-shop-filters .kr-shop-filters.is-stuck {
	z-index: 45;
}

.kr-primary-category-landing.has-tax-banner .kr-category-landing-content > .elementor > .elementor-element:first-child .elementor-widget-heading,
.kr-primary-category-landing.has-tax-banner .kr-category-landing-content > h1:first-child {
	display: none;
}

/* Duplicate Elementor block on primary category landings (filters/heading — theme sidebar handles this) */
.kr-primary-category-landing .elementor-element.elementor-element-6aa5c7a {
	display: none !important;
}

@media (max-width: 991px) {
	.kr-primary-category-landing .kr-shop-filters {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: auto;
		max-height: none;
		z-index: 1;
		transform: none;
		margin-bottom: 16px;
	}

	.kr-primary-category-landing .kr-shop-filters__inner--categories-only {
		max-height: none;
	}

	.kr-shop-layout {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 12px 16px 32px;
	}

	.kr-shop-layout > .woocommerce {
		display: block;
	}

	.kr-shop-filters,
	.kr-shop-products {
		grid-column: auto;
		grid-row: auto;
	}

	.kr-shop-bar {
		position: sticky;
		top: var(--kr-filter-sticky-top, 72px);
		padding: 10px 0 12px;
		margin-bottom: 12px;
	}

	.kr-shop-bar__toggle {
		display: inline-flex;
	}

	.kr-shop-filters {
		position: fixed;
		top: 0;
		left: 0;
		width: min(88vw, 320px);
		height: 100vh;
		max-height: none;
		z-index: 1002;
		transform: translateX(-100%);
		transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
	}

	.kr-shop-filters__inner {
		border-radius: 0;
		max-height: 100vh;
		height: 100%;
		box-shadow: none;
	}

	.kr-shop-filters.is-open {
		transform: translateX(0);
	}

	.kr-shop-filters.is-stuck .kr-shop-filters__inner {
		box-shadow: none;
	}

	.kr-shop-filters__close {
		display: block;
	}

	.kr-cat-pills-wrap::after {
		opacity: 1;
	}

	.kr-cat-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.kr-cat-pills::-webkit-scrollbar {
		display: none;
	}

	.kr-shop-products .woostify-sorting {
		flex-direction: column;
		align-items: stretch;
	}

	.kr-shop-products .woocommerce-ordering select {
		width: 100%;
	}
}

/* ── Load More (replaces numbered pagination) ── */
.kr-has-shop-filters .woocommerce-pagination,
.kr-has-shop-filters nav.woocommerce-pagination {
	display: none !important;
}

.kr-shop-load-more {
	display: flex;
	justify-content: center;
	margin: 28px 0 8px;
	padding-top: 8px;
}

.kr-shop-load-more__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 220px;
	min-height: 48px;
	padding: 12px 28px;
	border: none !important;
	border-radius: var(--kr-btn-radius, 6px);
	background: var(--kr-saffron, #ff7722) !important;
	color: #fff !important;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 4px 14px rgba(255, 119, 34, 0.28);
}

.kr-shop-load-more__btn:hover:not(:disabled) {
	background: var(--kr-saffron-dark, #e56510) !important;
	transform: translateY(-1px);
}

.kr-shop-load-more__btn:disabled {
	opacity: 0.72;
	cursor: not-allowed;
	transform: none;
}

.kr-shop-load-more__btn.is-complete {
	background: #4caf50 !important;
	box-shadow: 0 4px 14px rgba(76, 175, 80, 0.24);
}

.kr-shop-load-more__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: kr-load-more-spin 0.7s linear infinite;
}

.kr-shop-load-more__btn.is-loading .kr-shop-load-more__spinner {
	display: inline-block;
}

@keyframes kr-load-more-spin {
	to {
		transform: rotate(360deg);
	}
}
