/*
 * Search V40 — page /recherche alignée collections V39 (6 boutiques).
 * Isolée via [data-search-layout="v40"]. Erotica / Airsoft ne chargent pas cette feuille.
 */

[data-search-layout="v40"] {
  --lgk-search-v40-gap: clamp(0.5rem, 1.1vw, 0.8rem);
  --lgk-search-v40-card-pad: 0.5rem 0.6rem 0.65rem;
  width: 100%;
  max-width: none;
}

[data-search-layout="v40"].lgk-search-page,
[data-search-layout="v40"] .lgk-search-page__hero-inner,
[data-search-layout="v40"] .lgk-search-page__results {
  width: 100%;
  max-width: none;
}

[data-search-layout="v40"] .lgk-search-page__hero {
  margin-bottom: 0.75rem;
}

[data-search-layout="v40"] .lgk-search-page__title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}

[data-search-layout="v40"] .lgk-search-page__grid.lgk-colp-grid,
[data-search-layout="v40"] .lgk-colp-grid {
  gap: var(--lgk-search-v40-gap);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  [data-search-layout="v40"] .lgk-colp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  [data-search-layout="v40"] .lgk-colp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  [data-search-layout="v40"] .lgk-colp-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1680px) {
  [data-search-layout="v40"] .lgk-colp-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

[data-search-layout="v40"] .lgk-spc {
  border-radius: 0.75rem;
}

html.lgk-storefront--legeekshop [data-search-layout="v40"] .lgk-spc__media,
html.lgk-storefront--digital-geekland [data-search-layout="v40"] .lgk-spc__media,
html.lgk-storefront--candy-geekland [data-search-layout="v40"] .lgk-spc__media,
html.lgk-storefront--deal-geekland [data-search-layout="v40"] .lgk-spc__media,
[data-search-layout="v40"] .lgk-spc__media {
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
}

html.lgk-storefront--wayne [data-search-layout="v40"] .lgk-spc__media,
html.lgk-storefront--wayne-outfitters [data-search-layout="v40"] .lgk-spc__media {
  aspect-ratio: 3 / 4 !important;
}

html.lgk-storefront--fivem [data-search-layout="v40"] .lgk-spc__media {
  aspect-ratio: 16 / 9 !important;
}

[data-search-layout="v40"] .lgk-spc__media img,
[data-search-layout="v40"] .lgk-spc__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

html.lgk-storefront--wayne [data-search-layout="v40"] .lgk-spc__image,
html.lgk-storefront--wayne-outfitters [data-search-layout="v40"] .lgk-spc__image {
  object-fit: cover !important;
}

[data-search-layout="v40"] .lgk-spc__body {
  gap: 0.1rem;
  padding: var(--lgk-search-v40-card-pad);
}

[data-search-layout="v40"] .lgk-spc__title {
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-search-layout="v40"] .lgk-search-page__empty {
  padding: 1.25rem 1rem;
  border-radius: 0.75rem;
  max-width: 42rem;
}

[data-search-layout="v40"] .lgk-search-page__didyoumean {
  margin-top: 0.65rem;
}

[data-search-layout="v40"] .lgk-search-page__recovery-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

[data-search-layout="v40"] .lgk-search-suggest__item.is-active,
[data-search-layout="v40"] .lgk-search-suggest__item--collection {
  outline: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
