/*
 * Collection V39 — expérience catalogue densifiée pour les 6 boutiques autorisées.
 * Isolée via [data-collection-layout="v39"]. Aucune couleur de thème imposée.
 * Erotica / Airsoft ne chargent pas cette feuille.
 *
 * Spécificité : les overrides historiques LGK (`aspect-ratio: 1/1 !important`
 * sur `.lgk-spc__media`) sont neutralisés uniquement sous ce layout.
 */

[data-collection-layout="v39"] {
  --lgk-colp-v39-gap: clamp(0.5rem, 1.1vw, 0.8rem);
  --lgk-colp-v39-card-pad: 0.5rem 0.6rem 0.65rem;
}

/* Bannière compacte : produits visibles plus tôt */
[data-collection-layout="v39"] .lgk-colp-hero {
  min-height: 112px;
  height: clamp(112px, 20vw, 160px);
  margin-bottom: 0.75rem;
  border-radius: 0.85rem;
}

@media (min-width: 700px) {
  [data-collection-layout="v39"] .lgk-colp-hero {
    height: clamp(128px, 12vw, 176px);
  }
}

@media (min-width: 1024px) {
  [data-collection-layout="v39"] .lgk-colp-hero {
    height: clamp(136px, 10vw, 188px);
    border-radius: 1rem;
  }
}

[data-collection-layout="v39"] .lgk-colp-hero--empty {
  min-height: 88px;
  height: auto;
  padding-block: 0.3rem;
}

[data-collection-layout="v39"] .lgk-colp-hero__title {
  font-size: clamp(1.28rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

[data-collection-layout="v39"] .lgk-colp-hero__lead {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.35;
  max-width: 52rem;
}

[data-collection-layout="v39"] .lgk-colp-hero__content {
  gap: 0.2rem;
  padding: clamp(0.65rem, 1.8vw, 1.05rem);
}

[data-collection-layout="v39"] .lgk-colp-hero__count {
  font-size: 0.82rem;
}

[data-collection-layout="v39"] .lgk-colp-head {
  margin-bottom: 0.65rem;
}

[data-collection-layout="v39"] .lgk-colp-head__title {
  font-size: clamp(1.28rem, 2.2vw, 1.75rem);
}

[data-collection-layout="v39"] .lgk-colp-head__lead {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 52rem;
}

/* Sous-catégories plus commerciales */
[data-collection-layout="v39"] .lgk-colp-subs {
  margin-bottom: 0.65rem;
}

[data-collection-layout="v39"] .lgk-colp-subs__chip {
  border-radius: 0.65rem;
  min-height: 2.4rem;
  padding-inline: 0.85rem;
  font-size: 0.84rem;
}

/* Grille densifiée, images plus présentes */
[data-collection-layout="v39"] .lgk-colp-grid {
  gap: var(--lgk-colp-v39-gap);
}

@media (max-width: 479px) {
  [data-collection-layout="v39"] .lgk-colp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  [data-collection-layout="v39"] .lgk-colp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  [data-collection-layout="v39"] .lgk-colp-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1680px) {
  [data-collection-layout="v39"] .lgk-colp-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 2200px) {
  [data-collection-layout="v39"] .lgk-colp-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

[data-collection-layout="v39"] .lgk-spc {
  border-radius: 0.75rem;
}

/*
 * Ratios par famille commerciale.
 * Spécificité ≥ html.lgk-storefront--legeekshop .lgk-spc__media (1/1 !important).
 */
html.lgk-storefront--legeekshop [data-collection-layout="v39"] .lgk-spc__media,
html.lgk-storefront--digital-geekland [data-collection-layout="v39"] .lgk-spc__media,
html.lgk-storefront--candy-geekland [data-collection-layout="v39"] .lgk-spc__media,
html.lgk-storefront--deal-geekland [data-collection-layout="v39"] .lgk-spc__media,
[data-collection-layout="v39"] .lgk-spc__media {
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
  background: color-mix(in srgb, currentColor 4%, transparent) !important;
}

html.lgk-storefront--wayne [data-collection-layout="v39"] .lgk-spc__media,
html.lgk-storefront--wayne-outfitters [data-collection-layout="v39"] .lgk-spc__media,
[data-collection-layout="v39"][data-storefront="wayne-outfitters"] .lgk-spc__media {
  aspect-ratio: 3 / 4 !important;
}

html.lgk-storefront--fivem [data-collection-layout="v39"] .lgk-spc__media,
[data-collection-layout="v39"][data-storefront="fivem"] .lgk-spc__media {
  aspect-ratio: 16 / 9 !important;
}

html.lgk-storefront--legeekshop [data-collection-layout="v39"] .lgk-spc__media img,
html.lgk-storefront--legeekshop [data-collection-layout="v39"] .lgk-spc__image,
[data-collection-layout="v39"] .lgk-spc__media img,
[data-collection-layout="v39"] .lgk-spc__image {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

html.lgk-storefront--wayne [data-collection-layout="v39"] .lgk-spc__media img,
html.lgk-storefront--wayne [data-collection-layout="v39"] .lgk-spc__image,
[data-collection-layout="v39"][data-storefront="wayne-outfitters"] .lgk-spc__media img,
[data-collection-layout="v39"][data-storefront="wayne-outfitters"] .lgk-spc__image {
  object-fit: cover !important;
}

[data-collection-layout="v39"] .lgk-spc__body {
  gap: 0.1rem;
  padding: var(--lgk-colp-v39-card-pad);
}

[data-collection-layout="v39"] .lgk-spc__vendor {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.72;
}

[data-collection-layout="v39"] .lgk-spc__title {
  min-height: 0;
  margin: 0;
  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;
}

/* Prix immédiatement sous le titre */
[data-collection-layout="v39"] .lgk-spc__title + .lgk-sale-price,
[data-collection-layout="v39"] .lgk-spc__title + .lgk-spc__price,
[data-collection-layout="v39"] .lgk-spc__body > .lgk-sale-price {
  margin-top: 0.12rem;
}

[data-collection-layout="v39"] .lgk-spc__price,
[data-collection-layout="v39"] .lgk-sale-price--card {
  margin-top: 0.12rem;
  font-size: 0.92rem;
}

[data-collection-layout="v39"] .lgk-spc__stock {
  margin-top: 0.08rem;
  font-size: 0.72rem;
}

[data-collection-layout="v39"] .lgk-spc__cta {
  margin-top: 0.4rem;
  min-height: 2.25rem;
  border-radius: 0.55rem;
  font-size: 0.8rem;
}

[data-collection-layout="v39"] .lgk-colp-toolbar {
  margin-bottom: 0.5rem;
  padding-block: 0.4rem;
  gap: 0.55rem;
}

[data-collection-layout="v39"] .lgk-colp-chips {
  margin-bottom: 0.55rem;
  gap: 0.4rem;
}

[data-collection-layout="v39"] .lgk-colp-layout {
  gap: 0.9rem;
}

@media (min-width: 980px) {
  [data-collection-layout="v39"] .lgk-colp-layout {
    grid-template-columns: minmax(210px, 248px) minmax(0, 1fr);
    gap: 1.1rem;
  }
}

[data-collection-layout="v39"] .lgk-colp-empty {
  padding: 1.25rem 1rem;
  border-radius: 0.75rem;
}

[data-collection-layout="v39"] .lgk-colp-seo {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
}

[data-collection-layout="v39"] .lgk-colp-seo__body {
  max-width: 72rem;
}

[data-collection-layout="v39"] .lgk-colp-related {
  margin-top: 1.5rem;
}

[data-collection-layout="v39"] .lgk-colp-related__grid {
  gap: 0.7rem;
}

[data-collection-layout="v39"] .lgk-colp-rel__media {
  aspect-ratio: 16 / 9;
}

/* Pleine largeur : conserver les marges internes cohérentes, pas de 100vw */
[data-collection-layout="v39"] .lgk-colp__container.lgk-sf-container {
  width: 100%;
  max-width: none;
}
