/* v2.6.5 - Mobile estable: buscador bottom separado + carrito flotante izquierdo. No toca PC. */
@media (min-width: 992px){
  .mobile-bottom-search-v265{display:none!important;}
}

@media (max-width: 991.98px){
  body{padding-bottom:128px!important;}

  /* Apaga el footer viejo bugueado */
  .mobile-shop-actions,
  .mobile-shop-actions-v261,
  #bottomCartBtn,
  #bottomSearchBtn{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  /* El buscador original queda oculto en mobile, pero sigue existiendo para la lógica JS. */
  #shopSidebar .search-box{
    display:none!important;
  }

  /* Buscador nuevo, real, siempre abajo */
  .mobile-bottom-search-v265{
    position:fixed!important;
    left:86px!important;
    right:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px))!important;
    z-index:98000!important;
    height:60px!important;
    min-height:60px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    padding:8px 48px 8px 14px!important;
    border-radius:20px!important;
    background:rgba(5,8,14,.97)!important;
    border:1px solid rgba(125,211,252,.20)!important;
    box-shadow:0 -16px 44px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05)!important;
    backdrop-filter:blur(18px)!important;
  }
  .mobile-bottom-search-v265 .mobile-bottom-search-icon{
    flex:0 0 auto!important;
    color:#7dd3fc!important;
    font-size:21px!important;
    line-height:1!important;
  }
  .mobile-bottom-search-v265 input{
    flex:1 1 auto!important;
    width:100%!important;
    height:44px!important;
    min-width:0!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:850!important;
    padding:0!important;
    box-shadow:none!important;
    -webkit-appearance:none!important;
  }
  .mobile-bottom-search-v265 input::placeholder{
    color:#b9c7d8!important;
    opacity:.9!important;
  }
  .mobile-bottom-search-v265:focus-within{
    border-color:rgba(125,211,252,.58)!important;
    box-shadow:0 -16px 44px rgba(0,0,0,.48), 0 0 0 3px rgba(14,165,233,.14)!important;
  }
  .mobile-bottom-search-clear{
    position:absolute!important;
    right:10px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:36px!important;
    height:36px!important;
    border-radius:999px!important;
    border:0!important;
    display:none!important;
    align-items:center!important;
    justify-content:center!important;
    background:#fff!important;
    color:#0f172a!important;
    font-size:24px!important;
    font-weight:950!important;
    line-height:1!important;
    box-shadow:0 8px 18px rgba(0,0,0,.22)!important;
  }
  .mobile-bottom-search-v265.has-value .mobile-bottom-search-clear{display:flex!important;}

  /* Carrito flotante estable a la izquierda */
  .floating-cart-btn{
    display:flex!important;
    position:fixed!important;
    left:12px!important;
    right:auto!important;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px))!important;
    z-index:98100!important;
    width:62px!important;
    height:60px!important;
    min-width:62px!important;
    padding:0!important;
    border-radius:20px!important;
    align-items:center!important;
    justify-content:center!important;
    background:linear-gradient(135deg,#ffffff,#e0f2fe)!important;
    color:#0f172a!important;
    border:1px solid rgba(255,255,255,.92)!important;
    box-shadow:0 -16px 44px rgba(0,0,0,.42)!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  .floating-cart-btn .floating-cart-icon{
    font-size:28px!important;
    color:#0369a1!important;
    line-height:1!important;
  }
  .floating-cart-btn .floating-cart-label{display:none!important;}
  .floating-cart-btn .item_count{
    position:absolute!important;
    top:-8px!important;
    right:-8px!important;
    min-width:24px!important;
    height:24px!important;
    padding:0 6px!important;
    border-radius:999px!important;
    background:#0ea5e9!important;
    color:#fff!important;
    border:2px solid #05070d!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:12px!important;
    font-weight:1000!important;
  }

  body.cart-open .floating-cart-btn,
  body.cart-open .mobile-bottom-search-v265{display:none!important;}
  body.cart-open{padding-bottom:0!important;}

  /* Cuando buscás, el carrusel/título se limpian para mostrar solo resultados */
  body.catalog-searching .mobile-category-carousel,
  body.catalog-searching .section-head,
  body.apolo-search-active .mobile-category-carousel,
  body.apolo-search-active .section-head{
    display:none!important;
  }
}
