/* =========================================================================
   Pépinière du Haut Livradois — en-tête, pied de page, formulaires
   Charte : vert sauge / terracotta / crème (document du 22/08/2026)
   ========================================================================= */

.pephl-wrap *,
.pephl-pied * { box-sizing: border-box; }

.pephl-wrap,
.pephl-pied {
	font-family: var(--pephl-texte);
	color: var(--pephl-encre);
}

.pephl-wrap a,
.pephl-pied a { color: inherit; text-decoration: none; }
.pephl-wrap a:hover,
.pephl-pied a:hover { color: var(--pephl-terracotta); }

.pephl-icone { display: block; flex: none; }
.pephl-emoji { font-size: 1em; line-height: 1; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Barre haute ------------------------------------------------ */

.pephl-barre-haute {
	background: var(--pephl-vert-fonce);
	color: #fff;
	font-size: 0.82rem;
}

.pephl-barre-haute__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.45rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.pephl-barre-haute p { margin: 0; }

.pephl-horaires { display: flex; align-items: baseline; gap: 0.45rem; }
.pephl-horaires__detail { opacity: 0.85; }
.pephl-chiffres { margin-left: auto !important; opacity: 0.92; }

.pephl-cta-pro {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--pephl-terracotta);
	color: #fff !important;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	font-weight: 600;
	white-space: nowrap;
}
.pephl-cta-pro:hover { background: var(--pephl-brun); color: #fff !important; }

/* ---------- En-tête ---------------------------------------------------- */

.pephl-entete {
	background: var(--pephl-creme-clair);
	border-bottom: 1px solid rgba(107, 76, 59, 0.14);
	position: relative;
	z-index: 50;
}

.pephl-entete__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.9rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

/* Logo */
.pephl-logo { flex: none; }
.pephl-logo__img { max-height: 64px; width: auto; display: block; }

.pephl-logo__placeholder {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--pephl-vert-fonce);
}
.pephl-logo__texte { display: flex; flex-direction: column; line-height: 1.05; }
.pephl-logo__l1 {
	font-family: var(--pephl-titre);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--pephl-encre);
}
.pephl-logo__l2 {
	font-size: 0.72rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pephl-brun);
}

/* Navigation */
.pephl-nav__liste {
	display: flex;
	gap: 1.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}
.pephl-nav__liste a,
.pephl-nav__liste li > a {
	font-weight: 500;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}
.pephl-nav__liste a:hover { border-bottom-color: var(--pephl-terracotta); }

/* Recherche — entre la navigation et le compte client */
.pephl-recherche {
	flex: 1 1 220px;
	min-width: 180px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	border: 1px solid rgba(107, 76, 59, 0.25);
	border-radius: 999px;
	padding: 0.3rem 0.35rem 0.3rem 0.85rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.pephl-recherche:focus-within {
	border-color: var(--pephl-vert);
	box-shadow: 0 0 0 3px rgba(122, 154, 110, 0.22);
}
.pephl-recherche__loupe { color: var(--pephl-brun); display: flex; }
.pephl-recherche__champ {
	flex: 1;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 0.92rem;
	padding: 0.25rem 0;
	min-width: 0;
	color: var(--pephl-encre);
}
.pephl-recherche__champ:focus { outline: none; }
.pephl-recherche__champ::-webkit-search-cancel-button { cursor: pointer; }
.pephl-recherche__bouton {
	border: 0 !important;
	background: var(--pephl-vert) !important;
	color: #fff !important;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.45rem 1rem !important;
	border-radius: 999px !important;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
}
.pephl-recherche__bouton:hover { background: var(--pephl-vert-fonce) !important; }

/* Compte + panier */
.pephl-outils { display: flex; align-items: center; gap: 1rem; flex: none; }

.pephl-outil {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	position: relative;
	font-size: 0.72rem;
	color: var(--pephl-brun);
	line-height: 1.1;
}
.pephl-outil:hover { color: var(--pephl-terracotta); }
.pephl-outil__texte { white-space: nowrap; }
.pephl-outil__compteur {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--pephl-terracotta);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pephl-outil__compteur[hidden] { display: none; }

/* Burger (mobile) */
.pephl-burger {
	display: none !important;
	-webkit-appearance: none;
	appearance: none;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 4px;
	width: 42px; height: 42px;
	border: 1px solid rgba(107, 76, 59, 0.25);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	padding: 0 10px;
}
/* Safari/iOS : un <button> en display:flex ne fait pas toujours grandir ses
   enfants via align-items:stretch (le bouton reste vide, sans les 3 barres).
   On force explicitement leur largeur plutôt que de compter sur le stretch. */
.pephl-burger span { display: block; width: 100%; flex: none; height: 2px; background: var(--pephl-encre); border-radius: 2px; }
.pephl-burger span.screen-reader-text { width: 1px; height: 1px; background: none; }

/* ---------- Les 4 familles illustrées ---------------------------------- */

.pephl-familles {
	border-top: 1px solid rgba(107, 76, 59, 0.12);
	background: var(--pephl-creme);
}

.pephl-familles__liste {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 1.25rem;
	list-style: none;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	flex-wrap: wrap;
}

.pephl-famille { position: relative; }

.pephl-famille__lien {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	padding: 0.7rem 1.4rem 0.6rem;
	border-bottom: 3px solid transparent;
	color: var(--pephl-vert-fonce);
}
.pephl-famille__lien:hover,
.pephl-famille.est-ouvert .pephl-famille__lien {
	border-bottom-color: var(--pephl-terracotta);
	color: var(--pephl-terracotta);
}
.pephl-famille__dessin { color: inherit; }
.pephl-famille__titre {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--pephl-encre);
	text-align: center;
}
.pephl-famille__chevron { color: var(--pephl-brun); }
.pephl-famille__chevron .pephl-icone { transition: transform 0.15s; }
.pephl-famille.est-ouvert .pephl-famille__chevron .pephl-icone { transform: rotate(180deg); }

/* Menu déroulant */
.pephl-deroulant {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 60;
	min-width: 320px;
	background: #fff;
	border: 1px solid rgba(107, 76, 59, 0.16);
	border-top: 3px solid var(--pephl-terracotta);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 18px 40px -18px rgba(44, 26, 14, 0.45);
	padding: 0.9rem 1.1rem 0.6rem;
}
.pephl-deroulant[hidden] { display: none; }

.pephl-deroulant__liste { list-style: none; margin: 0; padding: 0; }
.pephl-deroulant__item + .pephl-deroulant__item { margin-top: 0.55rem; }

.pephl-deroulant__cat {
	display: block;
	font-family: var(--pephl-titre);
	font-size: 1rem;
	font-weight: 600;
	color: var(--pephl-vert-fonce);
	padding-bottom: 0.1rem;
}
.pephl-deroulant__item.est-actif .pephl-deroulant__cat { color: var(--pephl-terracotta); }

.pephl-deroulant__sous {
	list-style: none;
	margin: 0.15rem 0 0;
	padding: 0 0 0 0.85rem;
	border-left: 2px solid var(--pephl-dore);
}
.pephl-deroulant__sous li { margin: 0.12rem 0; }
.pephl-deroulant__sous a { font-size: 0.87rem; color: var(--pephl-brun); }

.pephl-deroulant__pied {
	margin: 0.9rem -1.1rem -0.6rem;
	padding: 0.6rem 1.1rem;
	border-top: 1px solid rgba(107, 76, 59, 0.12);
	background: var(--pephl-creme);
	border-radius: 0 0 8px 8px;
	font-size: 0.84rem;
}
.pephl-deroulant__pied a { display: flex; align-items: center; gap: 0.45rem; color: var(--pephl-brun); }

/* ---------- Bandeau d'information -------------------------------------- */

.pephl-bandeau-info {
	background: var(--pephl-dore);
	color: var(--pephl-encre);
	font-size: 0.86rem;
}
.pephl-bandeau-info p {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.5rem 1.25rem;
	text-align: center;
}
.pephl-bandeau-info a { text-decoration: underline; font-weight: 600; }

/* ---------- Fiche produit : réservation --------------------------------- */

.pephl-reserver {
	border: 1px solid rgba(107, 76, 59, 0.2);
	border-left: 4px solid var(--pephl-vert);
	background: var(--pephl-creme-clair);
	border-radius: 8px;
	padding: 1rem 1.1rem;
	margin: 1.2rem 0;
}
.pephl-reserver__note { margin-top: 0; font-size: 0.92rem; }
.pephl-reserver__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.8rem 0 0.6rem; }
.pephl-reserver__retrait { margin: 0; font-size: 0.85rem; color: var(--pephl-brun); }

.pephl-bouton-reserver { cursor: pointer; }
.pephl-bouton-reserver.est-ajoute { background: var(--pephl-vert-fonce) !important; color: #fff !important; }

/* ---------- Formulaires et blocs de contenu ----------------------------- */

.pephl-formulaire { max-width: 620px; }
.pephl-formulaire p { margin: 0 0 0.9rem; }
.pephl-formulaire label { display: block; font-weight: 600; font-size: 0.9rem; }
.pephl-formulaire input,
.pephl-formulaire select,
.pephl-formulaire textarea {
	width: 100%;
	margin-top: 0.3rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid rgba(107, 76, 59, 0.3);
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
	background: #fff;
}
.pephl-formulaire input:focus,
.pephl-formulaire select:focus,
.pephl-formulaire textarea:focus {
	outline: none;
	border-color: var(--pephl-vert);
	box-shadow: 0 0 0 3px rgba(122, 154, 110, 0.2);
}
.pephl-pot-de-miel { position: absolute; left: -9999px; }

.pephl-message {
	padding: 0.9rem 1.1rem;
	border-radius: 8px;
	border-left: 4px solid var(--pephl-vert);
	background: var(--pephl-creme-clair);
}
.pephl-message--ok { border-left-color: var(--pephl-vert-fonce); }

.pephl-selection__liste { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.pephl-selection__liste li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(107, 76, 59, 0.14);
}
.pephl-selection__liste .pephl-selection__nom { flex: 1; font-weight: 600; }
.pephl-selection__retirer {
	border: 0;
	background: none;
	color: var(--pephl-terracotta);
	cursor: pointer;
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
}
.pephl-selection__vide { color: var(--pephl-brun); font-style: italic; }

.pephl-prestation__points { padding-left: 1.1rem; }
.pephl-prestation__note { font-size: 0.88rem; color: var(--pephl-brun); }
.pephl-pro__badge { font-weight: 600; color: var(--pephl-vert-fonce); }
.pephl-pro__categories { list-style: none; padding: 0; }
.pephl-pro__categories li { padding: 0.6rem 0; border-bottom: 1px solid rgba(107, 76, 59, 0.14); }
.pephl-pro__categories a { font-family: var(--pephl-titre); font-size: 1.05rem; font-weight: 600; color: var(--pephl-vert-fonce); }
.pephl-pro__categories span { display: block; font-size: 0.88rem; color: var(--pephl-brun); }

.pephl-contact { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 2.5rem; }

/* ---------- Pied de page ------------------------------------------------ */

.pephl-pied {
	background: var(--pephl-encre);
	color: var(--pephl-creme);
	margin-top: 3rem;
}
.pephl-pied a { color: var(--pephl-creme); }
.pephl-pied a:hover { color: var(--pephl-dore); }

.pephl-pied__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 2.6rem 1.25rem 2rem;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.pephl-pied__marque {
	font-family: var(--pephl-titre);
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}
.pephl-pied__titre {
	font-family: var(--pephl-titre);
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: var(--pephl-dore);
}
.pephl-pied__sous-titre {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.65;
	margin: 1rem 0 0.35rem;
}
.pephl-pied__liste { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.pephl-pied__liste li { padding: 0.2rem 0; }
.pephl-pied__liste--labels li { display: flex; align-items: center; gap: 0.45rem; }
.pephl-pied__liste--horaires { opacity: 0.9; }
.pephl-pied p { margin: 0 0 0.4rem; font-size: 0.9rem; }
.pephl-pied__horaires { display: flex; align-items: center; gap: 0.4rem; }
.pephl-pied__note { font-size: 0.83rem; opacity: 0.72; font-style: italic; }
.pephl-pied__production { margin-top: 0.8rem; color: var(--pephl-dore); }

.pephl-pied__bas {
	border-top: 1px solid rgba(245, 240, 232, 0.16);
}
.pephl-pied__bas > * { max-width: 1240px; margin: 0 auto; }
.pephl-pied__bas {
	display: block;
	padding: 1rem 1.25rem;
	font-size: 0.8rem;
	opacity: 0.8;
}
.pephl-pied__legal { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0.4rem auto 0; flex-wrap: wrap; }

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 1080px) {
	.pephl-entete__inner { flex-wrap: wrap; }
	.pephl-recherche { order: 5; flex-basis: 100%; }
	.pephl-nav { order: 3; }
	.pephl-outils { order: 4; margin-left: auto; }
	.pephl-pied__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.pephl-burger { display: flex !important; }
	.pephl-nav { display: none; order: 6; flex-basis: 100%; }
	.pephl-nav.est-ouvert { display: block; }
	.pephl-nav__liste { flex-direction: column; gap: 0.2rem; white-space: normal; }
	.pephl-logo { margin-right: auto; }
	.pephl-outil__texte { display: none; }
	.pephl-chiffres { margin-left: 0 !important; }
	.pephl-barre-haute__inner { justify-content: space-between; gap: 0.5rem; }
	.pephl-horaires__detail { display: none; }

	.pephl-familles__liste { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
	.pephl-famille__lien { padding: 0.6rem 0.9rem 0.5rem; }
	.pephl-famille__titre { font-size: 0.7rem; max-width: 88px; }
	.pephl-deroulant { position: fixed; left: 0; right: 0; top: auto; transform: none; min-width: 0; border-radius: 0; }

	.pephl-contact { grid-template-columns: 1fr; gap: 1.5rem; }
	.pephl-pied__inner { grid-template-columns: 1fr; }
}

/* ---------- Boutons du plugin (priorité sur le thème) ------------------- */

.pephl-formulaire button[type="submit"],
.pephl-reserver .button,
.pephl-prestation__cta .button,
.pephl-pro__cta .button,
.pephl-bouton-reserver {
	display: inline-block;
	background: var(--pephl-terracotta) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 0.65rem 1.5rem !important;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none !important;
}

.pephl-formulaire button[type="submit"]:hover,
.pephl-reserver .button:hover,
.pephl-prestation__cta .button:hover,
.pephl-pro__cta .button:hover,
.pephl-bouton-reserver:hover {
	background: var(--pephl-brun) !important;
	color: #fff !important;
}

.pephl-reserver .pephl-bouton-contact,
.pephl-bouton-contact {
	background: transparent !important;
	color: var(--pephl-vert-fonce) !important;
	border: 1px solid var(--pephl-vert) !important;
}
.pephl-bouton-contact:hover {
	background: var(--pephl-vert) !important;
	color: #fff !important;
}

.pephl-bouton-reserver.est-ajoute { background: var(--pephl-vert-fonce) !important; }

/* ---------- Module « Mon Verger » -------------------------------------- */

.pephl-verger { margin: 2rem 0 3rem; }
.pephl-verger__intro { max-width: 760px; margin-bottom: 1.2rem; }
.pephl-verger__intro h2 { font-family: var(--pephl-titre); }

.pephl-verger__cadre {
	position: relative;
	border: 1px solid rgba(107, 76, 59, 0.22);
	border-radius: 12px;
	overflow: hidden;
	background: var(--pephl-creme);
	box-shadow: 0 14px 34px -22px rgba(44, 26, 14, 0.5);
	display: flex;
	flex-direction: column;
	height: var(--pephl-verger-hauteur, 820px);
	max-height: 88vh;
	min-height: 520px;
	/* Le planificateur a besoin de largeur : il sort de la colonne de texte. */
	width: min(1280px, 94vw);
	margin-left: 50%;
	transform: translateX(-50%);
}
.pephl-verger__cadre.est-plein {
	height: 100vh;
	max-height: none;
	border-radius: 0;
	border: 0;
	width: 100%;
	margin-left: 0;
	transform: none;
}

.pephl-verger__barre {
	flex: none;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.5rem 0.85rem;
	background: var(--pephl-creme-clair);
	border-bottom: 1px solid rgba(107, 76, 59, 0.16);
	font-size: 0.85rem;
}
.pephl-verger__etiquette { font-weight: 600; margin-right: auto; }
.pephl-verger__plein {
	border: 1px solid rgba(107, 76, 59, 0.28) !important;
	background: #fff !important;
	color: var(--pephl-encre) !important;
	border-radius: 999px !important;
	padding: 0.35rem 0.9rem !important;
	font: inherit;
	font-size: 0.82rem;
	cursor: pointer;
}
.pephl-verger__plein:hover { background: var(--pephl-dore) !important; }
.pephl-verger__onglet { font-size: 0.82rem; text-decoration: underline; color: var(--pephl-brun); }

.pephl-verger__cadre-iframe {
	flex: 1;
	width: 100%;
	border: 0;
	display: block;
	min-height: 0;
	background: var(--pephl-creme);
}

.pephl-verger__note {
	margin-top: 0.7rem;
	font-size: 0.83rem;
	color: var(--pephl-brun);
}

/* Résumé du plan repris dans la demande de réservation */
.pephl-verger__resume {
	border: 1px solid rgba(107, 76, 59, 0.2);
	border-left: 4px solid var(--pephl-vert);
	background: var(--pephl-creme-clair);
	border-radius: 8px;
	padding: 0.9rem 1.1rem;
	margin: 0 0 1.4rem;
}
.pephl-verger__resume h3 {
	margin: 0 0 0.5rem;
	font-family: var(--pephl-titre);
	font-size: 1.05rem;
}
.pephl-verger__resume pre {
	margin: 0 0 0.6rem;
	white-space: pre-wrap;
	font-family: var(--pephl-texte);
	font-size: 0.88rem;
	line-height: 1.5;
}

@media (max-width: 782px) {
	.pephl-verger__cadre { height: 78vh; min-height: 460px; width: 100vw; }
	.pephl-verger__onglet { display: none; }
}

/* =========================================================================
   Grille et fiches produit
   -------------------------------------------------------------------------
   WooCommerce affiche `ul.products` en grille, mais sa feuille de style
   historique laisse `float:left` et une largeur en pourcentage sur les
   `li.product` : dans une grille, ce pourcentage se calcule sur la colonne
   et les cartes s'écrasent à quelques dizaines de pixels. On remet donc la
   grille au propre, puis on dessine la carte.
   ========================================================================= */

ul.products,
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.75rem 1.5rem;
	margin: 1.5rem 0 2.5rem !important;
	padding: 0 !important;
	list-style: none !important;
}
ul.products::before,
ul.products::after { content: none !important; }

ul.products li.product,
.woocommerce ul.products li.product,
ul.products li.product-category,
.woocommerce ul.products li.product-category {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	display: flex !important;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	background: var(--pephl-creme-clair, #FBF8F0);
	border: 1px solid rgba(107, 76, 59, 0.16);
	border-radius: 14px;
	text-align: left;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: rgba(122, 154, 110, 0.55);
	box-shadow: 0 16px 32px -20px rgba(44, 26, 14, 0.55);
}

/* Le lien qui enveloppe l'image et le titre */
ul.products li.product a.woocommerce-LoopProduct-link,
ul.products li.product a.woocommerce-loop-product__link {
	display: flex !important;
	flex-direction: column;
	gap: 0.55rem;
	text-decoration: none;
	color: inherit;
}

/* Image : cadrage constant, quelle que soit la photo fournie */
ul.products li.product img,
.woocommerce ul.products li.product img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block !important;
	margin: 0 !important;
	border-radius: 0 !important;
	background: var(--pephl-creme, #F5F0E8);
	box-shadow: none !important;
}
ul.products li.product img.woocommerce-placeholder {
	object-fit: contain;
	padding: 18%;
	opacity: 0.45;
}

/* Titre */
ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
	font-family: var(--pephl-titre, Georgia, serif) !important;
	font-size: 1.02rem !important;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pephl-encre, #2C1A0E);
	margin: 0 !important;
	padding: 0.9rem 1rem 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

/* Prix */
ul.products li.product .price,
.woocommerce ul.products li.product .price {
	margin: 0 !important;
	padding: 0.15rem 1rem 0 !important;
	color: var(--pephl-terracotta, #C4714A) !important;
	font-size: 1rem !important;
	font-weight: 600;
	font-family: var(--pephl-texte, sans-serif);
}
ul.products li.product .price del { opacity: 0.55; font-weight: 400; margin-right: 0.35rem; }
ul.products li.product .price ins { text-decoration: none; }

/* Note et extraits éventuels */
ul.products li.product .star-rating { margin: 0.35rem 1rem 0 !important; font-size: 0.8em; }

/* Bouton, collé en bas pour aligner toutes les cartes */
ul.products li.product .button,
ul.products li.product .pephl-bouton-reserver,
.woocommerce ul.products li.product a.button {
	margin: auto 1rem 1rem !important;
	align-self: stretch;
	text-align: center;
	border-radius: 999px !important;
	padding: 0.6rem 1rem !important;
	font-size: 0.88rem !important;
	font-weight: 600;
	line-height: 1.25;
}
ul.products li.product .added_to_cart { margin: 0 1rem 1rem !important; font-size: 0.82rem; }

/* Badge promo */
ul.products li.product .onsale,
.woocommerce ul.products li.product span.onsale {
	position: absolute !important;
	top: 0.7rem;
	left: 0.7rem;
	right: auto !important;
	margin: 0 !important;
	padding: 0.2rem 0.7rem !important;
	min-height: 0 !important;
	min-width: 0 !important;
	line-height: 1.6 !important;
	border-radius: 999px !important;
	background: var(--pephl-terracotta, #C4714A) !important;
	color: #fff !important;
	font-size: 0.72rem;
	font-weight: 700;
}

/* Cartes de catégorie (mêmes règles, sans bouton) */
ul.products li.product-category .woocommerce-loop-category__title {
	font-family: var(--pephl-titre, Georgia, serif) !important;
	font-size: 1.05rem !important;
	padding: 0.9rem 1rem 1rem !important;
	margin: 0 !important;
}
ul.products li.product-category mark { background: none; color: var(--pephl-brun, #6B4C3B); }

/* Barre « x résultats affichés » + tri */
.woocommerce-result-count,
.woocommerce-ordering {
	margin: 0 0 0.5rem !important;
	font-size: 0.9rem;
	color: var(--pephl-brun, #6B4C3B);
}
.woocommerce-ordering select {
	font: inherit;
	font-size: 0.9rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(107, 76, 59, 0.28);
	border-radius: 999px;
	background: #fff;
	color: var(--pephl-encre, #2C1A0E);
}

@media (min-width: 640px) {
	.woocommerce-result-count { float: none !important; }
	.woocommerce-ordering { float: none !important; }
	.woocommerce-products-header + .woocommerce-notices-wrapper + .woocommerce-result-count,
	.woocommerce-result-count { display: inline-block; }
	.woocommerce-ordering { display: inline-block; margin-left: 1rem !important; }
}

@media (max-width: 560px) {
	ul.products,
	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 1.1rem 0.9rem;
	}
	ul.products li.product .woocommerce-loop-product__title { font-size: 0.94rem !important; padding: 0.7rem 0.75rem 0 !important; }
	ul.products li.product .price { padding: 0.1rem 0.75rem 0 !important; }
	ul.products li.product .button { margin: auto 0.75rem 0.75rem !important; }
}
