/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com/
Author: DrFuri
Author URI: http://drfuri.com/
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.4.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomus
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: ecomus
*/

/* Cosylueur: hide product reviews and ratings */
.reviews_tab,
#tab-title-reviews,
#tab-reviews,
.woocommerce-Tabs-panel--reviews,
.woocommerce-Reviews,
.ecomus-product-rating,
.ecomus-rating,
.ecomus-form-review,
#ecomus-review-form-modal,
.ecomus-review-form-modal,
[data-target="ecomus-review-form-modal"],
.woocommerce-product-rating,
.comment-form-rating,
.single-product .star-rating,
.products .star-rating,
li.product .star-rating,
.product .star-rating {
	display: none !important;
}

/* Cosylueur: hide product photo zoom and the lightbox/loupe trigger. Slider and thumbnails stay visible. */
.woocommerce-product-gallery__trigger,
.ecomus-button--product-lightbox,
.ecomus-product-zoom-wrapper,
.woocommerce-product-gallery .zoomImg,
.drift-zoom-pane,
.drift-bounding-box {
	display: none !important;
}


/* Cosylueur: hide bottom sticky/popup bars. Do not hide GDPR cookie consent banners or #gotop. */
#ecomus-sticky-add-to-cart,
.ecomus-sticky-add-to-cart,
#ecomus-mobile-navigation-bar,
.ecomus-mobile-navigation-bar,
.woocommerce-store-notice,
p.demo_store,
.live-sales-notification,
#ecomus-live-sales-notification,
.ecomus-live-sales-notification,
.ecomus-popup-position--left-bottom,
.ecomus-popup-position--right-bottom,
.ecomus-popup-position--center-bottom,
.ecomus-popup-position--bottom {
	display: none !important;
}


/* Cosylueur: hide product-page breadcrumb, category line above the title, and SKU/categories meta. SKUs stay in wp-admin. */
.single-product .woocommerce-breadcrumb,
.single-product nav.site-breadcrumb,
.single-product .meta.meta-cat,
.single-product .product_meta,
.single-product .sku_wrapper,
.single-product .posted_in {
	display: none !important;
}

/* Cosylueur: hide product-card hover buttons over the image (shopping-bag add to cart + eye quick view).
   Shop, category, home, related/upsells. Does not hide the header cart icon or the single-product Add to cart form. */
.product-thumbnail .product-featured-icons,
.products .product-featured-icons,
li.product .product-featured-icons,
.ecomus-quickview-button,
a.product-loop-button[data-target="quick-view-modal"],
.product-thumbnail .product-loop-button-atc,
.product-thumbnail .product-loop-button,
.quick-view-modal,
#quick-view-modal {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Homepage styles: see home.css (enqueued on the front page only). */
/* Hide the generic page title banner on the front page. */
.home .page-header,
.home .page-header--page {
	display: none !important;
}

/* Single product: share hidden, tabs in the summary — see product.css */

/* Cosylueur: hide stock availability text, badges and progress bars.
   Stock management stays enabled in WooCommerce / wp-admin. */
.stock-badge,
.ecomus-product-availability,
p.stock.in-stock,
p.stock.out-of-stock,
p.stock.sold-out,
p.availability,
.woocommerce-variation-availability,
.stock-progress,
.stock-progress-bar,
.ecomus-stock-progress,
.product-stock-progress,
.em-stock-progress {
	display: none !important;
}

/* =====================================================================
   Cosylueur 1.2.0 — warm boutique palette, announcement bar,
   product-card "Découvrir" link, trust pages (Livraison, FAQ), 404.
   ===================================================================== */
:root {
	--cl-linen: #faf7f2;
	--cl-sand: #f3ece2;
	--cl-espresso: #251e18;
	--cl-amber: #9c562c;
	--cl-cream: #f7f2eb;
	--cl-border-warm: #e7dccd;
}

/* Announcement bar (wp_body_open, above the header). */
.cl-announce {
	position: relative;
	z-index: 20;
	background: #251e18;
	color: #f7f2eb;
}

.cl-announce__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.02em;
	text-align: center;
	color: #f7f2eb;
}

.cl-announce__inner span {
	white-space: nowrap;
}

.cl-announce__sep {
	color: #d7a77f;
	opacity: 0.9;
}

@media (max-width: 767px) {
	.cl-announce__inner {
		font-size: 12px;
		gap: 0 8px;
		padding: 7px 12px;
	}

	/* On phones: line 1 shipping, line 2 payment + returns. */
	.cl-announce__inner > span:first-child {
		flex: 1 1 100%;
	}

	.cl-announce__inner > .cl-announce__sep:nth-child(2) {
		display: none;
	}
}

/* Product cards (home, shop, categories, related): "Découvrir →" pill. */
a.cl-discover {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	padding: 6px 14px;
	border: 1px solid #e0d1bf;
	border-radius: 999px;
	background: #faf7f2;
	color: #251e18 !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.cl-discover:hover,
a.cl-discover:focus-visible {
	background: #251e18;
	border-color: #251e18;
	color: #f7f2eb !important;
}

li.product .product-summary .cl-discover {
	align-self: flex-start;
}

/* Prices in the warm espresso tone everywhere on the storefront. */
ul.products li.product .price,
ul.products li.product .price .amount {
	color: #251e18;
}

/* Trust pages: Livraison & Suivi, FAQ. */
.cl-page {
	max-width: 820px;
	margin: 0 auto;
	color: #3f352d;
	font-size: 16px;
	line-height: 1.7;
}

.cl-page h2 {
	margin: 36px 0 12px;
	font-size: 1.35rem;
	line-height: 1.3;
	color: #251e18;
	word-break: normal;
}

.cl-page h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
	line-height: 1.35;
	color: #251e18;
}

.cl-page a {
	color: #9c562c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cl-page__lead {
	margin: 0 0 24px;
	font-size: 1.08rem;
	color: #4a3f37;
}

.cl-page__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 12px;
}

.cl-page__card {
	padding: 18px 18px 16px;
	background: #faf7f2;
	border: 1px solid #e7dccd;
	border-radius: 12px;
}

.cl-page__card p {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.5;
}

.cl-page ul {
	padding-left: 1.2em;
}

.cl-faq details {
	margin: 0 0 10px;
	background: #faf7f2;
	border: 1px solid #e7dccd;
	border-radius: 12px;
	overflow: hidden;
}

.cl-faq summary {
	position: relative;
	padding: 16px 48px 16px 18px;
	color: #251e18;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.cl-faq summary::-webkit-details-marker {
	display: none;
}

.cl-faq summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #9c562c;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

.cl-faq details[open] summary::after {
	content: "−";
}

.cl-faq details[open] summary {
	border-bottom: 1px solid #eadfd1;
}

.cl-faq details p {
	margin: 0;
	padding: 14px 18px 18px;
}

.cl-faq summary:focus-visible {
	outline: 2px solid #9c562c;
	outline-offset: -2px;
}

@media (max-width: 639px) {
	.cl-page__grid {
		grid-template-columns: 1fr;
	}

	.cl-page h2 {
		font-size: 1.2rem;
	}
}

/* French 404 page. */
.cl-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 72px 20px;
	background: #faf7f2;
}

.cl-404__inner {
	max-width: 620px;
	text-align: center;
}

.cl-404__code {
	margin: 0 0 6px;
	color: #9c562c;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.28em;
}

.cl-404__title {
	margin: 0 0 16px;
	color: #251e18;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.cl-404__text {
	margin: 0 auto 28px;
	max-width: 32em;
	color: #4a3f37;
	font-size: 1.02rem;
	line-height: 1.6;
}

.cl-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 24px;
}

a.cl-404__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 28px;
	border: 1.5px solid #251e18;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.cl-404__btn--solid {
	background: #251e18;
	color: #f7f2eb !important;
}

a.cl-404__btn--ghost {
	background: transparent;
	color: #251e18 !important;
}

a.cl-404__btn:hover,
a.cl-404__btn:focus-visible {
	background: #9c562c;
	border-color: #9c562c;
	color: #fff !important;
}

.cl-404__help {
	margin: 0;
	color: #6b5d51;
	font-size: 0.94rem;
}

.cl-404__help a {
	color: #9c562c;
}

/* Scroll-to-top button: hidden on phones so it never covers content. */
@media (max-width: 768px) {
	#gotop,
	.gotop,
	.ecomus-gotop {
		display: none !important;
	}
}


/* ------------------------------------------------------------------
   1.3.2 Cart & checkout polish
   ------------------------------------------------------------------ */

/* Hide PayPal Pay Later (Italian “Paga a rate”) and yellow cart Smart Buttons.
   PayPal remains available as a payment method on checkout. */
body.woocommerce-cart .ppcp-messages,
body.woocommerce-cart .ppc-button-wrapper,
body.woocommerce-cart [id^="ppc-button"],
body.woocommerce-cart #ppc-button-ppcp-gateway-v6,
body.woocommerce-cart [data-block-name="woocommerce-paypal-payments/cart-paylater-messages"],
body.woocommerce-cart [data-pp-message],
body.woocommerce-cart iframe[name^="paypal-"],
body.woocommerce-cart iframe#paypal-messaging-pixel {
	display: none !important;
	height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
}

/* Invisible Stripe/PayPal iframes were expanding scrollWidth (~2894px desktop,
   ~1218px mobile) and allowing a blank sideways swipe. */
html:has(body.woocommerce-checkout),
html:has(body.woocommerce-cart),
body.woocommerce-checkout,
body.woocommerce-cart {
	overflow-x: hidden;
}
body.woocommerce-checkout #place_order,
body.woocommerce-checkout #payment,
body.woocommerce-checkout .form-row.place-order {
	max-width: 100%;
	overflow-x: hidden;
}
