/* ==========================================================================
   HOUNDJROXI : boutique (en-tête, recherche, catégories, rangées, fiches produit)
   S'appuie sur les jetons de style.css.
   ========================================================================== */

/* Lien Boutique dans l'en-tête */
.hx-nav {
	margin-left: auto;
}

.hx-nav__lien {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 10px;
	color: var(--hx-papier);
	font-weight: 700;
	text-decoration: none;
}

.hx-nav__lien:hover {
	color: var(--hx-jaune);
}

.hx-nav__icone {
	width: 22px;
	height: 22px;
}

/* Sous 600 px : seulement les icônes Boutique et Mon colis, pour que l'en-tête tienne sur une ligne */
@media (max-width: 600px) {
	.hx-entete {
		gap: 6px;
	}

	.hx-nav__lien span,
	.hx-colis span:not(.hx-colis__nb) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

@media (max-width: 420px) {
	.hx-nav__lien span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

/* En-tête de la boutique */
.hx-boutique__entete {
	margin-bottom: 8px;
}

/* Barre de recherche */
.hx-recherche {
	position: relative;
	display: flex;
	gap: 8px;
	max-width: 720px;
	margin: 0 0 16px;
}

.hx-recherche__loupe {
	position: absolute;
	left: 12px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	color: var(--hx-violet);
	pointer-events: none;
}

.hx-recherche__champ {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 52px;
	padding: 10px 12px 10px 42px;
	border: 0;
	border-bottom: 3px solid var(--hx-violet);
	border-radius: 0;
	background: var(--hx-violet-pale);
	color: var(--hx-encre);
	font-family: var(--hx-texte);
	font-size: var(--hx-t-corps);
}

.hx-recherche__champ::placeholder {
	color: #6b6578;
}

.hx-recherche__bouton {
	flex: 0 0 auto;
	min-height: 52px;
	padding: 0 18px;
	border: 0;
	border-radius: 4px;
	background: var(--hx-violet);
	color: var(--hx-papier);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-sous-titre);
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.hx-recherche__bouton:hover {
	background: var(--hx-violet-fonce);
}

/* Pastilles de catégories : défilent au doigt sur téléphone */
.hx-pastilles {
	display: flex;
	gap: 8px;
	margin: 0 calc(var(--hx-marge) * -1) 8px;
	padding: 2px var(--hx-marge) 10px;
	overflow-x: auto;
	scrollbar-width: none;
}

.hx-pastilles::-webkit-scrollbar {
	display: none;
}

.hx-pastilles__lien {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 2px solid var(--hx-violet);
	color: var(--hx-violet);
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.hx-pastilles__lien:hover {
	background: var(--hx-violet-pale);
	color: var(--hx-violet);
}

.hx-pastilles__lien.est-active {
	background: var(--hx-violet);
	color: var(--hx-papier);
}

/* Rayons (grandes catégories) et rangées (sous-catégories) */
.hx-rayon {
	margin-top: 40px;
}

.hx-rayon__tete {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 8px;
	border-bottom: 4px solid var(--hx-violet);
}

.hx-rayon__titre {
	margin: 0;
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-section);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.hx-rayon__tout {
	flex: 0 0 auto;
	font-weight: 700;
}

.hx-rangee {
	margin-top: 18px;
}

.hx-rangee__titre {
	margin: 0 0 10px;
	font-size: var(--hx-t-corps);
}

.hx-rangee__titre a {
	color: var(--hx-encre);
	text-decoration: none;
}

.hx-rangee__titre a:hover {
	color: var(--hx-violet);
	text-decoration: underline;
}

/* Grille des produits (catégories, recherche) */
.woocommerce ul.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

/* Rangées : défilement horizontal au doigt sur téléphone, grille sur ordinateur */
.hx-rangee ul.hx-rangee__produits {
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: minmax(168px, 62%);
	margin: 0 calc(var(--hx-marge) * -1);
	padding: 4px var(--hx-marge) 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: var(--hx-marge);
}

@media (min-width: 760px) {
	.hx-rangee ul.hx-rangee__produits {
		grid-auto-flow: row;
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		grid-auto-columns: auto;
		margin: 0;
		padding: 4px 0 8px;
		overflow: visible;
	}
}

/* Fiche produit dans les listes */
.woocommerce ul.products li.product.hx-carte,
ul.products li.hx-carte {
	display: flex;
	flex-direction: column;
	width: auto;
	margin: 0;
	padding: 0 0 12px;
	float: none;
	background: var(--hx-papier);
	border-radius: 3px;
	box-shadow: 0 10px 22px -14px rgba(21, 19, 26, 0.55), 0 1px 3px rgba(21, 19, 26, 0.12);
	scroll-snap-align: start;
}

.hx-carte__lien {
	display: block;
	color: var(--hx-encre);
	text-decoration: none;
}

.hx-carte__photo {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 3px 3px 0 0;
	background: var(--hx-violet-pale);
}

.woocommerce ul.products li.product .hx-carte__photo img,
.hx-carte__photo img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 300ms var(--hx-sortie);
}

.hx-carte__lien:hover .hx-carte__photo img {
	transform: scale(1.04);
}

.hx-carte__conservation {
	position: absolute;
	left: 8px;
	top: 8px;
	padding: 3px 8px 2px;
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-petit);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hx-carte__conservation--surgele {
	background: var(--hx-violet);
	color: var(--hx-papier);
}

.hx-carte__conservation--chaud {
	background: var(--hx-encre);
	color: var(--hx-jaune);
}

.hx-carte__conservation--frais {
	background: var(--hx-jaune);
	color: var(--hx-encre);
}

.hx-carte__nom {
	display: -webkit-box;
	margin: 10px 12px 0;
	overflow: hidden;
	font-size: var(--hx-t-corps);
	font-weight: 700;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hx-carte__lien:hover .hx-carte__nom {
	color: var(--hx-violet);
}

.hx-carte__vendeur {
	margin: 4px 12px 0;
	color: var(--hx-encre-douce);
	font-size: var(--hx-t-petit);
}

.woocommerce ul.products li.product .hx-carte__vendeur strong,
.hx-carte__vendeur strong {
	display: inline;
	color: var(--hx-violet);
}

.hx-carte__court {
	display: -webkit-box;
	margin: 4px 12px 0;
	overflow: hidden;
	color: var(--hx-encre-douce);
	font-size: var(--hx-t-petit);
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hx-carte__pied {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: auto 12px 0;
	padding-top: 10px;
}

.hx-carte__prix,
.woocommerce ul.products li.product .price {
	color: var(--hx-violet);
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-titre);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.woocommerce ul.products li.product .hx-carte__pied .button {
	min-height: 40px;
	margin: 0;
	padding: 8px 14px;
	font-size: var(--hx-t-corps);
	box-shadow: none;
}

.hx-carte__pied .added_to_cart {
	flex-basis: 100%;
	font-size: var(--hx-t-petit);
	font-weight: 700;
}

/* Accueil : actions du bloc vendeurs */
.hx-vendeurs__action {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	margin-top: 28px;
	margin-bottom: 0;
}

/* Accueil : bloc livreurs partenaires, sur papier carbone jaune */
.hx-livreurs-accueil {
	display: grid;
	gap: 24px;
	padding: 56px var(--hx-marge) 64px;
	background: var(--hx-jaune);
	color: var(--hx-encre);
}

@media (min-width: 900px) {
	.hx-livreurs-accueil {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 56px;
		align-items: start;
		padding-left: max(var(--hx-marge), calc((100vw - var(--hx-largeur)) / 2));
		padding-right: max(var(--hx-marge), calc((100vw - var(--hx-largeur)) / 2));
	}
}

.hx-livreurs-accueil__titre {
	max-width: 14ch;
	margin: 0 0 24px;
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-grand-titre);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
}

.hx-livreurs-accueil__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	margin: 0;
}

.hx-livreurs-accueil__actions a:not(.hx-bouton) {
	color: var(--hx-encre);
	font-weight: 700;
}

.hx-livreurs-accueil__points {
	margin: 0;
	border-bottom: 1.5px solid var(--hx-encre);
}

.hx-livreurs-accueil__points > div {
	display: grid;
	gap: 2px;
	padding: 14px 0;
	border-top: 1.5px solid var(--hx-encre);
}

@media (min-width: 560px) {
	.hx-livreurs-accueil__points > div {
		grid-template-columns: 140px 1fr;
		gap: 16px;
		align-items: baseline;
	}
}

.hx-livreurs-accueil__points dt {
	font-family: var(--hx-pochoir);
	font-size: var(--hx-t-titre);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.hx-livreurs-accueil__points dd {
	margin: 0;
}

/* Page d'un produit */
.hx-vendu-par {
	margin: -6px 0 14px;
	color: var(--hx-encre-douce);
}

.hx-vendu-par strong {
	color: var(--hx-violet);
}

.hx-vide {
	margin: 24px 0;
	color: var(--hx-encre-douce);
	font-size: var(--hx-t-corps);
}
