/* v2.6.6 - carrito flotante limpio + buscador visible con teclado mobile */
@media (min-width: 992px){
  .mobile-bottom-search-v265{display:none!important;}
}

@media (max-width: 991.98px){
  :root{ --apolo-keyboard-offset: 0px; }
  body{padding-bottom:132px!important;}

  /* Barra vieja desactivada definitivamente */
  .mobile-shop-actions,
  .mobile-shop-actions-v261,
  #bottomCartBtn,
  #bottomSearchBtn{
    display:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* Carrito: solo icono + badge, sin texto ni info extra */
  .floating-cart-btn{
    position:fixed!important;
    left:14px!important;
    right:auto!important;
    bottom:calc(18px + env(safe-area-inset-bottom, 0px) + var(--apolo-keyboard-offset, 0px))!important;
    width:66px!important;
    height:66px!important;
    min-width:66px!important;
    min-height:66px!important;
    padding:0!important;
    border-radius:999px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    background:linear-gradient(145deg,#ffffff 0%,#eef8ff 100%)!important;
    color:#0f172a!important;
    border:1px solid rgba(255,255,255,.95)!important;
    box-shadow:0 16px 38px rgba(0,0,0,.42), 0 0 0 5px rgba(14,165,233,.10)!important;
    z-index:98200!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transition:bottom .18s ease, transform .18s ease, box-shadow .18s ease!important;
  }
  .floating-cart-btn:active{transform:scale(.96)!important;}
  .floating-cart-btn .floating-cart-label,
  .floating-cart-btn strong,
  .floating-cart-btn em:not(.item_count){display:none!important;}
  .floating-cart-btn .floating-cart-icon{
    display:block!important;
    font-size:32px!important;
    line-height:1!important;
    color:#0369a1!important;
    margin:0!important;
  }
  .floating-cart-btn .item_count{
    position:absolute!important;
    top:-7px!important;
    right:-6px!important;
    min-width:25px!important;
    height:25px!important;
    padding:0 7px!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;
    line-height:1!important;
    box-shadow:0 8px 18px rgba(14,165,233,.36)!important;
  }

  /* Buscador bottom: sobrio, ancho y siempre visible sobre el teclado */
  .mobile-bottom-search-v265{
    position:fixed!important;
    left:92px!important;
    right:14px!important;
    bottom:calc(18px + env(safe-area-inset-bottom, 0px) + var(--apolo-keyboard-offset, 0px))!important;
    z-index:98150!important;
    height:66px!important;
    min-height:66px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    padding:9px 48px 9px 16px!important;
    border-radius:999px!important;
    background:rgba(5,8,14,.98)!important;
    border:1px solid rgba(125,211,252,.24)!important;
    box-shadow:0 16px 38px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05)!important;
    backdrop-filter:blur(18px)!important;
    transition:bottom .18s ease, box-shadow .18s ease, border-color .18s ease!important;
  }
  .mobile-bottom-search-v265:focus-within{
    border-color:rgba(125,211,252,.70)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.46), 0 0 0 4px rgba(14,165,233,.16)!important;
  }
  .mobile-bottom-search-v265 .mobile-bottom-search-icon{
    flex:0 0 auto!important;
    color:#7dd3fc!important;
    font-size:22px!important;
    line-height:1!important;
  }
  .mobile-bottom-search-v265 input{
    flex:1 1 auto!important;
    width:100%!important;
    min-width:0!important;
    height:46px!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:.92!important;}
  .mobile-bottom-search-clear{
    position:absolute!important;
    right:12px!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;}

  /* Al escribir, que el input no quede escondido y que haya aire visual */
  body.apolo-keyboard-open{padding-bottom:calc(132px + var(--apolo-keyboard-offset, 0px))!important;}
  body.apolo-keyboard-open .floating-cart-btn{display:none!important;}
  body.apolo-keyboard-open .mobile-bottom-search-v265{left:14px!important;right:14px!important;}

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