/* ============================================
   PLP B2B — Base Styles
   ============================================ */

@import url('../configs/font-faces.css');

/* --- CSS Variables --- */
:root {
  --ICO-Azul: #0B4460;
  --ICO-Celeste: #459CD6;
  --ICO-Gris: #A4A4A4;
  --ICO-texto-mate: #343737;
  --ICO-Blanco: #FFF;
  --ICO-Gris-transparente: #EAEAEA;
  --ICO-Verde: #8DBF3E;
}

/* --- Reset básico --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Avenir Next LT Pro', sans-serif;
  background: var(--ICO-Blanco);
  color: var(--ICO-texto-mate);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Wrapper global PLP --- */
.plp-page-wrapper {
  width: 100%;
  background: var(--ICO-Blanco);
}

.plp-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(32px, 6vw, 72px);
  box-sizing: border-box;
}

/* Utility */
.plp-d-mobile {
  display: none !important;
}

.plp-d-desktop {
  display: flex !important;
}

@media (max-width: 1023px) {
  .plp-d-mobile {
    display: flex !important;
  }

  .plp-d-desktop {
    display: none !important;
  }
}

/* --- Header and Categorías Flex Row (Desktop) --- */
.plp-header-categorias-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.plp-header-col {
  width: 266px;
  min-width: 266px;
  flex-shrink: 0;
}

.plp-categorias-col {
  flex: 1;
  min-width: 0;
  border-bottom: 1px solid #EAEAEA;
  padding-bottom: 40px;
  margin-bottom: 40px;
}

@media (max-width: 1023px) {
  .plp-header-categorias-row {
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .plp-header-col {
    width: 100%;
    min-width: 0;
  }

  .plp-categorias-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .plp-categorias-col {
    padding-bottom: 32px;
    margin-bottom: 6px;
  }
}

/* --- Main Layout Styles --- */
.plp-banner-inner {
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .plp-banner-inner {
    margin-bottom: 24px;
  }
}

.plp-main-layout {
  display: flex;
  gap: 24px;
  width: 100%;
}

.plp-left-column {
  display: flex;
  flex-direction: column;
  width: 266px;
  flex-shrink: 0;
}

.plp-right-column {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  overflow: visible;
}

.plp-container {
  padding: 0 clamp(24px, 6vw, 72px);
}

@media (max-width: 1024px) {
  .plp-main-layout {
    display: flex;
    flex-direction: column;
  }

  .plp-left-column,
  .plp-right-column {
    display: contents;
  }

  .plp-categorias-col {
    order: 1;
  }

  .plp-header-inner {
    order: 2;
    margin-bottom: 0px !important;
  }

  #plp-productos {
    order: 3;
  }

  .plp-filtro-panel {
    order: 4;
  }
}


/* RT Fix 2026-06-16: PLP categorías - no forzar mayúsculas, respetar formato PHP */
.ico-plp-b2b-dynamic .plp-categorias-track .plp-categoria-label,
.ico-plp-b2b-dynamic .plp-categoria-label,
.ico-plp-variant-home .plp-categorias-track .plp-categoria-label,
.ico-plp-variant-home .plp-categoria-label,
.plp-categorias-track .plp-categoria-label,
.plp-categoria-label,
.plp-filtro-checkbox-text,
.plp-breadcrumb-item {
	text-transform: none !important;
}
