/* Referencia (SKU) en el buscador */
.mfn-live-search-box .post-sku,
.mfn-ls-sku {
    display: block;
    width: 100%;
    margin-top: 2px;
    margin-bottom: 5px;
    font-size: 11px;
    color: #666 !important;
    opacity: .8 !important;
}

.mfn-live-search-texts a {
    display: block;
    width: 100%;
}

.search-item .post-sku {
    margin-bottom: 10px;
    font-size: .9em;
    color: #444;
}

.sku_wrapper,
.sku_wrapper .sku {
    font-size: 18px !important;
}

/* Referencia (SKU) en listados */
.mfn-woo-product-sku-list {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

/* Etiqueta de oferta */
.onsale-label {
    background-color: #e1bc28 !important;
    font-size: 17px !important;
}

/* Botón de consulta de producto */
.scc-consulta-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 80px;
    background-color: #4D9DE0;
    color: #FFF;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    text-decoration: none;
    transition: all .3s ease;
}

.scc-consulta-btn:hover {
    background-color: #E1BC29;
    color: #FFF;
}

/* ---------------------------------------------------------------
   Menú móvil (menú 225) — filas a ancho completo estilo lista
   Solo aplica al overlay deslizante en viewport móvil.
   --------------------------------------------------------------- */
@media (max-width: 767px) {

  /* El panel ocupa todo el ancho de la pantalla */
  .mfn-header-tmpl-menu-sidebar-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 3.5rem 0 0;
  }

  /* Cada ítem es una fila completa con separador */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.mfn-menu-li {
    display: block;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
  }

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.mfn-menu-li:first-child {
    border-top: 1px solid rgba(0, 0, 0, .12);
  }

  /* El enlace: fila flex, texto a la izquierda, chevron a la derecha */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li > a.mfn-menu-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .85rem;
    width: 100%;
    padding: 1.6rem 0.6rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
  }

  /* Icono a tamaño fijo, sin deformarse */
  .mfn-header-tmpl-menu-sidebar .mfn-menu-item-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-menu-item-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  /* La etiqueta empuja el chevron al extremo derecho */
  .mfn-header-tmpl-menu-sidebar .mfn-menu-label-wrapper {
    flex: 1 1 auto;
    text-align: left;
  }

  /* Se oculta la flecha nativa del tema y se pinta una propia */
  .mfn-header-tmpl-menu-sidebar .mfn-menu-subicon {
    display: none;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li > a.mfn-menu-link::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .55;
  }
}

/* --- Menú móvil: ajustes de altura, centrado y botón de contacto --- */
@media (max-width: 767px) {

  /* Nada dentro del li debe añadir altura por su cuenta */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.mfn-menu-li {
    padding: 0;
    line-height: 1;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-menu-item-helper {
    display: none;
  }

  /* Altura de fila fija: el centrado ya no depende del padding */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li > a.mfn-menu-link {
    min-height: 5.2rem;
    padding: 0 0.6rem;
    align-items: center;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-menu-label-wrapper,
  .mfn-header-tmpl-menu-sidebar .menu-label {
    display: flex;
    align-items: center;
    line-height: 1.2;
  }

  /* Contacto: última fila, tratada como botón */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta {
    border-bottom: none;
    margin-top: 1.5rem;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link {
    justify-content: center;
    min-height: 4rem;
    margin: 0 0.6rem;
    padding: 0 1.5rem;
    background: #0b3c53;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .95rem;
  }

  /* El botón no lleva chevron */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link::after {
    display: none;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta .mfn-menu-label-wrapper {
    flex: 0 0 auto;
  }
}

/* --- Menú móvil: tamaño de icono y radio del botón --- */
@media (max-width: 767px) {

  .mfn-header-tmpl-menu-sidebar .mfn-menu-item-icon img {
    width: 44px;
    height: 44px;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link {
    border-radius: 12px;
  }
}

/* --- Menú móvil: correcciones de icono, alineación y radio --- */
@media (max-width: 767px) {

  /* Selector más específico + anulación del máximo que impone el tema */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li > a.mfn-menu-link .mfn-menu-item-icon img {
    width: 44px;
    height: 44px;
    max-width: none;
    max-height: none;
  }

  /* Texto a la izquierda otra vez */
  .mfn-header-tmpl-menu-sidebar .mfn-menu-label-wrapper {
    justify-content: flex-start;
    text-align: left;
  }

  /* Botón de contacto en forma de píldora, como en escritorio */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link {
    border-radius: 999px;
  }

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta .mfn-menu-label-wrapper {
    justify-content: center;
  }
}

/* --- Menú móvil: alineación del texto a la izquierda --- */
@media (max-width: 767px) {

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li > a.mfn-menu-link .mfn-menu-label-wrapper,
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li > a.mfn-menu-link .menu-label {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  /* El botón de contacto sigue centrado */
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link .mfn-menu-label-wrapper,
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link .menu-label {
    justify-content: center;
    text-align: center;
    width: auto;
  }
}

/* --- Menú móvil: color del texto del CTA en su span interior --- */
@media (max-width: 767px) {

  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link,
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link .mfn-menu-label-wrapper,
  .mfn-header-tmpl-menu-sidebar .mfn-header-menu > li.scc-menu-cta > a.mfn-menu-link .menu-label {
    color: #fff;
  }
}
