/**
 * Home boutique — /magasin/
 */

.woocommerce-page .mhama-shop-section,
.woocommerce .mhama-shop-section {
	margin: 0 0 56px;
	clear: both;
}

.woocommerce-page .mhama-shop-section__title,
.woocommerce .mhama-shop-section__title {
	font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 24px;
	padding: 0 0 12px;
	color: #333333;
	border-bottom: 2px solid #2e71d4;
}

/* Catégories */
.woocommerce-page .mhama-shop-categories__list,
.woocommerce .mhama-shop-categories__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.woocommerce-page .mhama-shop-categories__list > li,
.woocommerce .mhama-shop-categories__list > li,
.woocommerce-page .mhama-shop-category-card,
.woocommerce .mhama-shop-category-card {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block;
	width: 100%;
	float: none;
}

.woocommerce-page .mhama-shop-category-card__link,
.woocommerce .mhama-shop-category-card__link {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #e3e8ef;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	text-decoration: none !important;
	color: #333333 !important;
	min-height: 96px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.woocommerce-page .mhama-shop-category-card__link::before,
.woocommerce .mhama-shop-category-card__link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #2e71d4;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.woocommerce-page .mhama-shop-category-card__link:hover,
.woocommerce .mhama-shop-category-card__link:hover,
.woocommerce-page .mhama-shop-category-card__link:focus-visible,
.woocommerce .mhama-shop-category-card__link:focus-visible {
	border-color: #2e71d4;
	box-shadow: 0 8px 24px rgba(46, 113, 212, 0.14);
	transform: translateY(-2px);
	outline: none;
}

.woocommerce-page .mhama-shop-category-card__link:hover::before,
.woocommerce .mhama-shop-category-card__link:hover::before,
.woocommerce-page .mhama-shop-category-card__link:focus-visible::before,
.woocommerce .mhama-shop-category-card__link:focus-visible::before {
	opacity: 1;
}

.woocommerce-page .mhama-shop-category-card__thumb,
.woocommerce .mhama-shop-category-card__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 10px;
	background: #eef2f7;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.woocommerce-page .mhama-shop-category-card__thumb picture,
.woocommerce .mhama-shop-category-card__thumb picture {
	display: block;
	width: 72px;
	height: 72px;
}

.woocommerce-page .mhama-shop-category-card__image,
.woocommerce .mhama-shop-category-card__thumb img,
.woocommerce-page .mhama-shop-category-card__thumb img,
.woocommerce .mhama-shop-category-card__image {
	display: block !important;
	width: 72px !important;
	height: 72px !important;
	max-width: 72px !important;
	object-fit: cover;
	background: #ffffff;
	padding: 0;
	border: none;
	border-radius: 10px;
	box-sizing: border-box;
	float: none !important;
	margin: 0 !important;
}

.woocommerce-page .mhama-shop-category-card__body,
.woocommerce .mhama-shop-category-card__body {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	padding-right: 8px;
}

.woocommerce-page .mhama-shop-category-card__title,
.woocommerce .mhama-shop-category-card__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 8px;
	color: #1f2937;
}

.woocommerce-page .mhama-shop-category-card__count,
.woocommerce .mhama-shop-category-card__count {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #2e71d4;
	background: rgba(46, 113, 212, 0.1);
	padding: 5px 10px;
	border-radius: 999px;
	letter-spacing: 0.01em;
}

.woocommerce-page .mhama-shop-category-card--empty .mhama-shop-category-card__count,
.woocommerce .mhama-shop-category-card--empty .mhama-shop-category-card__count {
	color: #64748b;
	background: #eef2f7;
}

.woocommerce-page .mhama-shop-category-card--empty .mhama-shop-category-card__link,
.woocommerce .mhama-shop-category-card--empty .mhama-shop-category-card__link {
	opacity: 0.92;
}

.woocommerce-page .mhama-shop-category-card__arrow,
.woocommerce .mhama-shop-category-card__arrow {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	position: relative;
	margin-left: auto;
}

.woocommerce-page .mhama-shop-category-card__arrow::before,
.woocommerce .mhama-shop-category-card__arrow::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #94a3b8;
	border-right: 2px solid #94a3b8;
	transform: translate(-60%, -50%) rotate(45deg);
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.woocommerce-page .mhama-shop-category-card__link:hover .mhama-shop-category-card__arrow::before,
.woocommerce .mhama-shop-category-card__link:hover .mhama-shop-category-card__arrow::before,
.woocommerce-page .mhama-shop-category-card__link:focus-visible .mhama-shop-category-card__arrow::before,
.woocommerce .mhama-shop-category-card__link:focus-visible .mhama-shop-category-card__arrow::before {
	border-color: #2e71d4;
	transform: translate(-40%, -50%) rotate(45deg);
}

/* Grille catalogue produits (home + listes / catégories) */
.woocommerce-page .mhama-shop-recent-products ul.products,
.woocommerce .mhama-shop-recent-products ul.products,
body.mhama-products-grid.woocommerce-page #left-area ul.products,
body.mhama-products-grid.woocommerce #left-area ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 28px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	clear: both;
}

.woocommerce-page .mhama-shop-recent-products ul.products::before,
.woocommerce-page .mhama-shop-recent-products ul.products::after,
.woocommerce .mhama-shop-recent-products ul.products::before,
.woocommerce .mhama-shop-recent-products ul.products::after,
body.mhama-products-grid.woocommerce-page #left-area ul.products::before,
body.mhama-products-grid.woocommerce-page #left-area ul.products::after,
body.mhama-products-grid.woocommerce #left-area ul.products::before,
body.mhama-products-grid.woocommerce #left-area ul.products::after {
	display: none !important;
	content: none !important;
}

.woocommerce-page .mhama-shop-recent-products ul.products li.product,
.woocommerce .mhama-shop-recent-products ul.products li.product,
body.mhama-products-grid.woocommerce-page #left-area ul.products li.product,
body.mhama-products-grid.woocommerce #left-area ul.products li.product {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
	list-style: none !important;
	display: flex;
	flex-direction: column;
}

.woocommerce-page .mhama-shop-recent-products ul.products li.product .woocommerce-loop-product__link,
.woocommerce .mhama-shop-recent-products ul.products li.product .woocommerce-loop-product__link,
body.mhama-products-grid.woocommerce-page #left-area ul.products li.product .woocommerce-loop-product__link,
body.mhama-products-grid.woocommerce #left-area ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 100%;
	gap: 12px;
	text-decoration: none !important;
	color: inherit !important;
	position: relative;
}

.woocommerce-page .mhama-shop-recent-products .et_shop_image,
.woocommerce .mhama-shop-recent-products .et_shop_image,
body.mhama-products-grid.woocommerce-page #left-area .et_shop_image,
body.mhama-products-grid.woocommerce #left-area .et_shop_image {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f8fafc;
}

.woocommerce-page .mhama-shop-recent-products .et_shop_image picture,
.woocommerce .mhama-shop-recent-products .et_shop_image picture,
body.mhama-products-grid.woocommerce-page #left-area .et_shop_image picture,
body.mhama-products-grid.woocommerce #left-area .et_shop_image picture {
	display: block;
	width: 100%;
	height: 100%;
}

.woocommerce-page .mhama-shop-recent-products .et_shop_image img,
.woocommerce .mhama-shop-recent-products .et_shop_image img,
body.mhama-products-grid.woocommerce-page #left-area .et_shop_image img,
body.mhama-products-grid.woocommerce #left-area .et_shop_image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 12px;
	object-fit: contain;
	box-sizing: border-box;
	transition: transform 0.3s ease;
}

.woocommerce-page .mhama-shop-recent-products .et_shop_image .et_overlay,
.woocommerce .mhama-shop-recent-products .et_shop_image .et_overlay,
body.mhama-products-grid.woocommerce-page #left-area .et_shop_image .et_overlay,
body.mhama-products-grid.woocommerce #left-area .et_shop_image .et_overlay {
	background: rgba(46, 113, 212, 0.04) !important;
	border: none !important;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.woocommerce-page .mhama-shop-recent-products li.product:hover .et_shop_image .et_overlay,
.woocommerce .mhama-shop-recent-products li.product:hover .et_shop_image .et_overlay,
.woocommerce-page .mhama-shop-recent-products li.product .woocommerce-loop-product__link:focus-visible .et_shop_image .et_overlay,
.woocommerce .mhama-shop-recent-products li.product .woocommerce-loop-product__link:focus-visible .et_shop_image .et_overlay,
body.mhama-products-grid.woocommerce-page #left-area li.product:hover .et_shop_image .et_overlay,
body.mhama-products-grid.woocommerce #left-area li.product:hover .et_shop_image .et_overlay,
body.mhama-products-grid.woocommerce-page #left-area li.product .woocommerce-loop-product__link:focus-visible .et_shop_image .et_overlay,
body.mhama-products-grid.woocommerce #left-area li.product .woocommerce-loop-product__link:focus-visible .et_shop_image .et_overlay {
	opacity: 1;
}

.woocommerce-page .mhama-shop-recent-products li.product:hover .et_shop_image img,
.woocommerce .mhama-shop-recent-products li.product:hover .et_shop_image img,
.woocommerce-page .mhama-shop-recent-products li.product .woocommerce-loop-product__link:focus-visible .et_shop_image img,
.woocommerce .mhama-shop-recent-products li.product .woocommerce-loop-product__link:focus-visible .et_shop_image img,
body.mhama-products-grid.woocommerce-page #left-area li.product:hover .et_shop_image img,
body.mhama-products-grid.woocommerce #left-area li.product:hover .et_shop_image img,
body.mhama-products-grid.woocommerce-page #left-area li.product .woocommerce-loop-product__link:focus-visible .et_shop_image img,
body.mhama-products-grid.woocommerce #left-area li.product .woocommerce-loop-product__link:focus-visible .et_shop_image img {
	transform: scale(1.04);
}

.woocommerce-page .mhama-shop-recent-products .woocommerce-loop-product__title,
.woocommerce .mhama-shop-recent-products .woocommerce-loop-product__title,
body.mhama-products-grid.woocommerce-page #left-area .woocommerce-loop-product__title,
body.mhama-products-grid.woocommerce #left-area .woocommerce-loop-product__title {
	font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #1f2937 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.woocommerce-page .mhama-shop-recent-products li.product:hover .woocommerce-loop-product__title,
.woocommerce .mhama-shop-recent-products li.product:hover .woocommerce-loop-product__title,
.woocommerce-page .mhama-shop-recent-products li.product .woocommerce-loop-product__link:focus-visible .woocommerce-loop-product__title,
.woocommerce .mhama-shop-recent-products li.product .woocommerce-loop-product__link:focus-visible .woocommerce-loop-product__title,
body.mhama-products-grid.woocommerce-page #left-area li.product:hover .woocommerce-loop-product__title,
body.mhama-products-grid.woocommerce #left-area li.product:hover .woocommerce-loop-product__title,
body.mhama-products-grid.woocommerce-page #left-area li.product .woocommerce-loop-product__link:focus-visible .woocommerce-loop-product__title,
body.mhama-products-grid.woocommerce #left-area li.product .woocommerce-loop-product__link:focus-visible .woocommerce-loop-product__title {
	color: #2e71d4 !important;
}

.woocommerce-page .mhama-shop-recent-products .price,
.woocommerce .mhama-shop-recent-products .price,
body.mhama-products-grid.woocommerce-page #left-area ul.products .price,
body.mhama-products-grid.woocommerce #left-area ul.products .price {
	display: block;
	margin-top: auto;
	padding-top: 2px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #2e71d4 !important;
}

.woocommerce-page .mhama-shop-recent-products .price del,
.woocommerce .mhama-shop-recent-products .price del,
body.mhama-products-grid.woocommerce-page #left-area ul.products .price del,
body.mhama-products-grid.woocommerce #left-area ul.products .price del {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: #94a3b8 !important;
	opacity: 1;
	margin-right: 6px;
}

.woocommerce-page .mhama-shop-recent-products .price del .amount,
.woocommerce .mhama-shop-recent-products .price del .amount,
body.mhama-products-grid.woocommerce-page #left-area ul.products .price del .amount,
body.mhama-products-grid.woocommerce #left-area ul.products .price del .amount {
	color: #94a3b8 !important;
}

.woocommerce-page .mhama-shop-recent-products .price ins,
.woocommerce .mhama-shop-recent-products .price ins,
body.mhama-products-grid.woocommerce-page #left-area ul.products .price ins,
body.mhama-products-grid.woocommerce #left-area ul.products .price ins {
	display: inline-block;
	text-decoration: none;
	color: #dc2626 !important;
	font-weight: 700;
}

.woocommerce-page .mhama-shop-recent-products .price ins .amount,
.woocommerce .mhama-shop-recent-products .price ins .amount,
body.mhama-products-grid.woocommerce-page #left-area ul.products .price ins .amount,
body.mhama-products-grid.woocommerce #left-area ul.products .price ins .amount {
	color: #dc2626 !important;
}

.woocommerce-page .mhama-shop-recent-products span.onsale,
.woocommerce .mhama-shop-recent-products span.onsale,
body.mhama-products-grid.woocommerce-page #left-area ul.products span.onsale,
body.mhama-products-grid.woocommerce #left-area ul.products span.onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	min-height: auto;
	height: auto;
	line-height: 1.2;
	margin: 0;
	padding: 5px 9px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: #dc2626 !important;
	color: #ffffff !important;
}

@media screen and (max-width: 980px) {
	.woocommerce-page .mhama-shop-recent-products ul.products,
	.woocommerce .mhama-shop-recent-products ul.products,
	body.mhama-products-grid.woocommerce-page #left-area ul.products,
	body.mhama-products-grid.woocommerce #left-area ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}
}

@media screen and (max-width: 480px) {
	.woocommerce-page .mhama-shop-recent-products ul.products,
	.woocommerce .mhama-shop-recent-products ul.products,
	body.mhama-products-grid.woocommerce-page #left-area ul.products,
	body.mhama-products-grid.woocommerce #left-area ul.products {
		gap: 24px 16px;
	}

	.woocommerce-page .mhama-shop-recent-products .woocommerce-loop-product__title,
	.woocommerce .mhama-shop-recent-products .woocommerce-loop-product__title,
	body.mhama-products-grid.woocommerce-page #left-area .woocommerce-loop-product__title,
	body.mhama-products-grid.woocommerce #left-area .woocommerce-loop-product__title {
		font-size: 14px !important;
		-webkit-line-clamp: 2;
	}

	.woocommerce-page .mhama-shop-recent-products .price,
	.woocommerce .mhama-shop-recent-products .price,
	body.mhama-products-grid.woocommerce-page #left-area ul.products .price,
	body.mhama-products-grid.woocommerce #left-area ul.products .price {
		font-size: 16px;
	}
}

@media screen and (max-width: 768px) {
	.woocommerce-page .mhama-shop-categories__list,
	.woocommerce .mhama-shop-categories__list {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.woocommerce-page .mhama-shop-category-card__link,
	.woocommerce .mhama-shop-category-card__link {
		padding: 12px 14px;
		min-height: 88px;
	}

	.woocommerce-page .mhama-shop-category-card__title,
	.woocommerce .mhama-shop-category-card__title {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce-page .mhama-shop-category-card__link,
	.woocommerce .mhama-shop-category-card__link,
	.woocommerce-page .mhama-shop-category-card__link::before,
	.woocommerce .mhama-shop-category-card__link::before,
	.woocommerce-page .mhama-shop-category-card__arrow::before,
	.woocommerce .mhama-shop-category-card__arrow::before {
		transition: none;
	}

	.woocommerce-page .mhama-shop-category-card__link:hover,
	.woocommerce .mhama-shop-category-card__link:hover {
		transform: none;
	}

	.woocommerce-page .mhama-shop-recent-products li.product:hover .et_shop_image img,
	.woocommerce .mhama-shop-recent-products li.product:hover .et_shop_image img,
	body.mhama-products-grid.woocommerce-page #left-area li.product:hover .et_shop_image img,
	body.mhama-products-grid.woocommerce #left-area li.product:hover .et_shop_image img {
		transform: none;
	}
}
