/*
 * LC Médical — shop and category archive, in the language of the home: a pale-blue band (16px radius) with a navy Barlow H1,
 * pill sub-department tabs (same as the home's category tabs), a white filter card, the shared control scale for every
 * field and button, round pagination. Filters open in a bottom sheet on mobile.
 */

.lc-main--archive {
	padding-block-end: var(--lc-section);
}

/* ---------- Category band ---------- */
.lc-archive__head {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--lc-s-2) var(--lc-s-6);
	align-items: end;
	padding: clamp(20px, 3vw, 40px);
	overflow: hidden;
	background-color: var(--lc-blue-50);
	border: 1px solid var(--lc-blue-100);
	border-radius: var(--lc-card-r);
	color: var(--lc-ink-2);
	isolation: isolate;
}

.lc-archive__head::after {
	content: '';
	position: absolute;
	z-index: -1;
	inset-block-end: -110px;
	inset-inline-end: -70px;
	inline-size: 280px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--lc-blue-100);
}

@media (min-width: 760px) {
	.lc-archive__head {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.lc-archive__title {
		grid-column: 1 / -1;
	}
}

.lc-archive__title {
	margin: 0;
	font-family: var(--lc-font-label);
	font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0;
	color: var(--lc-navy-900);
	text-wrap: balance;
}

.lc-archive__sub {
	max-inline-size: 60ch;
	margin: 0;
	font-size: var(--lc-fs-md);
	line-height: 1.5;
	color: var(--lc-ink-2);
}

.lc-archive__count {
	justify-self: start;
	margin: 0;
	padding: 0.4em 1em 0.35em;
	border-radius: var(--lc-r-pill);
	background: var(--lc-paper);
	font-family: var(--lc-font-label);
	font-size: var(--lc-fs-base);
	font-weight: 700;
	line-height: 1.1;
	color: var(--lc-navy-800);
	font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- Sub-departments: the home's pill tabs ---------- */
.lc-subdepts {
	margin-block: var(--lc-s-4) 0;
}

.lc-subdepts__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lc-s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lc-subdept {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	min-block-size: var(--lc-tap);
	padding: 0 1.25em;
	border: 1.5px solid var(--lc-line-strong);
	border-radius: var(--lc-r-pill);
	background: var(--lc-paper);
	color: var(--lc-navy-800);
	font-family: var(--lc-font-label);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color var(--lc-dur-fast) linear, border-color var(--lc-dur-fast) linear, color var(--lc-dur-fast) linear;
}

.lc-subdept:hover {
	border-color: var(--lc-action);
	background: var(--lc-blue-50);
	color: var(--lc-navy-800);
}

.lc-subdept__count {
	font-family: var(--lc-font-text);
	font-size: var(--lc-fs-sm);
	font-weight: 400;
	color: var(--lc-ink-muted);
	font-variant-numeric: tabular-nums;
}

.lc-subdept.is-active,
.lc-subdept.is-active:hover {
	border-color: var(--lc-navy-800);
	background: var(--lc-navy-800);
	color: #fff;
}

.lc-subdept.is-active .lc-subdept__count {
	color: rgb(255 255 255 / 0.82);
}

/* Narrow screens: a tighter band, and the sub-departments scroll in one row so the first cards start in the first screen. */
@media (max-width: 599.98px) {
	.lc-archive__head {
		padding: var(--lc-s-4);
	}

	.lc-archive__title {
		font-size: clamp(1.75rem, 1.4rem + 2vw, 2.125rem);
	}

	.lc-archive__sub {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
		font-size: var(--lc-fs-base);
		line-height: 1.4;
	}

	.lc-subdepts {
		margin-block-start: var(--lc-s-3);
		margin-inline: calc(var(--lc-gutter) * -1);
	}

	.lc-subdepts__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 4px var(--lc-gutter);
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--lc-gutter);
		scrollbar-width: none;
	}

	.lc-subdepts__list::-webkit-scrollbar {
		display: none;
	}

	.lc-subdepts__list > li {
		flex: none;
		scroll-snap-align: start;
	}

	.lc-archive {
		margin-block-start: var(--lc-s-3);
	}
}

/* ---------- Layout: filters | results ---------- */
.lc-archive {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--lc-s-5);
	margin-block-start: var(--lc-s-5);
}

.lc-archive__filters {
	display: none;
}

@media (min-width: 1000px) {
	.lc-archive {
		grid-template-columns: 264px minmax(0, 1fr);
		gap: var(--lc-s-6);
		align-items: start;
	}

	.lc-archive__filters {
		position: sticky;
		inset-block-start: calc(var(--lc-sticky-top) + var(--lc-s-4));
		display: block;
		max-block-size: calc(100dvh - var(--lc-sticky-top) - var(--lc-s-6));
		padding: var(--lc-s-4) var(--lc-s-4) var(--lc-s-3);
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--lc-paper);
		border: 1px solid var(--lc-line);
		border-radius: var(--lc-card-r);
		box-shadow: var(--lc-card-shadow);
	}
}

.lc-archive__filters-title {
	margin: 0 0 var(--lc-s-1);
	font-family: var(--lc-font-label);
	font-size: var(--lc-fs-h4);
	font-weight: 700;
	color: var(--lc-navy-900);
}

/* ---------- Filter groups ---------- */
.lc-fgroup {
	border-block-start: 1px solid var(--lc-line);
}

.lc-archive__filters .lc-fgroup:first-of-type {
	border-block-start: 0;
}

.lc-fgroup__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lc-s-3);
	min-block-size: var(--lc-ctl-md);
	font-family: var(--lc-font-label);
	font-size: var(--lc-fs-md);
	font-weight: 700;
	color: var(--lc-navy-900);
	cursor: pointer;
	list-style: none;
}

.lc-fgroup__title::-webkit-details-marker {
	display: none;
}

.lc-fgroup__title .lc-icon {
	transition: transform var(--lc-dur-med) var(--lc-ease-out);
}

.lc-fgroup[open] > .lc-fgroup__title .lc-icon {
	transform: rotate(180deg);
}

.lc-fgroup__body {
	display: grid;
	gap: 2px;
	padding-block-end: var(--lc-s-3);
}

.lc-fopt {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--lc-s-3);
	min-block-size: var(--lc-tap);
	cursor: pointer;
	font-size: var(--lc-fs-base);
	line-height: 1.3;
}

.lc-fopt input[type='checkbox'] {
	-webkit-appearance: none;
	appearance: none;
	inline-size: 22px;
	block-size: 22px;
	margin: 0;
	border: 1.5px solid var(--lc-line-strong);
	border-radius: 3px;
	background-color: var(--lc-paper);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px;
	cursor: pointer;
	transition: background-color var(--lc-dur-fast) linear, border-color var(--lc-dur-fast) linear;
}

.lc-fopt input[type='checkbox']:hover {
	border-color: var(--lc-ink);
}

.lc-fopt input[type='checkbox']:checked {
	border-color: var(--lc-action);
	background-color: var(--lc-action);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.lc-fopt__label {
	min-inline-size: 0;
}

.lc-fopt__count {
	font-size: var(--lc-fs-sm);
	color: var(--lc-ink-muted);
	font-variant-numeric: tabular-nums;
}

/* Price range */
.lc-fprice {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
	align-items: start;
	gap: var(--lc-s-2);
}

.lc-fprice label {
	display: grid;
	gap: 4px;
	margin: 0;
	font-size: var(--lc-fs-xs);
	font-weight: 700;
	color: var(--lc-ink-muted);
}

/* The inputs themselves are the shared field of forms.css (48px, 1.5px border, 4px radius); only the layout is set here. */
.lc-fprice input {
	inline-size: 100%;
	margin: 0;
}

.lc-fprice__sep {
	align-self: end;
	block-size: 1.5px;
	margin-block-end: calc(var(--lc-ctl-md) / 2);
	background: var(--lc-line-strong);
}

.lc-filters__actions {
	padding-block: var(--lc-s-3) var(--lc-s-1);
}

/* ---------- Toolbar ---------- */
.lc-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lc-s-3);
	padding-block-end: var(--lc-s-3);
	margin-block-end: var(--lc-s-4);
	border-block-end: 1px solid var(--lc-line);
}

@media (min-width: 1000px) {
	.lc-toolbar {
		justify-content: flex-end;
	}

	.lc-toolbar__filter {
		display: none;
	}
}

.lc-toolbar__sort {
	display: flex;
	align-items: center;
	gap: var(--lc-s-2);
	margin: 0;
}

.lc-toolbar__sort label {
	font-size: var(--lc-fs-sm);
	font-weight: 700;
	color: var(--lc-ink-muted);
	white-space: nowrap;
}

.lc-toolbar__sort select {
	-webkit-appearance: none;
	appearance: none;
	min-block-size: var(--lc-ctl-md);
	padding: 0 2.4em 0 0.9em;
	border: var(--lc-ctl-bw) solid var(--lc-ctl-border);
	border-radius: var(--lc-ctl-r);
	background-color: var(--lc-ctl-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313201b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 0.7em center;
	background-repeat: no-repeat;
	background-size: 1.1em;
	color: var(--lc-ink);
	font: 700 var(--lc-fs-base)/1.2 var(--lc-font-text);
	box-shadow: none;
	cursor: pointer;
}

html[dir='rtl'] .lc-toolbar__sort select {
	padding: 0 0.9em 0 2.4em;
	background-position: left 0.7em center;
}

.lc-toolbar__sort select:hover {
	border-color: var(--lc-ink);
}

@media (max-width: 479.98px) {
	/* Visually hidden (same as .lc-vh), still the select's accessible name. */
	.lc-toolbar__sort label {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
		border: 0;
	}

	.lc-toolbar__sort select {
		max-inline-size: 11.5em;
	}
}

/* ---------- Active filters ---------- */
.lc-chips-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lc-s-2);
	margin: 0 0 var(--lc-s-4);
	padding: 0;
	list-style: none;
}

.lc-fchip {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-block-size: var(--lc-tap);
	padding: 0.3em 0.8em 0.3em 1.1em;
	border: 1.5px solid var(--lc-action);
	border-radius: var(--lc-r-pill);
	background: var(--lc-blue-50);
	color: var(--lc-link-hover);
	font-size: var(--lc-fs-sm);
	font-weight: 700;
	text-decoration: none;
}

.lc-fchip:hover {
	background: var(--lc-blue-100);
	color: var(--lc-link-hover);
}

.lc-fchip .lc-icon {
	inline-size: 1.1em;
	block-size: 1.1em;
}

.lc-fclear {
	display: inline-flex;
	align-items: center;
	min-block-size: var(--lc-tap);
	padding-inline: var(--lc-s-2);
	font-size: var(--lc-fs-sm);
	font-weight: 700;
	color: var(--lc-ink);
	text-decoration-line: underline;
}

/* ---------- Grid (with the filter column, desktop shows fewer, larger cards) ---------- */
body ul.products.lc-archive__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 760px) {
	body ul.products.lc-archive__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) and (max-width: 1179.98px) {
	body ul.products.lc-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1180px) {
	body ul.products.lc-archive__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Advice band: the person behind the counter, a lacquer front across the row. */
.lc-advice {
	position: relative;
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--lc-s-4) var(--lc-s-6);
	align-items: center;
	padding: var(--lc-s-5);
	overflow: hidden;
	background-color: var(--lc-navy-800);
	border-radius: var(--lc-card-r);
	box-shadow: none;
	list-style: none;
	isolation: isolate;
}

/* The home's tall navy advice card: a soft bright-blue disc in the corner. */
.lc-advice::after {
	content: '';
	position: absolute;
	z-index: -1;
	inset-block-end: -90px;
	inset-inline-end: -90px;
	inline-size: 260px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgb(36 144 235 / 0.28);
}

@media (min-width: 760px) {
	.lc-advice {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: var(--lc-s-5) var(--lc-s-6);
	}
}

.lc-advice__title {
	margin: 0 0 var(--lc-s-2);
	font-family: var(--lc-font-label);
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
}

.lc-advice__text p {
	max-inline-size: 52ch;
	margin: 0;
	color: var(--lc-text-muted);
}

.lc-advice__action {
	display: grid;
	justify-items: start;
	gap: var(--lc-s-2);
}

.lc-advice__action small {
	color: var(--lc-text-muted);
}

@media (min-width: 760px) {
	.lc-advice__action {
		justify-items: center;
	}
}

/* ---------- Pagination ---------- */
.woocommerce-pagination {
	margin-block-start: var(--lc-s-7);
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--lc-s-2);
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.woocommerce-pagination ul.page-numbers li {
	margin: 0;
	border: 0;
}

.woocommerce-pagination .page-numbers:is(a, span) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: var(--lc-tap);
	min-block-size: var(--lc-tap);
	padding: 0 0.7em;
	border: 1.5px solid var(--lc-line-strong);
	border-radius: var(--lc-r-pill);
	background: var(--lc-paper);
	color: var(--lc-navy-800);
	font: 600 1.0625rem/1 var(--lc-font-label);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.woocommerce-pagination a.page-numbers:hover {
	border-color: var(--lc-action);
	background: var(--lc-blue-50);
}

.woocommerce-pagination .page-numbers.current {
	border-color: var(--lc-navy-800);
	background: var(--lc-navy-800);
	color: #fff;
}

.woocommerce-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
}

/* ---------- Empty ---------- */
.lc-empty {
	max-inline-size: 56ch;
	padding: var(--lc-s-5);
	background: var(--lc-paper);
	border: 1px solid var(--lc-line);
	border-radius: var(--lc-card-r);
}

.lc-empty__title {
	margin: 0 0 var(--lc-s-3);
	font-size: var(--lc-fs-h4);
	color: var(--lc-navy-900);
}

.lc-empty p {
	margin: 0 0 var(--lc-s-4);
	color: var(--lc-ink-muted);
}

/* ---------- SEO block: intro and FAQ, both held to the reading measure ---------- */
.lc-seo {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--lc-s-6);
	margin-block-start: var(--lc-section);
	padding-block-start: var(--lc-s-6);
	border-block-start: 1px solid var(--lc-line);
}

@media (min-width: 1000px) {
	.lc-seo {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--lc-s-8);
	}
}

.lc-seo__intro {
	max-inline-size: 68ch;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--lc-ink-2);
}

.lc-seo__intro > :first-child {
	margin-block-start: 0;
}

.lc-seo__faq {
	max-inline-size: 68ch;
}

.lc-seo__title {
	margin: 0 0 var(--lc-s-3);
	font-size: var(--lc-fs-h4);
	color: var(--lc-navy-900);
}

.lc-faq {
	border-block-end: 1px solid var(--lc-line);
}

.lc-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lc-s-4);
	min-block-size: 56px;
	padding-block: var(--lc-s-2);
	font-size: var(--lc-fs-md);
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}

.lc-faq summary::-webkit-details-marker {
	display: none;
}

.lc-faq summary .lc-icon {
	color: var(--lc-accent);
	transition: transform var(--lc-dur-med) var(--lc-ease-out);
}

.lc-faq[open] summary .lc-icon {
	transform: rotate(45deg);
}

.lc-faq .lc-prose {
	padding-block-end: var(--lc-s-4);
	color: var(--lc-ink-2);
}

.lc-faq .lc-prose > :first-child {
	margin-block-start: 0;
}

@media (prefers-reduced-motion: reduce) {
	.lc-fgroup__title .lc-icon,
	.lc-faq summary .lc-icon {
		transition-duration: 0.01ms;
	}
}

/* The results region takes focus from the "Aller aux résultats" skip link; it needs no ring of its own. */
.lc-archive__main:focus {
	outline: 0;
}

/* Hours in the advice band: Barlow numerals (no slashed zero). */
.lc-advice__action small {
	font-family: var(--lc-font-label);
	font-size: var(--lc-fs-sm);
	font-weight: 600;
	letter-spacing: 0.03em;
	font-variant-numeric: tabular-nums lining-nums;
}

/* Brand archive: the brand's logo on a white plate above the title. */
.lc-archive__brand {
	grid-column: 1 / -1;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	block-size: 4.5rem;
	padding: var(--lc-s-3) var(--lc-s-5);
	border-radius: var(--lc-r-sheet, 12px);
	background: var(--lc-paper);
	box-shadow: 0 1px 2px rgb(13 24 80 / 0.06), 0 4px 14px rgb(13 24 80 / 0.06);
}

.lc-archive__brand img {
	display: block;
	inline-size: auto;
	max-inline-size: 11rem;
	max-block-size: 100%;
	object-fit: contain;
}
