/* Encadrés produits Mister Vanlife — reprend le rendu des anciens encadrés Affimax (mêmes classes). */

.afxshop,
.afxshop * {
	box-sizing: border-box;
	font-size: 18px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	font-style: normal;
	text-decoration: none;
	color: rgba(0, 0, 0, 0.87);
	margin: 0;
	padding: 0;
}
.afxshop {
	display: block;
	margin: 1em 0;
}
.afxshop a,
.afxshop a:hover {
	text-decoration: none;
	color: currentColor;
}
.afxshop .afxshop-list {
	list-style: none;
}
.afxshop .afxshop-list > li::before {
	content: none;
}

/* Carte produit */
.afxshop .afxshop-item {
	position: relative;
	max-width: 100%;
	overflow-wrap: break-word;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.125);
	border-radius: 5px;
	text-align: center;
	overflow: hidden;
	transition: box-shadow 0.2s;
}
.afxshop .afxshop-item:hover,
.afxshop .afxshop-item:focus-within {
	box-shadow: 0 5px 15px rgba(100, 100, 100, 0.3);
}
.afxshop .afxshop-header {
	display: block;
	width: 100%;
	padding: 5px 10px;
}
.afxshop .afxshop-header a {
	display: block;
}
.afxshop .afxshop-image {
	position: relative;
	height: 0;
	padding-bottom: max(200px, min(300px, 75%));
	overflow: hidden;
	max-width: 350px;
	margin: 0.5em auto;
}
.afxshop .afxshop-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 200px;
	padding: 10px;
	object-fit: contain;
}
.afxshop .afxshop-content {
	display: block;
	width: 100%;
	padding: 0 0 10px;
}
.afxshop .afxshop-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: left;
	padding-left: 10px;
	width: 100%;
	font-size: 18px;
	font-weight: 600;
	margin: 0.5em 0;
	line-height: 1.2em;
	max-height: 2.4em;
}

/* Étoiles */
.afxshop .afxshop-note {
	color: #edb329;
	margin-bottom: 10px;
}
.afxshop .afxshop-note svg {
	margin: 10px 3px 0;
	width: 22px;
	height: 22px;
	fill: #edb329;
	vertical-align: middle;
}
.afxshop .afxshop-note svg path {
	fill: #edb329;
}

/* Description (puces) */
.afxshop .afxshop-description {
	display: block;
	width: 100%;
	margin: 8px 0 10px;
	text-align: left;
}
.afxshop .afxshop-description ul,
.afxshop .afxshop-pros ul,
.afxshop .afxshop-cons ul {
	margin: 0 0 0 10px;
	padding: 0;
	list-style: none;
}
.afxshop .afxshop-description *,
.afxshop .afxshop-pros *,
.afxshop .afxshop-cons * {
	font-size: 14px;
	line-height: 24px;
}
.afxshop .afxshop-description li::before {
	content: '●';
	display: inline-block;
	font-weight: 700;
	font-size: 12px;
	color: #626b99;
	vertical-align: middle;
	margin: 3px 5px 4px 0;
	line-height: 12px;
}

/* Avantages / inconvénients */
.afxshop .afxshop-arg {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: stretch;
}
.afxshop .afxshop-pros,
.afxshop .afxshop-cons {
	flex: 1 0 150px;
	margin: 7px;
	padding: 10px 0.5em 20px;
	border-radius: 5px;
	text-align: left;
	background: #faf0f0;
}
.afxshop .afxshop-pros {
	background: #ebf2f5;
}
.afxshop .afx-pros-title,
.afxshop .afx-cons-title {
	position: relative;
	margin: 0 0 10px 10px;
	padding-bottom: 5px;
	font-weight: 700;
}
.afxshop .afx-pros-title::after,
.afxshop .afx-cons-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 2px;
	width: 30px;
	height: 2px;
	background: #6eb340;
}
.afxshop .afx-cons-title::after {
	background: #e05c5c;
}
.afxshop .afxshop-pros li::before,
.afxshop .afxshop-cons li::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	margin: 3px 5px 4px 0;
	border-radius: 100%;
	vertical-align: middle;
	background: linear-gradient(#e05c5c, #e05c5c) center / 50% 2px no-repeat, #fff;
	border: 2px solid #e05c5c;
}
.afxshop .afxshop-pros li::before {
	background: linear-gradient(#6eb340, #6eb340) center / 50% 2px no-repeat, linear-gradient(#6eb340, #6eb340) center / 2px 50% no-repeat, #fff;
	border-color: #6eb340;
}

/* Lignes marchand + bouton */
.afxshop .afxshop-side,
.afxshop .afxshop-footer,
.afxshop .afxshop-shop {
	display: block;
	width: 100%;
}
.afxshop .afxshop-offer {
	display: block;
	width: 100%;
	padding: 0.5em 15px;
	border: 0;
	border-top: 1px solid #eee;
	background: transparent;
	text-align: right;
}
.afxshop .afxshop-offer:hover {
	background-color: rgba(0, 123, 255, 0.1);
}
.afxshop .afxshop-offer > a {
	display: block;
}
.afxshop .afxshop-wrap {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}
.afxshop .afxshop-merchant {
	flex: 2 0 80px;
	text-align: left;
}
.afxshop .afxshop-logo {
	display: inline-block;
	vertical-align: middle;
	width: 24px;
	height: 24px;
	border-radius: 5px;
	margin-right: 4px;
}
.afxshop .afxshop-logo img {
	width: auto;
	max-width: 24px;
	max-height: 24px;
	height: auto;
	border-radius: 5px;
	vertical-align: middle;
}
.afxshop .afxshop-mname {
	font-size: 14px;
	padding-right: 10px;
	vertical-align: middle;
}
.afxshop .afxshop-offer:first-child .afxshop-mname {
	font-weight: 700;
}
.afxshop .afxshop-btn {
	flex: 1 0 50px;
	padding: 0 5px;
	margin: 5px 0;
}
.afxshop .afxshop-button {
	position: relative;
	display: inline-block;
	min-width: 90%;
	max-width: 100%;
	margin-top: 0.3em;
	padding: 0.3em 0.5em;
	border-radius: 3px;
	background: #bc00bc;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}
.afxshop .afx-gradient .afxshop-button::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0) 100%);
}
.afxshop .afxshop-offer:hover .afxshop-button {
	opacity: 0.75;
	box-shadow: inset 1.5px 1.5px 3px rgba(0, 0, 0, 0.2);
}
.afxshop .more_mkt {
	display: none;
}
.afxshop .more_btn {
	cursor: pointer;
	background-color: #ebeef2;
	text-align: center;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.87);
}
.afxshop .more_btn::after {
	content: '';
	display: inline-block;
	margin-left: 0.5em;
	border: 5px solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
	vertical-align: middle;
}

/* Badges de classement */
.afxshop .afxshop-rank {
	margin: 5px 0 15px;
	color: #bc00bc;
}
.afxshop .afxshop-rank svg {
	fill: #bc00bc;
}
.afxshop .title-rank {
	padding-bottom: 10px;
	margin: 0 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
	font-weight: 600;
}

/* Format « box » : image | texte | marchands */
.afxshop-box .afxshop-list {
	display: block;
}
.afxshop-box .afxshop-item {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	margin: 1em 0;
}
.afxshop-box .afxshop-header,
.afxshop-box .afxshop-content {
	padding: 0;
}
.afxshop-box .afxshop-rank {
	width: 100%;
}
.afxshop-box:not(.afxshop-review) .afxshop-header {
	flex: 2 0 250px;
}
.afxshop-box:not(.afxshop-review) .afxshop-content {
	flex: 3 0 200px;
	padding: 0 10px;
}
.afxshop-box:not(.afxshop-review) .afxshop-side {
	flex: 2 0 290px;
	width: auto;
}
.afxshop-box .afxshop-button {
	width: max-content;
}

/* Format « review » : marchands sous le contenu, pleine largeur */
.afxshop-review .afxshop-header {
	flex: 1 0 220px;
}
.afxshop-review .afxshop-content {
	flex: 4 0 200px;
	padding: 0 10px;
}
.afxshop-review .afxshop-side {
	width: 100%;
}

/* Grille et carrousel */
.afxshop-grid {
	position: relative;
}
.afxshop-grid .afxshop-list {
	display: flex;
	flex-flow: row wrap;
	align-items: stretch;
	gap: 1em;
}
.afxshop-grid .afxshop-item {
	display: flex;
	flex-direction: column;
	flex: 1 0 calc(33% - 1em);
	min-width: 250px;
}
.afxshop-grid .afxshop-header {
	flex: 1 0 auto;
}
.afxshop-grid .afxshop-title {
	text-align: center;
	padding: 0 10px;
}
.afxshop-grid .afxshop-footer {
	margin-top: auto;
}
.afx-carousel-wrap .afx-carousel {
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 2px;
}
.afx-carousel-wrap .afx-carousel::-webkit-scrollbar {
	display: none;
}
.afx-carousel-wrap .afx-carousel > .afxshop-item {
	flex: 0 0 calc((100% - 2em) / 3);
	min-width: 0;
	scroll-snap-align: start;
}
@media (max-width: 768px) {
	.afx-carousel-wrap .afx-carousel > .afxshop-item {
		flex-basis: calc((100% - 1em) / 2);
	}
}
@media (max-width: 480px) {
	.afx-carousel-wrap .afx-carousel > .afxshop-item {
		flex-basis: 100%;
	}
}
.afx-carousel-wrap .afx_arrow_prev,
.afx-carousel-wrap .afx_arrow_next {
	position: absolute;
	top: 30%;
	z-index: 2;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 50%;
	background: #bc00bc;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.afx-carousel-wrap .afx_arrow_prev span,
.afx-carousel-wrap .afx_arrow_next span {
	color: #fff;
	font-size: 34px;
	line-height: 1;
}
.afx-carousel-wrap .afx_arrow_prev {
	left: -10px;
}
.afx-carousel-wrap .afx_arrow_next {
	right: -10px;
}
.afx-carousel-wrap [hidden] {
	display: none;
}

/* Format « list » (fiches produits) */
.afxshop-pricelist .afxshop-item {
	text-align: left;
}
.afxshop-pricelist .afxshop-header {
	padding: 10px 25px;
}
.afxshop-pricelist .afxshop-title {
	padding-left: 0;
}
.afxshop-pricelist .afxshop-logo {
	width: 32px;
	height: 32px;
	margin-right: 10px;
}
.afxshop-pricelist .afxshop-logo img {
	max-width: 32px;
	max-height: 32px;
}

/* Petits écrans */
@media (max-width: 600px) {
	.afxshop .afxshop-offer {
		padding: 0.5em 10px;
	}
	.afxshop-box:not(.afxshop-review) .afxshop-side {
		flex-basis: 100%;
	}
}

/* Éditeur : message quand aucun produit n'est trouvé */
.mv-encadre-vide {
	padding: 1em;
	border: 1px dashed #bc00bc;
	color: #555;
	font-size: 14px;
}
