/*
 * Floor Lounge Catalog - frontend styles.
 * Colours, radius, columns, image ratio and font come from CSS custom properties that the
 * plugin sets inline on each catalog (Settings -> Appearance). Every rule is scoped to
 * .flc-catalog so the theme and other plugins are not affected.
 */

.flc-catalog {
	--flc-cols: 3;
	--flc-cols-tablet: 2;
	--flc-cols-mobile: 2;
	--flc-accent: #111111;
	--flc-text: #111111;
	--flc-muted: #5f6b7a;
	--flc-border: #d6d6d6;
	--flc-button-bg: #d9d4c7;
	--flc-button-text: #111111;
	--flc-radius: 0px;
	--flc-pill-radius: 999px;
	--flc-image-ratio: 1 / 1;
	--flc-title-case: uppercase;
	--flc-surface: #f3f3f3;
	--flc-sale: #b3261e;

	box-sizing: border-box;
	width: 100%;
	color: var(--flc-text);
	font-family: var(--flc-font, inherit);
	font-size: 14px;
	line-height: 1.45;
}

.flc-catalog *,
.flc-catalog *::before,
.flc-catalog *::after {
	box-sizing: border-box;
}

.flc-catalog :focus-visible {
	outline: 2px solid var(--flc-accent);
	outline-offset: 2px;
}

.flc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.flc-archive-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px 16px 56px;
}

body.flc-archive .woocommerce-products-header {
	display: none;
}

/* ------------------------------------------------------------------ header */

.flc-catalog .flc-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	min-height: 240px;
	margin: 0 0 28px;
	background: var(--flc-surface);
}

.flc-catalog .flc-header.has-media {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.flc-catalog .flc-header__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 32px clamp(24px, 5vw, 64px);
}

.flc-catalog .flc-header__media {
	position: relative;
	min-height: 240px;
	overflow: hidden;
}

.flc-catalog .flc-header__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.flc-catalog .flc-eyebrow {
	margin: 0 0 6px;
	color: var(--flc-text);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-transform: uppercase;
}

.flc-catalog .flc-title {
	margin: 0 0 14px;
	padding: 0;
	color: var(--flc-text);
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: var(--flc-title-case);
	overflow-wrap: anywhere;
}

.flc-catalog .flc-description {
	max-width: 62ch;
	color: var(--flc-muted);
	font-size: 13px;
	line-height: 1.6;
}

.flc-catalog .flc-description p {
	margin: 0 0 0.6em;
}

.flc-catalog .flc-description > :last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------- sub-categories */

.flc-catalog .flc-subcats {
	margin: 0 0 24px;
}

.flc-catalog .flc-subcats__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(132px, 220px);
	gap: 12px;
	margin: 0;
	padding: 0 0 8px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.flc-catalog .flc-subcats__item {
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}

.flc-catalog .flc-subcat {
	display: block;
	color: inherit;
	text-decoration: none;
}

.flc-catalog .flc-subcat__media {
	display: block;
	aspect-ratio: 1 / 0.82;
	overflow: hidden;
	background: var(--flc-surface);
	border-radius: var(--flc-radius);
}

.flc-catalog .flc-subcat__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.flc-catalog .flc-subcat:hover .flc-subcat__media img,
.flc-catalog .flc-subcat:focus-visible .flc-subcat__media img {
	transform: scale(1.04);
}

.flc-catalog .flc-subcat__media .flc-card__placeholder {
	object-fit: contain;
	padding: 24%;
	opacity: 0.45;
}

.flc-catalog .flc-subcat__name {
	display: block;
	margin-top: 8px;
	color: var(--flc-text);
	font-size: 13px;
	line-height: 1.3;
}

.flc-catalog .flc-divider {
	height: 0;
	margin: 0 0 16px;
	padding: 0;
	background: none;
	border: 0;
	border-top: 1px solid var(--flc-border);
}

/* ----------------------------------------------------------------- toolbar */

.flc-catalog .flc-toolbar {
	margin: 0 0 12px;
}

.flc-catalog .flc-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.flc-catalog .flc-filters {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
}

.flc-catalog .flc-filter {
	position: relative;
}

.flc-catalog .flc-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 14px;
	background: #fff;
	color: var(--flc-text);
	border: 1px solid var(--flc-border);
	border-radius: var(--flc-pill-radius);
	font: 600 12px/1 var(--flc-font, inherit);
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.flc-catalog .flc-pill:hover,
.flc-catalog .flc-pill[aria-expanded="true"] {
	border-color: var(--flc-accent);
	background: #fff;
	color: var(--flc-text);
}

.flc-catalog .flc-pill.has-selection {
	background: var(--flc-accent);
	border-color: var(--flc-accent);
	color: #fff;
}

.flc-catalog .flc-pill__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #fff;
	color: var(--flc-accent);
	border-radius: 999px;
	font-size: 11px;
	line-height: 1;
}

.flc-catalog .flc-chevron {
	flex: none;
	transition: transform 0.15s ease;
}

.flc-catalog .flc-pill[aria-expanded="true"] .flc-chevron {
	transform: rotate(180deg);
}

.flc-catalog .flc-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	min-width: 220px;
	max-width: 320px;
	max-height: 340px;
	padding: 10px;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--flc-border);
	border-radius: calc(var(--flc-radius) + 4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.flc-catalog .flc-panel[hidden] {
	display: none !important;
}

.flc-catalog .flc-options {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flc-catalog .flc-options li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.flc-catalog .flc-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 6px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

.flc-catalog .flc-check:hover {
	background: var(--flc-surface);
}

.flc-catalog .flc-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--flc-accent);
}

.flc-catalog .flc-price {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.flc-catalog .flc-price__field {
	display: grid;
	gap: 4px;
	font-size: 12px;
	color: var(--flc-muted);
}

.flc-catalog .flc-price__field input {
	width: 100px;
	max-width: 100%;
	padding: 8px 10px;
	background: #fff;
	color: var(--flc-text);
	border: 1px solid var(--flc-border);
	border-radius: var(--flc-radius);
	font: 400 14px/1.2 var(--flc-font, inherit);
}

.flc-catalog .flc-price__sep {
	padding-bottom: 8px;
	color: var(--flc-muted);
}

.flc-catalog .flc-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	color: var(--flc-muted);
	font-size: 13px;
}

.flc-catalog .flc-sort__label {
	margin: 0;
	font-weight: 400;
}

.flc-catalog .flc-select select {
	min-width: 150px;
	margin: 0;
	padding: 9px 34px 9px 14px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--flc-text);
	border: 1px solid var(--flc-border);
	border-radius: var(--flc-pill-radius);
	font: 600 12px/1.2 var(--flc-font, inherit);
	height: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* ------------------------------------------------------- status & chips */

.flc-catalog .flc-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 28px 0 20px;
}

.flc-catalog .flc-count {
	margin: 0;
	color: var(--flc-muted);
	font-size: 13px;
}

.flc-catalog .flc-chips__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flc-catalog .flc-chips__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.flc-catalog .flc-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: var(--flc-surface);
	color: var(--flc-text);
	border: 1px solid var(--flc-border);
	border-radius: var(--flc-pill-radius);
	font-size: 12px;
	line-height: 1.2;
	text-decoration: none;
}

.flc-catalog .flc-chip:hover {
	border-color: var(--flc-accent);
}

.flc-catalog .flc-chip__x {
	font-size: 14px;
	line-height: 1;
}

.flc-catalog .flc-clear-link {
	color: var(--flc-muted);
	font-size: 12px;
	text-decoration: underline;
}

/* ------------------------------------------------------------------- grid */

.flc-catalog .flc-results {
	position: relative;
	min-height: 120px;
	transition: opacity 0.15s ease;
}

.flc-catalog .flc-results[aria-busy="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.flc-catalog .flc-grid {
	display: grid;
	grid-template-columns: repeat(var(--flc-cols, 3), minmax(0, 1fr));
	gap: 36px 20px;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* WooCommerce adds clearfix pseudo-elements to ul.products that would become grid cells. */
.flc-catalog .flc-grid::before,
.flc-catalog .flc-grid::after {
	content: none !important;
	display: none !important;
}

.flc-catalog .flc-grid > li.flc-card {
	position: relative;
	display: block;
	clear: none;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flc-catalog .flc-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.flc-catalog .flc-card__media {
	position: relative;
	order: 1;
	aspect-ratio: var(--flc-image-ratio);
	overflow: hidden;
	background: var(--flc-surface);
	border-radius: var(--flc-radius);
}

.flc-catalog .flc-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.flc-catalog .flc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.flc-catalog .flc-card:hover .flc-card__media img {
	transform: scale(1.03);
}

.flc-catalog .flc-card__media .flc-card__placeholder {
	object-fit: contain;
	padding: 22%;
	opacity: 0.45;
}

.flc-catalog .flc-card--outofstock .flc-card__media img {
	opacity: 0.6;
}

.flc-catalog .flc-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.flc-catalog .flc-badge {
	padding: 4px 8px;
	background: #fff;
	color: var(--flc-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
}

.flc-catalog .flc-badge--sale {
	background: var(--flc-sale);
	color: #fff;
}

.flc-catalog .flc-badge--out {
	color: #555;
	border: 1px solid var(--flc-border);
}

.flc-catalog .flc-card__actions {
	order: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 36px;
	margin-top: 10px;
}

.flc-catalog .flc-card__variants {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-width: 0;
}

.flc-catalog .flc-swatches {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flc-catalog .flc-swatch {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	background: #ddd;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	list-style: none;
}

.flc-catalog .flc-swatch--unknown {
	background: repeating-linear-gradient(45deg, #e3e3e3, #e3e3e3 3px, #f6f6f6 3px, #f6f6f6 6px);
}

.flc-catalog .flc-swatch-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	color: var(--flc-text);
	border: 1px solid var(--flc-text);
	border-radius: 999px;
	font-size: 9px;
	line-height: 1;
	list-style: none;
}

.flc-catalog .flc-sizes {
	color: var(--flc-muted);
	font-size: 11px;
	text-decoration: underline;
}

.flc-catalog .flc-btn {
	display: inline-block;
	margin: 0;
	padding: 10px 12px;
	background: var(--flc-button-bg);
	color: var(--flc-button-text);
	border: 0;
	border-radius: var(--flc-radius);
	font: 600 11px/1 var(--flc-font, inherit);
	letter-spacing: 0.06em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
}

.flc-catalog .flc-btn:hover {
	background: var(--flc-button-bg);
	color: var(--flc-button-text);
	filter: brightness(0.94);
}

.flc-catalog .flc-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

.flc-catalog .added_to_cart {
	font-size: 11px;
	color: var(--flc-muted);
}

.flc-catalog .flc-card__body {
	order: 3;
	padding-top: 10px;
}

.flc-catalog .flc-card__brand {
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.flc-catalog .flc-card__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.flc-catalog .flc-card__title a {
	color: inherit;
	text-decoration: none;
}

.flc-catalog .flc-card__title a:hover {
	text-decoration: underline;
}

.flc-catalog .flc-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 8px;
}

.flc-catalog .flc-card__price {
	font-size: 14px;
	font-weight: 600;
}

.flc-catalog .flc-card__price del {
	margin-right: 4px;
	font-weight: 400;
	opacity: 0.55;
}

.flc-catalog .flc-card__price .woocommerce-price-suffix {
	margin-left: 3px;
	color: var(--flc-muted);
	font-size: 11px;
	font-weight: 400;
}

.flc-catalog .flc-card__price ins {
	background: none;
	text-decoration: none;
}

.flc-catalog .flc-card__rating {
	color: var(--flc-muted);
	font-size: 12px;
	white-space: nowrap;
}

.flc-catalog .flc-star {
	color: #e0a800;
}

/* --------------------------------------------------------- pagination etc */

.flc-catalog .flc-pagination {
	margin: 40px 0 0;
}

.flc-catalog .flc-pagination__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flc-catalog .flc-pagination__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.flc-catalog .flc-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	color: var(--flc-text);
	border: 1px solid var(--flc-border);
	border-radius: var(--flc-radius);
	font-size: 13px;
	text-decoration: none;
}

.flc-catalog a.flc-page:hover {
	border-color: var(--flc-accent);
}

.flc-catalog .flc-page.is-current {
	background: var(--flc-accent);
	border-color: var(--flc-accent);
	color: #fff;
}

.flc-catalog .flc-page--gap {
	border-color: transparent;
}

.flc-catalog .flc-empty,
.flc-catalog .flc-error {
	padding: 48px 16px;
	text-align: center;
	color: var(--flc-muted);
	background: var(--flc-surface);
	border-radius: var(--flc-radius);
}

.flc-catalog .flc-empty p,
.flc-catalog .flc-error p {
	margin: 0 0 8px;
}

.flc-catalog .flc-empty--notice {
	padding: 16px;
	font-size: 13px;
}

.flc-catalog .flc-error button {
	margin-top: 8px;
}

/* ---------------------------------------------------- "All filters" drawer */

.flc-catalog .flc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.4);
}

.flc-catalog .flc-backdrop[hidden] {
	display: none;
}

html.flc-lock {
	overflow: hidden;
}

.flc-catalog .flc-filters.is-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100002;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	width: min(420px, 100vw);
	padding: 0;
	overflow-y: auto;
	background: #fff;
	box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
}

.flc-catalog .is-drawer .flc-drawer__head {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #fff;
	border-bottom: 1px solid var(--flc-border);
	font-size: 16px;
}

.flc-catalog .flc-drawer__close {
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	color: var(--flc-text);
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.flc-catalog .is-drawer .flc-filter {
	padding: 4px 20px;
	border-bottom: 1px solid var(--flc-border);
}

.flc-catalog .is-drawer .flc-pill {
	width: 100%;
	justify-content: space-between;
	padding: 14px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--flc-text);
	font-size: 14px;
	pointer-events: none;
}

.flc-catalog .is-drawer .flc-pill.has-selection {
	background: transparent;
	color: var(--flc-text);
}

.flc-catalog .is-drawer .flc-pill .flc-chevron {
	display: none;
}

.flc-catalog .is-drawer .flc-pill__count {
	background: var(--flc-accent);
	color: #fff;
}

.flc-catalog .is-drawer .flc-panel {
	position: static;
	min-width: 0;
	max-width: none;
	max-height: none;
	padding: 0 0 12px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.flc-catalog .is-drawer .flc-pill--all {
	display: none;
}

.flc-catalog .is-drawer .flc-drawer__foot {
	position: sticky;
	bottom: 0;
	margin-top: auto;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid var(--flc-border);
}

.flc-catalog .flc-drawer__apply {
	width: 100%;
	padding: 14px;
	background: var(--flc-accent);
	color: #fff;
}

.flc-catalog .flc-drawer__apply:hover {
	background: var(--flc-accent);
	color: #fff;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.flc-catalog .flc-grid {
		grid-template-columns: repeat(var(--flc-cols-tablet, 2), minmax(0, 1fr));
		gap: 32px 16px;
	}
}

@media (max-width: 767px) {
	.flc-archive-wrap {
		padding: 16px 16px 40px;
	}

	.flc-catalog .flc-header,
	.flc-catalog .flc-header.has-media {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.flc-catalog .flc-header__media {
		order: -1;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.flc-catalog .flc-header__text {
		padding: 24px 20px;
	}

	.flc-catalog .flc-subcats__list {
		grid-auto-columns: minmax(104px, 38vw);
		gap: 10px;
		margin-right: -16px;
		padding-right: 16px;
	}

	.flc-catalog .flc-form {
		flex-direction: column;
		align-items: stretch;
	}

	.flc-catalog .flc-form > *,
	.flc-catalog .flc-sort {
		min-width: 0;
		max-width: 100%;
	}

	/* Filter pills scroll sideways; each panel opens as a bottom sheet so it is never clipped. */
	.flc-catalog .flc-filters {
		flex-wrap: nowrap;
		padding-bottom: 6px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.flc-catalog .flc-filters::-webkit-scrollbar {
		display: none;
	}

	/* "All Filters" leads the scrolling row so it is always reachable without swiping. */
	.flc-catalog .flc-filters:not(.is-drawer) > .flc-pill--all {
		order: -1;
		flex: 0 0 auto;
	}

	.flc-catalog .flc-filters > .flc-filter {
		flex: 0 0 auto;
	}

	.flc-catalog .flc-filters.is-drawer {
		width: 100vw;
	}

	.flc-catalog .flc-panel {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 100002;
		min-width: 0;
		max-width: none;
		max-height: 70vh;
		padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		border: 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
	}

	.flc-catalog .flc-sort {
		justify-content: space-between;
		margin-left: 0;
	}

	.flc-catalog .flc-select,
	.flc-catalog .flc-select select {
		min-width: 0;
		max-width: 100%;
	}

	.flc-catalog .flc-grid {
		grid-template-columns: repeat(var(--flc-cols-mobile, 2), minmax(0, 1fr));
		gap: 28px 12px;
	}

	.flc-catalog .flc-card__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.flc-catalog .flc-btn {
		width: 100%;
	}

	.flc-catalog .flc-card__meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.flc-catalog .flc-pagination__list {
		gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flc-catalog *,
	.flc-catalog *::before,
	.flc-catalog *::after {
		animation: none !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* ------------------------------------------------------------------------------------
 * Theme-proofing: themes / WooCommerce often style ul.products li.product, a.button,
 * h3 and .price with higher specificity. These rules keep the cards full width and
 * matching the design regardless of the active theme.
 * ---------------------------------------------------------------------------------- */

.flc-catalog ul.flc-grid.products,
.flc-catalog ul.flc-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--flc-cols, 3), minmax(0, 1fr)) !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.flc-catalog ul.flc-grid > li.flc-card,
.flc-catalog ul.flc-grid > li.flc-card.product {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.flc-catalog .flc-card .flc-card__inner {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.flc-catalog .flc-card .flc-card__media {
	width: 100% !important;
	aspect-ratio: var(--flc-image-ratio, 1 / 1);
}

.flc-catalog .flc-card .flc-card__image-link,
.flc-catalog .flc-card .flc-card__image-link img,
.flc-catalog .flc-card .flc-card__media img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	object-fit: cover;
}

.flc-catalog .flc-card .flc-card__media img.flc-card__placeholder {
	object-fit: contain;
}

.flc-catalog .flc-card .flc-btn.flc-btn {
	display: inline-block;
	margin: 0;
	padding: 10px 14px;
	background: var(--flc-button-bg);
	color: var(--flc-button-text);
	border: 0;
	border-radius: var(--flc-radius);
	font: 600 11px/1 var(--flc-font, inherit);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
}

.flc-catalog .flc-card .flc-btn.flc-btn:hover {
	background: var(--flc-button-bg);
	color: var(--flc-button-text);
	filter: brightness(0.94);
}

.flc-catalog .flc-card .flc-card__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
}

.flc-catalog .flc-card .flc-card__title a {
	color: var(--flc-text);
}

.flc-catalog .flc-card .flc-card__price,
.flc-catalog .flc-card .flc-card__price .amount,
.flc-catalog .flc-card .flc-card__price ins,
.flc-catalog .flc-card .flc-card__price bdi {
	color: var(--flc-text);
	font-size: 14px;
	font-weight: 600;
	background: none;
}

.flc-catalog .flc-card .flc-card__price del,
.flc-catalog .flc-card .flc-card__price del .amount {
	color: var(--flc-muted);
	font-weight: 400;
	opacity: 0.8;
}

.flc-catalog .flc-card .flc-badge {
	position: static;
	margin: 0;
	min-height: 0;
	line-height: 1.2;
	border-radius: 0;
}
