/* ApoloCloud v2.7.1 - ajuste mobile final: buscador full width + carrito derecho + ocultar sticky en carrito */
@media (min-width: 992px){
  .mobile-bottom-search-v265{display:none!important;}
}

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

  /* Buscador abajo, ancho completo y sobrio */
  #mobileBottomSearch.mobile-bottom-search-v265,
  .mobile-bottom-search-v265{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px))!important;
    width:auto!important;
    max-width:none!important;
    z-index:97000!important;
    height:58px!important;
    min-height:58px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    padding:8px 48px 8px 15px!important;
    border-radius:18px!important;
    background:rgba(5,8,14,.97)!important;
    border:1px solid rgba(125,211,252,.22)!important;
    box-shadow:0 -12px 38px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.05)!important;
    backdrop-filter:blur(18px)!important;
  }
  .mobile-bottom-search-v265 input{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    background:transparent!important;
    border:0!important;
    outline:0!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:850!important;
    padding:0!important;
    box-shadow:none!important;
  }
  .mobile-bottom-search-v265 .mobile-bottom-search-icon{font-size:21px!important;color:#7dd3fc!important;}
  .mobile-bottom-search-clear{
    position:absolute!important;right:10px!important;top:50%!important;transform:translateY(-50%)!important;
    width:35px!important;height:35px!important;border-radius:999px!important;border:0!important;
    background:#fff!important;color:#0f172a!important;font-size:24px!important;font-weight:950!important;line-height:1!important;
    align-items:center!important;justify-content:center!important;
  }

  /* Carrito a la derecha, en la altura que quedó cómoda, sólo icono + globito */
  #floatingCartBtn.floating-cart-btn,
  .floating-cart-btn{
    position:fixed!important;
    right:14px!important;
    left:auto!important;
    bottom:calc(84px + env(safe-area-inset-bottom, 0px))!important;
    z-index:98100!important;
    width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;
    padding:0!important;margin:0!important;border-radius:999px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;
    overflow:visible!important;font-size:0!important;text-indent:0!important;
    background:linear-gradient(145deg,#ffffff 0%,#edf8ff 100%)!important;
    color:#0369a1!important;border:1px solid rgba(255,255,255,.98)!important;
    box-shadow:0 16px 38px rgba(0,0,0,.42),0 0 0 5px rgba(14,165,233,.10)!important;
  }
  #floatingCartBtn .floating-cart-icon{display:block!important;font-size:31px!important;color:#0369a1!important;line-height:1!important;margin:0!important;}
  #floatingCartBtn .item_count{
    position:absolute!important;top:-7px!important;right:-7px!important;min-width:24px!important;height:24px!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;
  }
  #floatingCartBtn .floating-cart-label,
  #floatingCartBtn strong,
  #floatingCartBtn em:not(.item_count){display:none!important;}

  /* Al abrir carrito, esconder todo lo que pueda tapar la X de cerrar. */
  body.cart-open .mobile-category-carousel,
  body.cart-open #mobileCategoryCarousel,
  body.cart-open .section-head,
  body.cart-open #currentCategoryTitle,
  body.cart-open .apolo-active-category-sticky,
  body.cart-open #apoloActiveCategorySticky,
  body.cart-open .mobile-current-category,
  body.cart-open .mobile-category-section-title,
  body.cart-open .category-current-title,
  body.apolo-cart-open .mobile-category-carousel,
  body.apolo-cart-open #mobileCategoryCarousel,
  body.apolo-cart-open .section-head,
  body.apolo-cart-open #currentCategoryTitle,
  body.apolo-cart-open .apolo-active-category-sticky,
  body.apolo-cart-open #apoloActiveCategorySticky,
  body.apolo-cart-open .mobile-current-category,
  body.apolo-cart-open .mobile-category-section-title,
  body.apolo-cart-open .category-current-title{
    display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  }

  body.cart-open #floatingCartBtn,
  body.apolo-cart-open #floatingCartBtn,
  body.cart-open #mobileBottomSearch,
  body.apolo-cart-open #mobileBottomSearch{display:none!important;}

  body.catalog-searching .mobile-category-carousel,
  body.catalog-searching #mobileCategoryCarousel,
  body.catalog-searching .section-head,
  body.catalog-searching #currentCategoryTitle,
  body.apolo-search-active .mobile-category-carousel,
  body.apolo-search-active #mobileCategoryCarousel,
  body.apolo-search-active .section-head,
  body.apolo-search-active #currentCategoryTitle{display:none!important;}
}
