/* ApoloCloud v2.0.1 - Mobile UX final: fullscreen categories + true global search */
.catalog-searching .tab-content > .tab-pane:not(.search-pane-empty),
body.catalog-searching .tab-content > .tab-pane:not(.search-pane-empty){
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
}
.catalog-searching .tab-content > .tab-pane.search-pane-empty,
body.catalog-searching .tab-content > .tab-pane.search-pane-empty{
  display:none!important;
}
.product-hidden-by-search{display:none!important;}

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

  /* Panel mobile full screen, claro y directo */
  .shop-sidebar#shopSidebar{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    border-radius:0!important;
    transform:translateY(110%)!important;
    transition:transform .20s ease!important;
    z-index:10060!important;
    background:#060912!important;
    border:0!important;
    box-shadow:none!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  .shop-sidebar#shopSidebar.mobile-open{transform:translateY(0)!important;}
  .mobile-filter-backdrop.active{display:none!important;}

  .mobile-sheet-head{
    min-height:72px!important;
    padding:14px 16px!important;
    border-radius:0!important;
    border-bottom:1px solid rgba(125,211,252,.16)!important;
    background:linear-gradient(135deg,#070b13,#0b1220 62%,#082f49)!important;
  }
  .mobile-sheet-title span{font-size:11px!important;color:#7dd3fc!important;}
  .mobile-sheet-title strong{font-size:19px!important;color:#fff!important;}
  .mobile-sheet-close{
    width:46px!important;height:46px!important;border-radius:0!important;
    border:1px solid rgba(125,211,252,.22)!important;background:#0b1220!important;color:#fff!important;
    font-size:28px!important;
  }

  .sidebar-title,.mobile-category-toggle{display:none!important;}

  /* Categorías: una por renglón, ancho completo, sin redondeado */
  .shop-sidebar.mobile-category-open .tabs-scroll,
  .shop-sidebar.mobile-category-open .tabs-scroll.nav{
    display:flex!important;
    flex:1 1 auto!important;
    width:100%!important;
    max-height:none!important;
    overflow:auto!important;
    flex-direction:column!important;
    gap:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:#060912!important;
  }
  .shop-sidebar.mobile-category-open .tabs-scroll a{
    width:100%!important;
    min-height:58px!important;
    margin:0!important;
    padding:17px 18px!important;
    border-radius:0!important;
    border:0!important;
    border-bottom:1px solid rgba(148,163,184,.14)!important;
    background:#080d17!important;
    color:#e0f2fe!important;
    font-size:16px!important;
    font-weight:900!important;
    line-height:1.15!important;
    text-align:left!important;
    justify-content:flex-start!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
    box-shadow:none!important;
  }
  .shop-sidebar.mobile-category-open .tabs-scroll a::after{
    content:'›'!important;
    display:block!important;
    margin-left:auto!important;
    opacity:.55!important;
    font-size:24px!important;
  }
  .shop-sidebar.mobile-category-open .tabs-scroll a:hover,
  .shop-sidebar.mobile-category-open .tabs-scroll a.active,
  .shop-sidebar.mobile-category-open .tabs-scroll a[aria-selected="true"]{
    background:linear-gradient(90deg,#0c4a6e,#08111f)!important;
    color:#fff!important;
    box-shadow:inset 7px 0 0 #7dd3fc,0 0 22px rgba(14,165,233,.18)!important;
  }

  /* Buscador: pantalla completa con input grande, sin mezclarse con categorías */
  .shop-sidebar .search-box{display:none!important;}
  .shop-sidebar.mobile-search-open .search-box{
    display:flex!important;
    flex:1 1 auto!important;
    align-items:flex-start!important;
    padding:22px 16px!important;
    margin:0!important;
    background:#060912!important;
    border:0!important;
  }
  .shop-sidebar.mobile-search-open .tabs-scroll{display:none!important;}
  .shop-sidebar.mobile-search-open .search-box input{
    width:100%!important;
    height:62px!important;
    border-radius:0!important;
    border:1px solid rgba(125,211,252,.32)!important;
    background:#0b1220!important;
    color:#fff!important;
    text-align:left!important;
    padding:0 18px!important;
    font-size:18px!important;
    font-weight:850!important;
  }
  .shop-sidebar.mobile-search-open .search-box input::placeholder{text-align:left!important;color:#93c5fd!important;}

  /* Barra inferior más simple y entendible */
  .mobile-shop-actions{
    position:fixed!important;
    left:0!important;right:0!important;bottom:0!important;
    height:72px!important;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))!important;
    border-radius:0!important;
    border:0!important;
    border-top:1px solid rgba(125,211,252,.18)!important;
    background:rgba(6,9,18,.98)!important;
    box-shadow:0 -10px 32px rgba(0,0,0,.55)!important;
    display:grid!important;
    grid-template-columns:1fr 1fr 1.08fr!important;
    gap:8px!important;
    z-index:10050!important;
    backdrop-filter:blur(18px)!important;
  }
  .mobile-shop-actions button{
    height:54px!important;
    border-radius:0!important;
    border:1px solid rgba(148,163,184,.14)!important;
    background:#0b1220!important;
    color:#dbeafe!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    padding:0 8px!important;
    font-weight:950!important;
  }
  .mobile-shop-actions button span{font-size:18px!important;}
  .mobile-shop-actions button strong{font-size:12px!important;letter-spacing:.01em!important;white-space:nowrap!important;}
  .mobile-shop-actions button.active{background:#082f49!important;color:#fff!important;box-shadow:0 0 22px rgba(14,165,233,.18) inset!important;}
  #bottomCartBtn{background:linear-gradient(135deg,#075985,#0284c7)!important;color:#fff!important;border-color:rgba(125,211,252,.32)!important;}
  #bottomCartBtn .item_count{
    min-width:22px!important;height:22px!important;border-radius:999px!important;background:#e0f2fe!important;color:#082f49!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;font-style:normal!important;font-weight:1000!important;
  }
}
