/* EH Editorial : pages utilitaires (404, panier, compte, favoris, blog) */

body.eh-ut {
	--ut-ink: #111;
	--ut-muted: rgba(17, 17, 17, 0.56);
	--ut-line: rgba(17, 17, 17, 0.12);
	--ut-cream: #f5f1eb;
	--ut-pad: clamp(1.25rem, 4.5vw, 4.5rem);
}

/* ═══ Titres de page ═══ */
body.eh-ut .entry-header {
	padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 3.5vw, 3rem) !important;
	margin: 0 !important;
}

body.eh-ut .entry-header .page-title,
body.eh-ut .page-title.blog-listing {
	margin: 0 !important;
	color: var(--ut-ink);
	font-size: clamp(2.5rem, 6vw, 5rem) !important;
	font-weight: 400 !important;
	line-height: 1.02 !important;
	letter-spacing: -0.035em !important;
	text-align: center;
	text-transform: none !important;
}

body.eh-ut.woocommerce-account:not(.logged-in) .entry-header .page-title {
	display: block !important;
}

body.eh-ut.woocommerce-account:not(.logged-in) .entry-header {
	display: block !important;
}

/* ═══ Formulaires WooCommerce (compte) ═══ */
body.eh-ut--shop #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 3rem);
	max-width: 1120px;
	margin: 0 auto;
}

body.eh-ut--shop #customer_login::before,
body.eh-ut--shop #customer_login::after {
	display: none;
}

body.eh-ut--shop #customer_login > .u-column1,
body.eh-ut--shop #customer_login > .u-column2 {
	float: none;
	width: auto;
	max-width: none;
	padding: 0;
}

body.eh-ut--shop #customer_login h2 {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 400;
	letter-spacing: -0.02em;
}

body.eh-ut--shop .woocommerce-form-login,
body.eh-ut--shop .woocommerce-form-register,
body.eh-ut--shop .woocommerce-ResetPassword {
	margin: 0 !important;
	padding: clamp(1.5rem, 3vw, 2.5rem) !important;
	border: 1px solid var(--ut-line) !important;
	border-radius: 8px !important;
	background: #fff;
}

body.eh-ut--shop.woocommerce-account .woocommerce form .form-row {
	margin: 0 0 1.25rem;
	padding: 0;
}

body.eh-ut--shop.woocommerce-account .woocommerce form .form-row label {
	margin-bottom: 0.5rem;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.eh-ut--shop.woocommerce-account .woocommerce form .form-row .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1.25rem;
}

body.eh-ut--shop.woocommerce-account .woocommerce form .input-text {
	height: 48px;
	padding: 0 1rem !important;
	border: 1px solid var(--ut-line) !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: none !important;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

body.eh-ut--shop.woocommerce-account .woocommerce form .input-text:focus {
	border-color: var(--ut-ink) !important;
	outline: none;
}

body.eh-ut--shop.woocommerce-account .woocommerce form .woocommerce-privacy-policy-text,
body.eh-ut--shop.woocommerce-account .woocommerce form .woocommerce-privacy-policy-text p,
body.eh-ut--shop .woocommerce-form-register > p:not(.form-row) {
	color: var(--ut-muted);
	font-size: 13px;
	line-height: 1.6;
}

body.eh-ut--shop.woocommerce-account .woocommerce form button.button,
body.eh-ut--shop.woocommerce-account .woocommerce .woocommerce-Button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 0.25rem 0 0 !important;
	padding: 0 2rem !important;
	border: 1px solid var(--ut-ink) !important;
	border-radius: 999px !important;
	background: var(--ut-ink) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase;
	transition: background-color 0.3s ease, color 0.3s ease;
}

body.eh-ut--shop.woocommerce-account .woocommerce form button.button:hover,
body.eh-ut--shop.woocommerce-account .woocommerce form button.button:focus-visible,
body.eh-ut--shop.woocommerce-account .woocommerce .woocommerce-Button:hover {
	background: transparent !important;
	color: var(--ut-ink) !important;
}

body.eh-ut--shop .woocommerce-LostPassword {
	margin: 1.25rem 0 0 !important;
	text-align: center;
}

body.eh-ut--shop .woocommerce-LostPassword a {
	color: var(--ut-muted) !important;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ═══ Panier vide ═══ */
body.eh-ut--shop .wp-block-woocommerce-empty-cart-block {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 0 clamp(1rem, 3vw, 2rem);
}

body.eh-ut--shop .wc-block-cart__empty-cart__title {
	margin: 0 auto !important;
	color: var(--ut-muted);
	font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
}

body.eh-ut--shop .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	display: none !important;
}

body.eh-ut--shop .wp-block-woocommerce-empty-cart-block .wp-block-separator {
	width: 48px !important;
	height: 1px !important;
	margin: clamp(2.5rem, 5vw, 4rem) auto !important;
	border: 0 !important;
	background: var(--ut-line) !important;
}

body.eh-ut--shop .wp-block-woocommerce-empty-cart-block .wp-block-separator::before {
	display: none !important;
}

body.eh-ut--shop .wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) {
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem) !important;
	font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
	font-weight: 400 !important;
	letter-spacing: -0.03em !important;
}

/* Grille « Nouveau dans la boutique » */
body.eh-ut .wc-block-grid__products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 2rem);
	margin: 0 !important;
	padding: 0 !important;
}

body.eh-ut .wc-block-grid__product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	text-align: left !important;
}

body.eh-ut .wc-block-grid__product-image {
	margin: 0 0 1rem !important;
	overflow: hidden;
	border-radius: 8px;
	background: #f4f4f4;
}

body.eh-ut .wc-block-grid__product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.eh-ut .wc-block-grid__product:hover .wc-block-grid__product-image img {
	transform: scale(1.04);
}

body.eh-ut .wc-block-grid__product-title {
	margin: 0 0 0.25rem !important;
	color: var(--ut-ink);
	font-size: 1rem !important;
	font-weight: 400 !important;
	line-height: 1.35;
}

body.eh-ut .wc-block-grid__product-price {
	margin: 0 0 0.6rem !important;
	color: var(--ut-muted) !important;
	font-size: 0.9rem !important;
}

body.eh-ut .wc-block-grid__product-add-to-cart {
	margin: 0 !important;
	text-align: left;
}

body.eh-ut .wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: inline-block;
	padding: 0 0 2px !important;
	border: 0 !important;
	border-bottom: 1px solid currentColor !important;
	border-radius: 0 !important;
	background: none !important;
	color: var(--ut-ink) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase;
}

body.eh-ut .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
	opacity: 0.6;
}

/* ═══ Panier : suggestions sous le panier ═══ */
body.eh-ut--shop .eh-ut-xsell {
	clear: both;
	width: 100%;
	padding: clamp(3rem, 6vw, 5rem) 0 0;
}

body.eh-ut--shop .eh-ut-xsell .cross-sells {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: clamp(2.5rem, 5vw, 4rem) 0 0 !important;
	border-top: 1px solid var(--ut-line);
	background: none !important;
}

body.eh-ut--shop .eh-ut-xsell .cross-sells > h2 {
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem) !important;
	color: var(--ut-ink);
	font-size: clamp(1.5rem, 2.6vw, 2.25rem) !important;
	font-weight: 400 !important;
	letter-spacing: -0.03em !important;
	text-transform: none !important;
}

body.eh-ut--shop .eh-ut-xsell ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 2rem);
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.eh-ut--shop .eh-ut-xsell ul.products::before,
body.eh-ut--shop .eh-ut-xsell ul.products::after {
	display: none !important;
}

body.eh-ut--shop .eh-ut-xsell ul.products > li {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 1023px) {
	body.eh-ut--shop .eh-ut-xsell ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ═══ Panier vide (classique) ═══ */
body.eh-ut--shop .wc-empty-cart-message .cart-empty {
	display: block !important;
	margin: 0 auto 2rem !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--ut-muted) !important;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
	font-weight: 400 !important;
	text-align: center;
}

body.eh-ut--shop .wc-empty-cart-message .cart-empty::before {
	display: none !important;
}

body.eh-ut--shop .return-to-shop {
	margin: 0 0 clamp(2rem, 5vw, 4rem) !important;
	text-align: center;
}

body.eh-ut--shop .return-to-shop a.button.wc-backward {
	display: inline-flex !important;
	align-items: center;
	min-height: 52px;
	padding: 0 2rem !important;
	border: 1px solid var(--ut-ink) !important;
	border-radius: 999px !important;
	background: var(--ut-ink) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	text-decoration: none !important;
	transition: background-color 0.3s ease, color 0.3s ease;
}

body.eh-ut--shop .return-to-shop a.button.wc-backward:hover {
	background: transparent !important;
	color: var(--ut-ink) !important;
}

body.eh-ut--shop:has(.wc-empty-cart-message) .page-notifications {
	display: none !important;
}

/* ═══ Panier et commande : boutons ═══ */
body.eh-ut--shop .wc-proceed-to-checkout a.checkout-button,
body.eh-ut--shop #place_order,
body.eh-ut--shop .shopkeeper-continue-shopping a.button {
	border-radius: 999px !important;
}

/* ═══ Panier : paiement ═══ */
body.eh-ut--shop .wc-proceed-to-checkout > .StripeElement {
	margin: 0 0 1rem !important;
}

@media (max-width: 767px) {
	body.eh-ut--shop .woocommerce-cart-form .coupon {
		display: flex !important;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.75rem 1rem;
		width: 100%;
	}

	body.eh-ut--shop .woocommerce-cart-form .coupon .input-text {
		flex: 1 1 100% !important;
		width: 100% !important;
		min-width: 0;
		margin: 0 !important;
	}

	body.eh-ut--shop .woocommerce-cart-form .coupon .button {
		margin: 0 !important;
	}
}

/* ═══ Favoris (YITH) ═══ */
body.eh-ut--shop .wishlist-title-container {
	display: none;
}

body.eh-ut--shop .wishlist_table .wishlist-empty {
	padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 4rem) !important;
	border: 0 !important;
	color: var(--ut-muted) !important;
	font-size: 1.05rem !important;
	font-weight: 400 !important;
}

body.eh-ut--shop .wishlist_table .wishlist-empty::before {
	width: 44px !important;
	height: 44px !important;
	margin: 0 auto 1.25rem !important;
	font-size: 44px !important;
	line-height: 44px !important;
}

body.eh-ut--shop .yith-wcwl-form {
	max-width: 1120px;
	margin: 0 auto;
}

/* ═══ Blog ═══ */
body.eh-ut--blog .blog-listing + * {
	margin-top: 0;
}

body.eh-ut--blog .page-title.blog-listing {
	display: block;
	width: 100%;
	margin: 0 0 1.75rem !important;
	font-size: clamp(3rem, 7vw, 6rem) !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: -0.045em !important;
	text-transform: none !important;
}

body.eh-ut--blog .list_categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

body.eh-ut--blog .list_categories li {
	margin: 0 !important;
	padding: 0 !important;
}

body.eh-ut--blog .list_categories li a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 1.1rem !important;
	border: 1px solid rgba(17, 17, 17, 0.14) !important;
	border-radius: 999px;
	color: rgba(17, 17, 17, 0.72) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.08em !important;
	text-decoration: none !important;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body.eh-ut--blog .list_categories li a::after,
body.eh-ut--blog .list_categories li a::before {
	display: none !important;
}

body.eh-ut--blog .list_categories li a:hover,
body.eh-ut--blog .list_categories li.current-cat a {
	border-color: #111 !important;
	background: #111;
	color: #fff !important;
}

body.eh-ut--blog ul.blog-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 2.5vw, 2rem);
	max-width: 1360px;
	margin: 0 auto !important;
	padding: 0 clamp(1.25rem, 4.5vw, 4.5rem) !important;
}

body.eh-ut--blog ul.blog-posts > li.blog-post {
	display: block !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.eh-ut--blog ul.blog-posts > li.blog-post:first-child {
	grid-column: span 2;
}

body.eh-ut--blog .blog-post .bg-image-wrapper,
body.eh-ut--blog .blog-post .post-image {
	display: block;
	overflow: hidden;
	border-radius: 20px;
}

body.eh-ut--blog .blog-post .post-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	height: auto !important;
	object-fit: cover;
	transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

body.eh-ut--blog .blog-post:hover .post-image img {
	transform: scale(1.04);
}

body.eh-ut--blog .blog-post .post-categories {
	top: 1rem !important;
	left: 1rem !important;
	margin: 0 !important;
}

body.eh-ut--blog .blog-post .post-categories a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111 !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	backdrop-filter: blur(8px);
}

body.eh-ut--blog .blog-post .post_content_wrapper,
body.eh-ut--blog .blog-post .post_content {
	padding: 0 !important;
}

body.eh-ut--blog .blog-post .entry-title {
	margin: 1.5rem 0 0.75rem !important;
	font-size: clamp(1.25rem, 1.8vw, 1.6rem) !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
}

body.eh-ut--blog .blog-post:first-child .entry-title {
	font-size: clamp(1.6rem, 2.6vw, 2.4rem) !important;
	letter-spacing: -0.03em !important;
}

body.eh-ut--blog .blog-post .post_content p {
	margin: 0 0 1.25rem !important;
	color: rgba(17, 17, 17, 0.66);
	font-size: 0.975rem;
	line-height: 1.6;
}

@media (max-width: 1023px) {
	body.eh-ut--blog ul.blog-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.eh-ut--blog ul.blog-posts > li.blog-post:first-child {
		grid-column: auto;
	}

	body.eh-ut .wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.eh-ut--blog ul.blog-posts {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 !important;
	}

	body.eh-ut--shop #customer_login {
		grid-template-columns: 1fr;
	}

	body.eh-ut .entry-header .page-title,
	body.eh-ut .page-title.blog-listing {
		font-size: clamp(2.25rem, 10vw, 3rem) !important;
	}
}

/* ═══ 404 ═══ */
#eh-ed.eh-ed--404 {
	background: #fff;
}

.eh-404 {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(88svh, 820px);
	padding: clamp(5rem, 10vw, 8rem) var(--pad) clamp(3rem, 6vw, 5rem);
	overflow: hidden;
	text-align: center;
}

.eh-404__intro {
	position: relative;
	z-index: 1;
	max-width: 42rem;
}

#eh-ed .eh-404__code {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	color: rgba(17, 17, 17, 0.04);
	font-size: clamp(12rem, 34vw, 30rem);
	font-weight: 500;
	line-height: 0.8;
	letter-spacing: -0.06em;
	transform: translate(-50%, -54%);
	pointer-events: none;
	user-select: none;
}

#eh-ed .eh-404__kicker {
	margin-bottom: 1.5rem;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

#eh-ed .eh-404__title {
	margin-bottom: 1.5rem;
	font-size: clamp(2.5rem, 6.5vw, 5.5rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

#eh-ed .eh-404__lead {
	max-width: 32rem;
	margin: 0 auto 2.5rem;
	color: var(--muted);
	font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.eh-404__search {
	display: flex;
	max-width: 30rem;
	margin: 0 auto 1.5rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.eh-404__search:focus-within {
	border-color: var(--ink);
}

#eh-ed .eh-404__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 1.5rem;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 15px;
	outline: none;
}

#eh-ed .eh-404__search button {
	margin: 4px;
	padding: 0 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

#eh-ed .eh-404__search button:hover {
	opacity: 0.8;
}

.eh-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.eh-404-cats {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
}

#eh-ed .eh-404-cats__title {
	margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

#eh-ed .eh-404-cats__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.eh-404-cat {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
	color: var(--ink) !important;
	text-decoration: none !important;
}

.eh-404-cat__img {
	grid-column: 1 / -1;
	display: block;
	aspect-ratio: 4 / 5;
	margin-bottom: 0.6rem;
	overflow: hidden;
	border-radius: 8px;
	background: var(--sand);
}

#eh-ed .eh-404-cat__img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.eh-404-cat:hover .eh-404-cat__img img {
	transform: scale(1.05);
}

.eh-404-cat__name {
	font-size: 0.95rem;
}

.eh-404-cat__count {
	color: var(--muted);
	font-size: 0.75rem;
}

@media (max-width: 1023px) {
	#eh-ed .eh-404-cats__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.eh-404 {
		min-height: 0;
	}

	#eh-ed .eh-404-cats__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.eh-404-cat {
		grid-template-columns: 1fr;
	}
}

@media (hover: none) {
	body.eh-ut--blog .blog-post .post-categories a {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}
