/**
 * Teknij Product Filter - Frontend Stylesheet
 * Fully scoped and isolated with CSS variables to eliminate theme & plugin conflicts.
 */

/* ==========================================================================
   Base Filter Container & CSS Variables
   ========================================================================== */

.tek-filter-container {
	--tek-accent: #b89364;
	--tek-accent-hover: #9f7c4f;
	--tek-text: #1e293b;
	--tek-title: #0f172a;
	--tek-bg: #ffffff;
	--tek-border: #e2e8f0;
	--tek-radius: 12px;
	--tek-slider-track: #e2e8f0;
	--tek-swatch-active: #b89364;
	--tek-sidebar-width: 280px;

	display: flex;
	flex-direction: column;
	background-color: var(--tek-bg);
	border: 1px solid var(--tek-border);
	border-radius: var(--tek-radius);
	padding: 24px 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	color: var(--tek-text);
	font-family: inherit;
	line-height: 1.5;
	position: relative;
	max-width: 100%;
}

.tek-filter-container *,
.tek-filter-container *::before,
.tek-filter-container *::after,
.tek-filter-results-container *,
.tek-filter-results-container *::before,
.tek-filter-results-container *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   2-Column Responsive Layout Wrapper
   ========================================================================== */

.tek-filter-wrapper.tek-layout-vertical-wrap {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	width: 100%;
	box-sizing: border-box;
}

.tek-filter-wrapper.tek-layout-vertical-wrap .tek-filter-sidebar-col {
	flex: 0 0 280px;
	width: 280px;
	max-width: 100%;
}

.tek-filter-wrapper.tek-layout-vertical-wrap .tek-filter-results-col {
	flex: 1;
	min-width: 0;
}

@media (max-width: 768px) {
	.tek-filter-wrapper.tek-layout-vertical-wrap {
		display: block;
	}
	.tek-filter-wrapper.tek-layout-vertical-wrap .tek-filter-sidebar-col {
		width: 100%;
		flex: none;
	}
}

/* ==========================================================================
   Filter Layouts (Vertical vs Horizontal)
   ========================================================================== */

/* 1. Vertical Sidebar Layout */
.tek-filter-container.tek-filter-layout-vertical {
	width: 100%;
	max-width: var(--tek-sidebar-width, 300px);
}

.tek-filter-container.tek-filter-layout-vertical .tek-filter-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* 2. Horizontal Top Bar Layout */
.tek-filter-container.tek-filter-layout-horizontal {
	width: 100%;
	max-width: 100%;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.tek-filter-container.tek-filter-layout-horizontal .tek-filter-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px 24px;
}

.tek-filter-container.tek-filter-layout-horizontal .tek-filter-widget {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
	min-width: 180px;
	flex: 1 1 200px;
}

/* ==========================================================================
   Filter Widgets & Accordion Headers
   ========================================================================== */

.tek-filter-widget {
	border-bottom: 1px solid var(--tek-border);
	padding-bottom: 18px;
	margin-bottom: 4px;
}

.tek-filter-widget:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.tek-filter-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
	padding: 4px 0 10px 0;
}

.tek-filter-widget-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--tek-title);
	letter-spacing: -0.2px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tek-filter-collapse-toggle {
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	border-radius: 6px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	position: relative;
	flex-shrink: 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tek-filter-collapse-toggle:hover {
	background: var(--tek-accent, #b89364) !important;
	border-color: var(--tek-accent, #b89364) !important;
	color: #ffffff !important;
	transform: scale(1.05);
}

.tek-filter-widget.is-collapsed .tek-filter-collapse-toggle {
	background: #fdf8f3;
	border-color: var(--tek-accent, #b89364);
	color: var(--tek-accent, #b89364);
}

.tek-filter-widget.is-collapsed .tek-filter-collapse-toggle:hover {
	background: var(--tek-accent, #b89364) !important;
	color: #ffffff !important;
}

/* Pure CSS Plus / Minus Indicator (Guaranteed to work in Incognito, Logged out, and everywhere) */
.tek-toggle-icon {
	position: relative;
	display: inline-block;
	width: 12px;
	height: 12px;
	pointer-events: none;
}

/* Horizontal bar (always present: forms MINUS in default open state) */
.tek-toggle-icon::before {
	content: '';
	position: absolute;
	top: 5px;
	left: 1px;
	width: 10px;
	height: 2px;
	background-color: currentColor;
	border-radius: 1px;
}

/* Vertical bar (scales in when is-collapsed to form PLUS) */
.tek-toggle-icon::after {
	content: '';
	position: absolute;
	top: 1px;
	left: 5px;
	width: 2px;
	height: 10px;
	background-color: currentColor;
	border-radius: 1px;
	transform: scaleY(0);
	opacity: 0;
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}

/* When collapsed, turn into PLUS */
.tek-filter-widget.is-collapsed .tek-toggle-icon::after {
	transform: scaleY(1);
	opacity: 1;
}

/* Chevron indicator support */
.tek-toggle-chevron {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.22s ease;
	margin-top: -2px;
	pointer-events: none;
}

.tek-filter-widget.is-collapsed .tek-toggle-chevron {
	transform: rotate(-45deg);
	margin-top: 2px;
}

.tek-filter-widget.is-collapsed .tek-filter-widget-content {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
}

.tek-filter-widget-content {
	padding-top: 6px;
	max-height: 260px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.tek-filter-widget-content::-webkit-scrollbar {
	width: 4px;
}
.tek-filter-widget-content::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 4px;
}

/* ==========================================================================
   Search Input Widget
   ========================================================================== */

.tek-filter-search-input-wrap {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.tek-filter-search-icon {
	position: absolute;
	left: 12px;
	color: #94a3b8;
	font-size: 17px;
	pointer-events: none;
}

.tek-filter-search-input {
	width: 100%;
	padding: 10px 32px 10px 36px !important;
	border: 1px solid var(--tek-border) !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	background-color: #f8fafc !important;
	color: var(--tek-text) !important;
	outline: none !important;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.tek-filter-search-input:focus {
	border-color: var(--tek-accent) !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(184, 147, 100, 0.15) !important;
}

.tek-filter-search-clear {
	position: absolute;
	right: 10px;
	background: none;
	border: none;
	font-size: 18px;
	color: #94a3b8;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.tek-filter-search-clear:hover {
	color: #ef4444;
}

/* ==========================================================================
   Sort Select Dropdown
   ========================================================================== */

.tek-filter-select {
	width: 100%;
	padding: 9px 12px !important;
	border: 1px solid var(--tek-border) !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	background-color: #ffffff !important;
	color: var(--tek-text) !important;
	cursor: pointer;
	outline: none;
}

.tek-filter-select:focus {
	border-color: var(--tek-accent) !important;
	box-shadow: 0 0 0 3px rgba(184, 147, 100, 0.15) !important;
}

/* ==========================================================================
   Dual-Handle Range Price Slider
   ========================================================================== */

.tek-filter-dual-slider-wrap {
	position: relative;
	width: 100%;
	height: 24px;
	display: flex;
	align-items: center;
	margin: 10px 0 16px 0;
}

.tek-filter-slider-track {
	position: absolute;
	width: 100%;
	height: 6px;
	background-color: var(--tek-slider-track, #e2e8f0);
	border-radius: 4px;
	z-index: 1;
}

.tek-filter-range-fill {
	position: absolute;
	height: 100%;
	background-color: var(--tek-accent);
	border-radius: 4px;
	z-index: 2;
}

.tek-range-input {
	position: absolute;
	width: 100%;
	height: 6px;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	z-index: 3;
}

/* Range input thumb (WebKit) */
.tek-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 2px solid var(--tek-accent);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tek-range-input::-webkit-slider-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Range input thumb (Firefox) */
.tek-range-input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 2px solid var(--tek-accent);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.tek-filter-price-inputs-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tek-price-input-box {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid var(--tek-border);
	border-radius: 8px;
	padding: 5px 8px;
	flex: 1;
}

.tek-currency-symbol {
	font-weight: 600;
	color: #64748b;
	font-size: 13px;
	margin-right: 4px;
}

.tek-filter-num-min,
.tek-filter-num-max {
	width: 100%;
	border: none !important;
	background: transparent !important;
	padding: 2px 0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--tek-text) !important;
	outline: none !important;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.tek-filter-num-min::-webkit-outer-spin-button,
.tek-filter-num-min::-webkit-inner-spin-button,
.tek-filter-num-max::-webkit-outer-spin-button,
.tek-filter-num-max::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tek-price-sep {
	color: #94a3b8;
	font-weight: 700;
}

/* ==========================================================================
   Checklists (Categories, Brands, Stock)
   ========================================================================== */

.tek-filter-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tek-filter-item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tek-filter-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	font-size: 13px;
	color: var(--tek-text);
	transition: color 0.15s ease;
	position: relative;
	width: 100%;
}

.tek-filter-label:hover {
	color: var(--tek-accent);
}

.tek-filter-checkbox,
.tek-filter-radio {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border: 1px solid var(--tek-border);
	border-radius: 4px;
	outline: none;
	cursor: pointer;
	margin: 0 10px 0 0 !important;
	background-color: #ffffff;
	flex-shrink: 0;
	position: relative;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tek-filter-checkbox:checked,
.tek-filter-radio:checked {
	background-color: var(--tek-accent);
	border-color: var(--tek-accent);
}

.tek-filter-checkbox:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.tek-filter-text {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tek-filter-count {
	font-size: 11px;
	color: #94a3b8;
	background-color: #f1f5f9;
	padding: 2px 7px;
	border-radius: 10px;
	margin-left: 8px;
	font-weight: 600;
}

/* Subcategories Indentation */
.tek-filter-sublist {
	list-style: none !important;
	margin: 6px 0 0 18px !important;
	padding: 0 0 0 8px !important;
	border-left: 1px dashed var(--tek-border);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ==========================================================================
   Swatches Grid (Size & Frame Attributes)
   ========================================================================== */

.tek-filter-swatches-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tek-filter-swatch-item {
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.tek-filter-swatch-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tek-filter-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	background-color: #f8fafc;
	border: 1px solid var(--tek-border);
	border-radius: 8px;
	color: var(--tek-text);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
}

.tek-filter-swatch.tek-swatch-pill {
	border-radius: 20px;
}

.tek-filter-swatch:hover {
	border-color: var(--tek-accent);
	color: var(--tek-accent);
	background-color: #ffffff;
}

.tek-filter-swatch-input:checked + .tek-filter-swatch,
.tek-filter-swatch.active {
	background-color: var(--tek-accent) !important;
	border-color: var(--tek-accent) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(184, 147, 100, 0.35);
}

/* Frame Swatches */
.tek-swatch-frame {
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12px;
}

/* ==========================================================================
   Tag Pills
   ========================================================================== */

.tek-filter-tag-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tek-filter-tag-item {
	display: inline-flex;
	cursor: pointer;
	margin: 0;
}

.tek-filter-tag-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tek-filter-tag {
	display: inline-block;
	padding: 4px 10px;
	background-color: #f1f5f9;
	border: 1px solid var(--tek-border);
	border-radius: 14px;
	font-size: 11px;
	color: #475569;
	transition: all 0.2s ease;
}

.tek-filter-tag:hover {
	background-color: #e2e8f0;
	color: var(--tek-title);
}

.tek-filter-tag-input:checked + .tek-filter-tag {
	background-color: var(--tek-accent);
	border-color: var(--tek-accent);
	color: #ffffff;
}

/* ==========================================================================
   Active Filter Chips / Badges
   ========================================================================== */

.tek-filter-active-chips-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--tek-border);
}

.tek-filter-chips-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tek-filter-active-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: var(--tek-accent);
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 14px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tek-filter-active-chip:hover {
	background-color: var(--tek-accent-hover);
}

.tek-chip-remove {
	font-size: 14px;
	line-height: 1;
	font-weight: bold;
}

.tek-filter-clear-all-btn {
	background: none;
	border: none;
	color: #dc2626;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 6px;
	text-decoration: underline;
}

.tek-filter-clear-all-btn:hover {
	color: #FFF;
	background-color:#b89364;
}

/* ==========================================================================
   Action Buttons (Reset / Apply)
   ========================================================================== */

.tek-filter-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.tek-filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
}

.tek-filter-btn-reset {
	background-color: #f1f5f9;
	color: #475569;
	border: 1px solid var(--tek-border);
}

.tek-filter-btn-reset:hover {
	background-color: #e2e8f0;
	color: #0f172a;
}

.tek-filter-btn-apply {
	background-color: var(--tek-accent);
	color: #ffffff;
	border: none;
}

.tek-filter-btn-apply:hover {
	background-color: var(--tek-accent-hover);
}

.tek-mobile-only {
	display: none;
}

/* ==========================================================================
   Mobile Off-Canvas Drawer (< 768px)
   ========================================================================== */

.tek-filter-mobile-trigger-wrap {
	display: none;
	margin-bottom: 16px;
}

.tek-filter-mobile-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--tek-accent, #b89364);
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(184, 147, 100, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tek-filter-mobile-toggle-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(184, 147, 100, 0.45);
}

.tek-filter-badge-count {
	background-color: #ffffff;
	color: var(--tek-accent, #b89364);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	margin-left: 2px;
}

.tek-filter-drawer-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--tek-border);
	background-color: #f8fafc;
	position: sticky;
	top: 0;
	z-index: 10;
}

.tek-filter-drawer-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--tek-title);
	display: flex;
	align-items: center;
	gap: 6px;
}

.tek-filter-drawer-close-btn {
	background: none;
	border: none;
	font-size: 20px;
	color: #64748b;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
}

.tek-filter-drawer-close-btn:hover {
	color: #0f172a;
}

.tek-filter-drawer-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(3px);
	z-index: 99998;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tek-filter-drawer-backdrop.is-active {
	display: block;
	opacity: 1;
}

/* Mobile Breakpoint Media Query */
@media (max-width: 768px) {
	.tek-filter-mobile-trigger-wrap {
		display: flex;
		justify-content: flex-start;
	}

	.tek-mobile-only {
		display: inline-flex;
	}

	/* Turn container into Off-Canvas Drawer */
	.tek-filter-container {
		position: fixed !important;
		top: 0 !important;
		bottom: 0 !important;
		width: 320px !important;
		max-width: 85vw !important;
		height: 100vh !important;
		z-index: 99999 !important;
		overflow-y: auto !important;
		background: #ffffff !important;
		border-radius: 0 !important;
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.25) !important;
		padding: 0 20px 24px 20px !important;
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
		visibility: hidden;
	}

	.tek-filter-container[data-mobile-side="left"] {
		left: 0 !important;
		transform: translateX(-100%) !important;
	}

	.tek-filter-container[data-mobile-side="right"] {
		right: 0 !important;
		left: auto !important;
		transform: translateX(100%) !important;
	}

	.tek-filter-container.is-drawer-open {
		visibility: visible !important;
		transform: translateX(0) !important;
	}

	.tek-filter-drawer-header {
		display: flex !important;
		margin: 0 -20px 16px -20px;
	}
}

/* ==========================================================================
   Results Grid & Cards
   ========================================================================== */

.tek-filter-results-container {
	width: 100%;
	position: relative;
	margin-top: 10px;
}

.tek-filter-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	font-size: 14px;
	color: #64748b;
}

.tek-filter-results-count {
	font-weight: 600;
}

.tek-filter-loading-spinner {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tek-spinner-dot {
	width: 8px;
	height: 8px;
	background-color: var(--tek-accent, #b89364);
	border-radius: 50%;
	display: inline-block;
	animation: tekPulse 1.2s infinite ease-in-out both;
}

.tek-spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.tek-spinner-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes tekPulse {
	0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
	40% { transform: scale(1); opacity: 1; }
}

/* Results Grid Columns */
.tek-filter-results-grid {
	display: grid;
	gap: 24px;
	width: 100%;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	transition: opacity 0.2s ease;
}

.tek-filter-results-grid.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.tek-filter-results-grid.tek-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tek-filter-results-grid.tek-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tek-filter-results-grid.tek-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* WooCommerce Native Product Item in Grid */
.tek-filter-results-grid.products li.product {
	list-style: none !important;
	margin: 0 !important;
	width: 100% !important;
	float: none !important;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tek-filter-results-grid.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.tek-filter-results-grid.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit;
}

.tek-filter-results-grid.products li.product img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 12px;
}

.tek-filter-results-grid.products li.product .woocommerce-loop-product__title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
	line-height: 1.35 !important;
}

.tek-filter-results-grid.products li.product .price {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--tek-accent, #b89364) !important;
	margin-bottom: 14px !important;
	display: block !important;
}

.tek-filter-results-grid.products li.product .button.add_to_cart_button,
.tek-filter-results-grid.products li.product .button {
	margin-top: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 8px 16px !important;
	background-color: var(--tek-accent, #b89364) !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	border-radius: 8px !important;
	border: none !important;
	text-decoration: none !important;
	transition: background 0.2s ease !important;
}

.tek-filter-results-grid.products li.product .button:hover {
	background-color: var(--tek-accent-hover, #9f7c4f) !important;
}

.tek-filter-results-grid.products li.product .onsale {
	position: absolute;
	top: 24px;
	left: 24px;
	background-color: #ef4444 !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 3px 8px !important;
	border-radius: 4px !important;
	min-height: auto !important;
	line-height: normal !important;
	z-index: 2;
}

@media (max-width: 992px) {
	.tek-filter-results-grid.tek-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.tek-filter-results-grid.tek-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
	.tek-filter-results-grid { grid-template-columns: 1fr !important; }
}

/* Fallback Card for Non-WooCommerce or Custom Post Types */
.tek-filter-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tek-filter-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.tek-filter-card-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f8fafc;
}

.tek-filter-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.tek-filter-card:hover .tek-filter-card-thumb img {
	transform: scale(1.05);
}

.tek-filter-card-body {
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tek-filter-card-title {
	margin: 0 0 8px 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.tek-filter-card-title a {
	color: #0f172a;
	text-decoration: none;
}

.tek-filter-card-title a:hover {
	color: var(--tek-accent, #b89364);
}

.tek-filter-card-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--tek-accent, #b89364);
	margin-bottom: 14px;
}

.tek-filter-card-btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	background: #f1f5f9;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.tek-filter-card-btn:hover {
	background: var(--tek-accent, #b89364);
	color: #ffffff;
}

/* Empty State */
.tek-filter-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 24px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
}

.tek-filter-empty-state h4 {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
}

.tek-filter-empty-state p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

/* Pagination */
.tek-filter-pagination-wrap {
	margin-top: 30px;
	display: flex;
	justify-content: center;
}

.tek-filter-pagination-wrap ul.page-numbers {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tek-filter-pagination-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--tek-border);
	background: #ffffff;
	color: var(--tek-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.2s ease;
}

.tek-filter-pagination-wrap .page-numbers.current,
.tek-filter-pagination-wrap .page-numbers:hover {
	background: var(--tek-accent);
	border-color: var(--tek-accent);
	color: #ffffff;
}
