/* WooCommerce Category Page Styles */

.woocommerce-category-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem 2rem;
}

.category-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border-light);
}

.category-header .page-title {
	margin: 0 0 0.5rem 0;
	font-size: 2rem;
	color: var(--text-dark);
}

.category-header .woocommerce-result-count {
	color: var(--text-gray);
	font-size: 0.95rem;
}

.category-header-top.has-subcategory-links {
	display: grid;
	grid-template-columns: 340px 1fr;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.category-header-top .page-title {
	margin: 0;
	line-height: 1;
}

/* "Výchozí"/"Produkty" categories that still have subcategories: a thin
   plain-text link row next to the title (not the full tile grid below,
   which is reserved for Podkategorie/Produkty a podkategorie). */
.category-subcategory-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	line-height: 1;
}

.category-subcategory-link {
	color: var(--text-gray);
	font-size: 0.95rem;
	text-decoration: none;
	transition: color 0.2s;
}

.category-subcategory-link:hover {
	color: var(--primary-color);
}

@media (max-width: 768px) {
	.category-header-top.has-subcategory-links {
		grid-template-columns: 1fr;
		align-items: flex-start;
	}
}

/* Categories that have subcategories act as a hub: image+title tiles
   instead of a product grid (still the real category archive - see
   woocommerce/taxonomy-product_cat.php). Same visual language as the
   homepage's top-level category tiles (template-parts/homepage/
   category-showcase.php). */
.category-subcategory-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 2rem 0;
}

.category-subcategory-tile {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none;
}

.category-subcategory-tile-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-dark);
}

.category-subcategory-tile img,
.category-subcategory-tile .category-tile-placeholder {
	width: 100%;
	height: 280px;
	object-fit: cover;
	border-radius: var(--border-radius);
	transition: opacity 0.2s ease;
}

.category-subcategory-tile:hover img {
	opacity: 0.9;
}

@media (max-width: 900px) {
	.category-subcategory-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.category-subcategory-tiles {
		grid-template-columns: 1fr;
	}

	.category-subcategory-tile img,
	.category-subcategory-tile .category-tile-placeholder {
		height: 220px;
	}
}

.category-content {
	display: grid;
	grid-template-columns: 330px 1fr;
	gap: 2rem;
}

.category-sidebar {
	position: sticky;
	top: 1rem;
	height: fit-content;
}

.category-main {
	width: 100%;
}

/* Mobile filter toggle - hidden on desktop, shown only under the 768px
   breakpoint where the sidebar collapses. */
.mobile-filter-toggle {
	display: none;
}

@media (max-width: 768px) {
	.mobile-filter-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		width: 100%;
		padding: 0.75rem;
		margin-bottom: 1rem;
		background: var(--white);
		border: 1px solid var(--border-light);
		border-radius: 5px;
		color: var(--text-dark);
		font-size: 1rem;
		font-weight: 600;
		cursor: pointer;
	}

	.mobile-filter-toggle .dashicons {
		width: 18px;
		height: 18px;
		font-size: 18px;
	}

	.category-sidebar {
		display: none;
	}

	.category-sidebar.is-open {
		display: block;
	}
}

/* Products Count and View Toggle */
.products-count-view {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-light);
}

.products-count {
	color: var(--text-gray);
	font-size: 0.95rem;
}

.products-view-toggle {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.products-view-toggle-label {
	color: var(--text-gray);
	font-size: 0.9rem;
}

.view-toggle-group {
	display: flex;
	align-items: center;
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	overflow: hidden;
}

.view-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.6rem;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	color: var(--text-gray);
}

.view-toggle + .view-toggle {
	border-left: 1px solid var(--border-light);
}

.view-toggle:hover {
	background: var(--bg-gray-light);
}

.view-toggle.active {
	background: var(--primary-color);
	color: var(--white);
}

.view-toggle .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

/* On the archive/shop page ".woocommerce" is the whole #content area, so
   it's naturally full-width. On the homepage (template-parts/homepage/
   latest-products.php, products.php) it's just the [products] shortcode's
   own wrapper div sitting inside .homepage-products - a plain block div
   with no explicit width - and since .homepage is a flex column container,
   that can leave it sized to its content instead of the section's full
   width, which breaks the auto-fill grid below down to a single column. */
.homepage-products > .woocommerce {
	width: 100%;
}

/* On the homepage, the exact column count is known upfront (the ACF
   "count" field), so it's set as a CSS custom property on the shortcode's
   own ".woocommerce.columns-N" wrapper (inline style, added in
   latest-products.php/products.php) and used directly here - a fixed
   repeat(N, 1fr) instead of repeat(auto-fill, minmax(...)) sidesteps any
   ambiguity in how the browser resolves the grid container's available
   width before laying out an auto-fill track list. */
.homepage-products > .woocommerce ul.products {
	grid-template-columns: repeat(var(--product-columns, 4), 1fr) !important;
}

/* Products Grid - dynamic column count based on available width */
.woocommerce ul.products {
	list-style: none !important;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
	gap: 1.5rem !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}

/* WooCommerce's default clearfix pseudo-elements become phantom grid items
   once ul.products is display:grid - kill them so they don't eat a cell. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
	content: none !important;
}

.woocommerce ul.products li.product {
	display: flex !important;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	overflow: hidden;
	transition: all 0.2s;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	clear: none !important;
}

.woocommerce ul.products li.product:hover {
	box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.15);
	border-color: var(--primary-color);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* WooCommerce's own woocommerce.css ships
   ".woocommerce ul.products li.product a img { height: auto; ... }" - one
   more element (the "a") in its selector chain than a bare "...li.product
   img" gives it, so at equal class-count it wins on specificity and was
   silently overriding our fixed height back to auto (image rendered at
   its natural square aspect ratio instead of the intended crop). Including
   "a.woocommerce-LoopProduct-link" here matches/exceeds that. */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.woocommerce ul.products li.product .category-tile-placeholder {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.woocommerce ul.products li.product .category-tile-placeholder {
	display: flex;
	/* WooCommerce's own woocommerce.css gives the real <img> a
	   "margin: 0 0 1em" gap before the title - match it here since that
	   rule only targets img, not our placeholder span. */
	margin: 0 0 1em;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
	margin: 0.75rem;
	margin-bottom: 0.25rem;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--text-dark);
	text-align: center;
}

.woocommerce ul.products.list-view li.product h2,
.woocommerce ul.products.list-view li.product h3 {
	text-align: left;
}

.woocommerce ul.products li.product .product-short-description {
	margin: 0.5rem 0.75rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--text-gray);
}

.woocommerce ul.products li.product .price {
	margin: 0 0.75rem 0.75rem;
	color: var(--primary-color);
	font-weight: 600;
	font-size: 1.1rem;
}

/* List View */
.woocommerce ul.products.list-view {
	grid-template-columns: 1fr !important;
	gap: 1rem !important;
}

/* 3 sections: image | title+description | price. Title and description
   are grouped into one .product-loop-text wrapper (content-product.php)
   sitting in a single grid row alongside the image, instead of each
   living in its own "auto"/"1fr" row - with the image spanning two rows,
   the grid had to stretch the (normally short) description's row to make
   up whatever height the image's row didn't already cover, leaving a big
   empty gap below a couple of lines of text. One row avoids that: the
   row's height is simply max(image height, text wrapper height), and the
   wrapper is vertically centered in it instead of leaving dead space. */
.woocommerce ul.products.list-view li.product a.woocommerce-LoopProduct-link {
	display: grid;
	grid-template-columns: 220px 1fr auto;
	align-items: center;
	column-gap: 1.5rem;
	padding: 1rem;
}

.woocommerce ul.products.list-view li.product a.woocommerce-LoopProduct-link img,
.woocommerce ul.products.list-view li.product .category-tile-placeholder {
	grid-column: 1;
	width: 220px;
	height: 220px;
	flex-shrink: 0;
	/* Unlike grid view, the image sits in its own grid column here -
	   WooCommerce's own "margin: 0 0 1em" (on real img) and our matching
	   placeholder margin (added for grid view, where it isn't scoped
	   away from list view) just pushes the image up off-center instead
	   of creating useful spacing, since column-gap already separates it
	   from the text/price columns. */
	margin: 0 !important;
}

.woocommerce ul.products.list-view li.product .product-loop-text {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.woocommerce ul.products.list-view li.product h2,
.woocommerce ul.products.list-view li.product h3 {
	margin: 0;
	font-size: 1.15rem;
}

.woocommerce ul.products.list-view li.product .product-short-description {
	margin: 0;
	font-size: 0.9rem;
}

.woocommerce ul.products.list-view li.product .price {
	grid-column: 3;
	margin: 0;
	font-size: 1.2rem;
	white-space: nowrap;
}

.woocommerce ul.products li.product .button {
	display: none;
}

.woocommerce ul.products li.product .button:hover {
	display: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	flex-grow: 1;
}

.woocommerce-loop-product__link {
	text-decoration: none;
}

/* "Sleva!" / "Novinka!" ribbon - both share WooCommerce's .onsale class
   (see functions.php linai_new_show_new_product_badge()). Overrides the
   plugin's own default ".woocommerce span.onsale" circle (top-right) with
   a diagonal ribbon across the top-left corner, matching the homepage and
   related-products grids (assets/css/homepage.css,
   woocommerce-single-product.css). "overflow: hidden" on li.product
   (already set above) clips the corners that hang outside. */
.woocommerce ul.products li.product .onsale {
	position: absolute;
	top: 16px;
	left: -38px;
	right: auto;
	z-index: 2;
	width: 140px;
	margin: 0;
	padding: 0.35rem 0;
	background-color: var(--primary-color);
	color: var(--white);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-align: center;
	text-transform: uppercase;
	line-height: 1.2;
	border-radius: 0;
	min-width: 0;
	min-height: 0;
	transform: rotate(-45deg);
	box-shadow: 0 2px 6px rgba(var(--shadow-rgb), 0.15);
}

.woocommerce ul.products li.product {
	position: relative;
}

/* Pagination */
.woocommerce-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin: 2rem 0;
	flex-wrap: wrap;
}

/* WooCommerce's own woocommerce.css styles this entire nav chain with
   selectors like ".woocommerce nav.woocommerce-pagination ul li a:hover"
   - 3 classes + 4 elements. A bare ".woocommerce-pagination .page-numbers"
   override (2-3 classes, 0-1 elements) loses on specificity despite
   looking "more specific" by eye, since element-type counts are compared
   too (after class counts) once class counts tie - every rule below
   mirrors WC's own ".woocommerce nav.woocommerce-pagination ul[.page-
   numbers] li a/span[...]" chain so ours reliably wins; !important stays
   only where we're directly replacing one of their hardcoded values
   (display, colors, borders, margins) rather than adding a new one. */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex !important;
	gap: 0.3rem;
	list-style: none;
	margin: 0 !important;
	padding: 0;
	border: none !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
	display: inline-block;
	border: none !important;
	margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span {
	padding: 0.5rem 0.75rem;
	background: var(--light-bg);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	color: var(--text-dark);
	text-decoration: none;
	font-size: 0.95rem;
	transition: all 0.2s;
	display: inline-block;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li a:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a:focus {
	background: var(--header-bg) !important;
	color: var(--text-dark) !important;
	border-color: var(--border-tan);
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current {
	background: var(--text-dark) !important;
	color: var(--white) !important;
	border-color: var(--text-dark) !important;
}

/* Default browser focus ring (blue outline) looked out of place against
   the gold/cream palette - use our own instead of hiding it outright
   (keeps keyboard navigation visible, just on-brand). */
.woocommerce-pagination .page-numbers a:focus,
.woocommerce-pagination .page-numbers span:focus {
	outline: none;
}

.woocommerce-pagination .page-numbers a:focus-visible,
.woocommerce-pagination .page-numbers span:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.woocommerce-pagination .prev,
.woocommerce-pagination .next {
	font-weight: 600;
}

/* No Products */
.woocommerce-no-products-found {
	text-align: center;
	padding: 3rem 1rem;
	background: var(--bg-neutral-light);
	border-radius: 5px;
	grid-column: 1 / -1;
}

.woocommerce-no-products-found p {
	margin: 0;
	color: var(--text-medium);
	font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
	.category-content {
		grid-template-columns: 200px 1fr;
		gap: 1.5rem;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
		gap: 1rem !important;
	}

	/* The fixed --product-columns count (see the rule above, outside any
	   media query) is more specific than the auto-fill rule right above,
	   so it keeps winning at every breakpoint unless capped here too. */
	.homepage-products > .woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 768px) {
	.category-content {
		grid-template-columns: 1fr;
	}

	.category-sidebar {
		position: static;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
		gap: 1rem !important;
	}

	.products-count-view {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}

	.products-view-toggle {
		align-self: flex-end;
	}

	.woocommerce ul.products.list-view li.product a.woocommerce-LoopProduct-link {
		grid-template-columns: 1fr;
		row-gap: 0.5rem;
	}

	.woocommerce ul.products.list-view li.product a.woocommerce-LoopProduct-link img,
	.woocommerce ul.products.list-view li.product .category-tile-placeholder {
		grid-column: 1;
		width: 100%;
		height: 240px;
		margin: 0 !important;
	}

	.woocommerce ul.products.list-view li.product .product-loop-text,
	.woocommerce ul.products.list-view li.product .price {
		grid-column: 1;
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
		gap: 0.75rem !important;
	}

	.woocommerce ul.products li.product h2,
	.woocommerce ul.products li.product h3 {
		font-size: 0.9rem;
		margin: 0.5rem;
	}

	.woocommerce ul.products li.product .price {
		margin: 0 0.5rem 0.5rem;
		font-size: 1rem;
	}

	.woocommerce ul.products li.product .button {
		margin: auto 0.5rem 0.5rem;
		font-size: 0.85rem;
		padding: 0.4rem 0.75rem;
	}
}

/* ==========================================================================
   Category Sidebar Filters
   ========================================================================== */

.filters-widget {
	margin-bottom: 2rem;
}

.filters-header {
	margin-bottom: 1.25rem;
}

.filters-header h3 {
	margin: 0 0 0.35rem 0;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-dark);
}

.filters-subtitle {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.4;
}

.filter-group {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.filter-title {
	margin: 0 0 1rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-dark);
}

.filter-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.filter-checkboxes-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	color: var(--text-gray);
	font-size: 0.95rem;
	transition: color 0.2s;
}

.checkbox-label:hover {
	color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
	cursor: pointer;
	width: 18px;
	height: 18px;
	accent-color: var(--primary-color);
}

.filter-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
}

.color-label {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.color-checkbox {
	display: none;
}

.color-box {
	width: 32px;
	height: 32px;
	border-radius: 5px;
	border: 1px solid var(--border-gray-light);
	box-sizing: border-box;
	transition: all 0.2s;
}

.color-label:hover .color-box {
	border-color: var(--primary-color);
}

.color-checkbox:checked + .color-box {
	border-color: var(--text-dark);
	box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--text-dark);
}

/* Tooltip - hidden until hover, positioned above the swatch, so the
   name never takes up layout space (same pattern as the single product
   page's color/image variation swatches). */
.color-name {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: var(--text-dark);
	color: var(--white);
	padding: 0.25rem 0.6rem;
	border-radius: 5px;
	font-size: 0.75rem;
	line-height: 1.3;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease;
	z-index: 5;
}

.color-name::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--text-dark);
}

.color-label:hover .color-name {
	opacity: 1;
	visibility: visible;
}

/* Dual-handle price range slider - two overlapping native
   <input type="range"> elements. Each one's own track is made invisible
   (transparent background, no border) so only the visible custom track
   behind them and the native thumbs show; JS (woocommerce-filters.js)
   keeps the colored "fill" between the two handles in sync. */
.price-range-slider {
	position: relative;
	height: 28px;
	margin: 0.5rem 0 0.75rem;
}

.price-range-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	transform: translateY(-50%);
	background: var(--border-light);
	border-radius: 2px;
}

.price-range-track-fill {
	position: absolute;
	top: 0;
	height: 100%;
	background: var(--primary-color);
	border-radius: 2px;
}

.price-range-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.price-range-input::-webkit-slider-runnable-track {
	-webkit-appearance: none;
	background: transparent;
}

.price-range-input::-moz-range-track {
	background: transparent;
	border: none;
}

.price-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--primary-color);
	border: 2px solid var(--white);
	box-shadow: 0 1px 3px rgba(var(--shadow-rgb), 0.3);
	cursor: pointer;
	margin-top: 5px;
}

.price-range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--primary-color);
	border: 2px solid var(--white);
	box-shadow: 0 1px 3px rgba(var(--shadow-rgb), 0.3);
	cursor: pointer;
}

.price-range-values {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-gray);
}

.price-range-separator {
	color: var(--text-muted);
}

.filter-radios {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

/* Sort options - each row carries a fixed icon (sparkle/check/arrows);
   the actual radio input is visually hidden, and the currently selected
   option gets a solid dark fill instead of a visible radio dot. */
.sort-option-label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.9rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	color: var(--text-dark);
	font-size: 0.9rem;
	transition: background-color 0.2s, color 0.2s;
}

.sort-option-label:hover {
	background-color: var(--bg-cream-hover);
}

.sort-option-label .sort-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sort-option-icon {
	display: flex;
	color: var(--primary-color);
}

.sort-option-label:has(.sort-radio:checked) {
	background-color: var(--text-dark);
	color: var(--white);
}

.sort-option-label:has(.sort-radio:checked):hover {
	background-color: var(--text-dark);
}

.sort-option-label:has(.sort-radio:checked) .sort-option-icon {
	color: var(--white);
}

.sort-option-label:has(.sort-radio:focus-visible) {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.filter-actions {
	display: flex;
	gap: 0.75rem;
}

.filter-button {
	flex: 1;
	padding: 0.75rem;
	background: var(--heading-dark);
	color: var(--white);
	border: none;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.filter-button:hover {
	background: var(--heading-darker);
}

.reset-button {
	flex: 1;
	padding: 0.75rem;
	background: var(--bg-cream-hover);
	color: var(--text-dark);
	border: none;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s;
}

.reset-button:hover {
	background: var(--border-light);
}

@media (max-width: 768px) {
	.filters-widget {
		margin-bottom: 1.5rem;
	}

	.filter-group {
		margin-bottom: 1rem;
		padding: 1rem;
	}
}

/* Empty state - "no products found" (empty category/shop, or a filter
   combination with no matches) - replaces WooCommerce's plain default
   notice box (woocommerce/loop/no-products-found.php). */
.woocommerce-no-products-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	padding: 4rem 2rem;
	text-align: center;
	background: var(--light-bg);
	border: 1px dashed var(--border-light);
	border-radius: 5px;
}

.woocommerce-no-products-found .no-products-icon {
	display: flex;
	color: var(--primary-color);
	opacity: 0.6;
}

.woocommerce-no-products-found .no-products-icon svg {
	width: 56px;
	height: 56px;
}

.woocommerce-no-products-found .no-products-message {
	margin: 0;
	color: var(--text-gray);
	font-size: 1rem;
}

.woocommerce-no-products-found .no-products-button {
	display: inline-block;
	padding: 0.65rem 1.5rem;
	background: var(--heading-dark);
	color: var(--white);
	border-radius: 5px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.woocommerce-no-products-found .no-products-button:hover {
	background: var(--text-dark);
	color: var(--white);
}

/* Infinite scroll (category/shop product grid) */

.infinite-scroll-sentinel {
	height: 1px;
}

.infinite-scroll-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 2rem 0;
	color: var(--text-gray);
	font-size: 0.95rem;
}

.infinite-scroll-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid var(--border-light);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: linai-infinite-scroll-spin 0.7s linear infinite;
}

@keyframes linai-infinite-scroll-spin {
	to {
		transform: rotate(360deg);
	}
}
