/**
 * CLUSE — shop styles (PLP, search, filter drawer, pagination).
 *
 * Reuses theme-core's base.css primitives (.page-width/.page-content/.grid/.grid__item/
 * .medium-up--one-fifth/.product-card/.btn/.price__*) so the shop pages share the exact
 * same geometry as the reference: container 1300 / 40px, page-content 60px,
 * gutter 30px, 5-column PLP grid (2 columns on mobile).
 *
 * Only shop-specific components live here. Owned by theme-shop.
 */



/* ------------------------------------------------------------------ *
 * 2. Breadcrumb — 13px / 40px gap (11px / 20px on mobile)
 * ------------------------------------------------------------------ */
.breadcrumb {
	color: var(--cluse-ink);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: var(--cluse-base-spacing);
	line-height: 1.6;
	margin: 0 0 40px;
}

.breadcrumb a {
	color: inherit;
}

.breadcrumb a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.breadcrumb__divider {
	color: currentColor;
	padding: 0 0.35em;
}

/* ------------------------------------------------------------------ *
 * 2. Section header (collection / search title)
 * ------------------------------------------------------------------ */
.section-header {
	margin-bottom: 50px;
	text-align: center;
}

.section-header__title {
	color: var(--cluse-ink);
	font-family: var(--cluse-font-heading);
	font-size: 35px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 42px;
	margin: 0;
	text-transform: none;
}

/* ------------------------------------------------------------------ *
 * 3. Collection toolbar: "Filtrer" + tri
 * ------------------------------------------------------------------ */
.collection-filter {
	margin-bottom: 20px;
}

.collection-filter .grid {
	overflow: visible;
}

.collection-filter__item--drawer,
#FilterDrawerTrigger {
	align-items: center;
	background: transparent;
	border: 1px solid var(--cluse-border);
	box-sizing: border-box;
	color: var(--cluse-ink);
	cursor: pointer;
	display: inline-flex;
	font-family: var(--cluse-font-body);
	font-size: 16px;
	font-weight: 400;
	gap: 10px;
	height: 44px;
	justify-content: center;
	line-height: 1.42;
	padding: 0 20px;
	text-align: center;
	text-transform: none;
}

#FilterDrawerTrigger:hover,
.collection-filter__item--drawer:hover {
	border-color: var(--cluse-ink);
}

#FilterDrawerTrigger .icon {
	height: 16px;
	width: 16px;
}

.collection-filter__item--sort {
	padding-left: 30px;
}

#SortBy {
	appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231c1d1d' stroke-width='1.5'/%3E%3C/svg%3E");
	background-position: right 8px center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	border: 1px solid var(--cluse-border);
	border-radius: 0;
	box-sizing: border-box;
	color: var(--cluse-ink);
	cursor: pointer;
	display: inline-block;
	font-family: var(--cluse-font-body);
	font-size: 16px;
	height: 44px;
	letter-spacing: 0.4px;
	line-height: 1.15;
	max-width: 320px;
	padding: 8px 28px 8px 10px;
	width: 100%;
}

#SortBy:focus {
	border-color: var(--cluse-ink);
	outline: none;
}

/* ------------------------------------------------------------------ *
 * 4. Grid cells (reference .grid-product rules)
 * ------------------------------------------------------------------ */
.cluse-plp .grid-product {
	margin-bottom: 40px;
	position: relative;
}


.cluse-plp .grid-product .product-card__price {
	font-size: 12.6px;
	line-height: 1.5;
	margin-top: 6px;
}

.cluse-plp .grid-product .product-card__info {
	line-height: 1.5;
}

/* ------------------------------------------------------------------ *
 * 5. Pagination (reference: 80px top padding, round next arrow)
 * ------------------------------------------------------------------ */
.pagination {
	font-family: var(--cluse-font-body);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	padding: 80px 0 0;
	text-align: center;
}

.pagination > span {
	display: inline-block;
	line-height: 1;
	vertical-align: middle;
}

.pagination .page > a,
.pagination .page.current {
	display: inline-block;
	padding: 8px 12px;
}

.pagination .page.current {
	opacity: 0.3;
}

.pagination .next {
	background: var(--cluse-green);
	border-radius: 43px;
	color: var(--cluse-btn-text, #fff);
	height: 43px;
	line-height: 27px;
	margin: 0 10px;
	width: 43px;
}

.pagination .next a {
	align-items: center;
	color: #fff;
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.pagination .next .icon {
	color: #fff;
	height: 13px;
	width: 13px;
}

/* ------------------------------------------------------------------ *
 * 6. Filter drawer (left, 350px / 450 = reference drawer metrics)
 * ------------------------------------------------------------------ */
.drawer {
	-webkit-overflow-scrolling: touch;
	background: #fff;
	bottom: 0;
	color: var(--cluse-ink);
	display: flex;
	flex-direction: column;
	max-width: 95%;
	overflow: hidden;
	position: fixed;
	top: 0;
	transition: transform 0.4s cubic-bezier(0.43, 0.01, 0.44, 1);
	visibility: hidden;
	z-index: 60;
}

.drawer--left {
	left: 0;
	transform: translateX(-100%);
	width: 350px;
}

.drawer--left.drawer--is-open {
	transform: translateX(0);
	visibility: visible;
}

.drawer__contents {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.drawer__fixed-header {
	flex: 0 0 auto;
	padding: 0 25px;
}

.drawer__header {
	align-items: center;
	border-bottom: 1px solid var(--cluse-border);
	display: flex;
	justify-content: space-between;
	min-height: 70px;
	padding: 15px 0;
}

.drawer__title {
	font-family: var(--cluse-font-heading);
	font-size: 21.35px;
	font-weight: 700;
	line-height: 1.2;
}

.drawer__close-button {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	line-height: 1;
	padding: 6px;
}

.drawer__close-button .icon {
	height: 19px;
	width: 19px;
}

.filter-form {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.drawer__scrollable {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 25px;
}

.drawer__footer {
	border-top: 1px solid var(--cluse-border);
	flex: 0 0 auto;
	padding: 15px 25px;
}

.tag-list--active-tags {
	border-bottom: 1px solid var(--cluse-border);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 15px 0;
}

.tag-list--active-tags:empty {
	display: none;
}

.tag-list__clear {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.collection-sidebar__group {
	border-bottom: 1px solid var(--cluse-border);
}

.collapsible-trigger-btn {
	align-items: center;
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	font-family: var(--cluse-font-body);
	font-size: 14px;
	justify-content: space-between;
	padding: 22.86px 0;
	text-align: left;
	width: 100%;
}

.collapsible-trigger-btn .icon {
	height: 14px;
	width: 14px;
}

.collapsible-content--sidebar {
	padding-bottom: 18px;
}

.tag-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tag-list .tag {
	margin: 0;
}

.tag__checkbox-wrapper {
	cursor: pointer;
	display: block;
	line-height: 2;
	position: relative;
}

.tag__checkbox-wrapper:hover,
.tag:focus-within .tag__checkbox-wrapper {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tag__input {
	height: 0;
	opacity: 0;
	position: absolute;
	width: 0;
}

.tag__text {
	display: inline-block;
	font-size: 14px;
	padding-left: 25px;
}

.tag__checkbox {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	width: 100%;
}

.tag__checkbox::before {
	border: 1px solid var(--cluse-border);
	content: "";
	height: 16px;
	left: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
}

.tag__checkbox::after {
	background: transparent;
	content: "";
	height: 10px;
	left: 3px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
}

.tag__input:checked + .tag__checkbox::after {
	background: var(--cluse-ink);
}

.tag__input:focus-visible + .tag__checkbox::before {
	outline: 2px solid var(--cluse-ink);
	outline-offset: 2px;
}

.drawer-overlay {
	background: rgba(0, 0, 0, 0.6);
	bottom: 0;
	inset: 0;
	opacity: 0;
	position: fixed;
	transition: opacity 0.25s ease;
	visibility: hidden;
	z-index: 50;
}

.drawer-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

body.cluse-drawer-open,
html.cluse-drawer-open {
	overflow: hidden;
}

/* ------------------------------------------------------------------ *
 * 7. Empty state (French, HTTP 200)
 * ------------------------------------------------------------------ */
.cluse-empty-state {
	padding: 40px 0 80px;
	text-align: center;
}

.cluse-empty-state__title {
	font-family: var(--cluse-font-heading);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 15px;
}

.cluse-empty-state__text {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 auto 30px;
	max-width: 620px;
}

/* ------------------------------------------------------------------ *
 * 8. Category SEO description (reference rich_text section)
 * ------------------------------------------------------------------ */
.index-section {
	margin: 34px 0;
}

.rte {
	font-family: var(--cluse-font-body);
	font-size: 14px;
	line-height: 1.6;
}

.rte h1,
.rte h2,
.rte h3,
.rte h4,
.rte h5,
.rte h6 {
	color: var(--cluse-ink);
	font-family: var(--cluse-font-heading);
	font-weight: 700;
	margin: 2.5em 0 1em;
}

.rte h1:first-child,
.rte h2:first-child,
.rte h3:first-child,
.rte h4:first-child {
	margin-top: 0;
}

.rte h2 {
	font-size: calc(35px * 0.85);
	line-height: 1.2;
}

.rte h3 {
	font-size: calc(35px * 0.69);
	line-height: 1.2;
}

.rte p,
.rte ul,
.rte ol {
	margin: 0 0 25px;
}

.rte p:last-child,
.rte ul:last-child,
.rte ol:last-child {
	margin-bottom: 0;
}

.rte .enlarge-text p {
	font-size: calc(14px * 1.13);
}

.text-center .rte ul,
.text-center .rte ol {
	list-style-position: inside;
	margin-left: 0;
}

.rte a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * 9. Search page
 * ------------------------------------------------------------------ */
.template-search .search-form {
	margin: 0 auto 30px;
	max-width: 960px;
	position: relative;
}

.template-search .search-form input[type="search"] {
	background: #fff;
	border: 1px solid var(--cluse-border);
	border-radius: 0;
	box-sizing: border-box;
	color: var(--cluse-ink);
	font-family: var(--cluse-font-body);
	font-size: 14px;
	height: 44px;
	letter-spacing: var(--cluse-base-spacing);
	line-height: 1.15;
	padding: 8px 16px;
	width: 100%;
}

.template-search .search-form input[type="search"]:focus {
	border-color: var(--cluse-ink);
	outline: none;
}

.search-form__submit {
	background: none;
	border: 0;
	color: var(--cluse-ink);
	cursor: pointer;
	padding: 8px;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
}

.search-form__submit .icon {
	height: 18px;
	width: 18px;
}

.search-results__count {
	color: #6b6c6c;
	font-size: 14px;
	margin: 0 0 30px;
	text-align: center;
}

/* ------------------------------------------------------------------ *
 * 10. Responsive
 * ------------------------------------------------------------------ */
@media only screen and (max-width: 589px) {
	.breadcrumb {
		font-size: 11px;
		margin-bottom: 20px;
	}

	.section-header {
		margin-bottom: 30px;
	}

	.section-header__title {
		font-size: 29.75px;
		line-height: 35.7px;
	}

	.collection-filter__item--sort {
		padding-left: 22px;
	}

	#FilterDrawerTrigger,
	.collection-filter__item--drawer {
		justify-content: flex-start;
		width: 100%;
	}

	.cluse-plp .grid-product {
		margin-bottom: 20px;
	}


	.cluse-plp .grid-product .product-card__price {
		font-size: 11.59px;
	}

	.pagination {
		font-size: 14px;
		padding-top: 50px;
	}

	.pagination .next {
		height: 35px;
		line-height: 19px;
		width: 35px;
	}

	.pagination .next .icon {
		height: 12px;
		width: 12px;
	}

	.drawer__fixed-header,
	.drawer__scrollable,
	.drawer__footer {
		padding-left: 18px;
		padding-right: 18px;
	}

	.drawer--left {
		max-width: 85%;
	}

	.rte .enlarge-text p {
		font-size: calc(14px * 1.13);
	}
}

@media only screen and (min-width: 590px) {

	.drawer__fixed-header,
	.drawer__scrollable,
	.drawer__footer {
		padding-left: 40px;
		padding-right: 40px;
	}

	.rte .enlarge-text p {
		font-size: calc(14px * 1.4);
	}

	.index-section {
		margin: 100px 0;
	}
}

/* ------------------------------------------------------------------ *
 * 15. Account page (login / register two columns) + generic pages + 404
 * ------------------------------------------------------------------ */
.cluse-account__header .section-header__title {
	margin-bottom: 10px;
}

.cluse-account__nav {
	font-size: 12px;
	letter-spacing: 0.1em;
}

.cluse-account__nav a {
	text-decoration: none;
}

.cluse-account__nav a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cluse-account__grid {
	display: grid;
	gap: 60px;
	grid-template-columns: 1fr;
	margin-top: 40px;
}

.cluse-account__grid--two {
	grid-template-columns: 1fr 1fr;
}

.cluse-account__title {
	font-family: var(--cluse-font-heading);
	font-size: 21.35px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	margin: 0 0 22px;
}

.cluse-account__col {
	border-top: 1px solid var(--cluse-border);
	padding-top: 25px;
}

.cluse-field {
	margin: 0 0 16px;
}

.cluse-field label {
	display: block;
	font-size: 12.5px;
	margin-bottom: 6px;
}

.cluse-field input[type="text"],
.cluse-field input[type="email"],
.cluse-field input[type="password"] {
	background: #fff;
	border: 1px solid var(--cluse-border);
	border-radius: 0;
	box-sizing: border-box;
	font-family: var(--cluse-font-body);
	font-size: 14px;
	height: 44px;
	letter-spacing: var(--cluse-base-spacing);
	padding: 10px 12px;
	width: 100%;
}

.cluse-field input:focus {
	border-color: var(--cluse-ink);
	outline: none;
}

.cluse-account__row {
	align-items: center;
	display: flex;
	font-size: 13px;
	justify-content: space-between;
	margin: 0 0 18px;
}

.cluse-account__lost {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cluse-checkbox {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	font-size: 12.5px;
	gap: 10px;
	line-height: 1.5;
}

.cluse-checkbox input {
	flex: 0 0 auto;
	height: 16px;
	margin: 2px 0 0;
	width: 16px;
}

.cluse-checkbox a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cluse-account__consents {
	display: grid;
	gap: 12px;
	margin: 18px 0 20px;
}

.cluse-account__hint {
	color: #6b6c6c;
	font-size: 12.5px;
	line-height: 1.5;
	margin: 0 0 16px;
}

.cluse-account .btn {
	display: block;
	font-size: 15px;
	letter-spacing: 0.02em;
	padding: 13px 20px;
	width: 100%;
}

/* Generic content page */
.cluse-page-header .section-header__title {
	font-size: 35px;
}

.cluse-page-content {
	margin: 0 auto;
	max-width: 900px;
}

/* 404 */
.cluse-404 {
	margin-bottom: 30px;
}

.cluse-404__code {
	color: var(--cluse-border);
	font-family: var(--cluse-font-heading);
	font-size: 96px;
	font-weight: 700;
	line-height: 1;
	margin: 0 0 10px;
}

.cluse-404__text a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cluse-404__search {
	margin: 0 auto 30px;
	max-width: 560px;
}

.cluse-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

@media only screen and (max-width: 899px) {
	.cluse-account__grid--two {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.cluse-account__grid {
		margin-top: 25px;
	}
}

/* Woo overrides */
.cluse-payment,
#payment.cluse-payment {
	background: transparent;
}

.cluse-checkout .cluse-checkout__submit.btn,
.cluse-checkout .cluse-checkout__submit.button {
	background: var(--cluse-green);
	border: 1px solid var(--cluse-green);
	color: #fff;
}

.cluse-account button.btn,
.cluse-account button.button,
.cluse-account .woocommerce-button,
.cluse-account .woocommerce-form-login__submit,
.cluse-account .woocommerce-form-register__submit {
	background: var(--cluse-green) !important;
	border: 1px solid var(--cluse-green) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-family: var(--cluse-font-heading);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 13px 20px;
	text-transform: uppercase;
	width: 100%;
}

.cluse-account .woocommerce-form-login,
.cluse-account .woocommerce-form-register {
	border: 0;
	padding: 0;
}

/* Cart header row: keep the label columns aligned with the item columns. */
.cart__item--headers .cart__item--details {
	grid-column: 2;
}

@media only screen and (max-width: 899px) {
	.cluse-account__grid--two {
		grid-template-columns: 1fr;
	}
}

/* Filter drawer value rows: checkbox + label on one line (reference tag-list) */
.tag__checkbox-wrapper {
	align-items: center;
	display: flex;
	gap: 9px;
	line-height: 2;
}

.tag__checkbox {
	display: inline-block;
	flex: 0 0 16px;
	height: 16px;
	position: relative;
	width: 16px;
}

.tag__checkbox::before {
	left: 0;
	top: 50%;
}

.tag__checkbox::after {
	left: 3px;
	top: 50%;
}

.tag__text {
	padding-left: 0;
}

.tag__count {
	color: #9a9b9b;
	font-size: 13px;
	margin-left: 2px;
}
