/* .js-pager__items{
	display: flex;
	justify-content: center;
}
.js-pager__items li{
	margin:15px 10px;
}
.js-pager__items li a{
	color:#134489;
} */

 
 body .object-cover {
   object-fit: contain;
 }
 
 
 
 @media (max-width: 767px) {
  .display-desktop{
	display: none;
  }
  .hidden-desktop{
	display: block;
  }
 }
 
 @media (min-width: 768px) {
  .display-desktop{
	display: block;
  }
  .hidden-desktop{
	display: none;
  }
 }

/* Tri des listes de produits (js/product-sort.js) : sélecteur en haut à
   droite de la grille ; l'original, dans les filtres, est masqué. */
.jk-product-sort {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.jk-product-sort label {
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.jk-product-sort select {
  width: auto;
  min-width: 12rem;
  padding: .5rem 2rem .5rem .75rem;
  border: 1px solid #d1d5db;
  border-radius: .25rem;
  background-color: #fff;
}
.jk-product-sort-source {
  display: none;
}


/* Prix unitaire HT sous le total de ligne : panier (composant cart_item) et
   récapitulatif de commande (views-view-field--commerce-checkout-order-summary
   --purchased-entity). */
.cart-item__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}
.cart-item__unit-price,
.order-summary-price__unit {
  color: #6b7280;
  font-size: .9rem;
  font-weight: 400;
  margin-top: 2px;
}
.order-summary-price__total {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}
/* Récapitulatif de commande (colonne de droite du tunnel) : polices
   réduites (quantité, désignation, prix) et marges resserrées, pour que le
   total de ligne (« 2 112,48 € », espaces insécables) tienne dans la colonne. */
.checkout-pane-order-summary td.views-field {
  padding-left: .5rem;
  padding-right: .5rem;
  font-size: .875rem;
  line-height: 1.35;
}
.checkout-pane-order-summary .order-summary-price .text-large {
  font-size: .875rem;
}
.checkout-pane-order-summary .order-summary-price__unit {
  font-size: .78rem;
}
@media (max-width: 639px) {
  .cart-item__prices {
    align-items: flex-start;
  }
}

/* Mon compte › détail d'une commande : colonnes de prix (order-detail.html.twig). */
.order-lines .order-lines__price {
  text-align: right;
  white-space: nowrap;
}

/* Suggestions du champ de recherche de l'en-tête (js/search-autocomplete.js). */
.ui-autocomplete.search-api-autocomplete-search {
  z-index: 1000;
  max-width: min(36rem, calc(100vw - 2rem));
  max-height: 70vh;
  overflow-y: auto;
  padding: .25rem 0;
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: 0 8px 24px rgb(0 0 0 / .12);
  font-size: .875rem;
  font-weight: 400;
  list-style: none;
}
.ui-autocomplete.search-api-autocomplete-search .ui-menu-item-wrapper {
  display: block;
  padding: .5rem .75rem;
  border: 0;
  margin: 0;
  color: #1f2937;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}
.ui-autocomplete.search-api-autocomplete-search .ui-menu-item-wrapper.ui-state-active {
  background: #134489;
  color: #fff;
}

/* Camembert des couleurs disponibles, coin haut droit de l'image des cartes. */
.commerce-card {
  position: relative;
}
.commerce-card .jk-couleurs {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
/* Carte horizontale : l'image occupe le premier tiers (w-1/3). */
.commerce-card:has(.card-horizontal) .jk-couleurs {
  right: auto;
  left: calc(100% / 3 - 40px);
}
.commerce-card .jk-couleurs svg {
  display: block;
}
.commerce-card .jk-couleurs path {
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
}
.commerce-card .jk-couleurs__bord {
  stroke: rgba(0, 0, 0, 0.25);
  stroke-width: 1;
}

/* Onglet Téléchargements des fiches produit : sections par type de document. */
.jk-docs { display: flex; flex-direction: column; gap: 28px; width: 100%; }
.jk-docs--technique { --jk-doc: #004080; --jk-doc-bg: #e6eef7; }
.jk-docs--croquis { --jk-doc: #0f766e; --jk-doc-bg: #e6f4f2; }
.jk-docs--prescription { --jk-doc: #b45309; --jk-doc-bg: #fdf3e7; }
.jk-docs--brochure { --jk-doc: #6d28d9; --jk-doc-bg: #f1ebfd; }
.jk-docs--autre { --jk-doc: #4b5563; --jk-doc-bg: #f3f4f6; }
.jk-docs__entete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jk-docs__picto { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--jk-doc-bg); color: var(--jk-doc); }
.jk-docs__titre { margin: 0; text-transform: none; letter-spacing: normal; font-size: 18px; font-weight: 700; line-height: 1.3; color: #111827; }
.jk-docs__nombre { font-size: 15px; font-weight: 500; color: #6b7280; }
.jk-docs__description { margin: 0; font-size: 13px; color: #6b7280; }
.jk-docs__liste { margin: 0; padding: 0; list-style: none; border: 1px solid #e5e7eb; border-left: 3px solid var(--jk-doc); border-radius: 8px; background: #fff; overflow: hidden; }
.jk-docs__liste li { margin: 0; }
.jk-docs__liste li + li { border-top: 1px solid #f1f5f9; }
.jk-docs__ligne { display: flex; align-items: center; gap: 14px; padding: 11px 16px; color: #111827; text-decoration: none; }
.jk-docs__ligne:hover, .jk-docs__ligne:focus-visible { background: var(--jk-doc-bg); }
.jk-docs__nom { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.jk-docs__meta { flex: none; display: inline-flex; align-items: center; justify-content: flex-end; min-width: 96px; gap: 6px; font-size: 12px; color: #6b7280; white-space: nowrap; }
.jk-docs__format { padding: 1px 6px; border-radius: 4px; background: #fee2e2; color: #b91c1c; font-size: 10px; font-weight: 700; }
.jk-docs__action { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #d1d5db; border-radius: 8px; color: var(--jk-doc); }
.jk-docs__ligne:hover .jk-docs__action { background: var(--jk-doc); border-color: var(--jk-doc); color: #fff; }
@media (max-width: 480px) {
  .jk-docs__ligne { flex-wrap: wrap; row-gap: 4px; }
  .jk-docs__nom { flex-basis: calc(100% - 50px); }
  .jk-docs__meta { order: 3; width: 100%; min-width: 0; justify-content: flex-start; }
  .jk-docs__action { order: 2; }
}

/* Galerie de la fiche produit. Ordinateur (≥ 640 px, bascule sm: du gabarit) :
   colonne image inchangée. Mobile : une seule galerie, sous le titre. */
.jk-galerie-mobile { display: none; }
.jk-galerie__cadre { position: relative; }
.jk-galerie__compteur, .jk-galerie__loupe, .jk-galerie__points { display: none; }
@media (max-width: 639px) {
  .jk-galerie-desktop { display: none !important; }
  .jk-galerie-mobile { display: block; width: 100%; margin: 4px 0 20px; }
  .jk-galerie-mobile .jk-galerie__piste {
    height: auto;
    aspect-ratio: 1 / 0.82;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .jk-galerie-mobile .jk-galerie__piste::-webkit-scrollbar { display: none; }
  .jk-galerie-mobile .jk-galerie__compteur {
    display: block;
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
  }
  .jk-galerie-mobile .jk-galerie__loupe {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    pointer-events: none;
  }
  .jk-galerie-mobile .jk-galerie__points { display: flex; justify-content: center; gap: 6px; margin: 10px 0 8px; }
  .jk-galerie-mobile .jk-galerie__points span { width: 7px; height: 7px; border-radius: 999px; background: #cbd5e1; transition: width 0.2s; }
  .jk-galerie-mobile .jk-galerie__points span.is-active { width: 18px; background: #004080; }
  .jk-galerie-mobile .jk-galerie__vignettes {
    display: flex;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .jk-galerie-mobile .jk-galerie__vignettes::-webkit-scrollbar { display: none; }
  .jk-galerie-mobile .jk-galerie__vignettes a {
    flex: none;
    width: 64px;
    height: 64px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
  }
  .jk-galerie-mobile .jk-galerie__vignettes a.is-active { border-color: #004080; }
}

/* Fil d'Ariane : quatre niveaux sur une fiche produit, à replier en
   mobile plutôt que de déborder. Lien « Retour aux résultats » à droite
   (js/breadcrumb-parcours.js), sous le fil quand la place manque. */
nav[role="navigation"] > ol {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}
nav.jk-ariane--retour {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
}
.jk-ariane-retour {
  white-space: nowrap;
}
