/* Product listing pages (products/ and fr/produits/), 2026-10-22.
   Restyles the existing faceted-search markup: page heading with live count,
   a quiet filter panel, image-first product cards and a cleaner detail pop-up. */
.brand-items_wrapper { background: var(--jt-mist, #F2F6F9); padding: 110px 0 80px; }

/* Heading above the results */
.card1 { background: transparent; border: 0; }
.card1 > .card-header { background: transparent; border: 0; padding: 0 0 18px; }
.jt-results-title { font-family: Raleway, "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08; letter-spacing: -.02em; color: var(--jt-navy, #0A406B); text-transform: none; margin: 0; }
.jt-results-count { margin: 6px 0 0; color: #5b6573; font-size: 1.05rem; }
.card1 > .card-body { padding: 0 0 14px; }
.card1 .form-group.row { align-items: center; margin: 0; justify-content: flex-end; gap: 8px; }
.card1 .form-group.row label { width: auto; flex: none; padding: 0; text-align: right; color: #5b6573; font-size: .95rem; }
.card1 .form-group.row .col-sm-2 { width: auto; flex: none; padding: 0; }
.card1 #qty { width: auto; min-width: 74px; border-radius: 999px; border-color: #d7dee6; padding: .35rem 2rem .35rem .9rem; }

/* Filter panel */
.side-menu > .card { border: 0; border-radius: 16px; overflow: hidden; position: sticky; top: 100px; box-shadow: 0 1px 0 rgba(10,64,107,.06); }
.side-menu .card-header { background: #fff; border-bottom: 1px solid #eef1f5; padding: 14px 20px; }
.side-menu .card-header .text-center { text-align: left !important; }
.side-menu .card-header a { color: var(--jt-navy, #0A406B) !important; font-weight: 700; text-decoration: underline; text-decoration-color: var(--jt-ember, #FF8A3D); text-underline-offset: 4px; }
.side-menu .card-body { padding: 18px 20px 22px; }
.side-menu .filter-title { font-family: Raleway, "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1rem; border: 0; margin: 18px 0 8px; color: var(--jt-ink, #1d2a36); }
.side-menu .filter-title:first-child { margin-top: 0; }
.side-menu .filter-title a { color: var(--jt-navy, #0A406B); text-decoration: none; }
.side-menu .filter-title a[data-bs-toggle]::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.side-menu #search { width: 100%; border: 1px solid #d7dee6; border-radius: 999px; padding: .6rem 1rem; background: var(--jt-mist, #F2F6F9); }
.side-menu #search:focus { outline: none; border-color: var(--jt-navy, #0A406B); background: #fff; box-shadow: 0 0 0 3px rgba(10,64,107,.12); }
.side-menu [id^="filter-item-"]:empty { display: none; }
.side-menu [id^="filter-item-"] { font-size: .92rem; background: var(--jt-mist, #F2F6F9); border-radius: 8px; padding: 6px 10px; margin: 0 0 6px; }
.filter-cat { list-style: none; padding: 4px 0 0; margin: 0; max-height: 240px; scrollbar-width: thin; scrollbar-color: #c5ccd6 transparent; }
.filter-cat::-webkit-scrollbar { width: 6px; background: transparent; }
.filter-cat::-webkit-scrollbar-thumb { background: #c5ccd6; border-radius: 3px; }
.filter-cat::-webkit-scrollbar-track { box-shadow: none; background: transparent; }
.filter-cat li { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: .95rem; line-height: 1.35; }
.filter-cat li input[type=checkbox] { margin-top: .2em; accent-color: var(--jt-navy, #0A406B); width: 16px; height: 16px; flex: none; }
.filter-cat li label { flex: 1; margin: 0; }
.filter-cat li span { color: #98a2b3; font-size: .85rem; }

/* Product cards */
#result .card-deck { row-gap: 24px; }
#result .products_item { display: flex; }
#result .card { width: 100%; border: 0; border-radius: 16px; overflow: hidden; background: #fff; cursor: pointer;
  box-shadow: 0 1px 0 rgba(10,64,107,.06); transition: box-shadow .25s, transform .25s; }
#result .card:hover { box-shadow: 0 18px 40px -22px rgba(4,22,38,.45); transform: translateY(-3px); }
#result .card:focus-visible { outline: 3px solid var(--jt-ember, #FF8A3D); outline-offset: 3px; }
#result .card-img-top { aspect-ratio: 1 / 1; height: auto; object-fit: cover; background: #f4f6f8; }
#result .card .row { margin: 0; }
#result .card-body { padding: 18px 20px 22px; }
#result .card-text { margin: 0 0 4px; color: #98a2b3; font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
#result .card-title { font-family: Raleway, "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.3;
  text-transform: none; color: var(--jt-navy, #0A406B); margin: 0; }
#result .card-title::after { content: "View details"; display: block; margin-top: 10px; font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: .92rem; font-weight: 700; color: var(--jt-navy, #0A406B); text-decoration: underline; text-decoration-color: var(--jt-ember, #FF8A3D); text-underline-offset: 4px; }
html[lang="fr"] #result .card-title::after { content: "Voir les détails"; }

/* Pagination */
#pagination { gap: 6px; margin-top: 28px; }
#pagination .page-link { border: 0; border-radius: 999px !important; min-width: 40px; text-align: center; color: var(--jt-navy, #0A406B); background: #fff; font-weight: 700; cursor: pointer; }
#pagination .page-item.active .page-link { background: var(--jt-navy, #0A406B); color: #fff; }

/* Product detail pop-up */
.card_modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
.card_modal .modal-header { border-bottom: 1px solid #eef1f5; padding: 16px 24px; }
.card_modal .modal-title { font-family: Raleway, "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--jt-navy, #0A406B) !important; text-transform: none; }
.card_modal .modal-body { padding: 24px; }
.card_modal .modal_infos p { margin: 0 0 12px; line-height: 1.6; color: #3b4a57; }
.card_modal .card-brand, .card_modal .card-sku { font-weight: 700; color: var(--jt-ink, #1d2a36); }
.card_modal .card-chain { font-weight: 400 !important; }
.card_modal .modal-footer { border-top: 1px solid #eef1f5; }

@media (max-width: 991px) {
  .brand-items_wrapper { padding: 110px 0 56px; }
  .side-menu > .card { position: static; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { #result .card { transition: none; } #result .card:hover { transform: none; } }
.card_modal .jt-list { margin: 6px 0 0; padding-left: 1.2rem; list-style: disc; }
.card_modal .jt-list li { display: list-item; margin: 0 0 4px; line-height: 1.45; }
#result .card { padding: 0; }
#result .card > img.card-img-top { width: 100%; margin: 0; border-radius: 0; }

/* Features / Included filters: whole line clickable, find box, ticked count */
.filter-cat li.jt-find { padding: 2px 0 8px; position: sticky; top: 0; background: #fff; z-index: 1; }
.jt-list-find { width: 100%; border: 1px solid #d7dee6; border-radius: 8px; padding: .4rem .7rem; font-size: .9rem; background: var(--jt-mist, #F2F6F9); }
.jt-list-find:focus { outline: none; border-color: var(--jt-navy, #0A406B); background: #fff; }
.jt-check { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 0; cursor: pointer; border-radius: 6px; padding: 2px 4px; }
.jt-check:hover { background: var(--jt-mist, #F2F6F9); }
.jt-check input[type=checkbox] { margin-top: .2em; accent-color: var(--jt-navy, #0A406B); width: 16px; height: 16px; flex: none; }
.jt-check-name { flex: 1; }
.jt-check-n { color: #98a2b3; font-size: .85rem; }
.jt-check:has(input:checked) .jt-check-name { font-weight: 700; color: var(--jt-navy, #0A406B); }
.jt-sel:empty { display: none; }
.jt-sel { display: inline-block; min-width: 1.4em; padding: 0 .45em; margin-left: .35em; border-radius: 999px; background: var(--jt-navy, #0A406B); color: #fff; font-size: .75rem; line-height: 1.5; text-align: center; vertical-align: middle; }
.filter-cat li[hidden] { display: none !important; }
#collapseCat, #collapseColor { max-height: 300px; }

/* Phones: collapsible filter panel */
.jt-filter-toggle { display: none; }
@media (max-width: 991px) {
  .side-menu .card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .side-menu .card-header .w-100 { display: none; }
  .jt-filter-toggle { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--jt-navy, #0A406B); background: #fff; color: var(--jt-navy, #0A406B);
    border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .95rem; }
  .side-menu > .card.is-open .jt-filter-toggle { background: var(--jt-navy, #0A406B); color: #fff; }
  .side-menu > .card.is-open .jt-filter-toggle .jt-sel { background: #fff; color: var(--jt-navy, #0A406B); }
  .side-menu > .card:not(.is-open) .card-body { display: none; }
  .side-menu > .card { margin-bottom: 16px; }
  .brand-items_wrapper { padding-top: 96px; }
}
