/* Boutique : le bloc de l'atelier, la rangée de sous-catégories et la grille des produits (conception F7 et F12).
   Chargée sur la page Boutique et les catégories de produits seulement ; chaque sélecteur reste dans .kitoimp-shop, .kitoimp-subcats ou
   ul.products.kitoimp-grid. La rangée ne pose aucune couleur (currentColor). Le bloc non plus, sauf sur le fond sombre d'Ohio (.dark-scheme), où il prend
   le fond clair du thème et un texte blanc pour se lire d'un coup d'œil. Aucune animation. Liens et boutons de 44 px de haut au moins. */

/* Le bloc de l'atelier, sous les produits et la pagination : à gauche la question et les moyens de joindre l'atelier, à droite les trois arguments. */
.kitoimp-shop {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px 64px;
  align-items: center;
  margin: 72px 0 0;
  padding: 44px 48px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
}
.dark-scheme .kitoimp-shop {
  border-color: rgba(255, 255, 255, .09);
  background: var(--wp--preset--color--dark-strong, #24262b);
}
.kitoimp-shop__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.kitoimp-shop__ask {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}
.kitoimp-shop__phone {
  margin-top: 4px;
  font-size: 20px;
}
.dark-scheme .kitoimp-shop__ask,
.dark-scheme .kitoimp-shop__phone,
.dark-scheme .kitoimp-shop__args strong {
  color: #fff;
}
.kitoimp-shop__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 20px 0 0;
}
.kitoimp-shop__link {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kitoimp-shop__link:hover {
  text-decoration-thickness: 2px;
}
/* Le rouge que le thème donne aux liens survolés tombe sous 3:1 sur ce fond : le lien reste blanc, seul son trait s'épaissit. */
.dark-scheme .kitoimp-shop__link:hover {
  color: #fff;
}
.kitoimp-shop a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.dark-scheme .kitoimp-shop__button:focus-visible {
  outline-color: #fff;
}
.kitoimp-shop__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  text-decoration: none;
}
.kitoimp-shop__args {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kitoimp-shop__args li {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  list-style: none;
}
.dark-scheme .kitoimp-shop__args li {
  border-top-color: rgba(255, 255, 255, .09);
}
.kitoimp-shop__args li:first-child {
  padding-top: 0;
  border-top: 0;
}
.kitoimp-shop__args li:last-child {
  padding-bottom: 0;
}
.kitoimp-shop__args strong,
.kitoimp-shop__args span {
  display: block;
}
.kitoimp-shop__args strong {
  font-size: 17px;
  font-weight: 700;
}
@media (max-width: 899px) {
  .kitoimp-shop {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 56px;
    padding: 32px;
  }
}
@media (max-width: 767px) {
  .kitoimp-shop {
    padding: 28px 24px;
  }
  .kitoimp-shop__ask {
    font-size: 26px;
  }
  .kitoimp-shop__actions {
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .kitoimp-shop__actions .kitoimp-shop__link {
    justify-content: center;
  }
}

/* La rangée de sous-catégories : des pastilles de 44 px, sur une seule ligne qui défile de côté sur téléphone (la page, elle, ne défile pas de côté). */
.kitoimp-subcats {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 24px;
}
.kitoimp-subcats ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.kitoimp-subcats li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kitoimp-subcats a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.kitoimp-subcats a:hover {
  text-decoration: underline;
}
.kitoimp-subcats a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .kitoimp-subcats ul {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* La grille des produits : deux colonnes, trois dès 1024 px. Le sélecteur répété passe devant la règle du thème qui force deux colonnes sur une grille
   de tuiles (.woocommerce ul.products:has(.product-category)), et devant celles de WooCommerce qui flottent et mesurent les cartes en pourcentages. */
.woocommerce ul.products.kitoimp-grid.kitoimp-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
/* Les blocs vides que WooCommerce pose pour contenir ses flottants deviendraient deux cases de la grille. */
.woocommerce ul.products.kitoimp-grid.kitoimp-grid::before,
.woocommerce ul.products.kitoimp-grid.kitoimp-grid::after {
  display: none !important;
  content: none !important;
}
@media (min-width: 1024px) {
  .woocommerce ul.products.kitoimp-grid.kitoimp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 40px 24px;
  }
}

/* Les cartes : en colonne, ni largeur, ni flottement, ni marge imposés ; le bouton en pleine largeur, au bas de la carte. */
.woocommerce ul.products.kitoimp-grid.kitoimp-grid li.product {
  display: flex !important;
  flex-direction: column;
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}
.woocommerce ul.products.kitoimp-grid.kitoimp-grid li.product .woocommerce-LoopProduct-link {
  display: block;
  flex: 1 1 auto;
  margin: 0 0 12px;
}
/* Le titre se lit en entier : 17 px, sur autant de lignes qu'il en faut. */
.woocommerce ul.products.kitoimp-grid.kitoimp-grid li.product .woocommerce-loop-product__title,
.woocommerce ul.products.kitoimp-grid.kitoimp-grid li.product .woocommerce-loop-category__title {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  overflow-wrap: break-word;
  font-size: 17px;
  line-height: 1.35;
}
.woocommerce ul.products.kitoimp-grid.kitoimp-grid li.product .button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: auto 0 0;
  text-align: center;
}

/* Sous le thème Ohio, la barre « Filtres / tri » du gabarit des archives sert woocommerce_before_shop_loop à l'intérieur de sa rangée (div.filters, puis div.ordering-filters),
   et ses classes -flex donnent display: flex sur une seule ligne : les sous-catégories se plaçaient à droite du bouton Filtres. La zone de droite s'efface (display: contents), si
   bien que tout le monde devient enfant direct de la rangée, qui s'ordonne en lignes franches : les sous-catégories, puis la vraie barre, Filtres à gauche, compteur et tri à
   droite. Sur téléphone, Filtres et le tri tiennent sur la même ligne (Ohio y masque le compteur). Ces sélecteurs ne s'appliquent que dans la barre d'Ohio : ailleurs, aucun
   parent ne porte ces classes. */
.ordering-filters-holder .filters { flex-wrap: wrap; align-items: center; row-gap: 0; }
.ordering-filters-holder .ordering-filters { display: contents; }
.ordering-filters-holder .ordering-filters > .woocommerce-notices-wrapper { order: -2; flex: 0 0 100%; }
.ordering-filters-holder .ordering-filters > .kitoimp-subcats { order: -1; flex: 0 0 100%; max-width: 100%; }
.ordering-filters-holder .filters-button { order: 0; margin: 0 auto 0 0; }
.ordering-filters-holder .ordering-filters > .woocommerce-result-count { order: 1; margin: 0 20px 0 auto; }
.ordering-filters-holder .ordering-filters > .woocommerce-ordering { order: 2; margin: 0; }
