/* =========================================================
   Boutique - bandeau bleu de titre, identique au "Hero" Elementor
   des pages internes (conteneur arrondi #144e64, H1 blanc 60/40/20px).
   Affiche sur la page Nos produits et les archives produits.
   ========================================================= */
.np-shop-hero {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	min-height: 550px;
	margin: 0 23px;
	padding: 0;
	background: var(--e-global-color-astglobalcolor1, #144e64);
	border-radius: 16px;
	box-sizing: border-box;
}
.np-shop-hero__title {
	margin: 0;
	padding: 200px 40px 0 120px;
	font-family: "Open Sans", sans-serif;
	font-size: 60px;
	line-height: 1.4;
	font-weight: 700;
	color: #fff;
}
.np-shop-hero__title span {
	font-weight: 300;
}

/* Titre WooCommerce par defaut masque (remplace par le bandeau) */
body.np-shop-hero-on .woocommerce-products-header {
	display: none;
}

@media (max-width: 1024px) {
	.np-shop-hero {
		min-height: 300px;
		justify-content: center;
		align-items: center;
	}
	.np-shop-hero__title {
		padding: 0 40px;
		font-size: 40px;
	}
}

@media (max-width: 767px) {
	.np-shop-hero {
		min-height: 100px;
		margin: 0;
		border-radius: 0;
	}
	.np-shop-hero__title {
		margin: 50px;
		padding: 0;
		font-size: 20px;
	}
}

/* Titre d'archive Astra (doublon du bandeau) : on masque le titre,
   et toute la section quand elle ne contient que ce titre */
body.np-shop-hero-on .ast-archive-description .ast-archive-title {
	display: none;
}
body.np-shop-hero-on .ast-archive-description:not(:has(> :not(.ast-archive-title))) {
	display: none;
}

/* Compteur de resultats : espace reduit avant la grille produits */
body.np-shop-hero-on .ast-shop-toolbar-container {
	margin-bottom: 16px;
}
body.np-shop-hero-on .ast-shop-toolbar-aside-wrap {
	margin-bottom: 0;
}
body.np-shop-hero-on .ast-shop-toolbar-aside-wrap:empty {
	display: none;
}
body.np-shop-hero-on.woocommerce .ast-shop-toolbar-container > .ast-shop-toolbar-aside-wrap {
	margin-bottom: 0;
}
body.np-shop-hero-on.woocommerce .ast-shop-toolbar-container > .ast-shop-toolbar-aside-wrap:not(:has(*)) {
	display: none;
}

/* Hauteur reduite : une seule ligne de titre (vs 2 lignes sur les autres pages) */
.np-shop-hero {
	min-height: 320px;
	justify-content: center;
}
.np-shop-hero__title {
	padding: 30px 40px 0 120px;
}
@media (max-width: 1024px) {
	.np-shop-hero { min-height: 200px; }
	.np-shop-hero__title { padding: 0 40px; }
}
@media (max-width: 767px) {
	.np-shop-hero { min-height: 100px; }
	.np-shop-hero__title { padding: 0; }
}

/* Filtres YITH : couleurs de la charte au survol / selection (au lieu du rose YITH) */
body.np-shop-hero-on #secondary .yith-wcan-filters .filter-item a:hover,
body.np-shop-hero-on #secondary .yith-wcan-filters .filter-item label:hover,
body.np-shop-hero-on #secondary .yith-wcan-filters .filter-item.active a,
body.np-shop-hero-on #secondary .yith-wcan-filters .filter-item.active label {
	color: #1D779C;
}
body.np-shop-hero-on #secondary .yith-wcan-filters .filter-item input[type="checkbox"] {
	accent-color: #1D779C;
}

/* "Tous les produits" : visible seulement quand un filtre est actif (sert de reinitialisation).
   Le lien YITH "Supprimer les filtres" est masque pour eviter le doublon. */
body.np-shop-hero-on #secondary .widget_block .wp-block-buttons {
	display: none;
}
body.np-shop-hero-on.np-has-filters #secondary .widget_block .wp-block-buttons {
	display: flex;
}
body.np-shop-hero-on #secondary .yith-wcan-reset-filters {
	display: none !important;
}
body.np-shop-hero-on #secondary .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button:hover,
body.np-shop-hero-on #secondary .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button:focus-visible {
	background-color: #1D779C !important;
	border-color: #1D779C !important;
	color: #FFFFFF !important;
}

/* Mobile : titre cale a gauche comme les cartouches des autres pages,
   filtres alignes sur la grille produits, pagination sur une ligne */
@media (max-width:767px){
	.np-shop-hero{align-items:flex-start;}
	.np-shop-hero__title{text-align:left;}
	body.np-shop-hero-on #secondary{padding-left:16px !important; padding-right:16px !important; box-sizing:border-box;}
	body.np-shop-hero-on.woocommerce nav.woocommerce-pagination ul{display:flex !important; flex-wrap:nowrap; justify-content:center; gap:6px; border:0;}
	body.np-shop-hero-on.woocommerce nav.woocommerce-pagination ul li{margin:0 !important; border:0;}
	body.np-shop-hero-on.woocommerce nav.woocommerce-pagination ul li .page-numbers{
		width:38px; height:38px; min-width:38px; line-height:36px; padding:0 !important; margin:0 !important; font-size:14px;
	}
}
/* Tablette (filtres en puces au-dessus) : puces alignees sur la grille produits */
@media (min-width:768px) and (max-width:921px){
	body.np-shop-hero-on #secondary{padding-left:34px !important; padding-right:34px !important; box-sizing:border-box;}
}
/* Sans filtre actif, le bloc "Tous les produits" disparait entierement (plus de marge fantome) */
body.np-shop-hero-on:not(.np-has-filters) #secondary .widget_block{display:none !important;}
/* Petits ecrans larges (tablette paysage / petit portable) : 3 colonnes au lieu de 4 */
@media (min-width:922px) and (max-width:1199px){
	body.np-shop-hero-on.woocommerce ul.products.columns-4{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}

/* Desktop : barre de filtres plus etroite (cartes produits plus grandes), moins de vide sous le cartouche */
@media (min-width:922px){
	body.np-shop-hero-on.ast-left-sidebar #secondary{width:23% !important; flex:0 0 23%;}
	body.np-shop-hero-on.ast-left-sidebar #primary{width:77% !important; flex:0 0 77%;}
	body.np-shop-hero-on.ast-separate-container #content > .ast-container{padding-top:0;}
	body.np-shop-hero-on .np-shop-hero{margin-bottom:8px;}
	body.np-shop-hero-on.ast-separate-container #secondary, body.np-shop-hero-on.ast-separate-container #primary{margin-top:32px !important;}
}
/* Mobile/tablette : moins de vide entre les puces de filtres et le compteur de resultats */
@media (max-width:921px){
	body.np-shop-hero-on #secondary{margin-bottom:8px !important;}
	body.np-shop-hero-on .ast-woocommerce-container{padding-top:8px !important;}
}
/* Tablette : titre du cartouche cale a gauche comme sur les autres pages */
@media (min-width:768px) and (max-width:1024px){
	.np-shop-hero{align-items:flex-start;}
	.np-shop-hero__title{text-align:left; padding:0 54px;}
}
/* Tablette paysage / petit portable : barre de filtres un peu plus large pour que les libelles tiennent sur une ligne */
@media (min-width:922px) and (max-width:1199px){
	body.np-shop-hero-on.ast-left-sidebar #secondary{width:28% !important; flex:0 0 28%;}
	body.np-shop-hero-on.ast-left-sidebar #primary{width:72% !important; flex:0 0 72%;}
}
