/* ===========================================================
   KYRIA - habillage premium e-commerce (enfant Storefront)
   Palette amethyste + creme, chrome neutre pour les pierres
   =========================================================== */
:root{
  --plum:#3a2a4d;
  --plum-deep:#241a30;
  --amethyst:#7c5ca8;
  --lav:#b9a3d6;           /* lavande clair (texte sur fond sombre) */
  --gold:#b08d57;
  --cream:#f7f4ef;
  --ivory:#fdfcfa;
  --green:#5c7a5c;
  /* alias pour les styles de base WooCommerce */
  --violet:#3a2a4d;
  --violet-deep:#241a30;
  --amethyst-soft:#f1ebf6; /* fond doux lavande (notices) */
  --paper:#ffffff;
  --ink:#262129;
  --muted:#7a7480;
  --line:#e8e2da;
  --line-2:#e0d8e6;
  --radius:14px;
  --radius-sm:9px;
  --shadow:0 10px 40px rgba(58,42,77,.12);
  --shadow-sm:0 8px 24px -14px rgba(58,42,77,.3);
  --maxw:1280px;
  --logo-cream:#faf2e7;
  /* police des titres (demande de Gael : Poppins partout) */
  --serif:"Poppins","Jost",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --sans:"Jost","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

html{scroll-behavior:smooth;}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--ivory);
  font-size:16px;
  line-height:1.6;
  font-weight:300;
  -webkit-font-smoothing:antialiased;
}
body, .site, #page{background:var(--ivory);}

h1,h2,h3,h4,.page-title,.entry-title{
  font-family:var(--serif);
  color:var(--plum-deep);
  font-weight:600;
  letter-spacing:-.01em;
  /* Poppins a une boite de glyphe de ~1.40em (ascendantes + descendantes) :
     en dessous, les accents des capitales et les jambages sortent de la ligne
     et se font rogner des qu'un parent masque le debordement. */
  line-height:1.3;
}
a{color:var(--violet);text-decoration:none;}
a:hover{color:var(--amethyst);}

.col-full{max-width:var(--maxw) !important;width:100% !important;margin-left:auto !important;margin-right:auto !important;padding-left:28px;padding-right:28px;box-sizing:border-box;}

/* ---------- Boutons ---------- */
.button,button,input[type=submit],.added_to_cart,
.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,
.woocommerce input.button,.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{
  background:var(--violet);
  color:#fff;
  font-family:var(--sans);
  font-weight:600;
  letter-spacing:.01em;
  border:none;
  border-radius:999px;
  padding:.85em 1.7em;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
  text-shadow:none;
}
.button:hover,button:hover,input[type=submit]:hover,
.woocommerce a.button:hover,.woocommerce button.button:hover,
.woocommerce input.button:hover,.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{
  background:var(--violet-deep);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:var(--shadow-sm);
}
.button.ghost,a.button.ghost{
  background:transparent;color:var(--violet);
  box-shadow:inset 0 0 0 1.5px var(--violet);
}
.button.ghost:hover{background:var(--violet);color:#fff;}

html,body,.hfeed.site{overflow-x:clip;overflow-y:visible;}
/* Home : conteneur pleine largeur (sections full-bleed du template) */
.home #content.site-content{padding:0;}
.home #content.site-content>.col-full{max-width:none !important;width:100% !important;margin:0 !important;padding:0 !important;}

/* ---------- Barre d'annonce ---------- */
.announce{background:var(--plum-deep);color:#efe6f5;text-align:center;font-size:.78rem;letter-spacing:.12em;padding:9px 16px;text-transform:uppercase}
.announce strong{color:var(--lav);font-weight:500}

/* ===========================================================
   HEADER (template Maison Lithos)
   =========================================================== */
.site-header{
  position:sticky;top:0;z-index:200;
  background:var(--logo-cream);
  border-bottom:1px solid var(--line);padding:0;margin:0 !important;
  transition:box-shadow .3s ease;
}
/* logo image du client : le fond de l entete reprend le creme du logo -> carre invisible */
.logo--img{grid-column:2;display:block;line-height:0;}
.logo--img img{height:118px;width:auto;display:block;margin:0 auto;transition:height .25s ease;}
.hbar:has(.logo--img){padding:6px 0;}
.site-header.is-stuck .logo--img img{height:74px;}
@media(max-width:900px){.logo--img img{height:78px;}}
.site-header.is-stuck{box-shadow:0 8px 30px -22px rgba(58,42,77,.5);}
.site-header .col-full{max-width:1280px;padding:0 28px;border:none;margin:0 auto;}

.hbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;padding:18px 0;}
.hsearch{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:40px;padding:9px 16px;max-width:300px;background:#fff;color:var(--muted);
  /* Storefront met margin-bottom:1.618em sur tout <form> : la marge entrait dans le calcul
     du centrage de la grille .hbar et remontait le champ de 13px. */
  margin:0;}
.hsearch svg{flex:none;}
.site-header .hsearch input[type="search"]{
  -webkit-appearance:none;appearance:none;
  border:none !important;outline:none !important;box-shadow:none !important;border-radius:0 !important;
  background:transparent !important;padding:0 !important;margin:0 !important;height:auto !important;min-height:0 !important;
  font-family:var(--sans);font-size:.85rem;width:100%;color:var(--ink);}
.site-header .hsearch input[type="search"]:focus{outline:none !important;box-shadow:none !important;background:transparent !important;}
.site-header .hsearch input::-webkit-search-decoration,
.site-header .hsearch input::-webkit-search-cancel-button,
.site-header .hsearch input::-webkit-search-results-button{-webkit-appearance:none;display:none;}
.logo{grid-column:2;font-family:var(--serif);font-size:1.7rem;font-weight:700;letter-spacing:.03em;color:var(--plum-deep);text-align:center;line-height:1;}
/* pas de contour disgracieux au clic (souris) ; conserve le focus clavier */
.site-header a:focus:not(:focus-visible),
.site-header button:focus:not(:focus-visible),
.kyhead__drawer a:focus:not(:focus-visible){outline:0 !important;box-shadow:none !important;}
.logo:focus,.logo:focus-visible{outline:0 !important;box-shadow:none !important;}
.logo span{color:var(--gold);}
.logo small{display:block;font-family:var(--sans);font-size:.56rem;letter-spacing:.36em;text-transform:uppercase;color:var(--muted);margin-top:3px;font-weight:400;}
.hicons{display:flex;justify-content:flex-end;align-items:center;gap:22px;}
.hicon{position:relative;display:flex;align-items:center;gap:7px;font-size:.8rem;color:var(--ink);transition:color .2s;font-family:var(--sans);}
.hicon:hover{color:var(--amethyst);}
.hicon svg{width:21px;height:21px;}
.kyhead__cart-count{background:var(--gold);color:#fff;font-size:.66rem;border-radius:50%;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-family:var(--sans);}

nav.cats{border-top:1px solid var(--line);}
/* Le padding vertical est porte par les <li> et non plus par la liste : sinon une bande
   de 13px sans survol separait l'entree de son panneau, le panneau se refermait pendant
   le trajet de la souris et ses liens devenaient incliquables. */
nav.cats ul.catsmenu{display:flex;justify-content:center;gap:0 36px;list-style:none;padding:0;margin:0;flex-wrap:wrap;}
nav.cats ul.catsmenu>li{position:relative;padding:13px 0;}
nav.cats a{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);position:relative;font-weight:400;padding-bottom:3px;display:block;}
nav.cats a:hover{color:var(--amethyst);}
nav.cats a.hot{color:var(--gold);}
nav.cats ul.catsmenu>li>a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:1px;background:var(--amethyst);transition:width .3s;}
nav.cats ul.catsmenu>li:hover>a::after{width:100%;}
/* sous-menus deroulants */
nav.cats ul.catsmenu ul.sub-menu{
  position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(6px);
  min-width:250px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-sm);
  box-shadow:var(--shadow);list-style:none;margin:0;padding:10px 0;z-index:250;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,transform .22s ease;
}
/* sans JS : survol natif ; avec JS (html.ky-menujs) : classe .is-open posee avec un delai
   de fermeture, le panneau tolere un trajet de souris en diagonale */
html:not(.ky-menujs) nav.cats ul.catsmenu>li:hover>ul.sub-menu,
html:not(.ky-menujs) nav.cats ul.catsmenu>li:focus-within>ul.sub-menu,
nav.cats ul.catsmenu>li.is-open>ul.sub-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);}
nav.cats ul.sub-menu li{display:block;}
/* "Toutes les Pierres" a 14 rubriques : en une colonne le panneau depassait l'ecran.
   Au-dela de 8 entrees il passe en 2 colonnes, au-dela de 16 en 3 : tout est visible
   d'un coup, sans defilement interne. Le plafond ne sert plus que de garde-fou. */
nav.cats ul.catsmenu ul.sub-menu{
  max-height:min(78vh,620px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--line-2) transparent;
}
/* Panneau large : il sort du cadre de son entree de menu et se centre sur la barre,
   sinon la premiere colonne passe hors ecran. */
nav.cats{position:relative}
nav.cats ul.catsmenu > li:has(ul.sub-menu li:nth-child(9)){position:static}
nav.cats ul.catsmenu ul.sub-menu:has(li:nth-child(9)){
  columns:2;column-gap:30px;width:min(880px,94vw);left:50%;
  padding:16px 26px;
}
nav.cats ul.catsmenu ul.sub-menu:has(li:nth-child(17)){columns:3;width:min(1120px,96vw)}
nav.cats ul.catsmenu ul.sub-menu:has(li:nth-child(9)) li{break-inside:avoid}
nav.cats ul.catsmenu ul.sub-menu:has(li:nth-child(9)) a{white-space:normal;padding:8px 10px;border-radius:8px}
nav.cats ul.catsmenu ul.sub-menu::-webkit-scrollbar{width:6px}
nav.cats ul.catsmenu ul.sub-menu::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:3px}
nav.cats ul.catsmenu ul.sub-menu::-webkit-scrollbar-track{background:transparent}
nav.cats ul.sub-menu a{text-transform:none;letter-spacing:.01em;font-size:.9rem;padding:9px 22px;white-space:nowrap;color:var(--ink);}
nav.cats ul.sub-menu a:hover{background:var(--cream);color:var(--plum-deep);}
nav.cats ul.catsmenu>li.menu-item-has-children>a{padding-right:13px;}
nav.cats ul.catsmenu>li.menu-item-has-children>a::before{
  content:"";position:absolute;right:0;top:50%;margin-top:-1px;width:5px;height:5px;
  border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-50%) rotate(45deg);opacity:.55;}
/* menu mobile (tiroir) : sous-rubriques indentees */
.kyhead__drawer ul.drawermenu,.kyhead__drawer ul.sub-menu{list-style:none;margin:0;padding:0;}
.kyhead__drawer ul.sub-menu{padding-left:14px;border-left:1px solid var(--line);margin:0 0 10px;}
.kyhead__drawer ul.sub-menu a{font-family:var(--sans);font-size:.95rem;color:var(--muted);padding:9px 0;border-bottom:none;}
.kyhead__drawer ul.sub-menu a:hover{color:var(--amethyst);}
/* accordeon : chaque rubrique parente se replie, un bouton chevron ouvre ses sous-rubriques
   (le lien de la rubrique reste cliquable). Sans JS tout reste deplie. */
.kyhead__drawer li{position:relative;}
.kyhead__drawer a{display:block;}
html.ky-menujs .kyhead__drawer li.menu-item-has-children>a{padding-right:52px;}
html.ky-menujs .kyhead__drawer li.menu-item-has-children>ul.sub-menu{display:none;}
html.ky-menujs .kyhead__drawer li.menu-item-has-children.is-open>ul.sub-menu{display:block;margin-top:6px;}
.ky-subtoggle{position:absolute;right:-10px;top:6px;width:46px;height:46px;padding:0;margin:0;border:0;border-radius:50%;
  background:transparent;color:var(--plum-deep);cursor:pointer;display:flex;align-items:center;justify-content:center;}
.ky-subtoggle::before{content:"";width:9px;height:9px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:translateY(-3px) rotate(45deg);transition:transform .25s;}
.kyhead__drawer li.is-open>.ky-subtoggle::before{transform:translateY(2px) rotate(-135deg);}
@media (hover:hover){.ky-subtoggle:hover{background:var(--cream);}}
.ky-subtoggle:focus-visible{background:var(--cream);}

.kyburger{display:none;flex-direction:column;gap:5px;width:40px;height:40px;background:none;border:none;cursor:pointer;justify-self:start;align-items:center;justify-content:center;grid-column:1;}
.kyburger span{width:22px;height:1.6px;background:var(--ink);transition:transform .3s,opacity .3s;}
.site-header.drawer-open .kyburger span:nth-child(1){transform:translateY(6.6px) rotate(45deg);}
.site-header.drawer-open .kyburger span:nth-child(2){opacity:0;}
.site-header.drawer-open .kyburger span:nth-child(3){transform:translateY(-6.6px) rotate(-45deg);}

.kyhead__drawer{position:fixed;top:0;left:0;bottom:0;width:min(82vw,340px);background:#fff;z-index:300;
  transform:translateX(-100%);transition:transform .4s cubic-bezier(.2,.7,.3,1);padding:90px 30px calc(40px + env(safe-area-inset-bottom,0px));box-shadow:30px 0 60px -40px rgba(0,0,0,.4);
  /* panneau fixe de la hauteur de l'ecran : sans defilement interne tout ce qui depassait
     (au-dela de "Pierre de Lune" sur un telephone) etait inaccessible */
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
html.ky-drawer-open,html.ky-drawer-open body{overflow:hidden;}
.site-header.drawer-open .kyhead__drawer{transform:translateX(0);}
.kyhead__drawer nav{display:flex;flex-direction:column;}
.kyhead__drawer a{font-family:var(--serif);font-size:1.4rem;color:var(--plum-deep);padding:15px 0;border-bottom:1px solid var(--line);}
.kyhead__drawer a:hover{color:var(--amethyst);}
.kyhead__backdrop{position:fixed;inset:0;background:rgba(36,26,48,.45);z-index:250;}

@media (max-width:980px){ .hsearch{display:none;} }
@media (max-width:760px){
  .hbar{grid-template-columns:auto 1fr auto;gap:14px;}
  .kyburger{display:flex;}
  .logo{font-size:1.45rem;}
  .hicons{gap:14px;}
  .hicon span{display:none;}
  nav.cats{display:none;}
}

/* ---------- Page title / breadcrumb ---------- */
.woocommerce-breadcrumb,.storefront-breadcrumb{display:none !important;}

/* Banniere d'en-tete de page (image full-bleed cropee + titre) */
.kybanner{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-bottom:2.6em;
  height:clamp(200px,28vw,340px);overflow:hidden;background:var(--plum-deep);}
.kybanner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
/* page Hildegarde : cadrer la banniere sur son visage */
.page-id-2423 .kybanner img{object-position:center 16% !important;}
.kybanner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(36,26,48,.35),rgba(36,26,48,.62));}
.kybanner__t{position:relative;z-index:1;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 24px;}
.kybanner__t h1{color:#fff;font-family:var(--serif);font-weight:600;font-size:clamp(2rem,5vw,3.4rem);margin:0;letter-spacing:.01em;}
/* la banniere affiche le titre -> on masque le titre par defaut + on colle au header */
.tax-product_cat .woocommerce-products-header__title,
.woocommerce-shop .woocommerce-products-header__title,
.blog .page-title,.single-post .entry-header .entry-title,
.page:not(.home) .entry-header .entry-title{display:none !important;}
/* la banniere reprend deja l'image a la une -> on masque le thumbnail Storefront en tete d'article/page */
.single-post .entry-header .wp-post-image,
.page:not(.home) .entry-header .wp-post-image{display:none !important;}
.tax-product_cat #content.site-content,.woocommerce-shop #content.site-content,
.blog #content.site-content,.single-post #content.site-content,
.page:not(.home) #content.site-content{padding-top:0 !important;}
/* Barre de tri (boutique, rubriques, recherche) : selecteur WooCommerce natif, habille */
.storefront-sorting{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;}
.storefront-sorting::before,.storefront-sorting::after{display:none !important;}
.storefront-sorting .woocommerce-result-count,.storefront-sorting .woocommerce-pagination,
.storefront-sorting .woocommerce-ordering{float:none;margin:0;padding:0;}
.storefront-sorting .woocommerce-pagination{margin-left:auto;}
.woocommerce-ordering{display:flex;align-items:center;gap:10px;}
.woocommerce-ordering label{margin:0;font-family:var(--sans);font-size:.74rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);white-space:nowrap;}
.woocommerce-ordering select.orderby{
  -webkit-appearance:none;appearance:none;margin:0;min-height:42px;padding:9px 42px 9px 18px;
  font-family:var(--sans);font-size:.9rem;line-height:1.2;color:var(--ink);cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233a2a4d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center/11px 8px;
  border:1px solid var(--line);border-radius:40px;box-shadow:none;transition:border-color .2s,box-shadow .2s;}
.woocommerce-ordering select.orderby:hover{border-color:var(--amethyst);}
.woocommerce-ordering select.orderby:focus{outline:none;border-color:var(--amethyst);box-shadow:0 0 0 3px rgba(124,92,168,.18);}
@media (max-width:767px){
  .storefront-sorting .woocommerce-ordering{flex:1 1 100%;}
  .woocommerce-ordering select.orderby{flex:1;font-size:16px;} /* 16px : pas de zoom auto sur iOS */
}
.woocommerce-products-header__title.page-title,.entry-title{
  font-size:clamp(2rem,4vw,3rem);margin:.2em 0 .5em;
}
.term-description{color:var(--muted);max-width:60ch;}

/* ---------- Grille produits (grille CSS propre, independante de Storefront) ---------- */
.woocommerce ul.products,.woocommerce-page ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin:0 0 1em;
}
/* Storefront ajoute un clearfix ::before/::after -> en display:grid ils deviennent
   des cases vides (trou en haut a gauche). On les supprime. */
.woocommerce ul.products::before,.woocommerce ul.products::after,
.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{display:none !important;content:none !important;}
.woocommerce ul.products.columns-3,.woocommerce-page ul.products.columns-3{grid-template-columns:repeat(3,1fr);}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{
  width:auto !important;
  float:none !important;
  margin:0 !important;
  clear:none !important;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 14px 20px;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
  text-align:left;
  overflow:hidden;
  display:flex;flex-direction:column;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart{align-self:flex-start;margin-top:auto;}

/* L'image va d'un bord a l'autre de la carte : la carte n'a plus de padding,
   ce sont les textes et le bouton qui portent la gouttiere. */
.woocommerce ul.products li.product{padding:0 0 16px;}
.woocommerce ul.products li.product a img{
  width:100%;max-width:none;display:block;margin:0 0 13px;
  border-radius:var(--radius) var(--radius) 0 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .wlr-product-message,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart{margin-left:14px;margin-right:14px;}
@media (max-width:600px){
  /* un peu plus de place pour le contenu */
  .woocommerce .col-full,.woocommerce-page .col-full{padding-left:11px;padding-right:11px;}
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .price,
  .woocommerce ul.products li.product .wlr-product-message,
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .added_to_cart{margin-left:11px;margin-right:11px;}
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{margin-top:.2em;}
@media (max-width:1100px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(3,1fr);}}
@media (max-width:900px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,1fr);gap:16px;}}
@media (max-width:600px){
  .woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,1fr) !important;gap:12px;}
  /* bouton ajouter au panier sur 1 seule ligne */
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .added_to_cart,
  .lithos .card .add{
    font-size:.7rem !important;padding:.7em .9em !important;white-space:nowrap;letter-spacing:.04em;
  }
}
/* Message de fidelite (WPLoyalty) sous le prix : le plugin pose ses styles en inline
   (padding 10px, line-height 25px), d'ou les !important. Une seule ligne, discret.
   La marge horizontale doit etre dans la meme declaration !important, sinon elle est
   ecrasee et le texte se colle au bord de la carte. */
.woocommerce ul.products li.product .wlr-product-message,
.woocommerce div.product .wlr-product-message{
  display:block!important;
  margin:4px 14px 12px!important;padding:0!important;
  background:none!important;border:0!important;border-radius:0!important;
  font-family:var(--sans);font-size:.74rem!important;line-height:1.3!important;
  letter-spacing:.02em;color:var(--amethyst)!important;font-weight:500;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.woocommerce div.product .wlr-product-message{font-size:.82rem!important;margin:10px 0 0!important}

/* A partir du format tablette : prix et points a gauche, bouton a droite sur la meme
   ligne. On gagne une ligne entiere par carte. */
@media (min-width:768px){
  .woocommerce ul.products li.product{
    display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:10px;
  }
  .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link{grid-column:1 / -1;display:block}
  .woocommerce ul.products li.product .wlr-product-message{grid-column:1;margin:0 0 0 14px!important}
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .added_to_cart{
    grid-column:2;grid-row:2;justify-self:end;margin:0 14px 0 0;align-self:center;
  }
  /* carte sans message de fidelite : le bouton reste a droite sur sa propre ligne */
  .woocommerce ul.products li.product > a.button:only-of-type{grid-row:2}
}

/* Produits similaires / upsells : 3 par ligne sur desktop, 1 par ligne sur mobile */
.woocommerce .related.products ul.products,.woocommerce .up-sells ul.products,.woocommerce .upsells ul.products{grid-template-columns:repeat(3,1fr) !important;}
@media (max-width:760px){
  .woocommerce .related.products ul.products,.woocommerce .up-sells ul.products,.woocommerce .upsells ul.products{grid-template-columns:1fr !important;}
}
.woocommerce ul.products li.product:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:var(--line-2);
}
.woocommerce ul.products li.product a img{
  border-radius:var(--radius-sm);
  margin-bottom:1em;
  background:#f4eee6;
  aspect-ratio:1/1;
  object-fit:cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.lithos .card h3{
  font-family:var(--serif);
  font-size:clamp(.8rem,2.45vw,1.06rem);
  letter-spacing:-.012em;
  font-weight:500;
  color:var(--violet-deep);
  padding:0;
  line-height:1.4;
  /* 2 lignes maximum pour tous, au-dela "..." : les noms de pierres vont jusqu'a 4 lignes
     et defoncent la grille. min-height = 2 lignes pour que les cartes restent alignees.
     Taille reduite sur petit ecran, sinon Poppins ne fait tenir que 18 caracteres par ligne. */
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:2.8em;
}
.woocommerce ul.products li.product .price{
  color:var(--ink);
  font-weight:600;
  font-size:1.02rem;
  font-family:var(--sans);
}
.woocommerce ul.products li.product .price del{color:var(--muted);font-weight:400;}
.woocommerce ul.products li.product .price ins{color:var(--violet);text-decoration:none;}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart{
  margin-top:.6em;font-size:.9rem;padding:.7em 1.3em;
}
.woocommerce span.onsale{
  background:var(--gold);
  color:#fff;
  border-radius:999px;
  font-weight:600;
  min-height:auto;min-width:auto;
  padding:.35em .85em;
  top:18px;left:18px;right:auto;
  font-family:var(--sans);
}
.woocommerce ul.products li.product .star-rating{font-size:.8em;margin:.4em 0;color:var(--gold);}
.stock.out-of-stock{color:#b23a48;font-weight:600;}

/* ---------- Fiche produit ---------- */
.single-product div.product .product_title{font-size:clamp(1.9rem,3.5vw,2.7rem);margin-bottom:.25em;}
.single-product div.product .price,.single-product .summary .price{
  color:var(--violet);font-weight:700;font-family:var(--sans);
}
.single-product .woocommerce-product-gallery{
  border-radius:var(--radius);overflow:hidden;
}
.single-product .woocommerce-product-gallery img{border-radius:var(--radius);background:#f4eee6;}
.single-product div.product .woocommerce-product-details__short-description{
  color:var(--muted);font-size:1.05rem;
}
.single-product .summary .quantity .qty{
  border:1px solid var(--line);border-radius:999px;padding:.6em;text-align:center;
}
/* Onglets produit : ligne horizontale propre (Description | Avis) */
.woocommerce-tabs{display:block;margin-top:2.4em;}
.woocommerce-tabs ul.tabs{display:flex !important;flex-wrap:wrap;gap:0;list-style:none;width:100% !important;float:none !important;margin:0 0 0 !important;padding:0 !important;border-bottom:1px solid var(--line);}
.woocommerce-tabs ul.tabs::before,.woocommerce-tabs ul.tabs::after{display:none !important;}
.woocommerce-tabs ul.tabs li{background:transparent !important;border:none !important;border-radius:0 !important;margin:0 !important;padding:0 !important;float:none !important;}
.woocommerce-tabs ul.tabs li::before,.woocommerce-tabs ul.tabs li::after,
.woocommerce-tabs ul.tabs li a::after{display:none !important;content:none !important;}
.woocommerce-tabs ul.tabs li a{display:inline-block;padding:.85em 1.4em !important;color:var(--muted) !important;font-family:var(--sans);font-weight:600;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;border-bottom:2px solid transparent;margin-bottom:-1px;text-decoration:none !important;}
.woocommerce-tabs ul.tabs li.active a,.woocommerce-tabs ul.tabs li a:hover{color:var(--plum-deep) !important;}
.woocommerce-tabs ul.tabs li.active a{border-bottom-color:var(--plum) !important;}
.woocommerce-tabs .panel{background:transparent !important;border:none !important;border-radius:0 !important;width:100% !important;float:none !important;clear:both !important;padding:1.8em 0 0 !important;margin:0 !important;}
.woocommerce-tabs .panel h2{font-size:1.6rem;margin-bottom:.5em;}
.related.products>h2,.upsells.products>h2{
  font-size:1.7rem;margin-top:2em;padding-top:1.5em;border-top:1px solid var(--line);
}

/* ---------- Notices / panier ---------- */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  border-top-color:var(--violet);border-radius:var(--radius-sm);background:var(--amethyst-soft);
}
.woocommerce-message::before,.woocommerce-info::before{color:var(--violet);}
.cart_totals,.woocommerce-checkout #order_review,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce form.checkout_coupon,.woocommerce .col2-set{}
table.shop_table{border-radius:var(--radius);border-color:var(--line);}
.woocommerce-checkout #payment{background:var(--amethyst-soft);border-radius:var(--radius);}

/* ===========================================================
   HOMEPAGE (template Maison Lithos adapte, scope .lithos)
   =========================================================== */
.wrap{max-width:1280px;margin:0 auto;padding:0 28px}
.lithos{font-weight:300}
.eyebrow{font-family:var(--sans);text-transform:uppercase;letter-spacing:.28em;font-size:.72rem;color:var(--gold);font-weight:500}
.btn{display:inline-flex;align-items:center;gap:.5rem;background:var(--plum);color:#fff;border:none;padding:14px 30px;border-radius:40px;font-family:var(--sans);font-size:.86rem;letter-spacing:.06em;text-transform:uppercase;font-weight:500;cursor:pointer;transition:.25s}
.btn:hover{background:var(--amethyst);color:#fff;transform:translateY(-2px)}
.btn.ghost{background:transparent;color:var(--plum);border:1px solid var(--plum)}
.btn.ghost:hover{background:var(--plum);color:#fff}

/* hero */
.hero{position:relative;min-height:80vh;display:flex;align-items:center;color:#fff;overflow:hidden}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(36,26,48,.84) 0%,rgba(36,26,48,.42) 55%,rgba(36,26,48,.1) 100%)}
.hero .wrap{position:relative;z-index:2}
.hero-content{max-width:560px;position:relative}
.hero h1{font-size:clamp(2.6rem,5.5vw,4.6rem);color:#fff;margin:14px 0 18px;font-weight:600}
.hero p{font-size:1.22rem;font-weight:400;color:#f3ecf6;margin-bottom:28px;max-width:460px}
.hero .eyebrow{color:#f1e6cf;font-size:.82rem;letter-spacing:.26em}

/* trust */
.trust{background:var(--cream);border-bottom:1px solid var(--line)}
.trust .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:26px 28px}
.trust-item{display:flex;align-items:center;gap:13px;justify-content:center}
.trust-item svg{width:30px;height:30px;stroke:var(--amethyst);fill:none;stroke-width:1.3;flex:none}
.trust-item b{font-size:.86rem;display:block;color:var(--ink);font-weight:500}
.trust-item span{font-size:.74rem;color:var(--muted)}

/* sections */
section.lithos{padding:84px 0}
.shead{text-align:center;max-width:600px;margin:0 auto 46px}
.shead h2{font-size:clamp(2rem,3.6vw,2.9rem);margin:10px 0}
.shead p{color:var(--muted);font-size:.98rem}
.center{text-align:center;margin-top:48px}

/* categories */
.catgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.catcard{position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:3/4;display:block;background:var(--cream)}
.catcard img{width:100%;height:100%;object-fit:cover;transition:.6s}
.catcard:hover img{transform:scale(1.06)}
.catcard::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 38%,rgba(36,26,48,.82))}
.catcard .lbl{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:22px;color:#fff;text-align:center}
.catcard .lbl h3{color:#fff;font-size:1.32rem;line-height:1.34;margin:0}

/* products */
.prodgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.lithos .card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.3s;display:flex;flex-direction:column}
.lithos .card:hover{box-shadow:var(--shadow);transform:translateY(-5px);border-color:transparent}
.lithos .card .media{position:relative;aspect-ratio:1;overflow:hidden;background:var(--cream)}
.lithos .card .media img{width:100%;height:100%;object-fit:cover;transition:.5s}
.lithos .card:hover .media img{transform:scale(1.05)}
.lithos .badge{position:absolute;top:12px;left:12px;background:var(--plum);color:#fff;font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;padding:5px 11px;border-radius:30px;font-weight:500;z-index:2}
.lithos .badge.promo{background:var(--gold)}
.lithos .badge.new{background:var(--green)}
.lithos .card .body{padding:15px;display:flex;flex-direction:column;flex:1}
.lithos .card .cat{font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:5px;
  /* 2 lignes maximum : certains produits cumulent 3 categories et la ligne poussait la carte */
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45}
.lithos .card h3{font-size:clamp(.88rem,2.5vw,1.12rem);letter-spacing:-.012em;line-height:1.36;margin:0 0 8px;font-weight:600}
.lithos .card h3 a{color:var(--plum-deep)}
.lithos .card h3 a:hover{color:var(--amethyst)}
.lithos .card .price{margin-top:auto;margin-bottom:13px;font-family:var(--sans);font-weight:600;font-size:1.2rem;color:var(--plum-deep)}
.lithos .card .price del{color:var(--muted);font-weight:400;font-size:.85em;margin-right:.35em}
.lithos .card .price ins{text-decoration:none;color:var(--plum-deep)}
.lithos .add{display:block;width:100%;text-align:center;background:var(--plum);color:#fff !important;border:none;padding:12px;border-radius:30px;font-family:var(--sans);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:.25s;font-weight:500}
.lithos .add:hover{background:var(--amethyst)}
.lithos .add.loading{opacity:.7}
.lithos .add.added{background:var(--green)}

/* editorial */
.editorial{background:var(--plum-deep);color:#fff;padding:0 !important}
.editorial .wrap{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:0;max-width:none;padding:0}
.editorial .txt{padding:84px 7vw;align-self:center}
.editorial .txt h2{color:#fff;font-size:clamp(2rem,3.4vw,2.8rem);margin:14px 0 16px}
.editorial .txt p{color:#d8cfe2;margin-bottom:26px;font-weight:300}
.editorial .img{position:relative;min-height:440px}
.editorial .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* reviews */
.reviews{background:var(--cream)}
.rgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.review{background:#fff;border-radius:var(--radius);padding:30px;border:1px solid var(--line)}
.review .rs{color:var(--gold);letter-spacing:2px;margin-bottom:12px}
.review p{font-size:.97rem;color:var(--ink);margin-bottom:18px;font-style:italic;font-weight:300;line-height:1.6}
.review .who{display:flex;align-items:center;gap:12px}
.review .av{width:42px;height:42px;border-radius:50%;background:var(--lav);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-family:var(--serif);font-size:1.3rem}
.review .who b{font-size:.88rem;display:block;font-weight:500}
.review .who span{font-size:.74rem;color:var(--muted)}

/* newsletter */
.news{background:linear-gradient(135deg,var(--amethyst),var(--plum));color:#fff;text-align:center}
.news h2{color:#fff;font-size:clamp(2rem,3.4vw,2.7rem)}
.news p{color:#ece4f4;max-width:450px;margin:12px auto 28px}
.nform{display:flex;gap:10px;max-width:460px;margin:0 auto}
.nform input{flex:1;border:none;border-radius:40px;padding:14px 22px;font-family:var(--sans);font-size:.9rem;outline:none}
.nform .btn{background:var(--plum-deep)}
.nform .btn:hover{background:#fff;color:var(--plum)}

/* contact */
.contact{background:linear-gradient(135deg,var(--amethyst),var(--plum));color:#fff;text-align:center}
.contact h2{color:#fff;font-size:clamp(2rem,3.4vw,2.7rem);margin:10px 0}
.contact .eyebrow{color:#f0e6d3}
.contact p{color:#ece4f4;max-width:480px;margin:12px auto 30px}
.cform{max-width:560px;margin:0 auto;text-align:left}
.cform .crow{display:flex;gap:12px;margin-bottom:12px}
.cform input,.cform textarea{width:100%;border:none;border-radius:12px;padding:13px 18px;font-family:var(--sans);font-size:.92rem;color:var(--ink);background:#fff;outline:none}
.cform textarea{margin-bottom:14px;resize:vertical;line-height:1.5}
.cform .btn{width:100%;justify-content:center;background:var(--plum-deep)}
.cform .btn:hover{background:#fff;color:var(--plum)}
.cform .cmsg{margin:16px 0 0;text-align:center;color:#fff;font-weight:500;background:rgba(255,255,255,.14);border-radius:10px;padding:12px}
@media(max-width:560px){.cform .crow{flex-direction:column;gap:12px}}

/* ===== BLOG (archive + teaser home) ===== */
.blogarchive{padding-bottom:4em}
.bloggrid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.blogcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.blogcard:hover{box-shadow:var(--shadow);transform:translateY(-5px);border-color:transparent}
.blogcard__img{aspect-ratio:16/10;overflow:hidden;background:var(--cream)}
.blogcard__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.blogcard:hover .blogcard__img img{transform:scale(1.05)}
.blogcard__body{padding:22px;display:flex;flex-direction:column;flex:1}
.blogcard__meta{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:9px}
.blogcard h3{font-family:var(--serif);font-weight:600;font-size:1.16rem;line-height:1.36;margin:0 0 10px;color:var(--plum-deep)}
.blogcard p{color:var(--muted);font-size:.94rem;line-height:1.6;margin:0 0 16px;flex:1}
.blogcard__more{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--plum);border-bottom:1px solid currentColor;padding-bottom:3px;align-self:flex-start}
.blogcard:hover .blogcard__more{color:var(--amethyst)}
.blogpagination{margin-top:3em;display:flex;justify-content:center}
.blogpagination .page-numbers{padding:.55em .95em;border:1px solid var(--line);margin:0 3px;border-radius:8px;color:var(--ink);font-size:.9rem}
.blogpagination .page-numbers.current{background:var(--plum);color:#fff;border-color:var(--plum)}
.blogpagination a.page-numbers:hover{background:var(--cream)}
/* article */
.singlepost{max-width:760px;margin:0 auto;padding-bottom:4.5em}
.singlepost__meta{text-align:center;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:1.8em}
.singlepost__content{font-size:1.1rem;line-height:1.85;color:var(--ink)}
.singlepost__content p{margin-bottom:1.3em}
.singlepost__content h2,.singlepost__content h3{margin:1.4em 0 .5em}
.singlepost__content img{border-radius:var(--radius);margin:1.5em 0}
.singlepost__back{margin-top:2.5em;text-align:center}
@media(max-width:900px){.bloggrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.bloggrid{grid-template-columns:1fr}}

@media(max-width:980px){
  .trust .wrap{grid-template-columns:repeat(2,1fr)}
  .catgrid,.prodgrid{grid-template-columns:repeat(2,1fr)}
  .rgrid{grid-template-columns:1fr}
  .editorial .wrap{grid-template-columns:1fr}
  .editorial .img{min-height:320px;order:-1}
  .editorial .txt{padding:54px 28px}
}
@media(max-width:560px){
  .wrap{padding-left:18px;padding-right:18px}
  .trust .wrap{padding-left:18px;padding-right:18px}
  .catgrid,.prodgrid{grid-template-columns:1fr 1fr;gap:14px}

  .lithos .card .body{padding:14px}
  .nform{flex-direction:column}
  section.lithos{padding:56px 0}
  .hero{min-height:72vh}
}

/* ---------- Pages de contenu ---------- */
.page:not(.woocommerce-page) .entry-header{text-align:center;margin-bottom:1.4em;}
.page:not(.woocommerce-page) .entry-header .entry-title{font-size:clamp(2.1rem,4vw,3rem);}
.page:not(.woocommerce-page) .entry-content,
article.page .entry-content{max-width:760px;margin-left:auto;margin-right:auto;}
.page .entry-content p{color:var(--ink);font-size:1.08rem;}
.single-product .entry-content,.woocommerce-page .entry-content{max-width:none;}

/* ---------- Footer (template) ---------- */
.site-footer{background:var(--plum-deep);color:#cabfd6;padding:70px 0 28px;font-size:.88rem;margin:0;}
.site-footer .col-full{max-width:1280px;padding:0 28px;border:none;}
.kyfoot .fgrid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px;padding-bottom:46px;border-bottom:1px solid rgba(255,255,255,.1)}
.kyfoot .logo{text-align:left;color:#fff;font-size:1.5rem;font-family:var(--serif);font-weight:700;display:inline-block;line-height:1}
.kyfoot .logo span{color:var(--gold)}
.kyfoot .logo small{display:block;font-family:var(--sans);font-size:.55rem;letter-spacing:.3em;text-transform:uppercase;color:var(--lav);margin-top:4px;font-weight:400}
.kyfoot p.intro{margin:16px 0 6px;color:#cabfd6;max-width:300px;font-weight:300}
.kyfoot h4{color:#fff;font-size:1.25rem;margin-bottom:16px}
.kyfoot ul{list-style:none;margin:0;padding:0}
.kyfoot ul li{margin-bottom:9px}
.kyfoot .fsocial{display:flex;gap:10px;align-items:center;margin-top:18px}
.kyfoot .fsoc{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#cabfd6;transition:background .25s,border-color .25s,color .25s}
.kyfoot .fsoc:hover{background:rgba(176,141,87,.18);border-color:var(--gold);color:#fff}
.kyfoot .fsoc svg{display:block}
.kyfoot .fbottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;flex-wrap:wrap;gap:16px}
/* Storefront force .site-footer a:not(.button) en #333 -> on surcharge en haute specificite */
.site-footer .kyfoot a:not(.button){color:#d7cee2 !important;font-weight:400;text-decoration:none !important;}
.site-footer .kyfoot a:not(.button):hover{text-decoration:none !important;}
.site-footer .kyfoot ul a:hover,.site-footer .kyfoot .fbottom a:hover{color:#fff !important;}
.site-footer .kyfoot .logo{color:#fff !important;}
.site-footer .kyfoot .logo span{color:var(--gold) !important;}
.site-footer .kyfoot .logo small{color:var(--lav) !important;}
.site-footer .kyfoot .fbottom small,.site-footer .kyfoot .fbottom a{color:#b3a8c6 !important;font-size:.78rem;}
.kyfoot .fbottom a{color:#cabfd6}
.kyfoot .fbottom a:hover{color:#fff}
.kyfoot .pay{display:flex;gap:8px;align-items:center}
.kyfoot .pay span{background:rgba(255,255,255,.08);border-radius:6px;padding:5px 9px;font-size:.68rem;letter-spacing:.05em;color:#cabfd6}
.storefront-handheld-footer-bar{display:none}
@media(max-width:780px){.kyfoot .fgrid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.kyfoot .fgrid{grid-template-columns:1fr}}

/* ---------- Responsive global ---------- */
@media (max-width:560px){
  .col-full{padding-left:18px;padding-right:18px;}
}


