/* ==========================================================================
   CandleTime — page rayon (DESIGN.md §5.3, §5.7, §5.8, §5.9 et §7)
   ========================================================================== */

/* --- Enveloppe : conteneur 1320 px, gouttière 20 px, 88 px en bas ------- */

.category-page-row {
  margin-left: auto !important;
  margin-right: auto !important;
}

.category-page-row > .col {
  padding: 0 var(--ls-gouttiere) 88px;
}

/* --- Titre et intro ----------------------------------------------------- */

.ls-rayon-titre {
  max-width: 760px;
  padding: 36px 0 28px;
}

.ls-rayon-titre h1 {
  margin: 0;
  font-size: var(--ls-fs-h1-rayon);
  line-height: 1.02;
}

.ls-rayon-intro p {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ls-texte);
}

/* --- Barre d'outils : chips, compteur, tri ------------------------------ */

.ls-outils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--ls-trait);
  border-bottom: 1px solid var(--ls-trait);
}

.ls-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ls-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ls-cible);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  color: var(--ls-encre);
  background-color: var(--ls-blanc);
  border: 1px solid var(--ls-champ);
  border-radius: var(--ls-radius);
}

.ls-chip:hover {
  color: var(--ls-encre);
  border-color: var(--ls-encre);
}

.ls-chip--active,
.ls-chip--active:hover {
  color: var(--ls-lin);
  background-color: var(--ls-encre);
  border-color: var(--ls-encre);
}

.ls-chip__nombre {
  margin-left: 0.3em;
  opacity: 0.7;
}

.ls-tri {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: var(--ls-fs-meta);
  color: var(--ls-pierre);
}

.ls-tri__form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.ls-tri label {
  margin: 0;
  font-size: var(--ls-fs-meta);
  font-weight: 400;
  color: var(--ls-pierre);
}

.ls-tri select.orderby {
  width: auto;
  height: auto;
  min-height: var(--ls-cible);
  margin: 0;
  padding: 0 32px 0 12px;
  font-size: 13.5px;
  line-height: normal;
  color: var(--ls-encre);
  background-color: var(--ls-blanc);
  border: 1px solid var(--ls-champ);
  border-radius: var(--ls-radius);
  box-shadow: none;
}

/* --- Grille ------------------------------------------------------------- */

.ls-liste > .products,
.woocommerce-notices-wrapper + .products {
  padding-top: 32px;
}

.ls-rayon-vide {
  padding-top: 8px;
  font-size: 15.5px;
}

.ls-rayon-vide a {
  color: var(--ls-bronze);
  border-bottom: 1px solid var(--ls-bronze);
}

/* --- Bas de page : Bien choisir + questions fréquentes ------------------ */

.ls-rayon-bas {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--ls-trait);
}

.ls-rayon-bas__col {
  flex: 1 1 420px;
  min-width: 0;
}

.ls-rayon-bas h2 {
  margin: 0 0 14px;
  font-size: var(--ls-fs-h2-bloc);
}

.ls-rayon-bas__col > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ls-texte);
}

.ls-faq h2 {
  margin-bottom: 6px;
}

/* --- Texte long du rayon (contenu SEO) ----------------------------------- */

/* Une seule colonne centrée : bloc SEO puis FAQ (11/11/2026). Deux colonnes laissaient un
   grand blanc à côté d'un texte long. */
.ls-rayon-bas--long {
  display: block;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.ls-rayon-bas--long .ls-rayon-texte {
  margin-top: 64px;
}

/* Lien bouton discret en fin de section (hub : « Voir la suite »). */
.ls-rayon-texte a.ls-lien-bouton {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 6px 0 4px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ls-encre);
  text-decoration: none;
  border: 1px solid var(--ls-trait);
  background-color: var(--ls-blanc);
}

.ls-rayon-texte a.ls-lien-bouton:hover {
  border-color: var(--ls-encre);
  color: var(--ls-encre);
}

.ls-rayon-texte h2 {
  margin: 44px 0 14px;
  scroll-margin-top: 96px;
}

.ls-rayon-texte > h2:first-child {
  margin-top: 0;
}

.ls-faq h2 {
  scroll-margin-top: 96px;
}

.ls-rayon-texte ul,
.ls-rayon-texte ol {
  margin: 0 0 14px 1.2em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ls-texte);
}

.ls-rayon-texte li {
  margin-bottom: 4px;
}

.ls-rayon-texte strong {
  font-weight: 600;
  color: var(--ls-encre);
}

/* Sommaire cliquable. */
.ls-sommaire {
  margin: 0 0 36px;
  padding: 20px 24px;
  background-color: var(--ls-sable);
}

.ls-sommaire__titre {
  margin: 0 0 8px;
  font-size: var(--ls-fs-surtitre);
  font-weight: 600;
  letter-spacing: var(--ls-ls-surtitre);
  text-transform: uppercase;
  color: var(--ls-pierre);
}

.ls-rayon-texte .ls-sommaire ol {
  margin: 0 0 0 1.2em;
}

.ls-rayon-texte .ls-sommaire li {
  margin: 0;
}

.ls-sommaire a {
  display: inline-block;
  padding: 4px 0;
}

/* Tableaux : défilement horizontal sur petit écran, sans casser la page. */
.ls-tableau {
  margin: 8px 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ls-trait);
  background-color: var(--ls-blanc);
}

.ls-tableau table {
  width: 100%;
  min-width: 480px;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.ls-tableau th,
.ls-tableau td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ls-encre);
  border: 0;
  border-bottom: 1px solid var(--ls-trait);
}

.ls-tableau th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ls-pierre);
}

.ls-tableau tbody tr:last-child td {
  border-bottom: 0;
}

/* Sélection de produits dans le texte (sections du hub). */
.ls-rayon-texte .ls-section {
  max-width: none;
  margin: 20px 0 8px;
  padding: 0;
}

.ls-rayon-texte .ls-grille-produits {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 28px 16px;
}

.ls-rayon-texte .ls-grille-produits a {
  text-decoration: none;
}

/* Raccourcis du hub, sous l'intro. */
.ls-rayon-raccourcis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ls-rayon-raccourcis a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ls-encre);
  border: 1px solid var(--ls-trait);
  background-color: var(--ls-blanc);
}

.ls-rayon-raccourcis a:hover {
  border-color: var(--ls-encre);
}

.ls-rayon-texte h3 {
  margin: 26px 0 8px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}

.ls-rayon-texte p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ls-texte);
}

.ls-rayon-texte a {
  color: var(--ls-encre);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ls-rayon-texte a:hover {
  color: var(--ls-bronze);
}

/* --- Titre de la liste (H2 « Nos 10 bougies parfumées ») ---------
   Dans la barre d'outils, à côté du tri, dans le style des sur-titres. */

.ls-tri h2.ls-tri__titre {
  margin: 0;
  font-family: var(--ls-font-texte);
  font-size: var(--ls-fs-surtitre);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: var(--ls-ls-surtitre);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ls-pierre);
}

@media (max-width: 767px) {
  /* Mobile : le titre sur sa ligne, puis « Filtrer » à gauche et le tri à droite. */
  .ls-tri h2.ls-tri__titre {
    flex: 1 1 100%;
    order: -1;
    white-space: normal;
  }
}
