/* v2.6.4 - Mobile: buscador bottom real + carrito flotante izquierdo. PC intacto. */
@media (min-width: 992px){
  .mobile-shop-actions{display:none!important;}
}

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

  /* Se elimina el footer doble de acciones: el buscador es el módulo inferior y el carrito queda flotante. */
  .mobile-shop-actions,
  .mobile-shop-actions-v261,
  #bottomCartBtn,
  #bottomSearchBtn{
    display:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* El sidebar deja de ser panel en mobile. Solo conserva el input de búsqueda fijo abajo. */
  aside.shop-sidebar#shopSidebar,
  aside.shop-sidebar#shopSidebar.mobile-open,
  aside.shop-sidebar#shopSidebar.mobile-search-open,
  aside.shop-sidebar#shopSidebar.mobile-category-open{
    position:static!important;
    display:block!important;
    width:auto!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    overflow:visible!important;
    transform:none!important;
    z-index:auto!important;
  }
  aside.shop-sidebar#shopSidebar .mobile-sheet-head,
  aside.shop-sidebar#shopSidebar .sidebar-title,
  aside.shop-sidebar#shopSidebar #mobileCategoryToggle,
  aside.shop-sidebar#shopSidebar .tabs-scroll{
    display:none!important;
  }

  /* Buscador completo bottom */
  aside.shop-sidebar#shopSidebar .search-box{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px))!important;
    z-index:96000!important;
    display:flex!important;
    align-items:center!important;
    min-height:62px!important;
    height:62px!important;
    margin:0!important;
    padding:8px 50px 8px 14px!important;
    border-radius:22px!important;
    background:rgba(5,8,14,.96)!important;
    border:1px solid rgba(148,163,184,.20)!important;
    box-shadow:0 -18px 48px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.04)!important;
    backdrop-filter:blur(20px)!important;
  }
  aside.shop-sidebar#shopSidebar .search-box:before{
    content:'\f002';
    font-family:'FontAwesome';
    position:absolute;
    left:23px;
    top:50%;
    transform:translateY(-50%);
    color:#7dd3fc;
    font-size:17px;
    z-index:2;
    pointer-events:none;
  }
  aside.shop-sidebar#shopSidebar .search-box input{
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:0 12px 0 38px!important;
    border-radius:16px!important;
    text-align:left!important;
    background:rgba(15,23,42,.98)!important;
    border:1px solid rgba(148,163,184,.24)!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:850!important;
    outline:none!important;
  }
  aside.shop-sidebar#shopSidebar .search-box input::placeholder{
    color:#b9c7d8!important;
    opacity:.9!important;
    text-align:left!important;
  }
  aside.shop-sidebar#shopSidebar .search-box input:focus{
    border-color:rgba(125,211,252,.72)!important;
    box-shadow:0 0 0 3px rgba(14,165,233,.16)!important;
  }
  aside.shop-sidebar#shopSidebar .search-box i{display:none!important;}
  aside.shop-sidebar#shopSidebar .search-clear-btn{
    position:absolute!important;
    right:20px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:34px!important;
    height:34px!important;
    border-radius:999px!important;
    background:#ffffff!important;
    color:#0f172a!important;
    border:0!important;
    font-size:23px!important;
    line-height:1!important;
    font-weight:900!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-shadow:0 8px 18px rgba(0,0,0,.20)!important;
  }

  /* Carrito flotante a la izquierda, separado del buscador */
  .floating-cart-btn{
    display:flex!important;
    position:fixed!important;
    left:14px!important;
    right:auto!important;
    bottom:calc(88px + env(safe-area-inset-bottom, 0px))!important;
    z-index:97000!important;
    width:62px!important;
    height:62px!important;
    min-width:62px!important;
    padding:0!important;
    border-radius:22px!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 18px 42px rgba(0,0,0,.45)!important;
    backdrop-filter:blur(14px)!important;
  }
  .floating-cart-btn .floating-cart-icon{
    font-size:27px!important;
    line-height:1!important;
    color:#0369a1!important;
  }
  .floating-cart-btn .floating-cart-label{display:none!important;}
  .floating-cart-btn .item_count{
    position:absolute!important;
    top:-7px!important;
    right:-7px!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;
  }

  /* Mientras se usa buscador o carrito, el catálogo queda limpio. */
  body.mobile-search-panel-open .mobile-category-carousel,
  body.mobile-search-panel-open .section-head,
  body.apolo-search-active .mobile-category-carousel,
  body.apolo-search-active .section-head,
  body.catalog-searching .mobile-category-carousel,
  body.catalog-searching .section-head,
  body.cart-open .mobile-category-carousel,
  body.cart-open .section-head{
    display:none!important;
  }

  body.cart-open .floating-cart-btn{display:none!important;}
  body.cart-open aside.shop-sidebar#shopSidebar .search-box{display:none!important;}
  body.cart-open{padding-bottom:0!important;}

  /* Backdrop solo para carrito; no ensuciamos la búsqueda bottom. */
  body.mobile-search-panel-open #mobileFilterBackdrop{
    display:none!important;
    opacity:0!important;
    pointer-events:none!important;
  }
}
