/* Stadex Shop — product cards, product page, COD form.
   Colours come from the theme tokens; fallbacks keep the plugin usable on any theme. */

:root {
	--stx-yellow: #FFCE00;
	--stx-yellow-600: #EBBD00;
	--stx-yellow-50: #FFF8D6;
	--stx-black: #0E0E0E;
	--stx-ink: #1B1B1B;
	--stx-text: #2E2E2C;
	--stx-muted: #6B6B66;
	--stx-soft: #F5F5F2;
	--stx-line: #E6E5DF;
	--stx-green: #137A43;
	--stx-red: #D92D20;
	--stx-radius: 16px;
	--stx-radius-sm: 10px;
	--stx-shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 10px 30px rgba(14, 14, 14, .07);
	--stx-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.stx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.stx-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stx-muted); }

/* ---------- Buttons ---------- */
.stx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border: 0; border-radius: 999px;
	background: var(--stx-yellow); color: var(--stx-black) !important;
	font: 600 15px/1.2 var(--stx-font); text-decoration: none !important; cursor: pointer;
	transition: background-color .2s, transform .2s, box-shadow .2s;
}
.stx-btn:hover { background: var(--stx-yellow-600); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 206, 0, .35); }
.stx-btn:focus-visible { outline: 3px solid var(--stx-black); outline-offset: 2px; }
.stx-btn--sm { padding: 10px 18px; font-size: 14px; }
.stx-btn--lg { padding: 16px 28px; font-size: 17px; }
.stx-btn--block { display: flex; width: 100%; }
.stx-btn--dark { background: var(--stx-black); color: #fff !important; }
.stx-btn--dark:hover { background: var(--stx-ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }

/* ---------- Product grid & card ---------- */
.stx-grid { display: grid; grid-template-columns: repeat(var(--stx-cols, 3), minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1024px) { .stx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 600px) { .stx-grid { grid-template-columns: 1fr; } }

/* Card: soft resting shadow that deepens on hover. */
.stx-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid rgba(14, 14, 14, .06); border-radius: var(--stx-radius);
	box-shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 6px 18px rgba(14, 14, 14, .06);
	font-family: var(--stx-font); transition: transform .3s, box-shadow .3s;
}
.stx-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 2px 4px rgba(14, 14, 14, .04), 0 22px 44px rgba(14, 14, 14, .14);
}

.stx-card__media {
	position: relative; display: block; margin: 12px 12px 0; height: 350px; overflow: hidden;
	border-radius: 12px; background: var(--stx-soft); isolation: isolate;
}
.stx-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .45s; }
/* Fixed 350px frame; product photos are square, so cover fills it with almost no crop. */
.stx-card__img--alt { opacity: 0; background: var(--stx-soft); }
.stx-card:hover .stx-card__img { transform: scale(1.03); }
.stx-card:hover .stx-card__img--alt { opacity: 1; }
/* Touch screens have no hover: hidden lazy images are never downloaded. */
@media (hover: none) { .stx-card__img--alt { display: none; } }


.stx-card__badge {
	position: absolute; top: 12px; left: 12px; z-index: 3;
	padding: 5px 12px; border-radius: 999px; background: var(--stx-black); color: var(--stx-yellow);
	font: 600 12px/1.4 var(--stx-font); letter-spacing: .02em;
}

.stx-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.stx-card__title { margin: 0 0 4px; font: 700 21px/1.25 var(--stx-font); color: var(--stx-black); }
.stx-card__title a { color: inherit; text-decoration: none; }
.stx-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stx-card__tagline { min-height: 3.1em; margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--stx-muted); }

.stx-card__sizes { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.stx-card .stx-card__size {
	min-width: 54px; padding: 7px 14px; border: 1.5px solid var(--stx-line); border-radius: 999px;
	background: #fff; color: var(--stx-black); font: 600 13px/1.2 var(--stx-font); cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.stx-card .stx-card__size:hover { border-color: var(--stx-black); background: #fff; color: var(--stx-black); }
.stx-card .stx-card__size[aria-pressed="true"] { border-color: var(--stx-black); background: var(--stx-black); color: var(--stx-yellow); }
.stx-card .stx-card__size:focus-visible { outline: 3px solid var(--stx-yellow); outline-offset: 2px; }
.stx-card .stx-card__size.is-static { cursor: default; }

.stx-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--stx-line); }
.stx-card__prices { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.stx-card__prices .stx-sale { flex-wrap: wrap; gap: 2px 8px; }
.stx-card__prices .stx-old { text-decoration-thickness: 2px; }
.stx-card__price { white-space: nowrap; }
.stx-card__foot .stx-card__cta { flex: none; }
/* Sale: old price struck in yellow + discount pill (cards and product page). */
.stx-sale { display: inline-flex; align-items: center; gap: 8px; }
.stx-sale[hidden], .stx-off:empty { display: none; }
.stx-old { font-size: 15px; font-weight: 600; color: var(--stx-muted); text-decoration: line-through; text-decoration-color: var(--stx-yellow); text-decoration-thickness: 3px; white-space: nowrap; }
.stx-off { padding: 3px 9px; border-radius: 999px; background: var(--stx-yellow); font: 700 12px/1.3 var(--stx-font); color: var(--stx-black); white-space: nowrap; }
.stx-card__price { font-size: 24px; font-weight: 800; color: var(--stx-black); }
.stx-card__price.is-bumped { animation: stx-bump .35s ease; }
@keyframes stx-bump { 40% { transform: scale(1.12); color: var(--stx-yellow-600); } }
.stx-card__cta { position: relative; z-index: 2; }
.stx-card__cta svg { transition: transform .25s; }
.stx-card:hover .stx-card__cta { background: var(--stx-black); color: var(--stx-yellow) !important; }
.stx-card:hover .stx-card__cta svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
	.stx-card, .stx-card__img, .stx-card__cta svg { transition: none; }
	.stx-card__price.is-bumped { animation: none; }
}
.stx-empty { padding: 40px; text-align: center; color: var(--stx-muted); }

/* ---------- Product page ---------- */
.stx-product { padding: 28px 0 80px; font-family: var(--stx-font); color: var(--stx-text); }
.stx-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 13px; color: var(--stx-muted); }
.stx-breadcrumb a { color: var(--stx-muted); text-decoration: none; }
.stx-breadcrumb a:hover { color: var(--stx-black); }
.stx-breadcrumb [aria-current] { color: var(--stx-black); font-weight: 500; }

.stx-product__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .stx-product__grid { grid-template-columns: 1fr; gap: 28px; } }

.stx-gallery { position: sticky; top: 100px; }
@media (max-width: 960px) { .stx-gallery { position: static; } }
.stx-gallery__main { position: relative; overflow: hidden; border-radius: var(--stx-radius); background: var(--stx-soft); }
/* No fixed frame: the main image keeps the real proportions of the selected photo. */
.stx-gallery__main img { display: block; width: 100%; height: auto; }
.stx-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.stx-gallery__thumb { width: 76px; height: 76px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--stx-radius-sm); background: var(--stx-soft); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.stx-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.stx-gallery__thumb:hover, .stx-gallery__thumb.is-active { opacity: 1; border-color: var(--stx-yellow); }

.stx-summary__title { margin: 0 0 8px; font: 800 clamp(30px, 4vw, 42px)/1.1 var(--stx-font); color: var(--stx-black); letter-spacing: -.01em; }
.stx-summary__tagline { margin: 0 0 18px; font-size: 17px; color: var(--stx-muted); }
.stx-summary__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 22px; }
.stx-summary__price strong { font-size: 34px; font-weight: 800; color: var(--stx-black); background: linear-gradient(transparent 62%, var(--stx-yellow) 62%, var(--stx-yellow) 88%, transparent 88%); }
.stx-summary__price .stx-old { font-size: 20px; }
.stx-summary__price .stx-off { padding: 5px 12px; font-size: 15px; }

.stx-checklist { margin: 0 0 28px; padding: 0; list-style: none; }
.stx-checklist li { position: relative; padding: 6px 0 6px 32px; font-size: 15px; }
.stx-checklist li::before {
	content: ""; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--stx-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0E0E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- COD form ---------- */
.stx-order {
	padding: 26px; border: 2px solid var(--stx-black); border-radius: var(--stx-radius);
	background: #fff; box-shadow: 8px 8px 0 var(--stx-yellow); scroll-margin-top: 110px;
}
.stx-order__head { margin: -26px -26px 22px; padding: 18px 26px; border-radius: 13px 13px 0 0; background: var(--stx-black); color: #fff; }
.stx-order__head h2 { margin: 0; font: 700 20px/1.3 var(--stx-font); color: #fff; }
.stx-order__head p { margin: 2px 0 0; font-size: 14px; color: var(--stx-yellow); }

.stx-sizes { margin: 0 0 20px; padding: 0; border: 0; }
.stx-sizes legend, .stx-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--stx-black); }
.stx-sizes__list { display: flex; flex-wrap: wrap; gap: 10px; }
.stx-size { position: relative; flex: 1 1 120px; cursor: pointer; }
.stx-size input { position: absolute; opacity: 0; pointer-events: none; }
.stx-size__label, .stx-size__price { display: block; text-align: center; }
.stx-size__label { padding: 12px 12px 0; border: 2px solid var(--stx-line); border-bottom: 0; border-radius: var(--stx-radius-sm) var(--stx-radius-sm) 0 0; font-size: 18px; font-weight: 700; color: var(--stx-black); transition: border-color .2s, background-color .2s; }
.stx-size__price { padding: 0 12px 12px; border: 2px solid var(--stx-line); border-top: 0; border-radius: 0 0 var(--stx-radius-sm) var(--stx-radius-sm); font-size: 14px; color: var(--stx-muted); transition: border-color .2s, background-color .2s; }
.stx-size:hover .stx-size__label, .stx-size:hover .stx-size__price { border-color: #c9c8c0; }
.stx-size input:checked ~ .stx-size__label, .stx-size input:checked ~ .stx-size__price { border-color: var(--stx-black); background: var(--stx-yellow-50); }
.stx-size input:checked ~ .stx-size__price { color: var(--stx-black); font-weight: 600; }
.stx-size input:focus-visible ~ .stx-size__label { outline: 3px solid var(--stx-yellow); outline-offset: 2px; }

.stx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
/* Mobile: name and phone full width, Ville + Quantité share one row to keep the form short. */
@media (max-width: 520px) {
	.stx-fields { grid-template-columns: minmax(0, 1fr) 132px; gap: 14px 12px; }
	.stx-fields > .stx-field:nth-child(-n+2) { grid-column: 1 / -1; }
}
.stx-field--full { grid-column: 1 / -1; }
.stx-field input, .stx-field textarea {
	width: 100%; box-sizing: border-box; padding: 13px 14px;
	border: 1.5px solid var(--stx-line); border-radius: var(--stx-radius-sm); background: var(--stx-soft);
	font: 400 15px/1.4 var(--stx-font); color: var(--stx-black); transition: border-color .2s, background-color .2s;
}
.stx-field textarea { resize: vertical; min-height: 64px; }
.stx-field input:focus, .stx-field textarea:focus { outline: 0; border-color: var(--stx-black); background: #fff; }
.stx-field.has-error input, .stx-field.has-error textarea { border-color: var(--stx-red); background: #fff; }
.stx-field__error { display: block; min-height: 0; margin-top: 4px; font-size: 13px; color: var(--stx-red); }
.stx-field__error:empty { display: none; }

.stx-qty { display: flex; overflow: hidden; border: 1.5px solid var(--stx-line); border-radius: var(--stx-radius-sm); background: var(--stx-soft); }
.stx-qty button { width: 46px; border: 0; background: transparent; font-size: 20px; font-weight: 600; color: var(--stx-black); cursor: pointer; }
.stx-qty button:hover { background: var(--stx-yellow); }
.stx-field .stx-qty input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.stx-qty input::-webkit-outer-spin-button, .stx-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stx-total { margin: 22px 0 18px; padding: 16px 18px; border-radius: var(--stx-radius-sm); background: var(--stx-soft); }
.stx-total div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.stx-total dt { color: var(--stx-muted); }
.stx-total dd { margin: 0; font-weight: 600; color: var(--stx-black); white-space: nowrap; }
.stx-total .stx-free { color: var(--stx-green); }
.stx-total__grand { margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--stx-line); }
.stx-total__grand dt { font-weight: 600; color: var(--stx-black); }
.stx-total__grand dd { font-size: 22px; font-weight: 800; }

.stx-order [type="submit"] { flex-direction: column; gap: 2px; }
.stx-order [type="submit"] small { font-size: 12px; font-weight: 500; opacity: .75; }
.stx-order [type="submit"].is-loading { pointer-events: none; opacity: .7; }
.stx-order [type="submit"].is-loading span::after { content: " …"; }
.stx-order__error { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--stx-radius-sm); background: #FEF3F2; color: var(--stx-red); font-size: 14px; }
.stx-order__wa { display: block; margin-top: 14px; text-align: center; font-size: 14px; font-weight: 500; color: var(--stx-green); text-decoration: none; }
.stx-order__wa:hover { text-decoration: underline; }
.stx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* Reassurance cards under the order form. */
.stx-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.stx-trust li {
	position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
	padding: 18px 16px; border: 1px solid rgba(14, 14, 14, .06); border-radius: 14px; background: #fff;
	box-shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 6px 16px rgba(14, 14, 14, .05);
	transition: transform .25s, box-shadow .25s;
}
.stx-trust li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--stx-yellow); transform: scaleX(.25); transform-origin: left; transition: transform .35s; }
.stx-trust li:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(14, 14, 14, .04), 0 14px 28px rgba(14, 14, 14, .1); }
.stx-trust li:hover::before { transform: scaleX(1); }
.stx-trust__icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--stx-black); color: var(--stx-yellow); }
.stx-trust__text { display: flex; flex-direction: column; gap: 3px; }
.stx-trust strong { font-size: 14px; line-height: 1.3; color: var(--stx-black); }
.stx-trust__text span { font-size: 12.5px; line-height: 1.45; color: var(--stx-muted); }
@media (max-width: 520px) {
	.stx-trust { grid-template-columns: 1fr; gap: 10px; }
	.stx-trust li { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
}

/* ---------- Details & related ---------- */
.stx-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 72px; }
@media (max-width: 860px) { .stx-details { grid-template-columns: 1fr; } }
.stx-details__block { padding: 32px; border: 1px solid var(--stx-line); border-radius: var(--stx-radius); }
.stx-details__block h2, .stx-related h2 { margin: 0 0 16px; font: 700 24px/1.25 var(--stx-font); color: var(--stx-black); }
.stx-prose { font-size: 16px; line-height: 1.75; }
.stx-prose p { margin: 0 0 14px; }
.stx-prose h3 { margin: 24px 0 8px; font: 700 18px/1.35 var(--stx-font); color: var(--stx-black); }
.stx-prose a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--stx-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.stx-wrap.stx-guide { padding-bottom: 80px; font-family: var(--stx-font); }
.stx-guide h2 { margin: 0 0 14px; font: 700 24px/1.25 var(--stx-font); color: var(--stx-black); }
.stx-guide li { margin-bottom: 8px; }
.stx-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.stx-steps li { position: relative; padding: 0 0 18px 48px; counter-increment: step; line-height: 1.6; }
.stx-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--stx-black); color: var(--stx-yellow); font-weight: 700; font-size: 14px; }
.stx-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--stx-line); }
.stx-related { margin-top: 80px; }

/* ---------- Mobile sticky order bar ---------- */
.stx-sticky { display: none; }
@media (max-width: 960px) {
	.stx-sticky {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--stx-black); color: #fff;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .15); transition: transform .3s;
	}
	.stx-sticky strong { display: block; font-size: 14px; }
	.stx-sticky span { color: var(--stx-yellow); font-weight: 700; }
	.stx-sticky.is-hidden { transform: translateY(110%); }
	.stx-product { padding-bottom: 110px; }
}

/* ---------- Archive ---------- */
.stx-wrap.stx-archive__body { padding-top: 32px; padding-bottom: 88px; }

/* ---------- Catalogue hero (/produits/) ---------- */
.stx-shop-hero { position: relative; overflow: hidden; padding: 40px 0 56px; background: var(--stx-soft); font-family: var(--stx-font); }
.stx-shop-hero::after { content: ""; position: absolute; top: -20%; bottom: -20%; right: 8%; width: 34%; background: var(--stx-yellow); transform: skewX(-16deg); }
.stx-shop-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.stx-shop-hero .stx-breadcrumb { margin-bottom: 28px; }
.stx-shop-hero h1 { margin: 0 0 14px; font: 800 clamp(38px, 5vw, 60px)/1.05 var(--stx-font); letter-spacing: -.02em; color: var(--stx-black); }
.stx-shop-hero__lead { max-width: 520px; margin: 0 0 24px; font-size: 17px; line-height: 1.7; color: var(--stx-muted); }
.stx-shop-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stx-shop-hero__chips li { padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(14, 14, 14, .06); font-size: 14px; font-weight: 500; color: var(--stx-black); }
.stx-shop-hero__chips li:first-child { background: var(--stx-black); color: #fff; }

.stx-shop-hero__stack { position: relative; height: 340px; }
.stx-shop-hero__tile {
	position: absolute; overflow: hidden; width: 210px; height: 210px; border: 6px solid #fff; border-radius: 20px;
	background: #fff; box-shadow: 0 18px 40px rgba(14, 14, 14, .18);
}
.stx-shop-hero__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stx-shop-hero__tile--1 { top: 0; left: 8%; z-index: 3; transform: rotate(-6deg); }
.stx-shop-hero__tile--2 { top: 40px; right: 4%; z-index: 2; transform: rotate(5deg); }
.stx-shop-hero__tile--3 { bottom: 0; left: 34%; z-index: 4; transform: rotate(-1deg); }
@media (max-width: 900px) {
	.stx-shop-hero__grid { grid-template-columns: 1fr; }
	.stx-shop-hero::after { right: -18%; width: 50%; top: auto; height: 60%; bottom: -10%; }
	.stx-shop-hero__stack { height: 200px; max-width: 360px; }
	.stx-shop-hero__tile { width: 130px; height: 130px; border-width: 4px; border-radius: 16px; }
}

/* ---------- Filter bar ---------- */
.stx-filter {
	position: sticky; top: calc(var(--stx-header-h, 78px) + 12px); z-index: 20;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	margin-bottom: 18px; padding: 12px; border: 1px solid rgba(14, 14, 14, .06); border-radius: 18px;
	background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(14, 14, 14, .06);
	font-family: var(--stx-font);
}
.admin-bar .stx-filter { top: calc(var(--stx-header-h, 78px) + 44px); }
.stx-filter__cats { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.stx-filter .stx-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--stx-line); border-radius: 999px;
	background: #fff; color: var(--stx-black); font: 600 14px/1.2 var(--stx-font); cursor: pointer; transition: border-color .2s, background-color .2s; text-decoration: none;
}
.stx-filter .stx-chip span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--stx-soft); font-size: 12px; text-align: center; }
.stx-filter .stx-chip:hover { border-color: var(--stx-black); background: #fff; color: var(--stx-black); }
.stx-filter .stx-chip[aria-current="true"] { border-color: var(--stx-black); background: var(--stx-black); color: #fff; }
.stx-filter .stx-chip[aria-current="true"] span { background: var(--stx-yellow); color: var(--stx-black); }
.stx-filter .stx-chip:focus-visible { outline: 3px solid var(--stx-yellow); outline-offset: 2px; }

.stx-filter__tools { display: flex; flex-wrap: wrap; gap: 10px; }
.stx-filter__search { position: relative; display: flex; align-items: center; }
.stx-filter__search svg { position: absolute; left: 14px; color: var(--stx-muted); pointer-events: none; }
.stx-filter input[type="search"], .stx-filter select {
	height: 44px; box-sizing: border-box; border: 1.5px solid var(--stx-line); border-radius: 999px; background: var(--stx-soft);
	font: 500 14px/1.2 var(--stx-font); color: var(--stx-black); transition: border-color .2s, background-color .2s;
}
.stx-filter input[type="search"] { width: 240px; padding: 0 16px 0 42px; }
.stx-filter select {
	padding: 0 40px 0 16px; appearance: none; -webkit-appearance: none; cursor: pointer;
	background: var(--stx-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0E0E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
}
.stx-filter input[type="search"]:focus, .stx-filter select:focus { outline: 0; border-color: var(--stx-black); background-color: #fff; }
.stx-filter__count { margin: 0 0 22px; font-family: var(--stx-font); font-size: 14px; color: var(--stx-muted); }
.stx-filter__count strong { color: var(--stx-black); }
.stx-filter__empty { padding: 56px 20px; border: 2px dashed var(--stx-line); border-radius: var(--stx-radius); text-align: center; font-family: var(--stx-font); }
.stx-filter__empty p { margin: 0 0 16px; color: var(--stx-black); }
.stx-card[hidden], .stx-grid[hidden], .stx-filter__empty[hidden] { display: none; }
@media (max-width: 760px) {
	.stx-filter { position: static; }
	.stx-filter__cats { flex-wrap: nowrap; overflow-x: auto; margin: -4px; padding: 4px; scrollbar-width: none; }
	.stx-filter__cats::-webkit-scrollbar { display: none; }
	.stx-filter .stx-chip { flex: none; }
	.stx-filter__tools, .stx-filter__search { width: 100%; }
	.stx-filter input[type="search"] { width: 100%; }
	.stx-filter__sort, .stx-filter select { width: 100%; }
}

/* ---------- Thank-you page (/merci/) ---------- */
.stx-thanks { padding: 56px 0 96px; background: var(--stx-soft); font-family: var(--stx-font); color: var(--stx-text); }
.stx-thanks__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.stx-thanks__check {
	display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
	background: var(--stx-yellow); color: var(--stx-black); box-shadow: 0 0 0 10px rgba(255, 206, 0, .25);
	animation: stx-pop .5s cubic-bezier(.2, .9, .3, 1.4) both;
}
@keyframes stx-pop { from { transform: scale(.4); opacity: 0; } }
.stx-thanks__head .stx-eyebrow { color: var(--stx-green); }
.stx-thanks__head h1 { margin: 0 0 14px; font: 800 clamp(28px, 4vw, 42px)/1.15 var(--stx-font); letter-spacing: -.015em; color: var(--stx-black); }
.stx-thanks__lead { margin: 0 0 8px; font-size: 17px; line-height: 1.7; color: var(--stx-muted); }
.stx-thanks__lead strong { color: var(--stx-black); white-space: nowrap; }
.stx-thanks__head .stx-btn { margin-top: 16px; }

.stx-thanks__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
@media (max-width: 820px) { .stx-thanks__grid { grid-template-columns: 1fr; } }
.stx-thanks__card { padding: 28px; border: 1px solid rgba(14, 14, 14, .06); border-radius: var(--stx-radius); background: #fff; box-shadow: 0 1px 2px rgba(14, 14, 14, .04), 0 10px 30px rgba(14, 14, 14, .07); }
.stx-thanks__card h2 { margin: 0 0 18px; font: 700 20px/1.3 var(--stx-font); color: var(--stx-black); }
.stx-thanks__item { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--stx-line); }
.stx-thanks__thumb img { display: block; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.stx-thanks__item div { flex: 1; display: flex; flex-direction: column; }
.stx-thanks__item strong { color: var(--stx-black); }
.stx-thanks__item span { font-size: 14px; color: var(--stx-muted); }
.stx-thanks__item b { white-space: nowrap; color: var(--stx-black); }
.stx-thanks__card .stx-total { margin: 16px 0; }
.stx-thanks__address { margin: 0; font-size: 14px; }
.stx-thanks__address dt { margin-bottom: 4px; font-weight: 600; color: var(--stx-black); }
.stx-thanks__address dd { margin: 0; line-height: 1.6; color: var(--stx-muted); }

.stx-thanks__card--dark { border: 0; background: var(--stx-black); color: rgba(255, 255, 255, .75); }
.stx-thanks__card--dark h2 { color: #fff; }
.stx-thanks__steps { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: stx-thanks; }
.stx-thanks__steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 20px 48px; counter-increment: stx-thanks; }
.stx-thanks__steps li::before { content: counter(stx-thanks); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--stx-yellow); color: var(--stx-black); font-weight: 700; font-size: 14px; }
.stx-thanks__steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: rgba(255, 255, 255, .15); }
.stx-thanks__steps strong { color: #fff; }
.stx-thanks__steps span { font-size: 14px; line-height: 1.55; }
.stx-thanks__actions { display: flex; flex-direction: column; gap: 10px; }
.stx-btn.stx-thanks__wa { text-align: center; background: #25D366; color: #fff !important; }
.stx-btn.stx-thanks__wa:hover { background: #1fb957; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
@media (prefers-reduced-motion: reduce) { .stx-thanks__check { animation: none; } }
