/**
 * Winter26 Collection / PLP — designer HTML 02-shop-collection-winter26.html 1:1.
 * Consumes shared --w26-* tokens for chrome. PLP-local hex only where HTML
 * palette differs from Home tokens (see Gaps in session report).
 */

/* Full-bleed PLP: drop theme right-sidebar column */
body.w26-plp-body.right-sidebar .asterthemes-wrapper .asterthemes-page,
body.w26-plp-body.left-sidebar .asterthemes-wrapper .asterthemes-page {
	display: block !important;
	grid-template-columns: none !important;
}
body.w26-plp-body #secondary {
	display: none !important;
}
body.w26-plp-body #primary {
	width: 100% !important;
	max-width: none !important;
}

/* Kill leftover archive / Flowfa / cqw chrome not in Winter26 HTML */
body.w26-plp-body .cqw-breadcrumbs,
body.w26-plp-body .woocommerce-breadcrumb,
body.w26-plp-body .woocommerce-products-header,
body.w26-plp-body .cqw-plp-toolbar,
body.w26-plp-body .cqw-plp-view,
body.w26-plp-body .cqw-btn-filter,
body.w26-plp-body .cqw-filter-backdrop,
body.w26-plp-body .cqw-facet-drawer,
body.w26-plp-body .cqw-view-toggle,
body.w26-plp-body .woocommerce-result-count,
body.w26-plp-body .woocommerce-ordering,
body.w26-plp-body .shop-login-hint {
	display: none !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .cqw-breadcrumbs {
	display: none;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .search.search-results) {
	background-color: var(--w26-cream, #FAF7F2);
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .asterthemes-wrapper .asterthemes-page {
	max-width: none;
	padding: 0;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .site-main {
	background: transparent;
}

/* Theme .asterthemes-wrapper is a second 1320 box with 20px padding.
   That stacks on the section gutter and leaves a wide empty margin
   around the card field. The PLP column is the 1320 frame. */
body.w26-plp-body .site-content > .asterthemes-wrapper {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.w26-plp {
	/* HTML body frame: max 1320, Jost-like sans, dark ink */
	--w26-plp-max: 1320px;
	--w26-plp-tab-border: #C2B09C;   /* HTML taupe — no token */
	--w26-plp-pro-bg: #EFE6D8;       /* HTML beige panel */
	--w26-plp-count: #8A7563;        /* HTML filter counts */
	--w26-plp-meta: #6B5847;         /* HTML text grey */
	--w26-plp-body-text: #4A3D33;    /* HTML blurb */

	font-family: var(--w26-font-sans);
	color: var(--w26-ink, #2E2620);
	max-width: var(--w26-plp-max);
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* 1080p (≤1920) stays on the 1320 design column.
   Above that the shop/category column grows, capped at 3200,
   so a 4K window keeps about a 300px side band instead of a 1320 strip.
   Header and footer read --w26-container and stay on the same edges. */
@media (min-width: 1921px) {
	body.w26-plp-body {
		--w26-container: min(3200px, calc(100% - 360px));
		--w26-card-min: 300px;
	}
	body.w26-plp-body .w26-plp {
		--w26-plp-max: min(3200px, calc(100% - 360px));
		max-width: min(3200px, calc(100% - 360px));
	}
	/* Footer sits in the theme 1320/1620 wrapper. Open that box on shop
	   and category pages so the footer lands on the same edges. */
	body.w26-plp-body .site-footer .asterthemes-wrapper {
		max-width: none;
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
}

/* Title block: crumb · h1 · blurb · tabs (HTML section padding 40/24/8) */
.w26-plp-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
	padding: 40px 24px 8px;
}

.w26-plp-crumb {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.15rem;
	font-size: 13px;
	color: var(--w26-plp-meta);
	margin: 0;
	letter-spacing: 0.02em;
}
.w26-plp-crumb a {
	color: var(--w26-plp-meta);
	text-decoration: none;
}
.w26-plp-crumb a:hover { color: var(--w26-chocolate, #5A3E2B); }
.w26-plp-crumb-sep { margin: 0 0.35rem; opacity: 0.65; }

.w26-plp-hero {
	text-align: center;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.w26-plp-title {
	font-family: var(--w26-font-serif);
	font-size: clamp(2rem, 4vw, 56px);
	font-weight: 600;
	color: var(--w26-ink, #2E2620);
	text-align: center;
	margin: 0;
	letter-spacing: 0.04em;
	line-height: 1.15;
}

.w26-plp-blurb {
	max-width: 620px;
	margin: 0;
	text-align: center;
	font-size: 16px;
	line-height: 1.5;
	color: var(--w26-plp-body-text);
}

/* Four season tabs — rectangular (not pills); active filled brown */
.w26-season-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 6px 0 0;
	width: 100%;
}
.w26-season-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	border: 1px solid var(--w26-plp-tab-border);
	border-radius: 0;
	background: transparent;
	color: var(--w26-ink, #2E2620);
	font-family: var(--w26-font-sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	text-align: center;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.w26-season-tab:hover {
	border-color: var(--w26-chocolate, #5A3E2B);
	color: var(--w26-chocolate, #5A3E2B);
}
.w26-season-tab.is-active {
	background: var(--w26-chocolate, #5A3E2B);
	color: var(--w26-white, #fff);
	border-color: var(--w26-chocolate, #5A3E2B);
	padding: 11px 24px; /* HTML active has 11px vertical (no border) look */
	font-weight: 500;
}

/* Beat body.w26-chrome a:not(.w26-btn) — brown link color hid the filled tab. */
body.w26-chrome a.w26-season-tab.is-active,
body.w26-chrome a.w26-season-tab.is-active:hover {
	background: var(--w26-chocolate, #5A3E2B);
	color: var(--w26-white, #fff);
	border-color: var(--w26-chocolate, #5A3E2B);
}


/* Filters + grid — HTML flex wrap gap 36 */
.w26-plp-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	align-items: flex-start;
	padding: 36px 24px 72px;
}
.w26-plp-layout--empty .w26-plp-main {
	flex: 999 1 640px;
}

.w26-plp-sidebar {
	flex: 1 1 220px;
	max-width: 260px;
	display: flex;
	flex-direction: column;
	gap: 26px;
	font-size: 15px;
	min-width: 0;
}

.w26-plp-filter-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.65rem 1rem;
	border: 1px solid var(--w26-chocolate, #5A3E2B);
	background: var(--w26-white, #fff);
	color: var(--w26-chocolate, #5A3E2B);
	font-family: var(--w26-font-sans);
	font-size: var(--w26-fs-small, 0.75rem);
	font-weight: 700;
	letter-spacing: var(--w26-ls-label, 0.12em);
	text-transform: uppercase;
	cursor: pointer;
}
@media (min-width: 1025px) {
	.w26-plp-filter-toggle { display: none; }
	.w26-plp-sidebar {
		position: sticky;
		top: calc(var(--w26-header-h, 72px) + var(--w26-announce-h, 36px) + 12px);
		max-height: calc(100vh - var(--w26-header-h, 72px) - var(--w26-announce-h, 36px) - 24px);
		overflow-y: auto;
	}
	.w26-plp-filters {
		display: flex !important;
		flex-direction: column;
		gap: 26px;
	}
}

@media (max-width: 1024px) {
	.w26-plp-sidebar {
		flex: 1 1 100%;
		max-width: none;
	}
	.w26-plp-filters { display: none; }
	.w26-plp-filters.is-open {
		display: flex;
		flex-direction: column;
		gap: 26px;
		margin-top: 0.75rem;
	}
}

.w26-filter-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.w26-filter-title {
	margin: 0;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--w26-border, #E4D9CE);
	font-family: var(--w26-font-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--w26-ink, #2E2620);
	line-height: 1.3;
}

.w26-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.w26-filter-list li { margin: 0; }

.w26-filter-check {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 15px;
	color: var(--w26-ink, #2E2620);
	text-decoration: none;
	line-height: 1.3;
}
.w26-filter-check__left {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
}
.w26-filter-box {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	border: 1px solid var(--w26-line, #D8CBBE);
	background: var(--w26-white, #fff);
	box-sizing: border-box;
}
.w26-filter-check.is-selected .w26-filter-box {
	background: var(--w26-chocolate, #5A3E2B);
	border-color: var(--w26-chocolate, #5A3E2B);
	box-shadow: inset 0 0 0 2px var(--w26-white, #fff);
}
.w26-filter-label { min-width: 0; }
.w26-filter-count {
	color: var(--w26-plp-count);
	font-size: 15px;
	flex: 0 0 auto;
}
.w26-filter-empty {
	margin: 0;
	font-size: 14px;
	color: var(--w26-plp-meta);
}

.w26-filter-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.w26-swatch {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid #CDBFA9;
	background: var(--sw-bg, #ccc);
	text-decoration: none;
	box-sizing: border-box;
}
.w26-swatch.is-selected {
	outline: 2px solid var(--w26-chocolate, #5A3E2B);
	outline-offset: 1px;
}

.w26-pro-price-box {
	margin: 0;
	padding: 18px;
	background: var(--w26-plp-pro-bg);
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	line-height: 1.5;
}
.w26-pro-price-box__title {
	margin: 0;
	font-family: var(--w26-font-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--w26-ink, #2E2620);
}
.w26-pro-price-box__link,
.w26-pro-price-box__text {
	font-size: 14px;
	color: var(--w26-plp-body-text);
	text-decoration: none;
	line-height: 1.5;
}
.w26-pro-price-box__link:hover { color: var(--w26-chocolate, #5A3E2B); text-decoration: underline; }

.w26-plp-main {
	flex: 999 1 640px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Toolbar: N produits + Trier : Nouveautés — no underline bar */
.w26-plp-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0;
	margin: 0;
	border: 0;
	font-size: 14px;
	color: var(--w26-plp-meta);
}
.w26-plp-count {
	font-size: 14px;
	color: var(--w26-plp-meta);
}
.w26-plp-sort {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	color: var(--w26-plp-meta);
}
.w26-plp-sort-prefix,
.w26-orderby {
	font-family: var(--w26-font-sans);
	font-size: 14px;
	font-weight: 400;
	color: var(--w26-plp-meta);
	letter-spacing: 0;
}
.w26-orderby {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	background-image: none;
}
.w26-plp-sort::after {
	content: "▾";
	font-size: 12px;
	color: var(--w26-plp-meta);
	pointer-events: none;
}

.w26-active-facets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
}
.w26-facet-chip,
.w26-facet-clear {
	border: 1px solid var(--w26-line, #D8CBBE);
	background: transparent;
	color: var(--w26-ink, #2E2620);
	font-size: 13px;
	padding: 0.25rem 0.55rem;
	text-decoration: none;
}

/* Product grid — HTML: auto-fill minmax(220px, 1fr) gap 28/20 */
body.w26-plp-body ul.products,
body.w26-plp-body ul.products,
.w26-plp ul.products.columns-2,
.w26-plp ul.products.columns-3,
.w26-plp ul.products.columns-4,
.w26-plp ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--w26-card-min, 220px)), 1fr)) !important;
	gap: 28px 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
	max-width: none !important;
}
body.w26-plp-body ul.products > li.product,
.w26-plp ul.products > li.product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	padding: 0 !important;
	clear: none !important;
	background: transparent;
}

/* WC float clearfix (::before/::after, display:table) becomes a grid item
   and occupies the first cell of row 1. */
body.w26-plp-body ul.products::before,
body.w26-plp-body ul.products::after,
.w26-plp ul.products::before,
.w26-plp ul.products::after {
	content: none !important;
	display: none !important;
}

/* HTML card: no white chrome — photo + NAME + meta + HT|AJOUTER */
.w26-card {
	background: transparent;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--w26-ink, #2E2620);
	text-align: left;
}
.w26-card-media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--w26-cream-soft, #F7F1EA);
}
/* WC `.woocommerce ul.products li.product a img { height:auto; margin:0 0 1em }`
   outranks a single class. A shorter second photo then stops above the
   bottom of the frame and the primary image shows through. */
.woocommerce ul.products li.product .w26-card-media img.w26-card-img,
.w26-card-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center center;
	display: block;
}
.w26-card-img--primary { z-index: 0; }
.w26-card-img--hover {
	z-index: 1;
	opacity: 0;
	transition: opacity .2s ease;
}
.w26-card-media:hover .w26-card-img--hover.is-ready { opacity: 1; }

.w26-card-body {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.w26-card-name {
	margin: 0;
	font-family: var(--w26-font-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--w26-ink, #2E2620);
	line-height: 1.3;
	text-align: left;
}
.w26-card-name a {
	color: inherit;
	text-decoration: none;
}
.w26-card-meta {
	margin: 0;
	font-size: 14px;
	color: var(--w26-plp-meta);
	line-height: 1.4;
	text-align: left;
}
.w26-card-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0;
}
.w26-card-price {
	font-size: 15px;
	font-weight: 600;
	color: var(--w26-ink, #2E2620);
	line-height: 1.2;
}
.w26-card-price .amount { font-weight: 600; }
.w26-card-price .w26-ht {
	/* Designer: "16,80 € HT" one weight/size with the amount */
	font-weight: 600;
	font-size: inherit;
	margin-left: 0.25rem;
	letter-spacing: 0.04em;
	color: inherit;
	text-transform: uppercase;
}
.w26-card-price .price-gate-msg,
.w26-card-price .carmela-login-link,
.w26-card-price .ebw-login-link,
.w26-card-price .ebw-pending-approval,
.w26-card-price .ebw-contact-pricing {
	font-size: 13px;
	font-weight: 500;
	color: var(--w26-plp-meta);
}
.w26-card-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--w26-chocolate, #5A3E2B);
	background: transparent;
	color: var(--w26-ink, #2E2620);
	font-family: var(--w26-font-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 6px 10px;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1;
}
.w26-card-add:hover {
	background: var(--w26-chocolate, #5A3E2B);
	color: var(--w26-white, #fff);
}

body.w26-chrome a.w26-card-add:hover,
body.w26-chrome button.w26-card-add:hover {
	background: var(--w26-chocolate, #5A3E2B);
	color: var(--w26-white, #fff);
	border-color: var(--w26-chocolate, #5A3E2B);
}
.w26-card-add-form { margin: 0; }

.w26-plp-empty {
	padding: 3rem 1rem;
	text-align: center;
	color: var(--w26-plp-meta);
	border: 1px dashed var(--w26-line, #D8CBBE);
	background: transparent;
}

.w26-plp .woocommerce-pagination {
	margin-top: 1rem;
}
.w26-plp .woocommerce-pagination .page-numbers {
	border-color: var(--w26-line, #D8CBBE);
	color: var(--w26-chocolate, #5A3E2B);
}

/* Beat theme .add_to_cart_button (red fill, white type, !important).
   Source card button: white ground, dark border, dark type. */
body.w26-plp-body .w26-card .w26-card-add,
body.w26-plp-body .w26-card button.add_to_cart_button,
body.w26-plp-body .w26-card a.w26-card-add {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: #fff !important;
	color: var(--w26-ink, #2E2620) !important;
	border: 1px solid var(--w26-chocolate, #5A3E2B) !important;
	border-radius: 0 !important;
	padding: 6px 10px !important;
	margin: 0 !important;
	font-family: var(--w26-font-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	line-height: 1 !important;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: none !important;
	min-height: 0 !important;
}
body.w26-plp-body .w26-card .w26-card-add:hover,
body.w26-plp-body .w26-card button.add_to_cart_button:hover,
body.w26-plp-body .w26-card a.w26-card-add:hover {
	background: var(--w26-chocolate, #5A3E2B) !important;
	color: #fff !important;
	border-color: var(--w26-chocolate, #5A3E2B) !important;
}

/* w26-plp-view-cart
   Simple products ajax-add a sibling a.added_to_cart. The theme paints that
   link as the red 18px button. Keep it the same size and paint as ADD. */
body.w26-plp-body .w26-card .w26-card-row {
	flex-wrap: wrap;
}
body.w26-plp-body .w26-card .w26-card-add-form {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0;
}
body.w26-plp-body .w26-card a.added_to_cart,
body.w26-plp-body .w26-card a.added_to_cart:visited {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: #fff !important;
	color: var(--w26-ink, #2E2620) !important;
	border: 1px solid var(--w26-chocolate, #5A3E2B) !important;
	border-radius: 0 !important;
	padding: 6px 10px !important;
	margin: 0 !important;
	font-family: var(--w26-font-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	line-height: 1 !important;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: none !important;
	min-height: 0 !important;
	white-space: nowrap;
}
body.w26-plp-body .w26-card a.added_to_cart:hover {
	background: var(--w26-chocolate, #5A3E2B) !important;
	color: #fff !important;
	border-color: var(--w26-chocolate, #5A3E2B) !important;
}

/* ≤768 phone: 2-col cards via --w26-card-min, filters behind the toggle.
   ≤1024 sidebar collapse stays in the block above (lg breakpoint). */
@media (max-width: 768px) {
	.w26-plp-head { padding: 24px var(--w26-gutter) 4px; }
	.w26-plp-layout {
		padding: 16px var(--w26-gutter) 48px;
		gap: 16px;
	}
	.w26-plp-filter-toggle { min-height: 44px; }
	.w26-season-tabs { gap: 8px; }
	.w26-season-tab {
		flex: 1 1 calc(50% - 8px);
		min-height: 44px;
		padding: 10px 8px;
		letter-spacing: 0.06em;
	}
	.w26-plp-toolbar { flex-wrap: wrap; align-items: flex-start; }
	body.w26-plp-body ul.products,
	.w26-plp ul.products {
		gap: 16px 12px !important;
	}
	.w26-card-name {
		font-size: 13px;
		letter-spacing: 0.04em;
	}
	body.w26-plp-body .w26-card .w26-card-add,
	body.w26-plp-body .w26-card button.add_to_cart_button,
	body.w26-plp-body .w26-card a.w26-card-add,
	body.w26-plp-body .w26-card a.added_to_cart {
		min-height: 40px !important;
		padding: 8px 10px !important;
	}
}
