body {
  padding-right: 0 !important;
}

.crecima-menu {
  width: 386px !important;
  height: 100dvh;
}

@media (min-width: 991px) {
  .logged-in #crecima-menu {
    top: 32px;
  }

  .logged-in .crecima-menu {
    height: calc(100dvh - 32px);
  }
}

.btn-segundario.btn-orden-ml {
  margin: 0 31px;
  width: calc(100% - 62px);
  height: 56px;
}

.btn_categorias {
  border: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 0;
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  background: transparent !important;

  & span {
    font-family: var(--e-global-typography-primary-font-family), sans-serif !important;
  }
}

@media (max-width: 1200px) {
  .btn_categorias span {
    display: none;
  }
}

/* offcanvas-header */

.crecima-menu .offcanvas-header {
  padding: 0 42px 0 30px;
  background: var(--Brand-Blue-500, #0050de);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  min-height: 68px;
}

.crecima-menu .offcanvas-header>a {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
}

.crecima-menu .offcanvas-header h5 {
  color: var(--neutral-0, #fff);
  font-family: var(--fuente-principal);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  margin: 0;
}

.crecima-menu .offcanvas-header p {
  margin: 0;
  color: var(--neutral-0, #fff);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.crecima-menu .offcanvas-header>div:nth-child(2) {
  width: calc(100% - 32px - 7px);
}

/* offcanvas-subheader */

.crecima-menu .offcanvas-subheader {
  padding: 12px 31px;
  background: var(--neutral-400, #d9d9d9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crecima-menu .offcanvas-subheader a {
  color: var(--neutral-950, #1f1f1f);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: var(--gap-gap-4, 12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 64px;
  gap: 3px;
}

/* offcanvas-body */

.crecima-menu .offcanvas-body {
  background: var(--neutral-300, #f0f0f0);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  padding-bottom: 54px;
  scrollbar-gutter: stable;
}

.crecima-menu .offcanvas-body ul {
  list-style: none;
}

.crecima-menu .offcanvas-body li.list-menu-cre {
  /*   border-bottom: solid 1px var(--neutral-500, #BFBFBF); */
}

.crecima-menu .offcanvas-body li.list-menu-cre>a,
.crecima-menu .offcanvas-body li.list-menu-cre>button {
  display: flex;
  color: var(--Neutral-N-800, #262626);
  font-family: var(--fuente-principal);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 90%;
  padding: 20px 25px 20px 30px;
  width: 100%;
  background-color: transparent;
}

.crecima-menu .offcanvas-body li.list-menu-cre>button:focus {
  outline: none;
  box-shadow: none;
}

/* desplegable categorias padres */

.crecima-menu .offcanvas-body .btn-menu-acordeon {
  position: relative;
}

.crecima-menu .offcanvas-body .btn-menu-acordeon svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 25px;
  transition: transform 0.5s ease-in-out;
}

.crecima-menu .offcanvas-body .btn-menu-acordeon:not(.collapsed) svg {
  transform: translateY(-50%) rotate(180deg);
}

.crecima-menu .ul-cate-padres {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-bottom: 15px;
  background: var(--Background, #fcfcfc);
}

.crecima-menu .ul-cate-padres li {
  width: 100%;
}

.crecima-menu .ul-cate-padres li a,
.subcats-list .subcat-item a {
  color: #262626;
  font-family: var(--e-global-typography-secondary-font-family) !important;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 15px 26px 15px 31px;
  width: 100%;
}

.crecima-menu .ul-cate-padres li a{
  font-size: 16px;
}

.crecima-menu .ul-cate-padres li a svg path {
  /* fill: #c70e0e; */
}

.crecima-menu .ul-cate-padres .icono-submenu {
  margin: 0 0 0 auto;
}

.crecima-menu .ul-cate-padres li a:hover {
  background: var(--Brand-Blue-50, #e6eefc);
  color: var(--Brand-Blue-500, #0050de);
}

.crecima-menu .ul-cate-padres li a:hover span,
.crecima-menu .ul-cate-padres li a:focus span,
.crecima-menu .ul-cate-padres li a.is-active span {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.crecima-menu .offcanvas-body {
  overflow-y: auto;
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
.crecima-menu .offcanvas-body::-webkit-scrollbar {
  width: 6px;
}

.crecima-menu .offcanvas-body::-webkit-scrollbar-track {
  background: transparent;
}

.crecima-menu .offcanvas-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.crecima-menu .btn-segundario.btn-ordenrapida {
  margin-top: 20px;
  margin-bottom: 5px;
}

.crecima-menu .ul-cate-padres li a.link-ofertas {
  /* border-radius: var(--size-3, 8px); */
  /* background: #FA8232; */
  /* width: calc(100% - 18px - 18px); */
  /* padding: 6px 14px 6px 10px; */
  /* height: 42px; */
  color: #1071ff;
  font-weight: 600;
  /* margin: 5px 18px; */
  position: relative;
  margin-top: 4px;

  & svg path {
    fill: #1071ff;
  }
}

.crecima-menu .ul-cate-padres li a.link-ofertas:hover {
  color: var(--Blanco, #fff);

  & svg path {
    fill: var(--Blanco, #fff);
  }
}

/* movil */
@media (max-width: 969px) {
  .crecima-menu {
    width: 345px !important;
    max-width: 90%;
  }

  .crecima-menu .offcanvas-header {
    padding: 0px 17px 0 11px;
  }

  .crecima-menu .offcanvas-subheader {
    padding: 12px 24px;
  }

  .crecima-menu .offcanvas-body .btn-menu-acordeon svg {
    right: 13px;
  }

  .crecima-menu .offcanvas-body li.list-menu-cre>a,
  .crecima-menu .offcanvas-body li.list-menu-cre>button {
    padding: 17px;
    font-size: 16px;
  }

  .crecima-menu .ul-cate-padres li a,
  .subcats-list .subcat-item a {
    padding: 18px 17px;
  }
}

/* Barra de carga superior */
.barracarga {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  /* arranca vacía */
  display: none;
  /* oculta por defecto */
  opacity: 0;
  background: #fa8232;
  z-index: 999999;
}

.barracarga.is-active {
  display: block;
  opacity: 1;
  animation: barra-llenar 2s ease-out forwards;
  /* 0 → 100% */
}

@keyframes barra-llenar {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.crecima-menu .btn-close {
  filter: invert(1);
  background-color: transparent !important;
  opacity: 1;
}

/* ================================================== */
/* COLUMNA IZQ / DER CATEGORÍAS                      */
/* ================================================== */

.crecima-menu .list-menu-cre--categorias {
  padding: 0;
}

/* Contenedor de las 2 columnas */
.menu-categorias-wrapper {
  background: var(--Background, #fcfcfc);
}

/* En desktop: 2 columnas lado a lado */
@media (min-width: 970px) {
  .menu-categorias-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* resto del header */
  }

  .menu-categorias-left {
    /* flex: 0 0 40%;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto; */
    width: 100%;
  }

  .menu-subcategorias {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #f7f9ff;
    overflow-y: auto;

    position: absolute;
    width: 100%;
    height: 100%;
    right: calc(-100% + 10px);
    top: 0px;
  }

  .menu-subcategorias>div {
    padding: 63px 0 20px;
  }
}

/* En mobile: primero padres, luego subcategorías ocupando todo */
@media (max-width: 969px) {
  .menu-categorias-wrapper {
    display: block;
    /* margin-bottom: -54px; */
  }

  .menu-categorias-left {
    background: var(--Background, #fcfcfc);
  }

  .menu-subcategorias {
    display: none;
    flex-direction: column;
    background: #f7f9ff;
    height: calc(100dvh - 68px);
    overflow-y: auto;
  }

  /* Cuando hay subcats abiertas: ocultar padres y mostrar derecha */
  .crecima-menu[data-subcats-open="1"] .menu-categorias-left {
    display: none;
  }

  .crecima-menu[data-subcats-open="1"] .menu-subcategorias {
    display: flex;
  }
}

/* ================================================ */
/* ESTILOS PANEL DERECHA (SUBCATEGORÍAS)           */
/* ================================================ */

.menu-subcategorias .subcats-header {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #0050de;
}

/* En mobile sí se ve el header (flecha atrás + título) */
@media (max-width: 969px) {
  .crecima-menu[data-subcats-open="1"] .menu-subcategorias .subcats-header {
    display: flex;
    padding: 15px 20px;
    margin-bottom: 2px;
  }
}

.subcats-back {
  border: none;
  background: transparent !important;
  padding: 0;
  color: var(--Neutral-N-500, #8c8c8c) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 150% !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.subcats-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--Brand-Blue-600, #0049ca);
  margin-bottom: 8px;
}

.subcats-parent-name {
  padding: 0 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--Brand-Blue-600, #0049ca);
  line-height: 150%;
}

.subcats-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.subcats-list .subcat-item {
  /* margin-bottom: 8px; */
}

.subcats-list .subcat-item a {
  padding: 15px 20px;
}

.subcats-list .subcat-item a:hover {
  text-decoration: underline;
}

/* Ver todo */
.subcats-viewall {
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--Brand-Blue-600, #0049CA);
  text-decoration: none;
  margin-bottom: 8px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.subcats-viewall::after {
  content: '';
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%3E%0A%20%20%3Cpath%20d%3D%22M2.8125%209H15.1875%22%20stroke%3D%22%233373E5%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M10.125%203.9375L15.1875%209L10.125%2014.0625%22%20stroke%3D%22%233373E5%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E") center / contain no-repeat;
  width: 18px;
  height: 18px;
  aspect-ratio: 1/1;
  display: inline-block;
  margin-left: -7px;
  opacity: 0;
  transition: margin-left 0.2s ease, opacity 0.2s ease;
}

.subcats-viewall:hover {
  color: var(--Brand-Blue-400, #3373E5);
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 7%;
  /* 0.98px */
  text-underline-offset: 25%;
  /* 3.5px */
  text-underline-position: from-font;
}

.subcats-viewall:hover::after{
  margin-left: 0;
  opacity: 1;
}

/* ================================================ */
/* ESTADOS ACTIVOS EN CATEGORÍAS PADRE             */
/* ================================================ */

.ul-cate-padres a.link-cat-padre.is-active {
  background: #e5efff;
  color: #0050de;
}

.ul-cate-padres a.link-cat-padre.is-active span {
  text-decoration: underline;
}

/* Panel seleccionado */
.menu-subcategorias .subcats-panel {
  display: none;
  flex-direction: column;
  min-height: 100%;
}

.menu-subcategorias .subcats-panel.is-active {
  display: flex;
}

/* ======================================= */
/* DESKTOP: mostrar subcategorías por hover */
/* ======================================= */
@media (min-width: 970px) {

  /* Cuando una categoría padre está activa */
  .ul-cate-padres a.link-cat-padre.is-active {
    background: #e5efff;
    color: #0050de;
  }

  /* Mostrar panel correspondiente */
  .menu-subcategorias .subcats-panel {
    display: none;
  }

  .menu-subcategorias .subcats-panel.is-active {
    display: flex;
  }
}

/* ============================================ */
/* DESKTOP: mostrar menu-subcategorias SOLO con hover */
/* ============================================ */
@media (min-width: 970px) {
  .menu-subcategorias {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .menu-subcategorias.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* También mostrar si el mouse está sobre la propia columna de subcategorías */
  .menu-subcategorias:hover {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================ */
/* MOBILE: cuando están abiertas las subcategorías */
/* ============================================ */
@media (max-width: 969px) {

  /* Cuando el menú está abierto y muestra subcategorías */
  .crecima-menu[data-subcats-open="1"] .btn-menu-acordeon,
  .crecima-menu[data-subcats-open="1"] .list-menu-cre:not(.list-menu-cre--categorias) {
    display: none !important;
  }
}