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-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  background: transparent !important;

  & span {
  }
}

@media (max-width: 1200px) {
  .btn_categorias span {
    display: none;
  }
}

/* offcanvas-header */

.crecima-menu .offcanvas-header {
  padding: 0 42px 0 30px;
  background: #0059ff;
  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 > a svg {
  height: 32px;
  width: auto;
}

.crecima-menu .offcanvas-header h5 {
  color: var(--neutral-0, #fff);

  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(--Grey-grey-50, #f5f5f5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  padding-bottom: 54px;
  /* scrollbar-gutter: stable; */
  scrollbar-width: none;
}

.crecima-menu .offcanvas-body ul {
  list-style: none;
}

.crecima-menu .offcanvas-body li.list-menu-cre:not(.list-menu-cre--categorias) {
  /* border-bottom: 1px solid #3572bc; */
}

.crecima-menu .offcanvas-body li.list-menu-cre > a,
.crecima-menu .offcanvas-body li.list-menu-cre > button {
  display: flex;
  color: #434343;

  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 svg path {
  fill: #151515;
}

.crecima-menu .offcanvas-body .btn-menu-acordeon.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: 10px;
  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: #434343;

  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 26px 10px 31px;
  width: 100%;
}

.crecima-menu .ul-cate-padres li a {
  font-size: 16px;
}

.crecima-menu .ul-cate-padres li a svg path {
  fill: #434343;
}

.crecima-menu .ul-cate-padres .icono-submenu {
  margin: 0 0 0 auto;
}

.crecima-menu .ul-cate-padres li a:hover {
  background: #e6eeff;
  color: #003fb5;
}

.crecima-menu .ul-cate-padres li a:hover svg path {
  fill: #003fb5;
}

/* 
.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;
  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 {
  color: #003fb5;
  font-weight: 700;
  position: relative;
  margin-top: 4px;

  & svg path {
    fill: #003fb5;
  }

  & .menu-oferta-lateral {
    border-radius: 4px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
  }
}
/* 
.crecima-menu .ul-cate-padres li a.link-ofertas:hover {
  color: var(--Blanco, #fff);

  & svg path {
    fill: #003FB5;
  }
} */

/* 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: #f5f5f5;
    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: 15px;
    border-bottom: solid 1px #8c8c8c;
  }

  .crecima-menu[data-subcats-open="1"] .menu-subcategorias .subcats-header button {
    color: #141414 !important;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 110% !important;
  }
}

.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: #1f1f1f;
  margin-bottom: 8px;
}

.subcats-parent-name {
  padding: 0 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f35b09;
  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; */
  color: var(--Orange-600, #dd5308);
}

@media (max-width: 768px) {
  .subcats-list {
    margin: 0;
  }
}

/* Ver todo */
.subcats-viewall {
  padding: 30px 20px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #dd5308;
  text-decoration: none;
  margin-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  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;
}

.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%22M10.8479%209.32725L5.91741%204.39672C5.78737%204.26669%205.72404%204.11189%205.72742%203.93232C5.73081%203.75276%205.79751%203.5979%205.92755%203.46776C6.05759%203.33772%206.21239%203.27271%206.39195%203.27271C6.57151%203.27271%206.72637%203.33772%206.85651%203.46776L11.8676%208.48894C11.9858%208.60731%2012.0735%208.73991%2012.1305%208.88674C12.1877%209.03358%2012.2163%209.18041%2012.2163%209.32725C12.2163%209.47409%2012.1877%209.62092%2012.1305%209.76776C12.0735%209.9146%2011.9858%2010.0472%2011.8676%2010.1656L6.84637%2015.1867C6.71633%2015.3168%206.56322%2015.3801%206.38704%2015.3767C6.21075%2015.3733%206.05759%2015.3066%205.92755%2015.1766C5.79751%2015.0466%205.7325%2014.8918%205.7325%2014.7122C5.7325%2014.5326%205.79751%2014.3778%205.92755%2014.2476L10.8479%209.32725Z%22%20fill%3D%22%23013879%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: #013879;
}

.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: #feefe6;
  color: #dd5308;
}

.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: #feefe6;
    color: #dd5308;
  }

  /* 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;
  }

  .subcats-parent-name,
  .subcats-viewall {
    display: none !important;
  }
}

/* ============================================ */
/* 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;
  }
}

.btn-iniciar-sesion {
  color: #fff;
  text-align: center;
  font-style: normal;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  height: 44px;
  padding: 12px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  background: #f35b09;
  margin: 0 auto;
  margin-top: 20px;
  width: 269px;
  max-width: calc(100% - 34px);
}
