/**
 * LeGeekShop — produits récemment consultés.
 * Rail isolé afin que les grilles génériques ne compressent pas les cartes sur mobile.
 */
html.lgk-storefront--legeekshop .lgk-recently-viewed {
  overflow: hidden;
}

html.lgk-storefront--legeekshop .lgk-recently-viewed__header {
  width: min(100%, 46rem);
  margin-inline: auto;
}

html.lgk-storefront--legeekshop .lgk-recently-viewed__list {
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-rows: minmax(0, auto) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: clamp(15rem, 72vw, 19rem) !important;
  align-items: stretch !important;
  justify-content: start !important;
  gap: 1rem !important;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: var(--container-gutter, 1.25rem);
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

html.lgk-storefront--legeekshop .lgk-recently-viewed__list::-webkit-scrollbar {
  display: none;
}

html.lgk-storefront--legeekshop .lgk-recently-viewed__list > .product-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

html.lgk-storefront--legeekshop .lgk-recently-viewed__list .product-title,
html.lgk-storefront--legeekshop .lgk-recently-viewed__list .price-list,
html.lgk-storefront--legeekshop .lgk-recently-viewed__list .lgk-card-v2__cta-link {
  word-break: normal !important;
  overflow-wrap: normal !important;
}

@media screen and (min-width: 700px) {
  html.lgk-storefront--legeekshop .lgk-recently-viewed__list {
    grid-auto-columns: clamp(14rem, 31%, 18rem) !important;
    gap: 1.125rem !important;
  }
}

@media screen and (min-width: 1100px) {
  html.lgk-storefront--legeekshop .lgk-recently-viewed__list {
    grid-auto-columns: calc((100% - 3.75rem) / 4) !important;
    gap: 1.25rem !important;
  }
}
