/* Ravix Store 3.9: viewport-width mobile category page.
   Isolated to the category explorer; products, sliders and desktop untouched. */
@media (max-width:1050px) {
  html:has(body.rvx-mobile-category-open) { overflow:hidden!important; }
  body.rvx-mobile-category-open { overflow:hidden!important; touch-action:auto!important; }
  body.rvx-mobile-category-open > #site-header.rvx-site-header,
  body.rvx-mobile-category-open .rvx-site-header.rvx-unified-header {
    visibility:hidden!important;pointer-events:none!important;
  }
  body.rvx-mobile-category-open .rvx-mobile-category-backdrop,
  body.rvx-mobile-category-open .rvx-mobile-category-backdrop.is-open {display:none!important;}
  body .rvx-mobile-category-screen,
  body.admin-bar .rvx-mobile-category-screen {
    display:flex!important;flex-direction:column!important;
    position:fixed!important;
    top:0!important;right:0!important;left:0!important;
    bottom:calc(54px + env(safe-area-inset-bottom,0px))!important;
    inset:0 0 calc(54px + env(safe-area-inset-bottom,0px)) 0!important;
    inset-block-start:0!important;inset-block-end:calc(54px + env(safe-area-inset-bottom,0px))!important;
    width:100vw!important;max-width:100vw!important;min-width:0!important;
    height:auto!important;max-height:none!important;min-height:0!important;
    box-sizing:border-box!important;margin:0!important;padding:0!important;
    background:#fff!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;overflow:hidden!important;
    transform:translateY(0)!important;z-index:800!important;
    direction:rtl!important;
  }
  body .rvx-mobile-category-screen[hidden]{display:none!important;}
  body .rvx-mobile-category-screen:not(.is-open){opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
  body .rvx-mobile-category-screen.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
  body.admin-bar .rvx-mobile-category-screen{
    top:46px!important;inset-block-start:46px!important;
    inset:46px 0 calc(54px + env(safe-area-inset-bottom,0px)) 0!important;
  }
  /* Four real, functional quick links. Unlike the old squeezed pill, all fit a phone. */
  body .rvx-mobile-category-screen__quickbar{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    align-items:stretch!important;gap:5px!important;flex:0 0 47px!important;
    height:47px!important;min-height:47px!important;padding:6px 9px!important;
    border-bottom:1px solid #edf0f4!important;background:#fff!important;
    margin:0!important;box-sizing:border-box!important;
  }
  body .rvx-mobile-category-screen__quickitem{
    min-width:0!important;min-height:34px!important;display:flex!important;
    flex-direction:row!important;gap:4px!important;align-items:center!important;
    justify-content:center!important;border:1px solid #e4e8ef!important;
    border-radius:9px!important;text-align:center!important;font-size:10px!important;
    font-weight:650!important;color:#434b59!important;background:#fff!important;
    white-space:nowrap!important;padding:2px 2px!important;text-decoration:none!important;
  }
  body .rvx-mobile-category-screen__quickitem svg{width:15px!important;height:15px!important;flex-shrink:0!important}
  body .rvx-mobile-category-screen__quickitem.is-current{
    background:var(--rvx-uni-accent,#245be1)!important;
    border-color:var(--rvx-uni-accent,#245be1)!important;color:#fff!important;
  }
  /* One independent, real header/search area inside the category page. */
  body .rvx-mobile-category-screen__header{
    display:flex!important;flex-direction:column!important;flex:0 0 auto!important;
    width:100%!important;gap:5px!important;min-height:0!important;
    padding:5px 12px 9px!important;margin:0!important;
    border-bottom:1px solid #eef0f4!important;box-shadow:none!important;
    background:#fff!important;
  }
  body .rvx-mobile-category-screen__brand-pill{
    display:flex!important;flex-direction:row!important;justify-content:space-between!important;
    align-items:center!important;gap:12px!important;width:100%!important;height:30px!important;
    min-height:30px!important;min-width:0!important;padding:0!important;
    margin:0!important;border:0!important;background:transparent!important;
    border-radius:0!important;box-shadow:none!important;
  }
  body .rvx-mobile-category-screen__logo{min-width:0!important;flex:0 1 auto!important;max-width:calc(100% - 48px)!important;overflow:hidden!important}
  body .rvx-mobile-category-screen__logo .custom-logo{max-height:26px!important;max-width:130px!important;object-fit:contain!important}
  body .rvx-mobile-category-screen__back{
    display:grid!important;place-items:center!important;flex:0 0 34px!important;
    width:34px!important;height:30px!important;min-width:34px!important;
    padding:0!important;margin:0!important;color:#3b4655!important;
    border:0!important;border-radius:8px!important;background:#f4f6f9!important;
  }
  body .rvx-mobile-category-screen__search{
    width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;
    padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;
  }
  body .rvx-mobile-category-screen__search .rvx-product-search{
    display:flex!important;align-items:center!important;width:100%!important;min-width:0!important;
    height:44px!important;min-height:44px!important;border:1px solid #e0e0e2!important;
    border-radius:24px!important;background:#fff!important;box-shadow:none!important;
    margin:0!important;padding:0 8px!important;overflow:hidden!important;
  }
  body .rvx-mobile-category-screen__search .rvx-product-search input{
    min-width:0!important;flex:1 1 0!important;width:0!important;
    font-size:12px!important;direction:rtl!important;text-align:right!important;
  }
  body .rvx-mobile-category-screen__search .rvx-product-search button{
    flex:0 0 36px!important;min-width:36px!important;height:40px!important;
    width:36px!important;padding:0!important;border:0!important;background:transparent!important;
  }
  body .rvx-mobile-category-screen__shell{
    display:flex!important;flex:1 1 0!important;flex-direction:column!important;
    width:100%!important;min-width:0!important;min-height:0!important;
    padding:0!important;margin:0!important;background:#fff!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
  }
  body .rvx-mobile-category-screen__modes{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    flex:0 0 38px!important;height:38px!important;min-height:38px!important;
    margin:0!important;padding:0 12px!important;gap:8px!important;
    border:0!important;border-bottom:1px solid #edf0f4!important;
    border-radius:0!important;background:#fff!important;
  }
  body .rvx-mobile-category-screen__mode{
    height:37px!important;min-height:37px!important;width:100%!important;min-width:0!important;
    padding:0 5px!important;font-size:12px!important;font-weight:700!important;
    border:0!important;border-radius:0!important;background:#fff!important;
    color:#626b79!important;box-shadow:none!important;
  }
  body .rvx-mobile-category-screen__mode.is-active{
    color:var(--rvx-uni-accent,#245be1)!important;background:#fff!important;
    border-bottom:2px solid var(--rvx-uni-accent,#245be1)!important;
  }
  body .rvx-mobile-category-screen__mode.is-active:after{display:none!important;}
  body .rvx-mobile-category-screen__body{
    display:grid!important;grid-template-columns:minmax(0,1fr) clamp(91px,27%,112px)!important;
    direction:ltr!important;align-items:stretch!important;gap:0!important;
    width:100%!important;min-width:0!important;min-height:0!important;flex:1 1 0!important;
    height:auto!important;padding:0!important;margin:0!important;
    border:0!important;border-radius:0!important;background:#fff!important;overflow:hidden!important;
  }
  body .rvx-mobile-category-screen__body[hidden],
  body .rvx-mobile-category-screen__site[hidden]{display:none!important;}
  body .rvx-mobile-category-screen__panes{
    grid-column:1!important;grid-row:1!important;min-width:0!important;min-height:0!important;
    height:100%!important;width:100%!important;padding:0!important;margin:0!important;
    overflow-y:auto!important;overflow-x:hidden!important;direction:rtl!important;
    overscroll-behavior:contain!important;scrollbar-width:none!important;touch-action:pan-y!important;
    border:0!important;background:#fff!important;
  }
  body .rvx-mobile-category-rail{
    grid-column:2!important;grid-row:1!important;min-width:0!important;min-height:0!important;
    height:100%!important;width:100%!important;margin:0!important;padding:0 0 10px!important;
    overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
    scrollbar-width:none!important;touch-action:pan-y!important;direction:rtl!important;
    background:#f1f2f4!important;border:0!important;border-left:1px solid #e0e0e2!important;
    border-radius:0!important;box-shadow:none!important;
  }
  body .rvx-mobile-category-rail__item{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    box-sizing:border-box!important;gap:4px!important;width:100%!important;min-height:69px!important;
    margin:0!important;padding:9px 4px!important;border:0!important;
    border-bottom:1px solid #e1e4e8!important;border-radius:0!important;
    background:transparent!important;color:#566070!important;text-align:center!important;
    font-size:10.5px!important;line-height:1.45!important;font-weight:650!important;
    white-space:normal!important;overflow-wrap:break-word!important;
  }
  body .rvx-mobile-category-rail__item .rvx-mega-menu__icon,
  body .rvx-mobile-category-rail__item svg{width:21px!important;height:21px!important;flex:0 0 21px!important}
  body .rvx-mobile-category-rail__item span{
    display:block!important;width:100%!important;max-width:100%!important;
    overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere!important;
    -webkit-line-clamp:unset!important;line-clamp:unset!important;
  }
  body .rvx-mobile-category-rail__item.is-active{
    background:#fff!important;color:var(--rvx-uni-accent,#245be1)!important;
    box-shadow:none!important;border-radius:0!important;
  }
  body .rvx-mobile-category-rail__item.is-active:before{
    content:""!important;position:absolute!important;right:0!important;top:0!important;bottom:0!important;
    left:auto!important;width:3px!important;background:var(--rvx-uni-accent,#245be1)!important;border-radius:0!important;
  }
  body .rvx-mobile-category-pane,
  body .rvx-mobile-category-pane.is-active{
    box-sizing:border-box!important;width:100%!important;min-width:0!important;
    margin:0!important;padding:8px 12px 24px!important;overflow-wrap:break-word!important;
  }
  body .rvx-mobile-category-pane[hidden]{display:none!important;}
  body .rvx-mobile-category-pane__top{margin:0 0 4px!important;min-height:0!important;display:block!important}
  body .rvx-mobile-category-pane__all{
    display:flex!important;justify-content:space-between!important;align-items:center!important;
    width:100%!important;min-height:41px!important;max-width:100%!important;
    padding:8px 0!important;margin:0!important;
    background:#fff!important;box-shadow:none!important;border:0!important;
    border-bottom:1px solid #edf0f2!important;border-radius:0!important;
    font-size:11.5px!important;color:#1672dd!important;font-weight:750!important;
    line-height:1.55!important;overflow-wrap:anywhere!important;
  }
  body .rvx-mobile-category-pane__title{display:none!important;}
  body .rvx-mobile-category-groups{display:block!important;border:0!important;margin:0!important;padding:0!important}
  body .rvx-mobile-category-group{
    display:block!important;border:0!important;border-bottom:1px solid #eef0f3!important;
    border-radius:0!important;background:#fff!important;box-shadow:none!important;
    margin:0!important;padding:0!important;overflow:visible!important;
  }
  body .rvx-mobile-category-group__row{
    display:grid!important;grid-template-columns:minmax(0,1fr) 30px!important;
    min-height:49px!important;gap:4px!important;align-items:center!important;
    width:100%!important;min-width:0!important;
  }
  body .rvx-mobile-category-group__link{
    display:flex!important;align-items:center!important;min-width:0!important;min-height:49px!important;
    padding:9px 1px!important;font-size:11.5px!important;font-weight:700!important;
    line-height:1.65!important;color:#24262d!important;
    overflow-wrap:break-word!important;white-space:normal!important;
    background:transparent!important;border:0!important;box-shadow:none!important;
    border-radius:0!important;text-align:right!important;justify-content:flex-start!important;
    cursor:pointer!important;
  }
  body .rvx-mobile-category-group__toggle,
  body .rvx-mobile-category-group__arrow{
    display:grid!important;place-items:center!important;width:29px!important;height:36px!important;
    padding:0!important;margin:0!important;background:transparent!important;
    border:0!important;border-radius:0!important;color:#62666d!important;
  }
  body .rvx-mobile-category-group__children{
    box-sizing:border-box!important;width:100%!important;min-width:0!important;
    padding:6px 5px 10px!important;margin:0!important;overflow:visible!important;
    background:#f7f8fa!important;border:0!important;border-radius:8px!important;
  }
  body .rvx-mobile-category-group__children[hidden]{display:none!important}
  body .rvx-mobile-category-screen__site{
    box-sizing:border-box!important;flex:1 1 0!important;min-height:0!important;
    width:100%!important;margin:0!important;padding:12px!important;
    overflow-y:auto!important;overflow-x:hidden!important;direction:rtl!important;
    background:#fff!important;
  }
  body.rvx-mobile-category-open .rvx-mobile-tabbar{
    display:grid!important;position:fixed!important;z-index:950!important;
    bottom:0!important;left:0!important;right:0!important;width:100%!important;
    height:calc(54px + env(safe-area-inset-bottom,0px))!important;
    min-height:calc(54px + env(safe-area-inset-bottom,0px))!important;
    padding:2px 3px env(safe-area-inset-bottom,0px)!important;
    visibility:visible!important;pointer-events:auto!important;
    border-top:1px solid #e0e0e2!important;background:#fff!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;
  }
  body.rvx-mobile-category-open .rvx-mobile-tabbar__item{
    min-width:0!important;min-height:44px!important;opacity:1!important;
    visibility:visible!important;pointer-events:auto!important;
  }
  body.rvx-mobile-category-open .rvx-mobile-tabbar__label{
    font-size:9px!important;line-height:1.3!important;white-space:nowrap!important;
  }
}
@media(max-width:359px){
  body .rvx-mobile-category-screen__body{grid-template-columns:minmax(0,1fr) 88px!important;}
  body .rvx-mobile-category-screen__quickitem{font-size:9px!important;gap:2px!important}
  body .rvx-mobile-category-screen__quickitem svg{display:none!important}
  body .rvx-mobile-category-group__link{font-size:11px!important}
}
@media(min-width:1051px){.rvx-mobile-category-screen{display:none!important}}
@media(prefers-reduced-motion:reduce){body .rvx-mobile-category-screen{transition:none!important;animation:none!important}}
