/*
 * Ochanta — widgets Produits (the7-wc-products) et Carrousel de produits (the7-wc-products-carousel).
 *
 * Chaque produit : image (seconde image au survol avec wc-img-hover, zoom avec quick-scale-img /
 * scale-img), badge promo, bouton d'ajout au panier sous le contenu ou sur l'image, titre, prix,
 * note, extrait, variations. Disposition du bouton (classes du widget) : layout-content_below_img,
 * layout-btn_on_img, layout-icon_with_text ; btn-position-on_image / -below_image.
 * Variables des réglages : --btn-opacity, --btn-top/-bottom/-left/-right-position,
 * --btn-translate-x/-y, --justify-btn, --btn-width, --box-button-width, --box-button-min-height,
 * --btn-icon-spacing, --icon-order, --text-order, --text-margin.
 * Base commune (étoiles, prix, badges, variations) : the7-woocommerce-common.css.
 */

.products-shortcode {
	position: relative;
}

.products-shortcode .rp-heading {
	margin-bottom: 20px;
}

.products-shortcode .dt-css-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-column-gap: 30px;
	grid-row-gap: 30px;
}

.products-shortcode .wf-cell {
	position: relative;
	display: flex;
	min-width: 0;
}

.products-shortcode .wf-cell.hidden,
.products-shortcode .wf-cell.och-filtered-out,
.products-shortcode .wf-cell.och-page-hidden {
	display: none;
}

/* Mosaïque : placement par assets/widgets/js/elements.js */
.products-shortcode .dt-isotope {
	position: relative;
}

.products-shortcode .dt-isotope.och-masonry .wf-cell {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	padding: calc(var(--grid-gap, 30px) / 2);
}

/* Produit */
.products-shortcode article.product {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	border: 0 solid transparent;
	transition: background-color .3s, border-color .3s, box-shadow .3s;
}

.products-shortcode .woocom-project {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	margin: 0;
}

/* Image */
.products-shortcode .trigger-img-hover {
	position: relative;
}

.products-shortcode .img-border {
	position: relative;
	overflow: hidden;
	border: 0 solid transparent;
	transition: box-shadow .3s;
}

.products-shortcode .img-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	line-height: 0;
	transition: opacity .3s;
}

.products-shortcode .img-wrap img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity .4s ease, transform .4s ease, filter .3s;
}

.products-shortcode .img-wrap:before,
.products-shortcode .img-wrap:after {
	position: absolute;
	inset: 0;
	z-index: 2;
	content: "";
	pointer-events: none;
	transition: opacity .3s;
}

.products-shortcode .img-wrap:after {
	opacity: 0;
}

.products-shortcode .wf-cell:hover .img-wrap:before {
	opacity: 0;
}

.products-shortcode .wf-cell:hover .img-wrap:after {
	opacity: 1;
}

/* Seconde image du produit au survol */
.products-shortcode .img-wrap .back-image {
	position: absolute;
	inset: 0;
	z-index: 1;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

.wc-img-hover .wf-cell:hover .img-wrap .back-image,
.wc-img-hover .img-wrap:hover .back-image {
	opacity: 1;
}

.quick-scale-img .wf-cell:hover .img-wrap img {
	transform: scale(1.1);
	transition-duration: .3s;
}

.scale-img .wf-cell:hover .img-wrap img {
	transform: scale(1.1);
	transition-duration: 1.5s;
}

/* Contenu */
.products-shortcode .woocom-list-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	padding: 15px 0 0;
}

.products-shortcode .woocom-list-content > .woocommerce-LoopProduct-link {
	display: contents;
	color: inherit;
	text-decoration: none;
}

.products-shortcode .product-title {
	margin: 0;
}

.products-shortcode .product-title a {
	color: inherit;
	text-decoration: none;
	transition: color .3s;
}

.products-shortcode .product-title a:hover {
	color: var(--the7-accent-color, inherit);
}

.products-shortcode .one-line,
.products-shortcode .one-line a {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.products-shortcode .price {
	margin-top: 5px;
}

.products-shortcode .star-rating-wrap {
	margin-top: 5px;
}

.products-shortcode .woocommerce-product-details__short-description {
	margin-top: 10px;
}

.products-shortcode .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

.products-shortcode .products-variations-wrap {
	margin-top: 10px;
}

.variations-position-on_image .products-shortcode .products-variations-wrap {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 4;
	margin: 0;
	padding: 10px;
	background: rgba(255, 255, 255, .9);
}

/* Bouton d'ajout au panier */
.products-shortcode .woo-list-buttons {
	display: flex;
	justify-content: var(--justify-btn, flex-start);
	margin-top: 15px;
	opacity: var(--btn-opacity, 1);
	transition: opacity .3s;
}

.products-shortcode .wf-cell:hover .woo-list-buttons,
.products-shortcode .woo-list-buttons:focus-within {
	opacity: 1;
}

.products-shortcode .woo-list-buttons .box-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--btn-icon-spacing, 5px);
	width: var(--btn-width, auto);
	margin: 0;
}

.products-shortcode .woo-list-buttons .box-button svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Bouton sur l'image (icône, ou icône et texte qui apparaît au survol) */
.btn-position-on_image .products-shortcode .trigger-img-hover > .woo-list-buttons,
.products-shortcode .woo-buttons-on-img > .woo-list-buttons {
	position: absolute;
	top: var(--btn-top-position, auto);
	right: var(--btn-right-position, 0);
	bottom: var(--btn-bottom-position, 0);
	left: var(--btn-left-position, auto);
	z-index: 4;
	margin: 10px;
	transform: translate(var(--btn-translate-x, 0), var(--btn-translate-y, 0));
}

.products-shortcode .woo-popup-button {
	position: relative;
	min-width: var(--box-button-width, 32px);
	min-height: var(--box-button-min-height, 32px);
	padding: 0;
	overflow: hidden;
}

.products-shortcode .woo-popup-button .popup-icon {
	order: var(--icon-order, 0);
	flex: 0 0 auto;
}

.products-shortcode .woo-popup-button .filter-popup {
	order: var(--text-order, 1);
	max-width: 0;
	overflow: hidden;
	margin: 0;
	white-space: nowrap;
	opacity: 0;
	transition: max-width .4s ease, opacity .3s, margin .3s;
}

.products-shortcode .woo-popup-button:hover .filter-popup,
.products-shortcode .woo-popup-button:focus .filter-popup {
	max-width: 300px;
	margin: var(--text-margin, 0 10px);
	opacity: 1;
}

.icon-visibility- .products-shortcode .woo-list-buttons .elementor-button-icon {
	display: none;
}

/* Pagination (décor commun : the7-filter-decorations-base.css) */
.products-shortcode ~ .paginator,
.products-shortcode .paginator {
	margin-top: 50px;
}
