/**
* Theme Name: Axetor Child
* Description: This is a child theme of Axetor, generated by Merlin WP.
* Author: <a href="https://wpopal.com/">Opalthemes</a>
* Template: axetor
* Version: 1.2.2
*/

/* --------------------------------------------------------------------------
   Climavi overrides
   -------------------------------------------------------------------------- */

/* Dropdown menus sit on a dark panel (#2E2E2E): the parent theme colours them with
   --text_light, which the Climavi kit sets to a dark grey meant for white backgrounds. */
.main-navigation ul.menu li.menu-item .sub-menu .menu-item a {
	color: var(--e-global-color-cvondark, #c9cdd3);
}
.main-navigation ul.menu li.menu-item .sub-menu .menu-item:hover > a,
.main-navigation ul.menu li.menu-item .sub-menu .menu-item.current-menu-item > a {
	color: #fff;
}

/* Buttons: the parent theme was designed for a yellow primary colour with black text
   (--accent). With the Climavi red primary that gives black on red, so buttons use white text. */
button,
input[type=button],
input[type=reset],
input[type=submit],
.button {
	color: #fff;
}

/* 404 "back" button: parent theme paints text and background with the same colour */
.error-404 .content-404 .page-content .error-button .elementor-button {
	background-color: var(--primary);
	color: #fff;
}
.error-404 .content-404 .page-content .error-button .elementor-button:hover {
	background-color: var(--accent);
	color: #fff;
}
.header-group-action .site-header-wishlist a .count,
.site-header-cart .cart-contents .count,
.entry-meta .categories-link a:hover,
.single-product div.product .single_add_to_cart_button,
.reviews-summary .review-summary-total .review-summary-btn .button:hover,
.widget_shopping_cart .buttons a:not(.checkout):hover,
ul.products-list li.product-list a[class*=product_type_]:hover,
.filter-toggle:hover,
.button-style-theme-default .axetor-image-lookbook-container .elementor-button,
.elementor-button {
	color: #fff;
}

/* QA fixes ------------------------------------------------------------------ */
/* Quick-view (Magnific Popup) prev/next product arrows: white icon on a white square = invisible */
.mfp-wrap .mfp-arrow { background-color: var(--e-global-color-primary, #da3b35); color: #fff; }
.mfp-wrap .mfp-arrow:hover { background-color: #b82e29; color: #fff; }
/* Quick-view title at 50px pushed "Ajouter au panier" below the 600px popup */
#woosq-popup .product_title { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; }
/* Keyboard focus: the parent theme removes outlines everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--e-global-color-primary, #da3b35); outline-offset: 2px; }
/* Mobile tap targets: header cart (17x20) and burger (24x12) and the bottom-bar labels (16px high)
   were far below 40px. Invisible hit areas, no layout change. */
@media (max-width: 1024px) {
	a.menu-mobile-nav-button,
	.site-header-cart .cart-contents { position: relative; }
	a.menu-mobile-nav-button::after,
	.site-header-cart .cart-contents::after { content: ""; position: absolute; inset: -12px; }
	.elementor-element-1ca6af0 .e-con.e-child { position: relative; }
	.elementor-element-1ca6af0 .e-con.e-child a:not(.elementor-icon)::after { content: ""; position: absolute; inset: 0; }
}
/* Product sticky add-to-cart bar (80px): on tablets it covered the handheld bottom bar and back-to-top
   (phones already hide it); on desktop it covered the back-to-top button. */
@media (max-width: 1024px) {
	.axetor-sticky-add-to-cart { display: none !important; }
}
@media (min-width: 1025px) {
	body:has(.axetor-sticky-add-to-cart--slideOutUp) .scrollup { bottom: 100px; }
	body:has(.axetor-sticky-add-to-cart--slideOutUp) .cvai { bottom: 154px; }
}
/* Back-to-top on phones: the parent hides it below 769px (opacity 0 !important). Show it, centred under the
   booking button (right 24px + 52px wide ⇒ same axis as this 40px button at right 30px), above the iOS home bar. */
@media (max-width: 768px) {
	.scrollup {
		opacity: 1 !important;
		right: 30px;
		bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}
	.scrollup.activate { pointer-events: auto; }
}
/* Product page contrast: mobile accordion tab labels (#ced0d9 on white, 1.5:1) and "En stock" (#15d11c, 2.1:1) */
.woocommerce-tabs h2.resp-accordion:not(.active):not(.resp-tab-active) span { color: #4a5261; }
.product_after_title .inventory_status { color: #1a7f45; }
/* Contact Form 7: text inputs kept their size="40" width (378px) - overflowed the card on phones and
   were narrower than the textarea on desktop. */
.wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),
.wpcf7 select,
.wpcf7 textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
/* Blog post prev/next nav on small phones: 60px thumbnails squeezed to a sliver and "Suivant" title clipped */
@media (max-width: 480px) {
	.post-navigation .nav-links a img { display: none; }
	.post-navigation .nav-links .nav-content { min-width: 0; }
}
/* Header (Elementor template 3684) between 768 and ~880px: logo and icon groups each took ~80% width and
   wrapped onto two rows (logo floating right, icons underneath, 120px tall header). Keep one row. */
@media (min-width: 768px) and (max-width: 1024px) {
	body .elementor-element.elementor-element-80f07ad,
	body .elementor-element.elementor-element-6056ae0 { width: auto !important; max-width: none; flex: 0 1 auto; }
	body .elementor-element.elementor-element-80f07ad { justify-content: flex-start !important; }
}
/* Product search results (?s=…&post_type=product): body gets axetor-full-width-content while the filter
   sidebar is still printed, so the grid took 100% and the sidebar dropped below it. Restore the shop layout. */
@media (min-width: 1025px) {
	body.search.axetor-archive-product.axetor-sidebar-left.axetor-full-width-content .content-area { width: calc(100% - 420px); float: right; }
}

/* Product gallery: before flexslider initialises, WooCommerce prints every image stacked, then collapses
   them into a slider (summary jumped ~1200px on phones, CLS 0.3). Show only the first image until then;
   once initialised the wrapper sits inside .flex-viewport, so this selector no longer matches. */
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) {
	display: none;
}

/* Footer newsletter: hidden while Mailchimp for WP has no form (no API key yet) — it reappears by itself
   as soon as the form is configured. */
.e-con:has(> .elementor-widget-axetor-mailchimp .form-style:empty),
.e-con:has(> .e-con-inner > .elementor-widget-axetor-mailchimp .form-style:empty) {
	display: none;
}

/* Home "Confort en hiver": white text on a light photo — add a soft dark gradient behind the text. */
.elementor-element-cfec29f {
	position: relative;
}
.elementor-element-cfec29f::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(3, 7, 13, .72) 0%, rgba(3, 7, 13, .45) 38%, rgba(3, 7, 13, 0) 70%);
	z-index: 0;
}
.elementor-element-cfec29f > .e-con-inner,
.elementor-element-cfec29f > .elementor-widget {
	position: relative;
	z-index: 1;
}
.elementor-element-cfec29f .elementor-heading-title {
	text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
@media (max-width: 767px) {
	.elementor-element-cfec29f::after {
		background: linear-gradient(0deg, rgba(3, 7, 13, .78) 0%, rgba(3, 7, 13, .35) 60%, rgba(3, 7, 13, .15) 100%);
	}
}

/* Product grids: same image frame for every card so titles and prices line up across a row. */
ul.products li.product img.attachment-woocommerce_thumbnail,
.axetor-products li.product img.attachment-woocommerce_thumbnail {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	width: 100%;
	height: auto;
}
