/* Chez Murielle K – pages des rayons et éléments WooCommerce */
:root {
	--cmk-gold: #B5781F;
	--cmk-gold-dark: #93611a;
	--cmk-ink: #1c1c1c;
	--cmk-line: #e7e2da;
	--cmk-script: 'Kaushan Script', 'Brush Script MT', cursive;
	--cmk-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Le titre du thème est remplacé par l'en-tête du rayon */
.cmk-rayon-page .wp-block-post-title,
.cmk-rayon-page .entry-title,
.cmk-rayon-page .page-title { display: none; }

.cmk-page { font-family: var(--cmk-sans); color: var(--cmk-ink); margin-top: 0; }
.cmk-page *, .cmk-page *::before, .cmk-page *::after { box-sizing: border-box; }

/* ---------- En-tête du rayon ---------- */
.cmk-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	min-height: 340px;
	background: var(--cmk-bg);
	color: var(--cmk-fg);
	border-radius: 6px;
	overflow: hidden;
}
.cmk-hero-img { background-size: cover; background-position: center; min-height: 240px; position: relative; }
.cmk-layout-droite .cmk-hero-img { order: 2; }
.cmk-layout-droite .cmk-hero-img::before,
.cmk-layout-gauche .cmk-hero-img::before { content: ""; position: absolute; inset: 0; }
.cmk-layout-droite .cmk-hero-img::before { background: linear-gradient(90deg, var(--cmk-bg) 0%, transparent 40%); }
.cmk-layout-gauche .cmk-hero-img::before { background: linear-gradient(270deg, var(--cmk-bg) 0%, transparent 40%); }
.cmk-hero-txt { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; z-index: 1; }
.cmk-kicker { font-family: var(--cmk-script); font-size: 22px; margin: 0 0 4px; opacity: .85; color: inherit; }
.cmk-title { font-family: var(--cmk-sans); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; margin: 0 0 12px; color: inherit; letter-spacing: -.5px; }
.cmk-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--cmk-accent); margin-top: 14px; border-radius: 2px; }
.cmk-lead { font-size: 17px; line-height: 1.5; margin: 0 0 18px; max-width: 46ch; color: inherit; opacity: .92; }
.cmk-chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cmk-chips a {
	display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 13.5px; text-decoration: none;
	color: inherit; border: 1px solid currentColor; opacity: .85;
}
.cmk-chips a:hover { opacity: 1; background: var(--cmk-accent); border-color: var(--cmk-accent); color: #fff; }

.cmk-btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--cmk-gold); color: #fff !important; text-decoration: none !important;
	border-radius: 10px; padding: 12px 22px; font-weight: 600; font-size: 15.5px; border: 0;
}
.cmk-btn:hover { background: var(--cmk-gold-dark); }
.cmk-btn svg { width: 20px; height: 20px; }
.cmk-fauteuil .cmk-hero .cmk-btn { background: #1c1c1c; }
.cmk-fauteuil .cmk-hero .cmk-btn:hover { background: #000; }

/* ---------- Atouts ---------- */
.cmk-atouts { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmk-atouts li { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--cmk-line); border-radius: 6px; background: #fff; }
.cmk-atouts svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--cmk-gold); }
.cmk-atouts strong { display: block; font-size: 15px; margin-bottom: 2px; }
.cmk-atouts span { font-size: 13.5px; color: #5f5a52; line-height: 1.45; }

/* ---------- Produits ---------- */
.cmk-products { margin-top: 28px; }
.cmk-h2 { font-size: 21px; font-weight: 600; margin: 0 0 16px; padding-left: 16px; border-left: 4px solid var(--cmk-gold); font-family: var(--cmk-sans); }
.cmk-empty { padding: 36px; text-align: center; border: 1px dashed var(--cmk-line); color: #5f5a52; border-radius: 6px; }
.cmk-page ul.products li.product {
	border: 1px solid var(--cmk-line); border-radius: 6px; padding: 12px !important; background: #fff;
	display: flex; flex-direction: column;
}
.cmk-page ul.products li.product img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; margin-bottom: 10px !important; }
.cmk-page ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; font-weight: 500; padding: 0 !important; min-height: 2.6em; }
.cmk-page ul.products li.product .price { color: var(--cmk-ink) !important; font-weight: 700; font-size: 15px !important; }
.cmk-page ul.products li.product .price del { opacity: .5; font-weight: 400; }
.cmk-page ul.products li.product .price ins { text-decoration: none; color: var(--cmk-gold); }

/* Boutons WooCommerce aux couleurs de la boutique (tout le site) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link), .wp-block-button__link.add_to_cart_button {
	background-color: var(--cmk-gold) !important; color: #fff !important; border-radius: 6px !important; border: 0 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background-color: var(--cmk-gold-dark) !important; }
.woocommerce span.onsale, .wc-block-components-product-sale-badge {
	background: #f2c94c !important; color: #1c1c1c !important; border-radius: 3px !important;
	min-height: 0 !important; min-width: 0 !important; line-height: 1.6 !important; padding: 2px 10px !important; font-weight: 600;
}

/* ---------- Besoin d'un conseil ---------- */
.cmk-help {
	margin: 34px 0 10px; padding: 26px 30px; border-radius: 6px; background: #000; color: #fff;
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cmk-help h2 { margin: 0 0 4px; font-size: 20px; color: #fff; font-family: var(--cmk-sans); }
.cmk-help p { margin: 0; opacity: .85; }
.cmk-btn-wa { background: #25D366 !important; }
.cmk-btn-wa:hover { background: #1eb956 !important; }

/* Fiche produit */
.cmk-order { margin: 14px 0 6px; }

/* Bouton flottant */
.cmk-wa-float {
	position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 9999;
	width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
	display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.cmk-wa-float svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.cmk-hero { grid-template-columns: 1fr; }
	.cmk-hero-img { order: -1 !important; min-height: 200px; }
	.cmk-hero-img::before { background: linear-gradient(0deg, var(--cmk-bg) 0%, transparent 45%) !important; }
	.cmk-hero-txt { padding: 26px 22px 30px; }
	.cmk-atouts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cmk-page * { transition: none !important; } }

/* =====================================================================
 * En-tête, pied de page et accueil (v1.1)
 * =================================================================== */
.cmk-wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.cmk-ico { width: 30px; height: 30px; flex-shrink: 0; }

/* Masquer l'en-tête et le pied de page du thème */
body.cmk-chrome header.wp-block-template-part,
body.cmk-chrome footer.wp-block-template-part,
body.cmk-chrome #masthead, body.cmk-chrome #colophon,
body.cmk-chrome .site-header, body.cmk-chrome .site-footer { display: none !important; }

/* Moins d'espace au-dessus du contenu des pages boutique */
.cmk-rayon-page main.wp-block-group { margin-top: 0 !important; }
.cmk-rayon-page main > .wp-block-group { padding-top: 22px !important; }
.cmk-rayon-page .wp-block-post-content > .cmk-home:first-child { margin-top: -22px !important; }

.cmk-header { font-family: var(--cmk-sans); background: #fff; color: var(--cmk-ink); }
.cmk-header a { text-decoration: none; color: inherit; }
.cmk-top { display: flex; align-items: center; gap: 26px; padding-top: 14px; padding-bottom: 14px; }
.cmk-logo { display: flex; flex-direction: column; align-items: center; line-height: 1; flex-shrink: 0; }
.cmk-logo-name { font-family: var(--cmk-script); font-size: 44px; letter-spacing: -.5px; display: block; }
.cmk-logo-l1 { display: block; color: var(--cmk-gold); font-weight: 600; font-size: 11px; letter-spacing: 3px; margin-top: 4px; }
.cmk-logo-l2 { display: block; font-size: 9.5px; letter-spacing: 2.4px; font-weight: 500; margin-top: 3px; }
.cmk-search { flex: 1; max-width: 470px; display: flex; border: 1px solid var(--cmk-line); border-radius: 6px; overflow: hidden; margin: 0; }
.cmk-search input[type=search] { flex: 1; border: 0; padding: 11px 14px; font: inherit; font-size: 14px; min-width: 0; background: #fff; }
.cmk-search input[type=search]:focus { outline: none; }
.cmk-search:focus-within { border-color: var(--cmk-gold); }
.cmk-search button { border: 0; background: var(--cmk-gold); color: #fff; width: 54px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cmk-search button .cmk-ico { width: 20px; height: 20px; }
.cmk-perks { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.cmk-perk { display: flex; align-items: center; gap: 9px; font-size: 12.5px; line-height: 1.25; }
.cmk-icon-link { display: flex; flex-direction: column; align-items: center; font-size: 12.5px; position: relative; }
.cmk-icon-link .cmk-ico { width: 28px; height: 28px; }
.cmk-count { position: absolute; top: -6px; right: 4px; background: var(--cmk-gold); color: #fff; border-radius: 50%; min-width: 21px; height: 21px; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.cmk-burger { display: none; border: 0; background: none; padding: 4px; cursor: pointer; color: var(--cmk-ink); }

.cmk-nav { background: #000; }
.cmk-nav ul { list-style: none; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; }
.cmk-nav a { display: block; color: #fff !important; padding: 13px 14px; font-size: 14px; white-space: nowrap; }
.cmk-nav a:hover { background: #222; }
.cmk-nav a.is-active { background: var(--cmk-gold); }
.cmk-header :focus-visible, .cmk-home :focus-visible { outline: 3px solid var(--cmk-gold); outline-offset: 2px; }

/* Accueil : carrousel */
.cmk-home { font-family: var(--cmk-sans); color: var(--cmk-ink); }
.cmk-slider { position: relative; height: 440px; background: #f3ede4; overflow: hidden; }
.cmk-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.cmk-slide.is-on { opacity: 1; visibility: visible; }
.cmk-slide-img { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; background-size: cover; background-position: center; }
.cmk-slide-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f3ede4 0%, rgba(243,237,228,.7) 16%, rgba(243,237,228,0) 42%); }
.cmk-slide-txt { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 30px 0 30px 7vw; max-width: 680px; color: #1c1c1c; }
.cmk-slide-kicker { font-size: 21px; letter-spacing: 1.5px; margin: 0 0 4px 18px; }
.cmk-slide-brand { font-family: var(--cmk-script); font-weight: 400; font-size: clamp(46px, 6vw, 88px); line-height: 1.02; margin: 0; color: #1c1c1c; white-space: nowrap; }
.cmk-slide-title { font-size: clamp(40px, 4.8vw, 68px); white-space: normal; }
.cmk-slide-l1 { color: var(--cmk-gold); font-weight: 600; letter-spacing: 3px; font-size: 17px; margin: 10px 0 0; align-self: center; }
.cmk-slide-l2 { letter-spacing: 3.2px; font-size: 14px; font-weight: 500; margin: 2px 0 0; align-self: center; }
.cmk-slide-lead { font-size: 17px; max-width: 42ch; margin: 12px 0 22px; }
.cmk-slide-perks { list-style: none; padding: 0; margin: 24px 0; display: flex; gap: 24px; flex-wrap: wrap; }
.cmk-slide-perks li { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.25; }
.cmk-btn-lg { font-size: 17px; padding: 14px 24px; border-radius: 12px; }
.cmk-btn .cmk-ico { width: 18px; height: 18px; }
.cmk-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(60,60,60,.7); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cmk-arrow .cmk-ico { width: 18px; height: 18px; }
.cmk-prev { left: 16px; } .cmk-prev .cmk-ico { transform: rotate(180deg); }
.cmk-next { right: 16px; }
.cmk-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.cmk-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; }
.cmk-dots button.is-on { background: var(--cmk-gold); }

/* Accueil : tuiles et bannières */
.cmk-tiles { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: 1fr 1.05fr 1fr .95fr 1.2fr .95fr; gap: 14px; }
.cmk-tiles a { display: flex; flex-direction: column; border: 1px solid var(--cmk-line); background: #fff; color: var(--cmk-ink); text-decoration: none; height: 100%; }
.cmk-tiles a:hover { border-color: var(--cmk-gold); }
.cmk-tiles img { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; display: block; }
.cmk-tiles span { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-weight: 500; font-size: 13.5px; }
.cmk-tiles .cmk-ico { width: 14px; height: 14px; }
.cmk-banners { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 14px; }
.cmk-banner { position: relative; min-height: 140px; border-radius: 4px; overflow: hidden; background: #1c1c1c; color: #fff !important; text-decoration: none !important; display: flex; }
.cmk-banner-img { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; background-size: cover; background-position: center; }
.cmk-banner-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1c1c1c 0%, rgba(28,28,28,0) 45%); }
.cmk-banner-txt { position: relative; z-index: 1; padding: 16px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 58%; }
.cmk-banner-txt strong { font-size: 19px; text-transform: uppercase; letter-spacing: .4px; }
.cmk-banner-txt > span { font-size: 14px; line-height: 1.3; opacity: .92; }
.cmk-pill { margin-top: auto; background: var(--cmk-gold); border-radius: 18px; padding: 6px 16px; font-size: 13px !important; opacity: 1 !important; }
.cmk-banner:hover .cmk-pill { background: var(--cmk-gold-dark); }
.cmk-featured-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cmk-featured-head .cmk-h2 { margin: 0; }
.cmk-featured-head a { color: var(--cmk-ink); text-decoration: none; font-size: 14px; }
.cmk-home ul.products li.product { border: 1px solid var(--cmk-line); border-radius: 6px; padding: 12px !important; background: #fff; }
.cmk-home ul.products li.product img { aspect-ratio: 1 / 1; object-fit: contain; }
.cmk-home ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; font-weight: 500; }
.cmk-home ul.products li.product .price { color: var(--cmk-ink) !important; font-weight: 700; }

/* Pied de page */
.cmk-footer { background: #000; color: #ddd; padding: 40px 0 20px; font-family: var(--cmk-sans); font-size: 14px; margin-top: 40px; }
.cmk-footer a { color: #ddd; text-decoration: none; }
.cmk-footer a:hover { color: var(--cmk-gold); }
.cmk-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.cmk-footer h2 { color: #fff; font-size: 15px; margin: 0 0 12px; font-family: var(--cmk-sans); }
.cmk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cmk-footer .cmk-logo-name { color: #fff; font-size: 38px; }
.cmk-footer p { max-width: 300px; }
.cmk-copy { border-top: 1px solid #2a2a2a; margin-top: 28px !important; padding-top: 16px !important; text-align: center; color: #999; font-size: 13px; max-width: none !important; }

/* Responsive en-tête / accueil */
@media (max-width: 1280px) {
	.cmk-perk { display: none; }
	.cmk-nav a { padding: 13px 9px; font-size: 13px; }
}
@media (max-width: 980px) {
	.cmk-top { flex-wrap: wrap; gap: 12px; }
	.cmk-burger { display: block; }
	.cmk-burger .cmk-ico { width: 28px; height: 28px; }
	.cmk-logo-name { font-size: 34px; }
	.cmk-search { order: 3; flex-basis: 100%; max-width: none; }
	.cmk-nav { display: none; }
	.cmk-nav.is-open { display: block; }
	.cmk-nav ul { flex-direction: column; padding: 6px 0; }
	.cmk-tiles { grid-template-columns: repeat(3, 1fr); }
	.cmk-banners { grid-template-columns: 1fr; }
	.cmk-slider { height: 500px; }
	.cmk-slide-img { width: 100%; opacity: .3; }
	.cmk-slide-img::before { display: none; }
	.cmk-slide-txt { padding: 24px; }
	.cmk-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.cmk-wrap { padding: 0 14px; }
	.cmk-logo-l2 { font-size: 8px; letter-spacing: 1.6px; }
	.cmk-icon-link > span:last-child { display: none; }
	.cmk-tiles { grid-template-columns: repeat(2, 1fr); }
	.cmk-slide-brand { white-space: normal; }
	.cmk-slide-kicker { margin-left: 0; font-size: 17px; }
	.cmk-slide-perks { gap: 12px; }
	.cmk-arrow { display: none; }
	.cmk-footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cmk-slide { transition: none; } }
