/* =====================================================================
   FCT v1.1.85 · estructura real MAV 2.3.377 para TIENDA
   HOME + /productos/categoria/tienda/ = un único componente.
   ===================================================================== */
.fct183-store-nav{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.fct183-store-nav .m78-primary-shell,.fct183-store-nav .m78-subtabs-shell{position:relative!important;display:grid!important;grid-template-columns:20px minmax(0,1fr) 20px!important;align-items:center!important;column-gap:0!important;padding:0 1px!important;margin-top:12px!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box!important}
.fct183-store-nav .m78-primary-tabs,.fct183-store-nav .m78-subtabs{grid-column:2!important;grid-row:1!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;cursor:grab!important;touch-action:pan-y!important;display:flex!important;align-items:center!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-behavior:auto!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;padding:2px 0!important;margin:0!important}
.fct183-store-nav .m78-primary-tabs::-webkit-scrollbar,.fct183-store-nav .m78-subtabs::-webkit-scrollbar{display:none!important}
.fct183-store-nav .m78-nav-rows,.fct183-store-nav .m78-nav-row{display:contents!important}
.fct183-store-nav .m78-primary-tabs a{flex:0 0 auto!important;background:#111!important;border:1px solid #111!important;border-radius:10px!important;color:#fff!important;padding:10px 15px!important;font-size:14px!important;font-weight:600!important;line-height:1.2!important;cursor:pointer!important;white-space:nowrap!important;text-decoration:none!important;transition:none!important;transform:none!important}
.fct183-store-nav .m78-primary-tabs a.active{background:#ffc107!important;color:#111!important;border-color:#111!important;box-shadow:0 2px 8px rgba(0,0,0,.08)!important}
.fct183-store-nav .m78-primary-tabs a:hover{background:#111!important;color:#fff!important;border-color:#111!important;transform:none!important}
.fct183-store-nav .m78-primary-tabs a.active:hover{background:#ffc107!important;color:#111!important}
.fct183-store-nav .m78-primary-shell>.m78-arrow,.fct183-store-nav .m78-subtabs-shell>.m78-arrow{position:static!important;inset:auto!important;transform:none!important;align-self:center!important;justify-self:center!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;color:#111!important;z-index:2!important;display:flex!important;align-items:center!important;justify-content:center!important}
.fct183-store-nav .m78-primary-shell>.m78-arrow.prev,.fct183-store-nav .m78-subtabs-shell>.m78-arrow.prev{grid-column:1!important;grid-row:1!important;justify-self:start!important}
.fct183-store-nav .m78-primary-shell>.m78-arrow.next,.fct183-store-nav .m78-subtabs-shell>.m78-arrow.next{grid-column:3!important;grid-row:1!important;justify-self:end!important}
.fct183-secondary-wrap{display:none!important;margin-top:8px!important}.fct183-secondary-wrap.is-visible{display:block!important}
.fct183-store-nav .m78-subtabs{padding:2px 0 10px!important}
.fct183-store-nav .m78-subtabs a{flex:0 0 auto!important;border:1px solid #111!important;border-radius:7px!important;background:transparent!important;color:#111!important;padding:7px 10px!important;font-size:14px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap!important;text-decoration:none!important;transition:none!important;transform:none!important}
.fct183-store-nav .m78-subtabs a.active{background:#ffc107!important;color:#111!important;border-color:#111!important}
.fct183-store-nav .m78-subtabs a:hover{background:transparent!important;color:#111!important;border-color:#111!important;transform:none!important}
.fct183-store-nav .m78-subtabs a.active:hover{background:#ffc107!important;color:#111!important}

/* MAV 2.3.377: al reducir ancho, las dos filas explícitas pasan a ser reales. */
@media(max-width:1100px){
 .fct183-store-nav .m78-primary-tabs,.fct183-store-nav .m78-subtabs{display:block!important;white-space:normal!important;padding-top:2px!important;padding-bottom:2px!important}
 .fct183-store-nav .m78-subtabs.m78-single-row{display:flex!important;align-items:center!important;gap:4px!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important}
 .fct183-store-nav .m78-nav-rows{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:4px!important;width:max-content!important;min-width:100%!important;margin:0!important;padding:0!important}
 .fct183-store-nav .m78-nav-row{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;width:max-content!important;min-width:0!important;margin:0!important;padding:0!important}
 .fct183-store-nav .m78-nav-row>a{flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important;margin:0!important;white-space:nowrap!important}
}
@media(max-width:620px){
 .fct183-store-nav .m78-primary-tabs a{font-size:14px!important;padding:8px 10px!important}
}

/* Integración de la única fuente en la página PRODUCTOS: ancho completo arriba. */
.m40-products-inner.has-store-tabs > .fct183-store-nav{grid-column:1/-1!important;grid-row:1!important;width:100%!important;max-width:100%!important;min-width:0!important;align-self:start!important}
.m40-products-inner.has-store-tabs > .m40-topline{grid-column:1/-1!important;grid-row:2!important}
.m40-products-inner.has-store-tabs > .m40-filter-sidebar{grid-column:1!important;grid-row:3!important}
.m40-products-inner.has-store-tabs > .m40-product-results{grid-column:2!important;grid-row:3!important}
@media(max-width:800px){
 .m40-products-inner.has-store-tabs > .fct183-store-nav,.m40-products-inner.has-store-tabs > .m40-topline,.m40-products-inner.has-store-tabs > .m40-filter-sidebar,.m40-products-inner.has-store-tabs > .m40-product-results{grid-column:1!important;grid-row:auto!important}
}

/* HOME: título y VER TODOS nunca se pisan. */
.m78-products-section>.m70-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
.m78-products-section>.m70-head>div{flex:1 1 320px!important;min-width:0!important}
.m78-products-section>.m70-head>a{position:static!important;flex:0 0 auto!important;margin-left:auto!important;white-space:nowrap!important}

/* =====================================================================
   FCT v1.1.86 · SUBBOTONERA + MÁRGENES EXACTOS SOLICITADOS
   - Sin hijos reales: no se muestra subbotonera.
   - Web/tablet: subbotonera en 1 sola línea.
   - Phone: subbotonera en 2 líneas cuando hay suficientes botones.
   - Navegación completa: 1px real del borde izquierdo y derecho.
   ===================================================================== */
.fct183-store-nav{
  width:calc(100% - 2px)!important;
  max-width:calc(100% - 2px)!important;
  margin-left:1px!important;
  margin-right:1px!important;
}
.fct183-store-nav .m78-primary-shell,
.fct183-store-nav .m78-subtabs-shell{
  width:100%!important;
  max-width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* WEB + TABLET: la subbotonera es SIEMPRE una sola línea horizontal. */
@media(min-width:621px){
  .fct183-store-nav .m78-subtabs{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    gap:4px!important;
    white-space:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding-top:2px!important;
    padding-bottom:10px!important;
  }
  .fct183-store-nav .m78-subtabs .m78-nav-rows,
  .fct183-store-nav .m78-subtabs .m78-nav-row{
    display:contents!important;
  }
  .fct183-store-nav .m78-subtabs a{
    flex:0 0 auto!important;
    width:max-content!important;
    min-width:max-content!important;
  }
}

/* PHONE: subbotonera en dos líneas, replicando la dinámica mostrada. */
@media(max-width:620px){
  .fct183-store-nav .m78-subtabs:not(.m78-single-row){
    display:block!important;
    white-space:normal!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
  }
  .fct183-store-nav .m78-subtabs:not(.m78-single-row) .m78-nav-rows{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:4px!important;
    width:max-content!important;
    min-width:100%!important;
  }
  .fct183-store-nav .m78-subtabs:not(.m78-single-row) .m78-nav-row{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    gap:4px!important;
    width:max-content!important;
  }
}


/* FCT v1.1.88 · la barra ocupa el ancho útil completo, a 1px de cada lateral. */
.fct183-store-nav{width:calc(100% - 2px)!important;max-width:calc(100% - 2px)!important;margin-left:1px!important;margin-right:1px!important;box-sizing:border-box!important}
.fct183-store-nav .m78-primary-shell,.fct183-store-nav .m78-subtabs-shell{width:100%!important;max-width:100%!important}

/* =====================================================================
   FCT v1.1.90 · BOTONERA TIENDA A 1PX REAL DE LOS LATERALES
   La navegación ya estaba a 1px de su bloque interno, pero en PRODUCTOS
   ese bloque heredaba 18px de padding lateral de .m40-products-page.
   Se compensa únicamente para la navegación, sin mover filtros/productos.
   ===================================================================== */
.m40-products-page .m40-products-inner.has-store-tabs > .fct183-store-nav{
  width:calc(100% + 34px)!important;
  max-width:none!important;
  margin-left:-17px!important;
  margin-right:-17px!important;
  box-sizing:border-box!important;
}
.m40-products-page .m40-products-inner.has-store-tabs > .fct183-store-nav .m78-primary-shell,
.m40-products-page .m40-products-inner.has-store-tabs > .fct183-store-nav .m78-subtabs-shell{
  width:100%!important;
  max-width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* El extremo visual de cada flecha queda alineado con el lateral real. */
.m40-products-page .m40-products-inner.has-store-tabs > .fct183-store-nav .m78-arrow.prev .mav-chevron{
  transform:translateX(-6px)!important;
}
.m40-products-page .m40-products-inner.has-store-tabs > .fct183-store-nav .m78-arrow.next .mav-chevron{
  transform:translateX(6px)!important;
}

/* HOME: conservar la misma regla de 1px respecto al contenedor que lo aloja. */
.m78-products-section > .fct183-store-nav{
  width:calc(100% - 2px)!important;
  max-width:calc(100% - 2px)!important;
  margin-left:1px!important;
  margin-right:1px!important;
}

/* =====================================================================
   FCT v1.1.97 · TIENDA — 2 FILAS CON DISTRIBUCIÓN NATURAL
   WEB + TABLET: conserva las dos filas explícitas en su orden normal,
   sin grid por columnas ni alineación artificial entre fila 1 y fila 2.
   PHONE <=620px queda exactamente con sus reglas anteriores.
   ===================================================================== */
@media(min-width:621px){
  .fct183-store-nav .m78-primary-tabs,
  .fct183-store-nav .m78-subtabs{
    display:block!important;
    white-space:normal!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
  }
  .fct183-store-nav .m78-primary-tabs .m78-nav-rows,
  .fct183-store-nav .m78-subtabs .m78-nav-rows{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:4px!important;
    width:max-content!important;
    min-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  .fct183-store-nav .m78-primary-tabs .m78-nav-row,
  .fct183-store-nav .m78-subtabs .m78-nav-row{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    width:max-content!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  .fct183-store-nav .m78-primary-tabs .m78-nav-row>a,
  .fct183-store-nav .m78-subtabs .m78-nav-row>a{
    flex:0 0 auto!important;
    width:max-content!important;
    min-width:max-content!important;
    max-width:none!important;
    margin:0!important;
    white-space:nowrap!important;
  }
  /* Cuando por cantidad solo existe una fila, se mantiene natural y no se
     fuerza una segunda fila vacía. */
  .fct183-store-nav .m78-primary-tabs.m78-single-row,
  .fct183-store-nav .m78-subtabs.m78-single-row{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    white-space:nowrap!important;
  }
}

/* =====================================================================
   FCT v1.1.125 · SUBBOTONERA TIENDA
   WEB + TABLET: una sola fila horizontal extendida.
   PHONE <=620px: conserva dos filas.
   Esta regla corrige el override heredado de v1.1.97 sin alterar la
   botonera principal ni el comportamiento de arrastre/flechas.
   ===================================================================== */
@media(min-width:621px){
  .fct183-store-nav .m78-subtabs{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    white-space:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding-top:2px!important;
    padding-bottom:10px!important;
  }
  .fct183-store-nav .m78-subtabs .m78-nav-rows,
  .fct183-store-nav .m78-subtabs .m78-nav-row{
    display:contents!important;
  }
  .fct183-store-nav .m78-subtabs a{
    flex:0 0 auto!important;
    width:max-content!important;
    min-width:max-content!important;
    max-width:none!important;
    white-space:nowrap!important;
  }
}


/* FCT v1.1.145 · mouse dedicado + touch horizontal nativo en TIENDA */
.fct183-store-nav .m78-primary-tabs,
.fct183-store-nav .m78-subtabs{
  touch-action:pan-x pan-y!important;
  overscroll-behavior-x:contain!important;
  -webkit-overflow-scrolling:touch!important;
  cursor:grab!important;
}
.fct183-store-nav .m78-primary-tabs.is-dragging,
.fct183-store-nav .m78-subtabs.is-dragging{
  cursor:grabbing!important;
  scroll-behavior:auto!important;
}
