/*
Theme Name: Uncode Child
Template: uncode
*/


/* =========================================================
   SKINS — NAVIGATION CATEGORY / WEAPON / AGENTS
   ========================================================= */

.ppl-skin-nav {
  position: relative !important;
  width: 100%;

  overflow: visible !important;

  padding-bottom: 0;

  transition: padding-bottom .18s ease;
}


/* =========================================================
   GRANDES CATÉGORIES
   ========================================================= */

.ppl-skin-nav-categories {
  position: relative !important;

  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: clamp(8px, 1.4vw, 22px);

  width: 100%;

  overflow: visible !important;
}


.ppl-skin-nav-category {
  position: static !important;

  text-align: center;

  overflow: visible !important;
}


/* =========================================================
   BOUTON CATÉGORIE
   ========================================================= */

.ppl-skin-nav-category-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 8px;

  width: 100%;

  padding: 0;
  margin: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: inherit;
  font: inherit;

  cursor: pointer;
}


.ppl-skin-nav-category-img {
  width: min(100%, 120px);
  height: auto;

  aspect-ratio: 1 / 1;

  object-fit: contain;

  transition:
    transform .22s ease,
    opacity .22s ease;
}


.ppl-skin-nav-category-name {
  font-size: clamp(10px, .85vw, 13px);
  line-height: 1.15;

  transition: color .2s ease;
}


.ppl-skin-nav-category-trigger:hover
.ppl-skin-nav-category-img {
  transform: translateY(-3px);
}


.ppl-skin-nav-category.is-active
.ppl-skin-nav-category-name,

.ppl-skin-nav-category.menu-open
.ppl-skin-nav-category-name {
  color: #FF8A00;
}


/* =========================================================
   MEGAMENU — FERMÉ
   ========================================================= */

.ppl-skin-nav-mega {
  visibility: hidden;
  opacity: 0;

  pointer-events: none;

  position: absolute !important;

  top: calc(100% + 14px) !important;

  left: 0 !important;
  right: 0 !important;

  width: 100% !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  z-index: 1000 !important;

  transform: translateY(-4px);

  transition:
    opacity .16s ease,
    transform .16s ease,
    visibility .16s ease;

  overflow: visible !important;
}


/* =========================================================
   MEGAMENU — OUVERT
   ========================================================= */

.ppl-skin-nav-category.menu-open
.ppl-skin-nav-mega {
  visibility: visible;
  opacity: 1;

  pointer-events: auto;

  transform: translateY(0);
}


/* =========================================================
   ESPACE DU HEADER QUAND LE MEGAMENU EST OUVERT
   ========================================================= */

/* Catégories standard */
.ppl-skin-nav:has(
  .ppl-skin-nav-category.menu-open
) {
  padding-bottom: 180px;
}


/* Knives — plusieurs lignes */
.ppl-skin-nav:has(
  .ppl-skin-nav-category[data-category="knives"].menu-open
) {
  padding-bottom: 310px;
}


/* Agents */
.ppl-skin-nav:has(
  .ppl-skin-nav-category[data-category="agents"].menu-open
) {
  padding-bottom: 240px;
}


/* =========================================================
   INTÉRIEUR DU MEGAMENU
   ========================================================= */

.ppl-skin-nav-mega-inner {
  display: flex !important;

  flex-wrap: wrap !important;

  justify-content: center !important;
  align-items: center !important;

  width: 100% !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  gap: 12px 25px !important;

  padding: 20px 28px 24px !important;

  box-sizing: border-box !important;

  background: #0D1420 !important;

  border-top:
    1px solid rgba(255,138,0,.18);

  border-bottom:
    1px solid rgba(255,138,0,.18);

  overflow: visible !important;

  box-shadow:
    0 18px 35px rgba(0,0,0,.32);
}


/* =========================================================
   ALL
   ========================================================= */

.ppl-skin-nav-all {
  color: #FF8A00 !important;

  font-size: 12px;
  font-weight: 700;

  line-height: 1.2;

  letter-spacing: .08em;

  text-decoration: none !important;

  white-space: nowrap;

  padding-right: 22px;

  border-right:
    1px solid rgba(248,246,240,.18);
}


/* =========================================================
   WEAPONS
   ========================================================= */

.ppl-skin-nav-weapon {
  display: flex !important;

  flex-direction: column;

  align-items: center;
  justify-content: flex-start;

  gap: 7px;

  min-width: 90px;

  color: #F8F6F0 !important;

  opacity: .72;

  text-align: center;

  text-decoration: none !important;

  transition:
    color .18s ease,
    opacity .18s ease;
}


.ppl-skin-nav-weapon-img {
  width: 120px;
  height: 80px;

  object-fit: contain;

  transition:
    transform .18s ease,
    opacity .18s ease;
}


.ppl-skin-nav-weapon-name {
  font-size: 11px;

  line-height: 1.15;

  text-align: center;

  white-space: nowrap;
}


.ppl-skin-nav-weapon:hover,
.ppl-skin-nav-weapon.is-active {
  color: #FF8A00 !important;

  opacity: 1;
}


.ppl-skin-nav-weapon:hover
.ppl-skin-nav-weapon-img {
  transform: translateY(-2px);
}


/* =========================================================
   AGENTS
   ========================================================= */

.ppl-skin-nav-mega-inner.is-agents {
  flex-direction: column;

  align-items: stretch !important;

  gap: 18px !important;
}


/* =========================================================
   ALL AGENTS
   ========================================================= */

.ppl-agent-menu-all {
  text-align: center;
}


.ppl-agent-menu-all
.ppl-skin-nav-all {
  display: inline-block;

  padding-right: 0;

  border-right: 0;
}


/* =========================================================
   CT / T
   ========================================================= */

.ppl-agent-menu-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 40px;

  width: 100%;
}


.ppl-agent-menu-team {
  min-width: 0;

  text-align: center;
}


/* =========================================================
   TITRE CT / T
   ========================================================= */

.ppl-agent-menu-team-title {
  display: inline-flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  margin-bottom: 15px;

  color: #FF8A00 !important;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: .08em;

  text-decoration: none !important;
}


.ppl-agent-menu-team-img {
  width: 130px;
  height: 130px;

  object-fit: contain;

  transition:
    transform .2s ease,
    opacity .2s ease;
}


.ppl-agent-menu-team-title:hover
.ppl-agent-menu-team-img {
  transform: translateY(-3px);
}


.ppl-agent-menu-team-title:hover,
.ppl-agent-menu-team-title.is-active {
  opacity: .75;
}


/* =========================================================
   FACTIONS
   ========================================================= */

.ppl-agent-menu-factions {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;
  align-items: center;

  gap: 10px 22px;
}


.ppl-agent-menu-faction {
  color: #F8F6F0 !important;

  font-size: 12px;

  line-height: 1.2;

  text-decoration: none !important;

  white-space: nowrap;

  opacity: .72;

  transition:
    color .18s ease,
    opacity .18s ease;
}


.ppl-agent-menu-faction:hover,
.ppl-agent-menu-faction.is-active {
  color: #FF8A00 !important;

  opacity: 1;
}


/* =========================================================
   RESPONSIVE — TABLETTE
   ========================================================= */

@media (max-width: 1100px) {

  .ppl-skin-nav-categories {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }


  .ppl-skin-nav:has(
    .ppl-skin-nav-category.menu-open
  ) {
    padding-bottom: 260px;
  }


  .ppl-skin-nav:has(
    .ppl-skin-nav-category[data-category="knives"].menu-open
  ) {
    padding-bottom: 420px;
  }


  .ppl-skin-nav:has(
    .ppl-skin-nav-category[data-category="agents"].menu-open
  ) {
    padding-bottom: 330px;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .ppl-skin-nav-categories {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .ppl-skin-nav-category-img {
    width: min(100%, 100px);
  }


  .ppl-skin-nav:has(
    .ppl-skin-nav-category.menu-open
  ) {
    padding-bottom: 420px;
  }


  .ppl-skin-nav:has(
    .ppl-skin-nav-category[data-category="knives"].menu-open
  ) {
    padding-bottom: 650px;
  }


  .ppl-skin-nav:has(
    .ppl-skin-nav-category[data-category="agents"].menu-open
  ) {
    padding-bottom: 500px;
  }


  .ppl-agent-menu-grid {
    grid-template-columns: 1fr;

    gap: 24px;
  }


  .ppl-skin-nav-mega-inner {
    gap: 14px !important;

    padding:
      18px 15px 22px !important;
  }


  .ppl-skin-nav-weapon {
    min-width: 75px;
  }


  .ppl-skin-nav-weapon-img {
    width: 90px;
    height: 65px;
  }


  .ppl-skin-nav-weapon-name {
    font-size: 10px;
  }
}

/* =========================================================
   LOADOUTS — NORMALISATION DES IMAGES TAXONOMIES
   ========================================================= */

/* Images à l'intérieur de Palette / Mood / Style / Price Tier */
.ppl-loadout-nav .ppl-loadout-nav-term-img {
  display: block !important;

  width: 110px !important;
  height: 110px !important;

  min-width: 110px !important;
  max-width: 110px !important;

  min-height: 110px !important;
  max-height: 110px !important;

  object-fit: contain !important;

  margin: 0 auto !important;
}


/* On annule la taille spéciale Palette du snippet */
.ppl-loadout-nav
[data-category="palette"]
.ppl-loadout-nav-term-img {
  width: 110px !important;
  height: 110px !important;

  min-width: 110px !important;
  max-width: 110px !important;

  min-height: 110px !important;
  max-height: 110px !important;
}


/* Les 4 grosses images : Palette / Mood / Style / Price Tier */
.ppl-loadout-nav .ppl-loadout-nav-preview-img {
  display: block !important;

  width: 140px !important;
  height: 140px !important;

  min-width: 140px !important;
  max-width: 140px !important;

  min-height: 140px !important;
  max-height: 140px !important;

  object-fit: contain !important;

  margin: 0 auto !important;
}
/* =========================================================
   LOADOUTS — PRICE TIER : POULPOUL PLUS GRANDS
   ========================================================= */

.ppl-loadout-nav
[data-category="price-tier"]
.ppl-loadout-nav-term-img {
  transform: scale(1.28) !important;
  transform-origin: center center !important;
}

.ppl-skin-sidebar-filter ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}
.ppl-skin-sidebar-filter img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain !important;
}
.ppl-filter-palette ul {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
/* =========================================================
   SKINS SIDEBAR — FILTER GRID COMPACT
   ========================================================= */

.ppl-skin-sidebar-filter ul,
.ppl-skin-sidebar-filter .filter-list {
  display: grid !important;
  gap: 14px 10px !important;
  width: 100% !important;
}

/* Chaque item */
.ppl-skin-sidebar-filter li,
.ppl-skin-sidebar-filter .filter-item {
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

/* Image au-dessus, texte dessous */
.ppl-skin-sidebar-filter a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 5px !important;

  width: 100% !important;

  text-align: center !important;
}

/* Images */
.ppl-skin-sidebar-filter img {
  display: block !important;

  width: 56px !important;
  height: 56px !important;

  max-width: 56px !important;

  object-fit: contain !important;

  margin: 0 auto !important;
}

/* Texte */
.ppl-skin-sidebar-filter a,
.ppl-skin-sidebar-filter a span,
.ppl-skin-sidebar-filter .term-name {
  font-size: 10px !important;
  line-height: 1.15 !important;

  text-align: center !important;

  white-space: normal !important;
}


/* =========================================================
   PALETTE — 7 COLONNES
   ========================================================= */

.ppl-filter-palette ul,
.ppl-filter-palette .filter-list {
  grid-template-columns: repeat(7, minmax(0,1fr)) !important;
}


/* =========================================================
   STYLE — 3 COLONNES
   ========================================================= */

.ppl-filter-style ul,
.ppl-filter-style .filter-list {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}


/* =========================================================
   MOOD — 3 COLONNES
   ========================================================= */

.ppl-filter-mood ul,
.ppl-filter-mood .filter-list {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}


/* =========================================================
   RARITY — 3 COLONNES
   ========================================================= */

.ppl-filter-rarity ul,
.ppl-filter-rarity .filter-list {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}
/* =========================================================
   SKINS SIDEBAR — HOVER / ACTIVE
   ========================================================= */

/* Texte blanc par défaut */
.ppl-skin-sidebar-filter a,
.ppl-skin-sidebar-filter a span,
.ppl-skin-sidebar-filter .term-name {
  color: #F8F6F0 !important;
}

/* Léger voile par défaut */
.ppl-skin-sidebar-filter img {
  opacity: .72;
  transition:
    opacity .18s ease,
    transform .18s ease;
}

/* Hover */
.ppl-skin-sidebar-filter a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.ppl-skin-sidebar-filter a:hover,
.ppl-skin-sidebar-filter a:hover span,
.ppl-skin-sidebar-filter a:hover .term-name {
  color: #FFFFFF !important;
}

/* Élément sélectionné / actif */
.ppl-skin-sidebar-filter .active img,
.ppl-skin-sidebar-filter .is-active img,
.ppl-skin-sidebar-filter a.active img,
.ppl-skin-sidebar-filter a.is-active img {
  opacity: 1;
  transform: translateY(-2px);
}

.ppl-skin-sidebar-filter .active,
.ppl-skin-sidebar-filter .is-active,
.ppl-skin-sidebar-filter a.active,
.ppl-skin-sidebar-filter a.is-active {
  color: #FF8A00 !important;
}

/* =========================================================
   SKINS SIDEBAR — COULEURS / HOVER
   ========================================================= */

/* Texte BLANC par défaut */
.ppl-skin-sidebar-filter a,
.ppl-skin-sidebar-filter a:link,
.ppl-skin-sidebar-filter a:visited,
.ppl-skin-sidebar-filter li a,
.ppl-skin-sidebar-filter li a span,
.ppl-skin-sidebar-filter .term-name {
  color: #F8F6F0 !important;
}


/* Images légèrement atténuées */
.ppl-skin-sidebar-filter img {
  opacity: .75 !important;

  transition:
    opacity .18s ease,
    transform .18s ease;
}


/* HOVER : texte orange */
.ppl-skin-sidebar-filter a:hover,
.ppl-skin-sidebar-filter a:hover span,
.ppl-skin-sidebar-filter li a:hover,
.ppl-skin-sidebar-filter li a:hover span {
  color: #FF8A00 !important;
}


/* HOVER : image pleine + léger mouvement */
.ppl-skin-sidebar-filter a:hover img {
  opacity: 1 !important;
  transform: translateY(-2px);
}


/* Élément actif */
.ppl-skin-sidebar-filter .active a,
.ppl-skin-sidebar-filter .is-active a,
.ppl-skin-sidebar-filter a.active,
.ppl-skin-sidebar-filter a.is-active {
  color: #FF8A00 !important;
}

.ppl-skin-sidebar-filter .active img,
.ppl-skin-sidebar-filter .is-active img,
.ppl-skin-sidebar-filter a.active img,
.ppl-skin-sidebar-filter a.is-active img {
  opacity: 1 !important;
}

/* =========================================================
   PAGINATION — FOND IDENTIQUE AU SITE
   ========================================================= */

.row.row-parent.style-dark:has(.pagination),
.row.row-parent.style-dark:has(.pagination) > *,
.row.row-parent.style-dark:has(.pagination) .row-inner,
.row.row-parent.style-dark:has(.pagination) .row-container,
.row.row-parent.style-dark:has(.pagination) .limit-width,
.pagination,
.pagination li,
.pagination .btn-container,
.pagination .page-numbers,
.pagination .btn {
  background: #070C18 !important;
  background-color: #070C18 !important;
  box-shadow: none !important;
}
.pagination .page-numbers {
  color: #F8F6F0 !important;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover,
.pagination .page-next .btn:hover,
.pagination .page-prev .btn:hover {
  color: #FF8A00 !important;
}
/* =========================================================
   UNCODE — NAVIGATION / PAGINATION SINGLE
   ========================================================= */

.row-container.row-navigation.row-navigation-dark {
  background: #070C18 !important;
  background-color: #070C18 !important;
}
.row-container.row-navigation.row-navigation-dark .row-parent,
.row-container.row-navigation.row-navigation-dark .pagination {
  background: #070C18 !important;
  background-color: #070C18 !important;
}

/* =========================================
   POULPOUL — SKIN DETAIL CLOSE-UP
   ========================================= */

.ppl-detail-crop {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #070C18;
}

.ppl-detail-crop img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform: scale(var(--ppl-zoom));
    transform-origin: var(--ppl-x) var(--ppl-y);

    transition: transform .5s ease;
}