/**
 * Topikos Core — styles des blocs marketplace.
 */

:root {
	--tpk-green: #00a651;
	--tpk-green-dark: #007f3e;
	--tpk-teal: #0e7c86;
	--tpk-navy: #16273f;
	--tpk-wa: #25d366;
	--tpk-wa-dark: #1da851;
	--tpk-ink: #16223a;
	--tpk-muted: #5b6b84;
	--tpk-line: #e4e9f0;
	--tpk-bg: #f7f9fb;
	--tpk-radius: 14px;
	--tpk-radius-sm: 10px;
	--tpk-shadow: 0 1px 2px rgba(22, 39, 63, .06), 0 8px 24px rgba(22, 39, 63, .06);
	--tpk-shadow-hover: 0 2px 6px rgba(22, 39, 63, .08), 0 16px 40px rgba(22, 39, 63, .12);
	--tpk-maxw: 1200px;
}

/* ---------------------------------------------------------------- Layout */

.tpk-section {
	max-width: var(--tpk-maxw);
	margin: 0 auto;
	padding: 44px 20px;
}

.tpk-section__head {
	margin-bottom: 22px;
}

.tpk-section__title {
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	line-height: 1.2;
	margin: 0 0 6px;
	color: var(--tpk-ink);
	font-weight: 700;
	letter-spacing: -.01em;
}

.tpk-section__subtitle {
	margin: 0;
	color: var(--tpk-muted);
	font-size: .98rem;
}

.tpk-section__foot {
	margin-top: 28px;
	text-align: center;
}

/* --------------------------------------------------------------- Buttons */

.tpk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .93rem;
	line-height: 1;
	padding: 12px 22px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
	cursor: pointer;
}

.tpk-btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.tpk-btn:focus-visible {
	outline: 3px solid rgba(0, 166, 81, .45);
	outline-offset: 2px;
}

.tpk-btn--wa {
	background: var(--tpk-wa);
	color: #fff;
	width: 100%;
	box-shadow: 0 2px 8px rgba(37, 211, 102, .3);
}

.tpk-btn--wa:hover {
	background: var(--tpk-wa-dark);
	color: #fff;
}

.tpk-btn--wa.tpk-btn--single {
	width: auto;
	min-width: 300px;
	padding: 16px 30px;
	font-size: 1.02rem;
}

.tpk-btn--primary {
	background: var(--tpk-green);
	color: #fff;
}

.tpk-btn--primary:hover {
	background: var(--tpk-green-dark);
	color: #fff;
}

.tpk-btn--outline {
	background: #fff;
	color: var(--tpk-green-dark);
	border-color: var(--tpk-green);
}

.tpk-btn--outline:hover {
	background: var(--tpk-green);
	color: #fff;
}

.tpk-btn--light {
	background: #fff;
	color: var(--tpk-green-dark);
	white-space: nowrap;
}

.tpk-btn--muted {
	background: var(--tpk-bg);
	color: var(--tpk-ink);
	border-color: var(--tpk-line);
	width: 100%;
}

.tpk-btn--hero {
	background: #fff;
	color: var(--tpk-green-dark);
	padding: 14px 30px;
	font-size: 1rem;
}

.tpk-wa-icon {
	flex: none;
}

/* ------------------------------------------------------------ Search bar */

.tpk-searchbar {
	background: linear-gradient(90deg, var(--tpk-green) 0%, #0aa564 55%, var(--tpk-teal) 100%);
	padding: 14px 20px;
}

.tpk-searchbar__form {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	overflow: hidden;
}

.tpk-searchbar__icon {
	display: flex;
	padding: 0 4px 0 18px;
	color: var(--tpk-muted);
}

.tpk-searchbar__form input[type="search"] {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 13px 14px;
	font-size: .95rem;
	color: var(--tpk-ink);
	min-width: 0;
	box-shadow: none;
}

.tpk-searchbar__form input[type="search"]:focus {
	outline: none;
	box-shadow: none;
}

.tpk-searchbar__submit {
	border: 0;
	background: var(--tpk-green);
	color: #fff;
	padding: 0 20px;
	align-self: stretch;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: background .15s ease;
}

.tpk-searchbar__submit:hover {
	background: var(--tpk-green-dark);
}

/* ------------------------------------------------------------------ Hero */

.tpk-hero {
	background: linear-gradient(105deg, #068a4c 0%, #0a9a5c 45%, var(--tpk-teal) 100%);
	color: #fff;
	text-align: center;
	padding: 54px 20px 58px;
	position: relative;
	overflow: hidden;
}

.tpk-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .16), transparent 45%), radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .12), transparent 40%);
	pointer-events: none;
}

.tpk-hero__inner {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	z-index: 1;
}

.tpk-hero__title {
	color: #fff;
	font-size: clamp(1.6rem, 3.6vw, 2.6rem);
	line-height: 1.18;
	margin: 0 0 14px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.tpk-hero__subtitle {
	color: rgba(255, 255, 255, .92);
	font-size: 1.02rem;
	margin: 0 0 26px;
}

/* -------------------------------------------------------------- Carousel */

.tpk-carousel {
	position: relative;
}

.tpk-carousel__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	padding: 4px 2px 12px;
	scrollbar-width: thin;
}

.tpk-carousel__track::-webkit-scrollbar {
	height: 6px;
}

.tpk-carousel__track::-webkit-scrollbar-thumb {
	background: var(--tpk-line);
	border-radius: 999px;
}

.tpk-carousel__nav {
	position: absolute;
	top: 38%;
	z-index: 3;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--tpk-line);
	background: #fff;
	color: var(--tpk-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--tpk-shadow);
	display: none;
}

.tpk-carousel__nav--prev {
	left: -14px;
}

.tpk-carousel__nav--next {
	right: -14px;
}

@media (min-width: 782px) {
	.tpk-carousel__nav {
		display: block;
	}
}

.tpk-tile {
	flex: 0 0 172px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, box-shadow .18s ease;
	display: block;
}

.tpk-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--tpk-shadow-hover);
	text-decoration: none;
}

.tpk-tile__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 104px;
	overflow: hidden;
}

.tpk-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpk-tile__flag {
	font-size: 40px;
	line-height: 1;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
}

.tpk-tile__body {
	display: block;
	padding: 10px 12px 13px;
}

.tpk-tile__name {
	display: block;
	font-weight: 650;
	font-size: .92rem;
	color: var(--tpk-ink);
	line-height: 1.25;
}

.tpk-tile__count {
	display: block;
	font-size: .78rem;
	color: var(--tpk-muted);
	margin-top: 3px;
}

/* ------------------------------------------------------------ Categories */

.tpk-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
	gap: 14px;
}

.tpk-cat {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius-sm);
	text-decoration: none;
	color: var(--tpk-ink);
	font-weight: 600;
	font-size: .9rem;
	transition: border-color .15s ease, transform .15s ease;
}

.tpk-cat:hover {
	border-color: var(--tpk-green);
	transform: translateY(-2px);
	text-decoration: none;
	color: var(--tpk-ink);
}

.tpk-cat__icon {
	font-size: 22px;
	line-height: 1;
}

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

.tpk-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

@media (min-width: 1024px) {
	.tpk-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}

	.tpk-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.tpk-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tpk-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.tpk-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--tpk-shadow-hover);
}

.tpk-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--tpk-bg);
	overflow: hidden;
}

.tpk-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.tpk-card:hover .tpk-card__media img {
	transform: scale(1.04);
}

.tpk-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 42px;
}

.tpk-card__body {
	padding: 12px 14px 4px;
	flex: 1;
}

.tpk-card__title {
	font-size: .98rem;
	line-height: 1.3;
	margin: 0 0 8px;
	font-weight: 650;
}

.tpk-card__title a {
	color: var(--tpk-ink);
	text-decoration: none;
}

.tpk-card__title a:hover {
	color: var(--tpk-green-dark);
}

.tpk-card__price {
	font-weight: 700;
	color: var(--tpk-ink);
	font-size: .95rem;
	margin-top: 6px;
}

.tpk-card__price del {
	color: var(--tpk-muted);
	font-weight: 400;
	margin-right: 6px;
}

.tpk-card__foot {
	padding: 10px 14px 14px;
}

/* ---------------------------------------------------------------- Badges */

.tpk-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0;
}

.tpk-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .76rem;
	font-weight: 600;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--tpk-bg);
	border: 1px solid var(--tpk-line);
	color: var(--tpk-muted);
	text-decoration: none;
	max-width: 100%;
}

.tpk-badge:hover {
	border-color: var(--tpk-green);
	color: var(--tpk-green-dark);
	text-decoration: none;
}

.tpk-badge__flag {
	font-size: .95rem;
}

.tpk-badge--store {
	background: #fff;
}

/* ---------------------------------------------------------------- Steps */

.tpk-steps__grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tpk-step {
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	padding: 24px 22px;
}

.tpk-step__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(0, 166, 81, .1);
	font-size: 24px;
	margin-bottom: 12px;
}

.tpk-step__title {
	margin: 0 0 6px;
	font-size: 1.02rem;
	color: var(--tpk-ink);
}

.tpk-step__text {
	margin: 0;
	color: var(--tpk-muted);
	font-size: .92rem;
	line-height: 1.55;
}

/* ------------------------------------------------------------------ Why */

.tpk-why {
	background: var(--tpk-bg);
	max-width: none;
}

.tpk-why > * {
	max-width: var(--tpk-maxw);
	margin-left: auto;
	margin-right: auto;
}

.tpk-why__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.tpk-why__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.tpk-why__icon {
	font-size: 22px;
	line-height: 1;
	flex: none;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--tpk-line);
}

.tpk-why__title {
	margin: 2px 0 4px;
	font-size: .98rem;
	color: var(--tpk-ink);
}

.tpk-why__text {
	margin: 0;
	color: var(--tpk-muted);
	font-size: .88rem;
	line-height: 1.5;
}

/* ------------------------------------------------------------------ CTA */

.tpk-cta {
	background: linear-gradient(105deg, var(--tpk-navy) 0%, #1d3a5f 100%);
	color: #fff;
	padding: 38px 20px;
}

.tpk-cta__inner {
	max-width: var(--tpk-maxw);
	margin: 0 auto;
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.tpk-cta__title {
	color: #fff;
	margin: 0 0 6px;
	font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.tpk-cta__text {
	margin: 0;
	color: rgba(255, 255, 255, .85);
	max-width: 640px;
	font-size: .95rem;
}

/* -------------------------------------------------------------- Filters */

.tpk-filters {
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	padding: 14px 16px;
	margin: 0 0 26px;
}

.tpk-filters__row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.tpk-filters__field {
	flex: 1 1 200px;
	min-width: 0;
}

.tpk-filters .tpk-select {
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--tpk-radius-sm);
	border: 1px solid var(--tpk-line);
	background: #fff;
	color: var(--tpk-ink);
	font-size: .9rem;
	max-width: 100%;
}

.tpk-filters__submit {
	padding: 11px 20px;
}

.tpk-filters__reset {
	color: var(--tpk-muted);
	font-size: .85rem;
	text-decoration: underline;
}

/* ---------------------------------------------------------------- Empty */

.tpk-empty {
	text-align: center;
	padding: 50px 20px;
	background: var(--tpk-bg);
	border-radius: var(--tpk-radius);
	border: 1px dashed var(--tpk-line);
}

.tpk-empty h3 {
	margin: 0 0 8px;
	color: var(--tpk-ink);
}

.tpk-empty p {
	color: var(--tpk-muted);
	margin: 0 0 18px;
}

/* ------------------------------------------------- WooCommerce overrides */

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	display: none !important;
}

.woocommerce ul.products li.product .tpk-btn {
	display: inline-flex !important;
	margin-top: 10px;
}

.woocommerce ul.products li.product {
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	background: #fff;
	overflow: hidden;
	padding: 0 0 14px !important;
	transition: transform .18s ease, box-shadow .18s ease;
	text-align: left;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: var(--tpk-shadow-hover);
}

.woocommerce ul.products li.product a img {
	margin: 0 0 10px;
	border-radius: 0;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: .98rem !important;
	padding: 0 14px !important;
	margin-bottom: 6px;
	line-height: 1.3;
	font-weight: 650;
}

.woocommerce ul.products li.product .tpk-badges,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .tpk-btn {
	margin-left: 14px;
	margin-right: 14px;
}

.woocommerce ul.products li.product .price {
	color: var(--tpk-ink) !important;
	font-size: .95rem;
	font-weight: 700;
	display: block;
}

.woocommerce div.product form.cart,
.woocommerce div.product p.cart,
.woocommerce div.product .stock,
.woocommerce .quantity {
	display: none !important;
}

.tpk-single-actions {
	margin: 22px 0 8px;
}

.tpk-single-note {
	margin: 12px 0 0;
	font-size: .85rem;
	color: var(--tpk-muted);
	max-width: 480px;
}

.woocommerce div.product .tpk-badges {
	margin: 12px 0 16px;
}

/* Masque les éléments panier globaux. */
.woocommerce-cart-form,
.wc-block-cart,
.woocommerce .cart-collaterals,
li.wc-block-mini-cart,
.site-header .astra-cart-menu-wrap,
.ast-site-header-cart,
.ast-header-woo-cart {
	display: none !important;
}

@media (max-width: 600px) {
	.tpk-section {
		padding: 32px 16px;
	}

	.tpk-btn--wa.tpk-btn--single {
		min-width: 0;
		width: 100%;
	}

	.tpk-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Cartes de la boucle WooCommerce : hauteur homogène, bouton aligné en bas. */
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
}

.woocommerce ul.products li.product .tpk-btn {
	margin-top: auto;
}

.woocommerce ul.products li.product .tpk-badges {
	margin-top: 8px;
	margin-bottom: 12px;
}

.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
	padding-left: 14px;
	padding-right: 14px;
}

.woocommerce ul.products li.product a img {
	margin-left: 0;
	margin-right: 0;
}

/* ==========================================================================
   Topikos — habillage « chaleur & terroir » (v2)
   Palette élargie : vert communautaire, terre cuite, ocre, grenat, érable.
   ========================================================================== */

:root {
	--tpk-cream: #fbf7f1;
	--tpk-sand: #f4ece1;
	--tpk-terracotta: #c2571f;
	--tpk-ochre: #e0a43b;
	--tpk-berry: #a8324a;
	--tpk-maple: #d8202f;
	--tpk-forest: #0e5c3a;
	--tpk-ink: #1b2432;
	--tpk-muted: #5f6b7d;
	--tpk-line: #e7e0d6;
}

/* -------------------------------------------------- Bande tissée (weave) */

.tpk-weave {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: repeating-linear-gradient(
		90deg,
		var(--tpk-green) 0 26px,
		var(--tpk-ochre) 26px 42px,
		var(--tpk-terracotta) 42px 58px,
		var(--tpk-berry) 58px 70px,
		var(--tpk-teal) 70px 96px
	);
}

.tpk-weave--short {
	width: 76px;
	margin-top: 16px;
}

.tpk-section__head--center .tpk-weave--short {
	margin-left: auto;
	margin-right: auto;
}

.tpk-weave--edge {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 7px;
	border-radius: 0;
	z-index: 2;
}

/* ------------------------------------------------------------- Sections */

.tpk-section__head--center {
	text-align: center;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.tpk-section__title {
	color: var(--tpk-ink);
	letter-spacing: -.02em;
}

.tpk-section__subtitle {
	font-size: 1.02rem;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ Hero */

.tpk-hero {
	background:
		radial-gradient(ellipse at 12% 0%, rgba(224, 164, 59, .30), transparent 52%),
		radial-gradient(ellipse at 88% 100%, rgba(194, 87, 31, .28), transparent 55%),
		linear-gradient(120deg, #0a5c39 0%, #0b7f4c 42%, #0e7c86 100%);
	padding: 68px 20px 78px;
}

.tpk-hero::after {
	background-image:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 12px),
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 12px);
	opacity: .9;
}

.tpk-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 20px;
	backdrop-filter: blur(4px);
}

.tpk-leaf {
	font-size: 1rem;
}

.tpk-hero__title {
	font-size: clamp(1.85rem, 4vw, 3rem);
	max-width: 15ch;
	margin-left: auto;
	margin-right: auto;
	text-wrap: balance;
}

.tpk-hero__subtitle {
	max-width: 56ch;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.05rem;
	line-height: 1.6;
}

.tpk-btn--hero {
	box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
	font-weight: 700;
}

.tpk-hero__stats {
	list-style: none;
	margin: 38px auto 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 40px;
	max-width: 620px;
}

.tpk-hero__stats li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 130px;
}

.tpk-hero__stats strong {
	font-size: 1.7rem;
	line-height: 1;
	color: #fff;
	font-weight: 700;
	letter-spacing: -.02em;
}

.tpk-hero__stats span {
	font-size: .8rem;
	color: rgba(255, 255, 255, .82);
	text-align: center;
}

/* --------------------------------------------------------- Communautés */

.tpk-communities {
	background: var(--tpk-cream);
	max-width: none;
	position: relative;
}

.tpk-communities > * {
	max-width: var(--tpk-maxw);
	margin-left: auto;
	margin-right: auto;
}

.tpk-tile {
	flex-basis: 184px;
	border-color: var(--tpk-line);
	background: #fff;
}

.tpk-tile__media {
	height: 118px;
	position: relative;
}

.tpk-tile__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 10px);
}

.tpk-tile__flag {
	font-size: 46px;
	position: relative;
	z-index: 1;
}

.tpk-tile:hover {
	border-color: var(--tpk-ochre);
}

/* ------------------------------------------------------------ Catégories */

.tpk-cat-grid {
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
}

.tpk-cat {
	position: relative;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 18px;
	border-radius: 16px;
	border: 1px solid var(--tpk-line);
	background: #fff;
	overflow: hidden;
}

.tpk-cat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--tpk-cat-ink, var(--tpk-green));
	opacity: .85;
}

.tpk-cat:hover {
	border-color: var(--tpk-cat-ink, var(--tpk-green));
	box-shadow: var(--tpk-shadow);
}

.tpk-cat__icon {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background: color-mix(in srgb, var(--tpk-cat-ink, #0e7c4a) 12%, #fff);
}

.tpk-cat__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.tpk-cat__name {
	font-weight: 650;
	line-height: 1.3;
	color: var(--tpk-ink);
}

.tpk-cat__count {
	font-size: .78rem;
	font-weight: 500;
	color: var(--tpk-muted);
}

/* ---------------------------------------------------------------- Étapes */

.tpk-steps {
	position: relative;
}

.tpk-steps__grid {
	gap: 24px;
	margin-top: 34px;
}

.tpk-step {
	position: relative;
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: 18px;
	padding: 34px 26px 28px;
	text-align: center;
	overflow: hidden;
}

.tpk-step::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--tpk-green), var(--tpk-ochre));
}

.tpk-step:nth-child(2)::after {
	background: linear-gradient(90deg, var(--tpk-ochre), var(--tpk-terracotta));
}

.tpk-step:nth-child(3)::after {
	background: linear-gradient(90deg, var(--tpk-terracotta), var(--tpk-berry));
}

.tpk-step__num {
	position: absolute;
	top: 14px;
	right: 18px;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tpk-ink);
	opacity: .07;
	letter-spacing: -.04em;
}

.tpk-step__icon {
	margin: 0 auto 14px;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	font-size: 28px;
	background: var(--tpk-sand);
	border: 1px solid var(--tpk-line);
}

.tpk-step__title {
	font-size: 1.1rem;
	margin-bottom: 8px;
}

.tpk-step__text {
	font-size: .95rem;
}

/* ------------------------------------------------------ Pourquoi Topikos */

.tpk-why {
	background:
		radial-gradient(ellipse at 10% 0%, rgba(224, 164, 59, .16), transparent 55%),
		var(--tpk-cream);
	padding: 56px 20px 60px;
	max-width: none;
}

.tpk-why__inner {
	max-width: var(--tpk-maxw);
	margin: 0 auto;
}

.tpk-why__grid {
	gap: 20px;
	margin-top: 34px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tpk-why__item {
	display: block;
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: 18px;
	padding: 26px 22px;
	transition: transform .18s ease, box-shadow .18s ease;
}

.tpk-why__item:hover {
	transform: translateY(-3px);
	box-shadow: var(--tpk-shadow);
}

.tpk-why__icon {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	font-size: 24px;
	border: 0;
	margin-bottom: 14px;
	background: color-mix(in srgb, var(--tpk-why-ink, #0e7c4a) 13%, #fff);
}

.tpk-why__title {
	font-size: 1.02rem;
	margin: 0 0 6px;
}

.tpk-why__text {
	font-size: .93rem;
	line-height: 1.6;
}

/* ------------------------------------------------------------------- CTA */

.tpk-cta {
	background:
		radial-gradient(ellipse at 85% 10%, rgba(224, 164, 59, .22), transparent 55%),
		linear-gradient(105deg, #14263f 0%, #1c3e5c 100%);
	padding: 46px 20px;
	position: relative;
	overflow: hidden;
}

.tpk-cta::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 6px;
	background: repeating-linear-gradient(
		90deg,
		var(--tpk-green) 0 26px,
		var(--tpk-ochre) 26px 42px,
		var(--tpk-terracotta) 42px 58px,
		var(--tpk-berry) 58px 70px,
		var(--tpk-teal) 70px 96px
	);
}

.tpk-cta__title {
	font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.tpk-btn--light {
	font-weight: 700;
	padding: 14px 28px;
}

/* -------------------------------------------------------- Cartes produit */

.tpk-card,
.woocommerce ul.products li.product {
	border-color: var(--tpk-line);
	border-radius: 16px;
}

.tpk-card:hover,
.woocommerce ul.products li.product:hover {
	border-color: var(--tpk-ochre);
}

.tpk-badge {
	background: var(--tpk-cream);
	border-color: var(--tpk-line);
	color: #4b5768;
}

.tpk-badge:hover {
	border-color: var(--tpk-terracotta);
	color: var(--tpk-terracotta);
}

.woocommerce ul.products li.product .price,
.tpk-card__price {
	color: var(--tpk-forest) !important;
}

/* ------------------------------------------------------- Barre de filtres */

.tpk-filters {
	border-color: var(--tpk-line);
	border-radius: 16px;
	background: var(--tpk-cream);
}

/* ---------------------------------------------------- Formulaire vendeur */

.tpk-form {
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: 20px;
	padding: 34px 32px 30px;
	box-shadow: var(--tpk-shadow);
}

.tpk-form__head {
	margin-bottom: 26px;
}

.tpk-form__title {
	margin: 0 0 6px;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	color: var(--tpk-ink);
	letter-spacing: -.02em;
}

.tpk-form__subtitle {
	margin: 0;
	color: var(--tpk-muted);
}

.tpk-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

@media (max-width: 700px) {
	.tpk-form {
		padding: 26px 20px 24px;
	}

	.tpk-form__grid {
		grid-template-columns: 1fr;
	}
}

.tpk-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tpk-field label {
	font-weight: 600;
	font-size: .9rem;
	color: var(--tpk-ink);
}

.tpk-field label span {
	color: var(--tpk-terracotta);
}

.tpk-field input[type="text"],
.tpk-field input[type="email"],
.tpk-field input[type="tel"],
.tpk-field input[type="password"],
.tpk-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--tpk-line);
	border-radius: 12px;
	background: #fff;
	font-size: .95rem;
	color: var(--tpk-ink);
	max-width: 100%;
}

.tpk-field input:focus,
.tpk-field select:focus {
	outline: none;
	border-color: var(--tpk-green);
	box-shadow: 0 0 0 3px rgba(0, 166, 81, .16);
}

.tpk-field small {
	color: var(--tpk-muted);
	font-size: .8rem;
	line-height: 1.45;
}

.tpk-field--check {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
}

.tpk-field--check label {
	font-weight: 400;
	font-size: .9rem;
	color: var(--tpk-muted);
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.5;
}

.tpk-field--check input {
	margin-top: 3px;
	flex: none;
}

.tpk-form__hp {
	position: absolute !important;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

.tpk-form__actions {
	margin: 24px 0 0;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.tpk-btn--lg {
	padding: 15px 32px;
	font-size: 1rem;
	font-weight: 700;
}

.tpk-form__note {
	color: var(--tpk-muted);
	font-size: .85rem;
}

.tpk-form__login {
	margin: 18px 0 0;
	font-size: .9rem;
	color: var(--tpk-muted);
	border-top: 1px solid var(--tpk-line);
	padding-top: 16px;
}

.tpk-form__errors {
	background: #fdf1ec;
	border: 1px solid #f0c4b3;
	border-left: 4px solid var(--tpk-terracotta);
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 22px;
	color: #8a3512;
}

.tpk-form__errors ul {
	margin: 0;
	padding-left: 18px;
}

.tpk-form--done {
	text-align: center;
}

/* ==========================================================================
   Densité — même contenu, moins d'espace perdu (v3)
   ========================================================================== */

.tpk-section {
	padding: 34px 20px;
}

.tpk-section__head {
	margin-bottom: 18px;
}

.tpk-section__subtitle {
	font-size: .95rem;
}

.tpk-weave--short {
	width: 64px;
	height: 5px;
	margin-top: 12px;
}

/* Bandeau */
.tpk-hero {
	padding: 46px 20px 50px;
}

.tpk-hero__eyebrow {
	margin-bottom: 16px;
	padding: 6px 14px 6px 10px;
	font-size: .74rem;
}

.tpk-hero__title {
	font-size: clamp(1.7rem, 3.2vw, 2.5rem);
	margin-bottom: 12px;
	max-width: 24ch;
}

.tpk-hero__subtitle {
	font-size: 1rem;
	margin-bottom: 20px;
	max-width: 62ch;
}

.tpk-hero__stats {
	margin-top: 26px;
	gap: 10px 34px;
}

.tpk-hero__stats strong {
	font-size: 1.45rem;
}

.tpk-searchbar {
	padding: 11px 20px;
}

/* Communautés */
.tpk-carousel__track {
	gap: 12px;
	padding-bottom: 10px;
}

.tpk-tile {
	flex-basis: 158px;
}

.tpk-tile__media {
	height: 94px;
}

.tpk-tile__flag {
	font-size: 36px;
}

.tpk-tile__body {
	padding: 9px 11px 11px;
}

.tpk-tile__name {
	font-size: .88rem;
}

/* Catégories */
.tpk-cat-grid {
	grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
	gap: 12px;
}

.tpk-cat {
	padding: 13px 14px;
	gap: 11px;
}

.tpk-cat__icon {
	width: 38px;
	height: 38px;
	font-size: 19px;
	border-radius: 11px;
}

.tpk-cat__name {
	font-size: .88rem;
}

/* Produits */
.tpk-grid {
	gap: 14px;
}

.tpk-card__body {
	padding: 10px 12px 2px;
}

.tpk-card__foot {
	padding: 8px 12px 12px;
}

.tpk-card__title {
	font-size: .94rem;
	margin-bottom: 6px;
}

.woocommerce ul.products {
	gap: 14px;
}

.woocommerce ul.products li.product {
	padding-bottom: 12px !important;
}

.woocommerce ul.products li.product a img {
	margin-bottom: 8px;
}

.woocommerce ul.products li.product .tpk-badges {
	margin-top: 6px;
	margin-bottom: 10px;
}

/* Étapes */
.tpk-steps__grid {
	gap: 16px;
	margin-top: 24px;
}

.tpk-step {
	padding: 22px 20px 20px;
}

.tpk-step__icon {
	width: 50px;
	height: 50px;
	font-size: 23px;
	margin-bottom: 10px;
}

.tpk-step__num {
	font-size: 2rem;
	top: 10px;
	right: 14px;
}

.tpk-step__title {
	font-size: 1.02rem;
	margin-bottom: 6px;
}

.tpk-step__text {
	font-size: .9rem;
}

/* Pourquoi */
.tpk-why {
	padding: 40px 20px 44px;
}

.tpk-why__grid {
	gap: 14px;
	margin-top: 24px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tpk-why__item {
	padding: 20px 18px;
}

.tpk-why__icon {
	width: 44px;
	height: 44px;
	font-size: 21px;
	border-radius: 13px;
	margin-bottom: 10px;
}

.tpk-why__text {
	font-size: .88rem;
}

/* Appel vendeur */
.tpk-cta {
	padding: 32px 20px;
}

/* Formulaire */
.tpk-form {
	padding: 26px 26px 24px;
}

.tpk-form__head {
	margin-bottom: 20px;
}

.tpk-form__grid {
	gap: 14px 18px;
}

@media (max-width: 600px) {
	.tpk-section {
		padding: 26px 16px;
	}

	.tpk-hero {
		padding: 34px 18px 38px;
	}

	.tpk-hero__stats {
		gap: 8px 22px;
	}

	.tpk-hero__stats li {
		min-width: 90px;
	}

	.tpk-why {
		padding: 32px 16px 34px;
	}
}

/* ============================================================ Espace vendeur */

.tpk-shop-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	max-width: 900px;
	margin: 0 auto 18px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	box-shadow: var(--tpk-shadow);
}

.tpk-shop-head__name {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--tpk-ink);
	letter-spacing: -.01em;
}

.tpk-shop-head__meta {
	margin: 4px 0 0;
	font-size: .88rem;
	color: var(--tpk-muted);
}

.tpk-shop-head__warn {
	color: #b3451f;
	font-weight: 600;
}

.tpk-shop-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Alertes ------------------------------------------------------------- */

.tpk-alert {
	max-width: 900px;
	margin: 0 auto 16px;
	padding: 12px 16px;
	border-radius: var(--tpk-radius-sm);
	font-size: .92rem;
	line-height: 1.5;
	border: 1px solid transparent;
}

.tpk-alert--ok {
	background: #e8f7ee;
	border-color: #b6e3c8;
	color: #14663c;
}

.tpk-alert--error {
	background: #fdecea;
	border-color: #f3c2bc;
	color: #8f2318;
}

.tpk-alert ul {
	margin: 0;
	padding-left: 18px;
}

/* Liste des annonces --------------------------------------------------- */

.tpk-mylist {
	list-style: none;
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
	display: grid;
	gap: 10px;
}

.tpk-mylist__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	transition: box-shadow .18s ease, transform .18s ease;
}

.tpk-mylist__item:hover {
	box-shadow: var(--tpk-shadow);
}

.tpk-mylist__thumb {
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	border-radius: var(--tpk-radius-sm);
	overflow: hidden;
	background: var(--tpk-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tpk-mylist__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpk-mylist__noimg {
	font-size: 1.5rem;
	opacity: .55;
}

.tpk-mylist__body {
	flex: 1 1 auto;
	min-width: 0;
}

.tpk-mylist__title {
	display: block;
	font-size: 1rem;
	color: var(--tpk-ink);
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tpk-mylist__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 5px;
}

.tpk-mylist__price {
	font-weight: 700;
	color: var(--tpk-green-dark);
	font-size: .95rem;
}

.tpk-mylist__price del,
.tpk-mylist__price .woocommerce-Price-currencySymbol {
	font-weight: 600;
}

.tpk-mylist__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.tpk-mylist__actions .tpk-btn {
	padding: 8px 14px;
	font-size: .86rem;
}

.tpk-mylist__delete {
	font-size: .84rem;
	color: var(--tpk-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.tpk-mylist__delete:hover {
	color: #b3251a;
	border-bottom-color: currentColor;
}

.tpk-tag {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.tpk-tag--ok {
	background: #e8f7ee;
	color: #14663c;
}

.tpk-tag--wait {
	background: #fff3e0;
	color: #8a5510;
}

/* Formulaires vendeur -------------------------------------------------- */

.tpk-form--seller {
	max-width: 900px;
}

.tpk-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius-sm);
	background: #fff;
	color: var(--tpk-ink);
	font: inherit;
	font-size: .95rem;
	resize: vertical;
}

.tpk-field textarea:focus {
	outline: none;
	border-color: var(--tpk-green);
	box-shadow: 0 0 0 3px rgba(0, 166, 81, .14);
}

.tpk-field input[type="file"] {
	width: 100%;
	padding: 14px;
	border: 2px dashed var(--tpk-line);
	border-radius: var(--tpk-radius-sm);
	background: var(--tpk-bg);
	font-size: .9rem;
	cursor: pointer;
}

.tpk-field input[type="file"]:hover {
	border-color: var(--tpk-green);
}

.tpk-form__thumb {
	display: block;
	margin-bottom: 8px;
}

.tpk-form__thumb img {
	width: 92px;
	height: 92px;
	object-fit: cover;
	border-radius: var(--tpk-radius-sm);
	display: block;
}

.tpk-more {
	margin: 0 0 6px;
	border-top: 1px solid var(--tpk-line);
	padding-top: 12px;
}

.tpk-more summary {
	cursor: pointer;
	font-size: .88rem;
	color: var(--tpk-muted);
	font-weight: 600;
	list-style: none;
}

.tpk-more summary::-webkit-details-marker {
	display: none;
}

.tpk-more summary::before {
	content: "+ ";
	color: var(--tpk-green-dark);
	font-weight: 700;
}

.tpk-more[open] summary::before {
	content: "– ";
}

.tpk-more .tpk-field {
	margin-top: 12px;
}

/* Boutique publique du vendeur ---------------------------------------- */

.tpk-sellercard {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
	padding: 22px 24px;
	border-radius: var(--tpk-radius);
	background: linear-gradient(105deg, #068a4c 0%, #0a9a5c 45%, var(--tpk-teal) 100%);
	color: #fff;
}

.tpk-sellercard__eyebrow {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .8;
}

.tpk-sellercard__name {
	margin: 2px 0 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.15;
	color: #fff;
	font-weight: 700;
	letter-spacing: -.01em;
}

.tpk-sellercard__meta {
	margin: 8px 0 0;
	font-size: .93rem;
	opacity: .95;
}

.tpk-sellercard__dot {
	margin: 0 8px;
	opacity: .6;
}

.tpk-sellercard__about {
	margin: 8px 0 0;
	font-size: .93rem;
	max-width: 60ch;
	opacity: .92;
}

.tpk-sellercard .tpk-btn--wa {
	flex: 0 0 auto;
}

@media (max-width: 600px) {

	.tpk-shop-head,
	.tpk-shop-head__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tpk-shop-head__actions .tpk-btn {
		width: 100%;
	}

	.tpk-mylist__item {
		flex-wrap: wrap;
	}

	.tpk-mylist__actions {
		width: 100%;
		justify-content: space-between;
		border-top: 1px solid var(--tpk-line);
		padding-top: 10px;
	}

	.tpk-sellercard {
		padding: 18px;
	}

	.tpk-sellercard .tpk-btn--wa {
		width: 100%;
	}
}

/* Astra ajoute des boutons panier sur les cartes : inutiles en mode catalogue. */
.ast-on-card-button,
.astra-shop-summary-wrap > a.button.product_type_simple,
.ast-shop-product-out-of-stock {
	display: none !important;
}
