/*
 * Fiches produit et packs Mix and Match aux couleurs du site : mêmes codes que la page
 * d'accueil (Space Grotesk, cartes à bordure noire, boutons jaunes à ombre portée, angles droits).
 */

:root {
	--eeb-yellow: #e8ae1a;
	--eeb-yellow-dark: #bb8600;
	--eeb-ink: #000;
	--eeb-line: #333;
	--eeb-paper: #fafafa;
	--eeb-white: #fff;
	--eeb-error: #b3261e;
	--eeb-font: "Space Grotesk", sans-serif;
	--eeb-shadow: 3px 3px 0 0 #000;
	--eeb-shadow-hover: 5px 5px 0 0 #000;
}

.mnm_form {
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
}

/* -- Titres de catégorie ------------------------------------------------ */

.mnm_form .woocommerce-loop-category__title {
	margin: 1.5em 0 0.75em;
	padding: 0;
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.05em;
	text-transform: uppercase;
}

/* -- Bières : cartes comme "Nos créations" ------------------------------ */

.mnm_form ul.mnm_child_products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 1.5em !important;
	padding: 0 !important;
	list-style: none;
}

.mnm_form ul.mnm_child_products::before,
.mnm_form ul.mnm_child_products::after {
	display: none !important;
}

.mnm_form ul.mnm_child_products li.mnm_item {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid var(--eeb-line);
	background: var(--eeb-white);
	text-align: left;
	transition: box-shadow 0.15s ease;
}

.mnm_form ul.mnm_child_products li.mnm_item.is-selected {
	box-shadow: var(--eeb-shadow-hover);
}

/* Quantité choisie, en pastille jaune. */
.mnm_form li.mnm_item[data-eeb-qty]::after {
	content: attr(data-eeb-qty);
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 2px 10px;
	border: 2px solid var(--eeb-line);
	border-radius: 20px;
	background: var(--eeb-yellow);
	box-shadow: var(--eeb-shadow);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.mnm_form li.mnm_item .product-thumbnail {
	margin: 0;
	padding: 12px;
	border-bottom: 2px solid var(--eeb-line);
}

.mnm_form li.mnm_item .product-thumbnail img {
	display: block;
	width: 100%;
	max-width: 180px;
	height: auto;
	margin: 0 auto !important;
	box-shadow: none !important;
}

.mnm_form li.mnm_item .product-details {
	padding: 12px 12px 0;
}

.mnm_form li.mnm_item .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

.mnm_form li.mnm_item .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

.mnm_form li.mnm_item .stock {
	margin: 4px 0 0;
	color: var(--eeb-yellow-dark);
	font-size: 13px;
	font-weight: 400;
}

.mnm_form li.mnm_item .product-quantity {
	margin-top: auto;
	padding: 12px;
}

/* Sélecteur − quantité + */
.mnm_form li.mnm_item .quantity {
	display: flex !important;
	align-items: stretch;
	width: 100%;
	margin: 0 !important;
}

.mnm_form li.mnm_item .quantity input.qty {
	order: 2;
	flex: 1;
	min-width: 0;
	width: auto;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--eeb-line);
	border-right: 0;
	border-left: 0;
	border-radius: 0;
	background: var(--eeb-white);
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.mnm_form li.mnm_item .quantity input.qty::-webkit-outer-spin-button,
.mnm_form li.mnm_item .quantity input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.mnm_form li.mnm_item .quantity .button--minus {
	order: 1;
}

.mnm_form li.mnm_item .quantity .button--plus {
	order: 3;
}

.mnm_form li.mnm_item .quantity .button.button--minus,
.mnm_form li.mnm_item .quantity .button.button--plus {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 2px solid var(--eeb-line);
	border-radius: 0;
	background: var(--eeb-paper);
	box-shadow: none !important;
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
}

.mnm_form li.mnm_item .quantity .button.button--minus:hover:not(:disabled),
.mnm_form li.mnm_item .quantity .button.button--plus:hover:not(:disabled) {
	background: var(--eeb-yellow);
}

.mnm_form li.mnm_item .quantity .button:disabled {
	opacity: 0.35;
	cursor: default;
}

/* -- "Tout effacer" : bouton secondaire du site -------------------------
 * :is(#eeb, …) : priorité d'un identifiant, pour passer devant le widget
 * "Ajouter au panier" du modèle produit Elementor. */

.mnm_form .mnm_reset:is(#eeb, .button) {
	display: inline-flex;
	align-items: center;
	margin: 0 0 1.5em !important;
	padding: 10px 18px;
	border: 2px solid var(--eeb-line);
	border-radius: 0;
	background: var(--eeb-paper);
	box-shadow: var(--eeb-shadow);
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.mnm_form .mnm_reset:is(#eeb, .button):hover {
	box-shadow: var(--eeb-shadow-hover);
}

/* -- Prix, compteur et message ------------------------------------------ */

.mnm_form .mnm_cart {
	clear: both;
}

.mnm_form .mnm_price {
	margin: 0 0 1em;
	color: var(--eeb-ink) !important;
	font-family: var(--eeb-font);
	font-size: 16px;
	font-weight: 700;
}

.mnm_form .mnm_price .price {
	color: var(--eeb-ink) !important;
}

.mnm_form .mnm_price .mnm_counter {
	font-weight: 400;
}

.mnm_form .mnm_message {
	margin: 0 0 1.25em;
	border: 2px solid var(--eeb-line) !important;
	border-left-width: 8px !important;
	border-left-color: var(--eeb-yellow) !important;
	border-radius: 0;
	background: var(--eeb-white);
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 15px;
}

.mnm_form .mnm_message.woocommerce-error {
	border-left-color: var(--eeb-error) !important;
}

.mnm_form .mnm_message.mnm_message {
	padding: 12px 16px 12px 48px;
}

.mnm_form .mnm_message::before {
	top: 12px;
	left: 16px;
	color: var(--eeb-yellow-dark);
}

.mnm_form .mnm_message.woocommerce-error::before {
	color: var(--eeb-error);
}

@media (max-width: 360px) {
	.mnm_form ul.mnm_child_products {
		grid-template-columns: 1fr;
	}
}

/* -- Fiche produit des packs ---------------------------------------------
 * Le modèle produit Elementor (commun à tous les produits) utilise une police
 * pinceau, Josefin Sans et un encadré blanc à ombre floue. Sur toutes les fiches
 * produit, on le
 * ramène aux codes de l'accueil. :is(#eeb, …) passe devant les règles du modèle. */

.elementor-location-single:is(#eeb, .product) .elementor-top-section:first-of-type > .elementor-container {
	align-items: flex-start;
}

/* Colonne image : encadrée et fixe pendant que l'on compose le pack. */
.elementor-location-single:is(#eeb, .product) .elementor-element-2521fe1 {
	position: sticky;
	top: 24px;
}

.elementor-location-single:is(#eeb, .product) .elementor-element-17f20474 img {
	border: 2px solid var(--eeb-line);
	background: var(--eeb-white);
	box-shadow: var(--eeb-shadow-hover);
}

/* Colonne de droite : carte du site plutôt qu'un encadré à ombre floue. */
.elementor-location-single:is(#eeb, .product) .elementor-element-65f2fd59 > .elementor-widget-wrap {
	padding: 40px;
	border: 2px solid var(--eeb-line);
	background: var(--eeb-paper);
	box-shadow: none;
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
}

.elementor-location-single:is(#eeb, .product) .elementor-element-65f2fd59 .elementor-widget:not(:last-child) {
	margin-bottom: 24px;
}

.elementor-location-single:is(#eeb, .product) .elementor-element-65f2fd59 .elementor-widget > .elementor-widget-container {
	margin: 0;
	padding: 0;
}

.elementor-location-single:is(#eeb, .product) .woocommerce-breadcrumb {
	color: #555;
	font-family: var(--eeb-font);
	font-size: 13px;
	font-weight: 400;
}

.elementor-location-single:is(#eeb, .product) .woocommerce-breadcrumb a {
	color: var(--eeb-ink);
	text-decoration: underline;
	text-decoration-color: var(--eeb-yellow);
	text-decoration-thickness: 2px;
}

.elementor-location-single:is(#eeb, .product) .product_title {
	margin: 0;
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 52px;
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.05em;
	text-transform: uppercase;
}

/* Prix : étiquette jaune, comme sur les cartes de l'accueil, en plus grand. */
.elementor-location-single:is(#eeb, .product) .elementor-widget-woocommerce-product-price .price {
	display: inline-block;
	margin: 0;
	padding: 10px 18px;
	border: 2px solid var(--eeb-line);
	background: var(--eeb-yellow);
	box-shadow: var(--eeb-shadow-hover);
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.elementor-location-single:is(#eeb, .product) .woocommerce-product-details__short-description,
.elementor-location-single:is(#eeb, .product) .woocommerce-product-details__short-description p {
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

/* Le prix est déjà affiché en haut : en bas, juste le compteur de bières. */
.mnm_form .mnm_price .woocommerce-Price-amount {
	display: none;
}

.mnm_form .mnm_price .mnm_counter {
	display: inline-block;
	padding: 4px 12px;
	border: 2px solid var(--eeb-line);
	border-radius: 20px;
	background: var(--eeb-white);
	font-size: 14px;
	font-weight: 700;
}

/* Quantité de packs + bouton d'ajout, aux couleurs du site. */
.mnm_form .mnm_button_wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
}

:is(.mnm_form .mnm_button_wrap, .elementor-location-single form.cart:not(.mnm_form)) .quantity:is(#eeb, .quantity) {
	margin: 0;
}

:is(.mnm_form .mnm_button_wrap, .elementor-location-single form.cart:not(.mnm_form)) .quantity:is(#eeb, .quantity) input.qty:is(#eeb, .qty) {
	width: 64px;
	height: 52px;
	padding: 0;
	border: 2px solid var(--eeb-line);
	border-radius: 0;
	background: var(--eeb-white);
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

:is(.mnm_form, .elementor-location-single form.cart:not(.mnm_form)) .single_add_to_cart_button:is(#eeb, .button) {
	flex: 1;
	min-height: 52px;
	margin: 0;
	padding: 14px 24px;
	border: 2px solid var(--eeb-line);
	border-radius: 0;
	background: var(--eeb-yellow);
	box-shadow: var(--eeb-shadow);
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	transition: box-shadow 0.15s ease;
}

:is(.mnm_form, .elementor-location-single form.cart:not(.mnm_form)) .single_add_to_cart_button:is(#eeb, .button):hover:not(.disabled):not(:disabled) {
	background: var(--eeb-yellow);
	box-shadow: var(--eeb-shadow-hover);
	color: var(--eeb-ink);
}

:is(.mnm_form, .elementor-location-single form.cart:not(.mnm_form)) .single_add_to_cart_button:is(#eeb, .button):is(.disabled, :disabled) {
	border-color: #999;
	background: var(--eeb-white);
	box-shadow: none;
	color: #888;
	opacity: 1;
	cursor: not-allowed;
}

@media (max-width: 767px) {
	.elementor-location-single:is(#eeb, .product) .elementor-element-2521fe1 {
		position: static;
	}

	.elementor-location-single:is(#eeb, .product) .elementor-element-65f2fd59 > .elementor-widget-wrap {
		padding: 20px;
	}

	.elementor-location-single:is(#eeb, .product) .product_title {
		font-size: 36px;
	}
}

/* Bières et canette personnalisée : quantité et bouton côte à côte (étapes de la canette
 * en pleine largeur au-dessus). */
.elementor-location-single form.cart:is(#eeb, .cart):not(.mnm_form) {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	color: var(--eeb-ink);
	font-family: var(--eeb-font);
}

.eeb-custom-can form.cart .eeb-can {
	flex: 0 0 100%;
}
