/*
 * Mise en page des gabarits non Elementor (boutique, pages Box, fiche produit).
 * Reprend les dimensions d'Astra : conteneur 1240px, barre latérale de filtres
 * à gauche (25 %), empilement sous 922px.
 */
.ast-container {
	max-width: var(--tbx-container);
	margin-inline: auto;
	padding-inline: var(--tbx-gutter);
}

.tb-shop {
	padding-block: 2em 0;
}

.tb-shop #primary {
	margin-bottom: 4em;
	min-width: 0;
}

@media (min-width: 922px) {
	.tb-shop--sidebar .tb-shop__inner {
		display: flex;
		align-items: flex-start;
	}

	.tb-shop--sidebar #secondary {
		flex: 0 0 25%;
		padding-right: 30px;
	}

	.tb-shop--sidebar #primary {
		flex: 1 1 75%;
	}
}

@media (max-width: 921px) {
	.tb-shop--sidebar .tb-shop__inner {
		display: flex;
		flex-direction: column-reverse; /* produits d'abord, filtres ensuite (comme Astra) */
	}
}

/* Listes de produits : pleine largeur jusqu'à 1722px, comme le réglage boutique d'Astra. */
.tb-shop--sidebar .tb-shop__inner {
	max-width: 1722px;
}

/* Barre d'outils (nombre de résultats + tri), reprise d'Astra. */
.ast-shop-toolbar-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 2em;
}

.ast-shop-toolbar-container .woocommerce-result-count,
.ast-shop-toolbar-container .woocommerce-ordering {
	margin: 0;
}

/* Pages simples écrites avec l'éditeur WordPress (pas Elementor, pas WooCommerce), ex. Plan du site :
   marges et titre au gabarit du nouveau design (Hello n'en fournit plus, son theme.css est coupé). */
body:not(.elementor-page):not(.woocommerce-page) main.site-main.type-page:not(.tbx-legal) {
	max-width: calc(1280px + 2 * clamp(20px, 5.5vw, 80px));
	margin: 0 auto;
	padding: 48px clamp(16px, 5.5vw, 80px) 64px;
	font-family: var(--tbx-font);
}

body:not(.elementor-page):not(.woocommerce-page) main.site-main.type-page:not(.tbx-legal) h1 {
	margin: 0 0 12px;
	color: var(--tbx-navy);
	font-family: var(--tbx-font);
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1;
}

body:not(.elementor-page):not(.woocommerce-page) main.site-main.type-page:not(.tbx-legal) .tbx-page-intro {
	margin: 0 0 32px;
	color: #3e5063;
	font-size: 17px;
}
