/* KHAYAL : ajustements propres à WordPress / Elementor (chargé APRÈS khayal.css). */

/* Les sections KHAYAL occupent toute la largeur : le conteneur Elementor qui les accueille perd ses marges intérieures. */
.elementor-widget[data-widget_type^="khayal-"] { width: 100%; margin: 0 !important; }
.e-con:has(> .elementor-widget[data-widget_type^="khayal-"]),
.e-con-inner:has(> .elementor-widget[data-widget_type^="khayal-"]) { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; padding: 0 !important; gap: 0 !important; max-width: none !important; }
.elementor-section:has(.elementor-widget[data-widget_type^="khayal-"]) > .elementor-container { max-width: none; }
.elementor-section:has(.elementor-widget[data-widget_type^="khayal-"]) .elementor-column > .elementor-widget-wrap { padding: 0; }

/* sections plein écran : pas de débordement horizontal causé par les animations */
.kh-root { position: relative; width: 100%; }
/* aucune page ne défile de côté sur mobile, même si un élément du thème dépasse (clip ne gêne pas position: sticky) */
html:has(.kh-root), body:has(.kh-root) { overflow-x: clip; }

/* ═══ En-tête KHAYAL (modèle En-tête du Constructeur de thème) ═══ */
.kh-head-root { position: relative; z-index: 60; }
.kh-head { position: fixed; inset: 0 0 auto 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; transition: transform .6s var(--ease); }
.kh-head.is-away { transform: translateY(-100%); }
body .kh-root .kh-head .header { position: relative; inset: auto; }
body .kh-root .kh-head .header.is-away { transform: none; }
.kh-topbar { margin: 0; padding: 8px var(--pad); background: #1d1712; color: #f3dfa8; text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.kh-topbar a { color: inherit; text-decoration: none; }
body .kh-root .menu { top: var(--wp-admin--admin-bar--height, 0px); padding-top: calc(var(--kh-head-h, 96px) + 28px); }
html.kh-menu-open { overflow: hidden; }
/* pages sans ouverture plein écran (boutique, fiches, panier…) : le contenu commence sous l'en-tête */
html.kh-no-hero body { padding-top: var(--kh-head-h, 96px); }
html.kh-no-hero body .kh-root .wc { padding-top: 36px; }
/* le cadre « Elementor » des modèles d'en-tête et de pied de page ne doit pas ajouter de marges */
.elementor-location-header .e-con:has(.kh-head-root), .elementor-location-footer .e-con:has(.kh-root) { padding: 0 !important; }

/* ═══ Fiche produit : formulaire d'ajout au panier natif de WooCommerce, au style KHAYAL ═══ */
body .kh-root .kh-wc-form { margin-bottom: 8px; }
body .kh-root .kh-wc-form form.cart { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin: 0 0 8px; }
body .kh-root .kh-wc-form form.variations_form { display: block; }
body .kh-root .kh-wc-form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
/* les boutons de taille KHAYAL remplacent la liste déroulante */
body .kh-root .kh-wc-form.has-sizes table.variations, body .kh-root .kh-wc-form .woocommerce-variation-price, body .kh-root .kh-wc-form .reset_variations { display: none !important; }
body .kh-root .kh-wc-form table.variations { width: 100%; margin-bottom: 16px; border: 0; }
body .kh-root .kh-wc-form table.variations th, body .kh-root .kh-wc-form table.variations td { padding: 4px 0; border: 0; background: none; text-align: start; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
body .kh-root .kh-wc-form .woocommerce-variation-availability { width: 100%; font-size: 13px; color: var(--ink-2); }
body .kh-root .kh-wc-form .quantity { display: inline-flex; }
body .kh-root .kh-wc-form .single_add_to_cart_button { flex: 1; min-width: 220px; min-height: 52px; }
/* le thème (style « inline » .woocommerce button.button) impose fond blanc et couleurs : le cadre doré KHAYAL reprend la main */
body .kh-root .kh-wc-form .single_add_to_cart_button.btn-dark { display: inline-flex; align-items: center; justify-content: center; text-align: center; background: transparent; border: 1px solid var(--gold); border-radius: 0; color: var(--gold-text); padding: 0 34px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; line-height: 1.2; }
body .kh-root .kh-wc-form .single_add_to_cart_button.btn-dark:hover, body .kh-root .kh-wc-form .single_add_to_cart_button.btn-dark:focus-visible { background: transparent; color: #fff; font-weight: 700; border-color: var(--gold-deep, #9c7724); }
/* fiche de luxe sous l'en-tête WordPress : la galerie touche l'en-tête, le panneau d'achat reste sous lui */
html.kh-no-hero body .kh-root .wc.is-luxe { padding-top: 0; }
html.kh-no-hero body .kh-root .wc.is-luxe .wc-info { top: var(--kh-head-h, 96px); min-height: calc(100vh - var(--kh-head-h, 96px)); padding-top: 48px; }
html.kh-no-hero body .kh-root .wc.is-luxe .lx-panel { height: calc(100vh - var(--kh-head-h, 96px)); }
body .kh-root .kh-wc-form .single_add_to_cart_button.disabled { opacity: .55; cursor: not-allowed; }
/* champs ajoutés par d'autres extensions (choix des parfums des packs…) */
body .kh-root .kh-wc-form form.cart > *:not(.quantity):not(button):not(.woocommerce-variation-add-to-cart) { width: 100%; }
body .kh-root .kh-wc-form select, body .kh-root .kh-wc-form input[type="text"], body .kh-root .kh-wc-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); background: #fbf8f3; font-size: 14px; }
body .kh-root .kh-wc-form label { display: block; margin: 10px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.kh-product-root .wc-bar { position: fixed; }
.woocommerce-notices-wrapper:empty { display: none; }

/* ═══ Boutons : texte toujours centré et lisible (la remise à zéro du thème alignait le texte à gauche) ═══ */
body .kh-root :is(.btn, .tile-quick, .fam, .kh-qb, .button, button[type="submit"]) { text-align: center; }
body .kh-root .tile-quick { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-indent: .2em; color: var(--gold-text); }
body .kh-root .tile-quick:hover { color: #fff; }
body .kh-root .tile-quick .tq-label { display: block; width: 100%; text-align: center; }
body .kh-root .btn { font-weight: 600; }

/* ═══ Quantité : sélecteur − / + (remplace le champ seul de WooCommerce) ═══ */
body .kh-root .quantity.kh-q { display: inline-flex; align-items: stretch; min-height: 52px; border: 1px solid rgba(29, 23, 18, .28); background: #fffdf9; }
body .kh-root .quantity.kh-q .kh-qb { display: flex; align-items: center; justify-content: center; width: 46px; min-height: 50px; font-size: 22px; font-weight: 400; line-height: 1; color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
body .kh-root .quantity.kh-q .kh-qb:hover, body .kh-root .quantity.kh-q .kh-qb:focus-visible { background: var(--gold-deep, #9c7724); color: #fff; }
body .kh-root .quantity.kh-q .kh-qb:disabled { opacity: .35; cursor: default; background: none; color: var(--ink); }
body .kh-root .quantity.kh-q input.qty { width: 52px; min-height: 50px; margin: 0; padding: 0; border: 0; border-inline: 1px solid var(--line); background: transparent; text-align: center; font-size: 17px; font-weight: 600; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
/* boutons − / + ajoutés par une autre extension : remplacés par ceux de KHAYAL */
body .kh-root .quantity.kh-q > :is(.minus, .plus, input[type="button"]) { display: none !important; }
body .kh-root .kp-woo .coupon #coupon_code { width: 220px !important; min-width: 0; }
/* le panier se met à jour tout seul quand la quantité change */
body .kh-root .kp-woo .js-auto-cart [name="update_cart"] { display: none !important; }
body .kh-root .quantity.kh-q input.qty::-webkit-inner-spin-button, body .kh-root .quantity.kh-q input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ═══ Arabe : pas d'espacement entre les lettres (il casse les liaisons), boutons en plus grand ═══ */
html[lang="ar"] body .kh-root :is(.btn, .button, button, .tile-quick, .kicker, .fam, .kp-crumbs, .kp-card-date, .kp-more, label, th, .kh-topbar) { letter-spacing: 0 !important; text-indent: 0 !important; }
html[lang="ar"] .kh-topbar { letter-spacing: 0; }
html[lang="ar"] body .kh-root :is(.kh-wc-form .single_add_to_cart_button, .kp-woo .button, .kp-woo #place_order, .tile-quick) { font-size: 15px; }

/* ═══ Pages au style KHAYAL : panier, commande, boutique, blog, articles, pages légales (templates/khayal-page.php) ═══ */
.kh-page-root { display: block; background: var(--ivory); min-height: 60vh; }
body .kh-root .kp { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad) 120px; }
body .kh-root .kp-head { padding: 48px 0 36px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
body .kh-root .kp-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
body .kh-root .kp-crumbs a { color: var(--ink-2); transition: color .3s; }
body .kh-root .kp-crumbs a:hover { color: var(--gold-text); }
body .kh-root .kp-crumbs span[aria-hidden] { opacity: .5; }
body .kh-root .kp-head .kicker { margin-bottom: 12px; }
body .kh-root .kp-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.005em; color: var(--ink); }
body .kh-root .kp-lead { max-width: 640px; margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
body .kh-root .kp-empty { padding: 40px 0; font-size: 16px; color: var(--ink-2); }
body .kh-root .kp-empty a, body .kh-root .kp-prose a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
body .kh-root .kp-actions { margin-top: 8px; }
body .kh-root .kp-h2 { margin: 0 0 32px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); color: var(--ink); }

/* textes (pages légales, articles) */
body .kh-root .kp-prose { max-width: 780px; }
body .kh-root .kp-prose h2 { margin: 44px 0 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: var(--ink); }
body .kh-root .kp-prose h3 { margin: 32px 0 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--ink); }
body .kh-root .kp-prose > :first-child { margin-top: 0; }
body .kh-root .kp-prose p, body .kh-root .kp-prose li { font-size: 17px; line-height: 1.8; color: #4f4337; }
body .kh-root .kp-prose p { margin: 0 0 16px; }
body .kh-root .kp-prose ul { margin: 0 0 18px; padding-inline-start: 22px; list-style: disc; }
body .kh-root .kp-prose li { margin-bottom: 6px; }
body .kh-root .kp-prose li::marker { color: var(--gold); }
body .kh-root .kp-prose strong, body .kh-root .kp-prose b { font-weight: 600; color: var(--ink); }
body .kh-root .kp-prose blockquote { margin: 28px 0; padding: 6px 0 6px 24px; border-inline-start: 2px solid var(--gold); font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); }
body .kh-root .kp-updated { margin-top: 48px; font-size: 13px; color: var(--ink-2); }
body .kh-root .kp-cover { margin: 0 0 44px; aspect-ratio: 21 / 9; overflow: hidden; background: var(--paper); }
body .kh-root .kp-cover img { width: 100%; height: 100%; object-fit: cover; }
body .kh-root .kp-related { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--line); }

/* blog : cartes d'articles */
body .kh-root .kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 48px 36px; }
body .kh-root .kp-card { display: flex; flex-direction: column; }
body .kh-root .kp-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 60%, #f3e2b8 0%, #c9a24a 100%); }
body .kh-root .kp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
body .kh-root .kp-card:hover .kp-card-media img { transform: scale(1.05); }
body .kh-root .kp-card-ph { display: flex; height: 100%; align-items: center; justify-content: center; font-family: var(--arabic); font-size: 64px; color: rgba(255, 255, 255, .85); }
body .kh-root .kp-card-body { display: grid; gap: 10px; padding-top: 22px; }
body .kh-root .kp-card-date { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
body .kh-root .kp-card h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--ink); }
body .kh-root .kp-card h2 a:hover { color: var(--gold-text); }
body .kh-root .kp-card-text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
body .kh-root .kp-more { justify-self: start; margin-top: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
body .kh-root .kp-pages, body .kh-root .navigation.pagination { margin-top: 56px; text-align: center; }
body .kh-root .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; margin: 0 4px; border: 1px solid var(--line); font-size: 14px; }
body .kh-root .page-numbers.current { border-color: var(--gold); color: var(--gold-text); font-weight: 600; }

/* boutique et catégories */
body .kh-root .kp-shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: -12px 0 40px; }
body .kh-root .kp-chips.families { flex: 1; margin: 0; }
body .kh-root .kp-chips .fam { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 18px; }
body .kh-root .kp-discover.discover { padding: 0; background: none; }
body .kh-root .kp-shop .tiles[hidden] { display: grid; }

/* panier, commande, compte (formulaires WooCommerce) */
body .kh-root .kp-woo { color: var(--ink); font-size: 15px; }
body .kh-root .kp-woo :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews, .cart-empty) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 28px; padding: 18px 22px; border: 0; border-inline-start: 3px solid var(--gold); background: var(--paper); color: var(--ink); font-size: 15px; list-style: none; }
body .kh-root .kp-woo .woocommerce-error { border-color: var(--burgundy); }
body .kh-root .kp-woo :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before { display: none; }
body .kh-root .kp-woo a:not(.button):not(.remove) { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
body .kh-root .kp-woo :is(.button, button.button, a.button, input.button), body .kh-root .kp-woo #place_order { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 1px solid var(--gold) !important; border-radius: 0; background: transparent !important; color: var(--gold-text) !important; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; line-height: 1.2; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
/* le thème impose fond blanc et couleur avec !important (.woocommerce button.button) : KHAYAL reprend la main */
body .kh-root .kp-woo :is(.button, button.button, a.button, input.button):hover { background: var(--gold-deep, #9c7724) !important; border-color: var(--gold-deep, #9c7724) !important; color: #fff !important; }
body .kh-root .kp-woo :is(.checkout-button, #place_order, .button.alt) { width: 100%; min-height: 58px; border-color: var(--gold-deep, #9c7724) !important; background: linear-gradient(135deg, #b8913c 0%, var(--gold-deep, #9c7724) 100%) !important; color: #fff !important; font-size: 13px; font-weight: 700; }
body .kh-root .kp-woo :is(.checkout-button, #place_order, .button.alt):hover { background: #7d5f1c !important; border-color: #7d5f1c !important; color: #fff !important; }
body .kh-root .kp-woo table.shop_table :is(td.product-total, td.product-subtotal, tfoot td) { white-space: nowrap; text-align: end; }
body .kh-root .kp-woo #payment ul.payment_methods li label { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); }
body .kh-root .kp-woo :is(.button, button.button):disabled, body .kh-root .kp-woo .button.disabled { opacity: .45; cursor: not-allowed; }
body .kh-root .kp-woo table.shop_table { width: 100%; margin: 0 0 24px; border: 0; border-collapse: collapse; border-radius: 0; background: none; }
body .kh-root .kp-woo table.shop_table :is(th, td) { padding: 18px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: start; vertical-align: middle; color: var(--ink); }
body .kh-root .kp-woo table.shop_table thead th { padding-top: 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
body .kh-root .kp-woo table.shop_table .product-thumbnail img { width: 88px; height: 88px; object-fit: contain; background: var(--paper); }
body .kh-root .kp-woo table.shop_table .product-name a { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--ink); text-decoration: none; }
@media (max-width: 767px) { body .kh-root .kp-woo table.shop_table .product-name a { font-size: 18px; } }
body .kh-root .kp-woo table.shop_table .product-name dl.variation { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
body .kh-root .kp-woo table.shop_table .product-name dl.variation :is(dt, dd, p) { display: inline; margin: 0; }
body .kh-root .kp-woo table.shop_table :is(td.product-price, td.product-subtotal) { font-size: 16px; font-weight: 500; white-space: nowrap; }
body .kh-root .kp-woo a.remove { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2) !important; font-size: 20px; line-height: 1; text-decoration: none; }
body .kh-root .kp-woo a.remove:hover { border-color: var(--burgundy); background: var(--burgundy); color: #fff !important; }
body .kh-root .kp-woo td.actions { padding-top: 24px; }
body .kh-root .kp-woo .coupon { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
body .kh-root .kp-woo .coupon label { display: none; }
body .kh-root .kp-woo :is(input.input-text:not(.qty), textarea, select, .select2-selection) { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(29, 23, 18, .22); border-radius: 0; background: #fffdf9; color: var(--ink); font-size: 15px; line-height: 1.4; box-shadow: none; }
body .kh-root .kp-woo .coupon input.input-text { width: 220px; }
body .kh-root .kp-woo :is(input.input-text, textarea, select):focus { border-color: var(--gold); outline: 2px solid rgba(184, 145, 60, .25); outline-offset: 0; }
body .kh-root .kp-woo .select2-container .select2-selection--single { height: 50px; display: flex; align-items: center; }
body .kh-root .kp-woo .select2-container .select2-selection__arrow { height: 48px; }
body .kh-root .kp-woo .form-row { margin: 0 0 18px; padding: 0; }
body .kh-root .kp-woo .form-row label { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; color: var(--ink-2); }
body .kh-root .kp-woo .form-row .required { color: var(--burgundy); text-decoration: none; border: 0; }
body .kh-root .kp-woo :is(h2, h3) { margin: 0 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: var(--ink); text-transform: none; letter-spacing: 0; }
body .kh-root .kp-woo .cart-collaterals { display: flex; justify-content: flex-end; margin-top: 40px; }
body .kh-root .kp-woo .cart_totals { width: 100%; max-width: 480px; float: none; padding: 32px; background: var(--paper); }
body .kh-root .kp-woo .cart_totals table.shop_table :is(th, td) { padding: 14px 0; }
body .kh-root .kp-woo .cart_totals .order-total :is(th, td), body .kh-root .kp-woo .order-total :is(th, td) { font-size: 18px; font-weight: 700; border-bottom: 0; }
body .kh-root .kp-woo .wc-proceed-to-checkout { padding: 12px 0 0; }
body .kh-root .kp-woo .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
body .kh-root .kp-woo .woocommerce-shipping-calculator, body .kh-root .kp-woo .shipping-calculator-button { display: none; }
body .kh-root .kp-woo .return-to-shop { margin-top: 8px; }
/* commande : informations à gauche, récapitulatif à droite */
@media (min-width: 980px) {
  body .kh-root .kp-woo form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 64px; align-items: start; }
  body .kh-root .kp-woo form.checkout > * { grid-column: 1; }
  body .kh-root .kp-woo form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; }
  body .kh-root .kp-woo form.checkout > #order_review { grid-column: 2; grid-row: 2 / span 6; position: sticky; top: calc(var(--kh-head-h, 96px) + 20px); }
  body .kh-root .kp-woo form.checkout > #customer_details { grid-row: 1 / span 7; }
}
body .kh-root .kp-woo .col2-set { width: 100%; }
body .kh-root .kp-woo .col2-set :is(.col-1, .col-2) { float: none; width: 100%; max-width: none; padding: 0; }
body .kh-root .kp-woo #order_review { padding: 30px; background: var(--paper); }
body .kh-root .kp-woo #order_review_heading { margin-bottom: 0; padding: 30px 30px 0; background: var(--paper); }
body .kh-root .kp-woo #payment { background: none; border-radius: 0; }
body .kh-root .kp-woo #payment ul.payment_methods { margin: 0 0 18px; padding: 0; border: 0; list-style: none; }
body .kh-root .kp-woo #payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
body .kh-root .kp-woo #payment .payment_box { margin: 10px 0 0; padding: 14px 16px; background: #fffdf9; color: var(--ink-2); font-size: 14px; font-weight: 400; }
body .kh-root .kp-woo #payment .payment_box::before { display: none; }
body .kh-root .kp-woo #payment div.form-row { padding: 0; }
body .kh-root .kp-woo .woocommerce-privacy-policy-text p { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
body .kh-root .kp-woo .woocommerce-form-coupon-toggle .woocommerce-info { justify-content: flex-start; }
body .kh-root .kp-woo form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 20px; border: 1px solid var(--line); }
body .kh-root .kp-woo form.checkout_coupon .form-row { flex: 1; margin: 0; }
body .kh-root .kp-woo .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0 0 32px; padding: 24px; background: var(--paper); list-style: none; }
body .kh-root .kp-woo .woocommerce-order-overview li { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
body .kh-root .kp-woo .woocommerce-order-overview strong { display: block; margin-top: 6px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
@media (max-width: 767px) {
  body .kh-root .kp-head { padding: 28px 0 26px; margin-bottom: 30px; }
  body .kh-root .kp-woo table.shop_table_responsive tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  body .kh-root .kp-woo table.shop_table_responsive thead { display: none; }
  body .kh-root .kp-woo table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border: 0; text-align: end; }
  body .kh-root .kp-woo table.shop_table_responsive td::before { content: attr(data-title); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
  body .kh-root .kp-woo table.shop_table_responsive td:is(.product-remove, .product-thumbnail, .actions)::before { display: none; }
  body .kh-root .kp-woo table.shop_table_responsive td.product-thumbnail { justify-content: center; }
  body .kh-root .kp-woo td.actions { display: grid; gap: 12px; }
  body .kh-root .kp-woo .coupon { display: grid; grid-template-columns: 1fr; }
  body .kh-root .kp-woo .coupon #coupon_code { width: 100% !important; }
  body .kh-root .kp-woo .cart_totals, body .kh-root .kp-woo #order_review { padding: 22px; }
  body .kh-root .kp-woo #order_review_heading { padding: 22px 22px 0; }
  body .kh-root .kp-woo .form-row:is(.form-row-first, .form-row-last) { float: none; width: 100%; }
}

/* ═══ Aperçu de l'éditeur Elementor : les sections animées s'affichent à plat, tous leurs textes visibles ═══ */
.kh-editor .kh-root .hero.is-static,
.kh-editor .kh-root .dahab.is-static { height: auto; }
.kh-editor .kh-root .is-static .dh-sticky { position: relative; height: auto; min-height: 70vh; display: block; }
.kh-editor .kh-root .is-static .dh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kh-editor .kh-root .is-static .dh-step,
.kh-editor .kh-root .hero.is-static .h-2,
.kh-editor .kh-root .hero.is-static .h-3,
.kh-editor .kh-root .hero.is-static .hero-meta { display: flex; position: relative; inset: auto; opacity: 1 !important; transform: none !important; pointer-events: auto; padding: 8vh var(--pad); width: auto; }
.kh-editor .kh-root .film { height: auto; }
.kh-editor .kh-root .film-sticky { position: relative; height: 70vh; }
.kh-editor .kh-root .film-frame { clip-path: none !important; }
.kh-editor .kh-root .fw { opacity: 1 !important; transform: none !important; }
.kh-editor .kh-root .statement .w { opacity: 1; }

/* ═══ Panier en panneau : à droite sur ordinateur, fenêtre qui monte du bas sur mobile ═══ */
.kh-cart-root { position: relative; z-index: 2147483000; }
.kh-cart-root:not(.is-open) .kc-veil { pointer-events: none; }
html.kh-cart-open { overflow: hidden; }
body .kh-root .kc-veil { position: fixed; inset: 0; z-index: 2147483000; background: rgba(24, 18, 12, .42); opacity: 0; transition: opacity .4s var(--ease); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
body .kh-root .kc-veil.is-on { opacity: 1; }
body .kh-root .kc { position: fixed; z-index: 2147483001; top: var(--wp-admin--admin-bar--height, 0px); right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--ivory); color: var(--ink); box-shadow: -24px 0 70px rgba(0, 0, 0, .18); transform: translateX(105%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s; outline: none; }
html[dir="rtl"] body .kh-root .kc { right: auto; left: 0; transform: translateX(-105%); box-shadow: 24px 0 70px rgba(0, 0, 0, .18); }
body .kh-root .kc.is-open, html[dir="rtl"] body .kh-root .kc.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
body .kh-root .kc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
body .kh-root .kc-title { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; }
body .kh-root .kc-n { font-family: var(--sans); font-size: 14px; color: var(--ink-2); vertical-align: middle; }
body .kh-root .kc-x { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); cursor: pointer; transition: background .3s, border-color .3s; }
body .kh-root .kc-x:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
body .kh-root .kc-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
body .kh-root .kc-msg { display: flex; align-items: center; gap: 12px; margin: 18px 24px 0; padding: 14px 16px; border-radius: 10px; background: linear-gradient(135deg, #f6ecd3 0%, #efe0bd 100%); color: #5a4211; font-size: 14px; font-weight: 500; line-height: 1.4; box-shadow: inset 0 0 0 1px rgba(184, 145, 60, .35); }
body .kh-root .kc-msg[hidden] { display: none; }
body .kh-root .kc-msg i { display: flex; flex: 0 0 30px; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold-deep, #9c7724); }
body .kh-root .kc-msg i svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 0; }
body .kh-root .kc-msg.is-pop { animation: kcPop .6s var(--ease); }
body .kh-root .kc-msg.is-pop i svg { animation: kcTick .6s .15s var(--ease) both; }
@keyframes kcPop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes kcTick { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
body .kh-root .kc-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px 24px 12px; transition: opacity .3s; }
body .kh-root .kc.is-loading .kc-body { opacity: .45; }
body .kh-root .kc-list { margin: 0; padding: 0; list-style: none; }
body .kh-root .kc-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
body .kh-root .kc-item img, body .kh-root .kc-ph { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 6px; }
body .kh-root .kc-name { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.2; color: var(--ink); }
body .kh-root .kc-meta { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
body .kh-root .kc-line { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
body .kh-root .kc-q { display: inline-flex; align-items: center; border: 1px solid rgba(29, 23, 18, .22); border-radius: 999px; background: #fff; }
body .kh-root .kc-q button { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; font-size: 17px; color: var(--ink); cursor: pointer; border-radius: 50%; }
body .kh-root .kc-q button:hover { background: var(--paper); }
body .kh-root .kc-q b { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
body .kh-root .kc-rm { font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body .kh-root .kc-rm:hover { color: var(--burgundy); }
body .kh-root .kc-price { font-size: 15px; font-weight: 600; white-space: nowrap; }
body .kh-root .kc-empty { padding: 48px 0; text-align: center; color: var(--ink-2); }
body .kh-root .kc-empty[hidden] { display: none; }
body .kh-root .kc-empty p { margin-bottom: 20px; font-size: 15px; }
body .kh-root .kc-foot { padding: 18px 24px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fbf7f0; }
body .kh-root .kc-foot[hidden] { display: none; }
body .kh-root .kc-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
body .kh-root .kc-row b { font-size: 20px; font-weight: 700; }
body .kh-root .kc-note { margin: 6px 0 16px; font-size: 12.5px; color: var(--ink-2); }
body .kh-root .kc-go { display: flex; min-height: 56px; align-items: center; justify-content: center; background: linear-gradient(135deg, #b8913c 0%, var(--gold-deep, #9c7724) 100%); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: filter .3s; }
body .kh-root .kc-go:hover { color: #fff; filter: brightness(.92); }
body .kh-root .kc-cart { display: flex; min-height: 48px; align-items: center; justify-content: center; margin-top: 10px; border: 1px solid var(--gold); color: var(--gold-text); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
body .kh-root .kc-cart:hover { background: var(--gold-deep, #9c7724); border-color: var(--gold-deep, #9c7724); color: #fff; }
html[lang="ar"] body .kh-root :is(.kc-go, .kc-cart) { letter-spacing: 0; font-size: 15px; }
@media (max-width: 767px) {
  body .kh-root .kc, html[dir="rtl"] body .kh-root .kc { top: auto; left: 0; right: 0; width: 100%; max-height: 88vh; max-height: 88svh; border-radius: 20px 20px 0 0; transform: translateY(105%); box-shadow: 0 -20px 60px rgba(0, 0, 0, .22); }
  body .kh-root .kc.is-open, html[dir="rtl"] body .kh-root .kc.is-open { transform: none; }
  body .kh-root .kc::before { content: ''; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(29, 23, 18, .18); }
  body .kh-root .kc-head { padding: 22px 20px 14px; }
  body .kh-root .kc-title { font-size: 24px; }
  body .kh-root .kc-msg { margin: 14px 20px 0; }
  body .kh-root .kc-body { padding: 4px 20px 10px; }
  body .kh-root .kc-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }
  body .kh-root .kc-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
  body .kh-root .kc-item img, body .kh-root .kc-ph { width: 64px; height: 64px; }
}

/* ═══ Page de remerciement (commande reçue) ═══ */
body .kh-root .kp-woo .woocommerce-order > .woocommerce-notice--success, body .kh-root .kp-woo .woocommerce-thankyou-order-received { display: none; }
body .kh-root .kp-woo ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0 0 48px; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; list-style: none; }
body .kh-root .kp-woo ul.woocommerce-order-overview::before, body .kh-root .kp-woo ul.woocommerce-order-overview::after { display: none; }
body .kh-root .kp-woo ul.woocommerce-order-overview li { float: none; margin: 0; padding: 22px 24px; border: 0; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; color: var(--ink-2); }
body .kh-root .kp-woo ul.woocommerce-order-overview li strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
body .kh-root .kp-woo ul.woocommerce-order-overview li.order strong { color: var(--gold-text); }
body .kh-root .kp-woo .woocommerce-order > p { margin: 0 0 32px; font-size: 15px; color: var(--ink-2); }
body .kh-root .kp-woo .woocommerce-order-details, body .kh-root .kp-woo .woocommerce-customer-details { margin: 0 0 40px; padding: 30px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--line); }
body .kh-root .kp-woo .woocommerce-order-details__title, body .kh-root .kp-woo .woocommerce-column__title { margin-bottom: 18px; font-size: 26px; }
body .kh-root .kp-woo .woocommerce-table--order-details :is(th, td) { padding: 14px 0; }
body .kh-root .kp-woo .woocommerce-table--order-details tfoot th { font-weight: 500; color: var(--ink-2); }
body .kh-root .kp-woo .woocommerce-table--order-details tfoot tr:last-child :is(th, td) { font-size: 18px; font-weight: 700; color: var(--ink); border-bottom: 0; }
body .kh-root .kp-woo .woocommerce-customer-details address { margin: 0; padding: 0; border: 0; font-style: normal; font-size: 15px; line-height: 1.8; color: var(--ink); }
body .kh-root .kp-woo .woocommerce-customer-details address p { margin: 6px 0 0; }
body .kh-root .kp-woo .col2-set.addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
body .kh-root .kp-woo .col2-set.addresses::before, body .kh-root .kp-woo .col2-set.addresses::after { display: none; }
body .kh-root .kp-thanks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 44px; padding: 0; list-style: none; counter-reset: kpstep; }
body .kh-root .kp-thanks li { position: relative; padding: 24px 22px 22px; border-radius: 14px; background: linear-gradient(160deg, #fbf3e1 0%, #f3e6c8 100%); box-shadow: inset 0 0 0 1px rgba(184, 145, 60, .3); }
body .kh-root .kp-thanks li::before { counter-increment: kpstep; content: counter(kpstep); display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; background: var(--gold-deep, #9c7724); color: #fff; font-size: 14px; font-weight: 700; }
body .kh-root .kp-thanks h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }
body .kh-root .kp-thanks p { margin: 0; font-size: 14px; line-height: 1.6; color: #5d5043; }
body .kh-root .kp-thanks-icon { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-bottom: 22px; border-radius: 50%; background: var(--gold-deep, #9c7724); box-shadow: 0 12px 30px rgba(156, 119, 36, .3); }
body .kh-root .kp-thanks-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body .kh-root .kp-thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 767px) {
  body .kh-root .kp-thanks { grid-template-columns: 1fr; }
  body .kh-root .kp-woo .woocommerce-order-details, body .kh-root .kp-woo .woocommerce-customer-details { padding: 22px 18px; }
  body .kh-root .kp-woo ul.woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
}body .kh-root .kp-thanks-icon { margin-top: 44px; }
body .kh-root .kp-woo .woocommerce-Price-amount { white-space: nowrap; }
body .kh-root .kp-woo .woocommerce-table--order-details :is(tr, th, td), body .kh-root .kp-woo .woocommerce-table--order-details tfoot { background: transparent !important; }
body .kh-root .kp-woo .woocommerce-table--order-details td:last-child, body .kh-root .kp-woo .woocommerce-table--order-details th:last-child { text-align: end; }
/* ═══ Commande : le champ du code promo est affiché d'office (plus besoin de cliquer sur « Avez-vous un code promo ? ») ═══ */
body .kh-root .kp-woo .woocommerce-form-coupon-toggle { display: none !important; }
body .kh-root .kp-woo form.checkout_coupon { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 36px; padding: 22px 24px; border: 1px solid rgba(184, 145, 60, .45); border-radius: 12px; background: #fff; }
body .kh-root .kp-woo form.checkout_coupon > p:not(.form-row):first-child { flex: 1 0 100%; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
body .kh-root .kp-woo form.checkout_coupon .form-row { flex: 1 1 220px; margin: 0; float: none; width: auto; }
body .kh-root .kp-woo form.checkout_coupon .form-row-last { flex: 0 0 auto; }
body .kh-root .kp-woo form.checkout_coupon .clear { display: none; }
html[lang="ar"] body .kh-root .kp-woo form.checkout_coupon > p:not(.form-row):first-child { letter-spacing: 0; font-size: 14px; }
@media (max-width: 767px) { body .kh-root .kp-woo form.checkout_coupon .form-row-last { flex: 1 0 100%; } body .kh-root .kp-woo form.checkout_coupon .button { width: 100%; } }
/* ═══ Vignettes : vrai bouton « Ajouter au panier » / « Composer » (plus de simple « + » ni de bloc étiré) ═══ */
body .kh-root .tile-media > a.tile-quick, body .kh-root .tile-media > .tile-quick { display: flex; height: auto; align-items: center; justify-content: center; }
body .kh-root .tile[hidden] { display: none !important; }
@media (max-width: 760px) {
  body .kh-root .tile-quick, html[dir="rtl"] body .kh-root .tile-quick { left: 6px; right: 6px; bottom: 6px; width: auto; height: auto; min-height: 38px; padding: 0 6px; display: flex; transform: none; background: rgba(255, 253, 249, .95); font-size: 9.5px; letter-spacing: .1em; text-indent: .1em; }
  body .kh-root .tile-quick .tq-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
  body .kh-root .tile-quick .tq-plus { display: none; }
  html[lang="ar"] body .kh-root .tile-quick { font-size: 13px; }
}

/* ═══ En-tête : collant en haut de l'écran (premier élément de la page) ═══ */
.kh-head-root.is-moved { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); height: 0; z-index: 60; }
.kh-head-root.is-moved .kh-head { position: absolute; top: 0; left: 0; right: 0; }
/* pages sans ouverture plein écran : l'en-tête occupe sa hauteur (le contenu commence dessous) */
html.kh-no-hero .kh-head-root.is-moved { height: var(--kh-head-h, 96px); }
html.kh-no-hero body:has(> .kh-head-root.is-moved) { padding-top: 0; }
/* avant le script (classe kh-flow posée par le serveur) : l'en-tête prend déjà sa place, rien ne bouge ensuite */
html.kh-flow.kh-no-hero body { padding-top: 0; }
html.kh-flow .kh-head-root:not(.is-moved) .kh-head { position: relative; top: 0; }

/* ═══ Vidéos bloquées (mode économie d'énergie) : l'image d'attente reste, sans bouton de lecture du système ═══ */
.kh-root video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.kh-root video::-webkit-media-controls { display: none !important; }

/* ═══ Bouton « Filtrer » des pages boutique (comme sur l'ancien site) et sa fenêtre ═══ */
body .kf-toggle.kh-root { position: fixed; z-index: 9999; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: .8px solid #b39b27; border-radius: 0; background: #b39b27; color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transform: translateX(-50%); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
body .kf-toggle.kh-root:hover { background: #9c7724; border-color: #9c7724; }
body .kf-toggle .kf-n { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 9px; background: #fff; color: #9c7724; font-size: 10px; letter-spacing: 0; }
body .kf-toggle .kf-n[hidden] { display: none; }
html[lang="ar"] body .kf-toggle.kh-root { letter-spacing: 0; font-size: 14px; }
html.kh-cart-open body .kf-toggle.kh-root { visibility: hidden; }
body .kh-root.kf { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 16px; }
body .kh-root.kf[hidden] { display: none; }
body .kh-root.kf .kf-veil { position: absolute; inset: 0; background: rgba(24, 18, 12, .45); opacity: 0; transition: opacity .3s; }
body .kh-root.kf .kf-box { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow-y: auto; padding: 22px 22px 20px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s, transform .4s var(--ease); }
body .kh-root.kf.is-on .kf-veil { opacity: 1; }
body .kh-root.kf.is-on .kf-box { opacity: 1; transform: none; }
body .kh-root.kf .kf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
body .kh-root.kf .kf-title { margin: 0; font-family: var(--serif); font-size: 26px; }
body .kh-root.kf .kf-x { width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; }
body .kh-root.kf .kf-x:hover { background: var(--paper); }
body .kh-root.kf fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
body .kh-root.kf legend { margin-bottom: 8px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
html[lang="ar"] body .kh-root.kf legend { letter-spacing: 0; font-size: 13px; }
body .kh-root.kf .kf-list { display: grid; max-height: 210px; overflow-y: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; overscroll-behavior: contain; }
body .kh-root.kf label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; }
body .kh-root.kf input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #9c7724; }
body .kh-root.kf .kf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body .kh-root.kf .kf-chips label { min-height: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
body .kh-root.kf .kf-chips label:has(input:checked) { border-color: #9c7724; background: #f6ecd3; }
body .kh-root.kf .kf-chips input { position: absolute; opacity: 0; pointer-events: none; }
body .kh-root.kf .kf-price { display: flex; align-items: center; gap: 10px; }
body .kh-root.kf .kf-price input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #f6f3ee; font-size: 15px; }
body .kh-root.kf .kf-actions { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 6px; }
body .kh-root.kf .kf-apply { order: -1; }
body .kh-root.kf .kf-apply { min-height: 50px; padding: 0 16px; background: #b39b27; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
body .kh-root.kf .kf-apply:hover { background: #9c7724; }
body .kh-root.kf .kf-reset { min-height: 40px; padding: 0 14px; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html[lang="ar"] body .kh-root.kf :is(.kf-apply, .kf-reset) { letter-spacing: 0; font-size: 14px; }
body .kh-root .kp-shop { padding-bottom: 140px; }
/* barre d'administration WordPress sur mobile (≤ 600 px) : elle défile avec la page, l'en-tête colle donc tout en haut */
@media (max-width: 600px) { .kh-head-root.is-moved { top: 0; } }

/* ═══ Sélecteur de langue : liens vers /ar/ et /en/ (même apparence que les anciens boutons) ═══ */
body .kh-root .lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; padding: 0 8px; border-radius: 999px; background: transparent; color: var(--ink-2); font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-decoration: none; transition: background .3s, color .3s; }
body .kh-root .lang a[lang="ar"] { font-family: 'Amiri', serif; font-size: 16px; letter-spacing: 0; line-height: 1; }
body .kh-root .lang a:hover { color: var(--gold-text); }
body .kh-root .lang a[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
@media (max-width: 900px) { body .kh-root .lang a { min-width: 28px; padding: 0 5px; } }
@media (max-width: 400px) { body .kh-root .lang a { min-width: 26px; height: 28px; padding: 0 4px; font-size: 10px; } }
/* ═══ Texte et questions fréquentes des pages boutique, catégories, marques ═══ */
body .kh-root .kp-seo { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
body .kh-root .kp-seo .kp-prose { max-width: 820px; }
body .kh-root .kp-seo .kp-prose > h2:first-child { margin-top: 0; }
body .kh-root .kp-faq { margin-top: 44px; }
body .kh-root .kp-faq h2 { margin: 0 0 14px; }
body .kh-root .kp-faq-item { border-bottom: 1px solid var(--line); }
body .kh-root .kp-faq-item summary { position: relative; display: block; padding: 18px 36px 18px 0; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); cursor: pointer; list-style: none; }
body .kh-root .kp-faq-item summary::-webkit-details-marker { display: none; }
body .kh-root .kp-faq-item summary::after { content: '+'; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--gold-text); transition: transform .3s; }
body .kh-root .kp-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
body .kh-root .kp-faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
body .kh-root .kp-faq-item > div { padding: 0 0 14px; }
html[dir="rtl"] body .kh-root .kp-faq-item summary { padding: 18px 0 18px 36px; }
@media (max-width: 600px) { body .kh-root .kp-seo, body .kh-root .kp-brands { margin-top: 48px; padding-top: 36px; } body .kh-root .kp-faq-item summary { font-size: 16px; } }
/* ═══ Packs à composer : un champ avec recherche par parfum ═══ */
body .kh-root .kpk { width: 100%; min-width: 0; margin: 4px 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbf7ef; }
body .kh-root .kpk-title { float: left; width: 100%; margin: 0 0 4px; padding: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
body .kh-root .kpk-title + * { clear: both; }
body .kh-root .kpk-count { margin: 0 0 2px; font-size: 14px; color: var(--ink); }
body .kh-root .kpk-count b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-inline-end: 4px; border-radius: 999px; background: var(--gold); color: var(--on-gold, #fff); font-size: 13px; }
body .kh-root .kpk-count em { margin-inline-start: 6px; font-style: normal; color: var(--gold-text); font-weight: 600; }
body .kh-root .kpk-help { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
body .kh-root .kpk-slot { position: relative; margin-bottom: 10px; }
body .kh-root .kpk-slot.is-open { z-index: 30; }
body .kh-root .kpk-label { display: block; margin: 0 0 5px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
body .kh-root .kpk-box { position: relative; }
body .kh-root .kpk input.kpk-in { width: 100%; height: 48px; margin: 0; padding: 0 44px 0 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c7724' stroke-width='1.8'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") no-repeat 14px 50% / 18px; font-size: 16px; color: var(--ink); box-shadow: none; transition: border-color .2s, box-shadow .2s; }
body .kh-root .kpk input.kpk-in:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .18); }
body .kh-root .kpk input.kpk-in::placeholder { color: #a39a8c; }
body .kh-root .kpk .kpk-slot.is-done input.kpk-in { border-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c7724' stroke-width='2.2'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); font-weight: 500; }
body .kh-root .kpk .kpk-slot.is-missing input.kpk-in { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
body .kh-root .kpk-clear { position: absolute; top: 50%; inset-inline-end: 6px; width: 36px; height: 36px; margin: 0; padding: 0; transform: translateY(-50%); border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; }
body .kh-root .kpk-clear:hover { background: #f1e9d8; color: var(--ink); }
body .kh-root .kpk-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: min(300px, 46vh); margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(29, 23, 18, .16); -webkit-overflow-scrolling: touch; }
body .kh-root .kpk-list li { display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
body .kh-root .kpk-list li b { font-weight: 500; font-size: 15px; color: var(--ink); }
body .kh-root .kpk-list li span { font-size: 12px; color: var(--ink-2); }
body .kh-root .kpk-list li.is-act, body .kh-root .kpk-list li:hover { background: #f6ecd3; }
body .kh-root .kpk-list li[aria-selected="true"] b { color: var(--gold-text); }
body .kh-root .kpk-list .kpk-none { cursor: default; color: var(--ink-2); font-size: 14px; }
body .kh-root .kpk-err { margin: 8px 0 0; color: #c0392b; font-size: 14px; font-weight: 500; }
html[dir="rtl"] body .kh-root .kpk input.kpk-in { padding: 0 42px 0 44px; background-position: calc(100% - 14px) 50%; }
html[dir="rtl"] body .kh-root .kpk-title { float: right; }
@media (max-width: 600px) {
  body .kh-root .kpk { padding: 14px; border-radius: 12px; }
  body .kh-root .kpk-title { font-size: 20px; }
  body .kh-root .kpk-list { max-height: 42vh; }
}
/* ═══ Commande : pays caché (toujours le Maroc), code promo dans « Informations complémentaires » ═══ */
body .kh-root .kp-woo .kh-hidden-field { display: none !important; }
/* ancienne règle du « CSS additionnel » de WordPress : libellés masqués et « Ville » écrit par dessus (doublon) */
body .kh-root .kp-woo label[for="billing_state"], body .kh-root .kp-woo label[for="billing_address_1"] { color: var(--ink-2) !important; }
body .kh-root .kp-woo label[for="billing_state"]::after, body .kh-root .kp-woo label[for="billing_address_1"]::after { content: none !important; }
body .kh-root .kp-woo .kh-coupon { margin: 18px 0 0; }
body .kh-root .kp-woo .kh-coupon label { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; color: var(--ink-2); }
html[lang="ar"] body .kh-root .kp-woo .kh-coupon label { letter-spacing: 0; font-size: 13px; }
body .kh-root .kp-woo .kh-coupon-row { display: flex; gap: 10px; }
body .kh-root .kp-woo .kh-coupon-row input.input-text { flex: 1 1 auto; min-width: 0; width: auto; min-height: 48px; font-size: 16px; text-transform: uppercase; }
body .kh-root .kp-woo .kh-coupon-apply { flex: 0 0 auto; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink) !important; border-radius: 0; background: var(--ink) !important; color: #fff !important; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
body .kh-root .kp-woo .kh-coupon-apply:hover { background: #3a2f25 !important; }
body .kh-root .kp-woo .kh-coupon-apply:disabled { opacity: .6; cursor: wait; }
body .kh-root .kp-woo .kh-coupon-msg { margin: 8px 0 0; font-size: 14px; }
body .kh-root .kp-woo .kh-coupon-msg.is-ok { color: #2f7a45; }
body .kh-root .kp-woo .kh-coupon-msg.is-bad { color: #c0392b; }
html[lang="ar"] body .kh-root .kp-woo .kh-coupon-apply { letter-spacing: 0; font-size: 14px; }
@media (max-width: 420px) { body .kh-root .kp-woo .kh-coupon-apply { padding: 0 14px; } }

/* ═══ Fenêtre « Commander sur WhatsApp » ═══ */
.kwa-root { position: relative; z-index: 2147483002; }
body .kh-root .kwa { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; }
body .kh-root .kwa-veil { position: absolute; inset: 0; background: rgba(29, 23, 18, .5); opacity: 0; transition: opacity .3s; }
body .kh-root .kwa-box { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 26px 26px 22px; border-radius: 18px; background: var(--ivory, #fbf8f3); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .35s var(--ease, ease); }
body .kh-root .kwa.is-on .kwa-veil { opacity: 1; }
body .kh-root .kwa.is-on .kwa-box { opacity: 1; transform: none; }
body .kh-root .kwa-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
body .kh-root .kwa-title { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
body .kh-root .kwa-x { width: 40px; height: 40px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 999px; background: #efe6d4; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
body .kh-root .kwa-x:hover { background: #e4d6b9; }
body .kh-root .kwa-sum { margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; background: #f1e9d8; font-size: 14px; font-weight: 500; }
body .kh-root .kwa-help { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
body .kh-root .kwa-f { display: block; margin: 0 0 12px; }
body .kh-root .kwa-f span { display: block; margin: 0 0 5px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
body .kh-root .kwa .kwa-f input, body .kh-root .kwa .kwa-f textarea { display: block; width: 100%; min-height: 48px; margin: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; box-shadow: none; }
body .kh-root .kwa-f textarea { min-height: 72px; resize: vertical; }
body .kh-root .kwa .kwa-f input:focus, body .kh-root .kwa .kwa-f textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .18); }
body .kh-root .kwa .kwa-f .is-bad { border-color: #c0392b; }
body .kh-root .kwa-err { margin: 0 0 12px; color: #c0392b; font-size: 14px; font-weight: 500; }
body .kh-root .kwa-send { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin: 4px 0 0; padding: 0 18px; border: 0; border-radius: 12px; background: #1f9d55; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .25s; }
body .kh-root .kwa-send:hover { background: #17824a; }
body .kh-root .kwa-send svg { width: 22px; height: 22px; fill: currentColor; }
html[lang="ar"] body .kh-root .kwa-f span, html[lang="ar"] body .kh-root .kwa-send { letter-spacing: 0; font-size: 14px; }
@media (max-width: 600px) {
  body .kh-root .kwa { place-items: end stretch; padding: 0; }
  body .kh-root .kwa-box { width: 100%; max-height: 92dvh; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; transform: translateY(100%); }
  body .kh-root .kwa-title { font-size: 21px; }
}
/* ═══ Liens vers les pages marques ═══ */
body .kh-root .kp-brands { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
body .kh-root .kp-brand-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
body .kh-root .kp-brand-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); transition: border-color .3s, background .3s; }
body .kh-root .kp-brand-list a:hover, body .kh-root .kp-brand-list a[aria-current] { border-color: var(--gold); background: #f6ecd3; }
body .kh-root .kp-brand-list small { color: var(--ink-2); font-size: 12px; }
body .kh-root .wc-brand-link { margin: -2px 0 14px; font-size: 13px; }
body .kh-root .wc-brand-link a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }