/* HiTop Mobile Category V11 — isolated compact catalog matching approved mobile reference */
@media only screen and (max-width:991px){
body.hitop-route-product-category .hitop-category-page,
body.hitop-route-product-category .hitop-category-page *{box-sizing:border-box}
body.hitop-route-product-category .hitop-category-page{width:100%!important;max-width:none!important;margin:0!important;padding:8px 10px 24px!important;background:#fff!important}
body.hitop-route-product-category .hitop-category-layout,
body.hitop-route-product-category #maincontent,
body.hitop-route-product-category .mainborder,
body.hitop-route-product-category .product-listing{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body.hitop-route-product-category .breadcrumb{margin:0 0 3px!important;padding:0!important;border:0!important;background:none!important;font-size:11px!important;line-height:16px!important;color:#758b9b!important}
body.hitop-route-product-category .page-header{margin:0 0 8px!important;padding:0!important;border:0!important}
body.hitop-route-product-category .page-header h1{margin:0!important;font-size:23px!important;line-height:28px!important;font-weight:800!important;color:#0d3265!important;letter-spacing:-.3px!important}

/* approved compact horizontal subcategory rail */
body.hitop-route-product-category .category-details{margin:0!important;padding:0!important}
body.hitop-route-product-category .category-details .contentset{display:none!important}
body.hitop-route-product-category .category-list{display:flex!important;gap:6px!important;width:calc(100% + 20px)!important;margin:0 -10px 8px!important;padding:0 10px 3px!important;overflow-x:auto!important;overflow-y:hidden!important;list-style:none!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}
body.hitop-route-product-category .category-list::-webkit-scrollbar{display:none!important}
body.hitop-route-product-category .category-list li{flex:0 0 auto!important;float:none!important;width:auto!important;margin:0!important;padding:0!important}
body.hitop-route-product-category .category-list li a{display:flex!important;align-items:center!important;width:112px!important;height:50px!important;margin:0!important;padding:4px 6px!important;border:1px solid #dce7ef!important;border-radius:7px!important;background:#fff!important;color:#12395d!important;font-size:9px!important;line-height:11px!important;font-weight:800!important;text-decoration:none!important;box-shadow:0 1px 4px rgba(19,63,91,.05)!important;white-space:normal!important}
body.hitop-route-product-category .category-list .subcat_thumb img{flex:0 0 auto!important;width:34px!important;height:40px!important;max-width:34px!important;max-height:40px!important;margin:0 6px 0 0!important;padding:0!important;object-fit:contain!important}
body.hitop-route-product-category .category-list li a span{display:block!important;max-height:33px!important;overflow:hidden!important}

/* real filter area: hidden until Filtre is tapped */
body.hitop-route-product-category .hitop-filter-bar{display:none!important;margin:0 0 8px!important;padding:8px!important;border:1px solid #dce7ef!important;border-radius:8px!important;background:#fff!important;box-shadow:0 2px 8px rgba(17,67,98,.06)!important}
body.hitop-route-product-category .hitop-filter-bar.hitop-mobile-filter-open{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
body.hitop-route-product-category .hitop-filter-bar-label{display:none!important}
body.hitop-route-product-category .hitop-filter-dropdown{position:relative!important;flex:1 1 calc(50% - 3px)!important;min-width:0!important}
body.hitop-route-product-category .hitop-filter-chip{width:100%!important;min-height:36px!important;padding:0 9px!important;border:1px solid #d7e5ee!important;border-radius:7px!important;background:#f9fcfe!important;color:#12395d!important;font-size:11px!important;font-weight:700!important;text-align:left!important}
body.hitop-route-product-category .hitop-filter-popover{z-index:50!important;left:0!important;right:auto!important;min-width:220px!important;max-width:calc(100vw - 40px)!important}
body.hitop-route-product-category .hitop-apply-filter-inline,
body.hitop-route-product-category .hitop-filter-reset-inline{min-height:34px!important;padding:0 10px!important;border-radius:7px!important;font-size:11px!important;line-height:34px!important}

/* one compact control row: Filtre | Sortează | count | grid */
body.hitop-route-product-category .hitop-category-toolbar{display:grid!important;grid-template-columns:86px 96px 1fr 40px!important;align-items:center!important;gap:7px!important;width:100%!important;min-height:32px!important;margin:0 0 8px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.hitop-route-product-category .hitop-mobile-filter-trigger{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:86px!important;height:30px!important;margin:0!important;padding:0 8px!important;border:1px solid #0b8fd1!important;border-radius:7px!important;background:#fff!important;color:#087fc0!important;font-size:11px!important;line-height:28px!important;font-weight:800!important;box-shadow:none!important}
body.hitop-route-product-category .hitop-mobile-filter-trigger i{font-size:13px!important}
body.hitop-route-product-category .hitop-mobile-filter-trigger.active{background:#eef8fd!important}
body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control){display:block!important;position:relative!important;width:96px!important;height:30px!important;margin:0!important;padding:0!important;grid-column:2!important;grid-row:1!important}
body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control) label,
body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control) .hitop-control-icon{display:none!important}
body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control):before{content:'↕'!important;position:absolute!important;z-index:2!important;left:10px!important;top:0!important;height:30px!important;line-height:30px!important;color:#087fc0!important;font-size:15px!important;font-weight:800!important;pointer-events:none!important}
body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control) select{display:block!important;width:96px!important;height:30px!important;margin:0!important;padding:0 21px 0 28px!important;border:1px solid #0b8fd1!important;border-radius:7px!important;background:#fff!important;color:#087fc0!important;font-size:11px!important;line-height:28px!important;font-weight:800!important;box-shadow:none!important;text-overflow:ellipsis!important}
body.hitop-route-product-category .hitop-limit-control{display:none!important}
body.hitop-route-product-category .hitop-toolbar-spacer{display:none!important}
body.hitop-route-product-category .hitop-toolbar-count{display:block!important;grid-column:3!important;grid-row:1!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;text-align:center!important;border:0!important}
body.hitop-route-product-category .hitop-toolbar-count strong{display:block!important;margin:0!important;color:#273849!important;font-size:11px!important;line-height:14px!important;font-weight:600!important;white-space:nowrap!important}
body.hitop-route-product-category .hitop-toolbar-count span{display:none!important}
body.hitop-route-product-category .hitop-view-switch{display:block!important;grid-column:4!important;grid-row:1!important;width:40px!important;height:30px!important;margin:0!important;padding:0!important;border:1px solid #d7e4ed!important;border-radius:7px!important;background:#fff!important;overflow:hidden!important}
body.hitop-route-product-category .hitop-view-btn{display:none!important}
body.hitop-route-product-category .hitop-view-btn[data-view="grid"]{display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:28px!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important;color:#123f77!important;font-size:15px!important;line-height:28px!important;box-shadow:none!important}

/* compact two-column cards */
body.hitop-route-product-category .product-grid,
body.hitop-route-product-category .product-grid.cols-4,
body.hitop-route-product-category .product-grid.hitop-list-view{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;margin:0!important;padding:0!important}
body.hitop-route-product-category .product-grid>.grid-box,
body.hitop-route-product-category .product-grid.hitop-list-view>.grid-box{position:relative!important;float:none!important;display:block!important;width:auto!important;min-width:0!important;height:239px!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #dce7ef!important;border-radius:8px!important;background:#fff!important;box-shadow:0 2px 7px rgba(18,71,104,.06)!important}
body.hitop-route-product-category .product-grid>.grid-box>.inner,
body.hitop-route-product-category .product-grid.hitop-list-view>.grid-box>.inner{position:relative!important;display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:7px 6px 6px!important;border:0!important;background:#fff!important;text-align:left!important;overflow:hidden!important}
body.hitop-route-product-category .product-grid .image,
body.hitop-route-product-category .product-grid.hitop-list-view .image{position:relative!important;float:none!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 102px!important;width:100%!important;height:102px!important;min-height:102px!important;margin:0 0 4px!important;padding:2px 0!important;overflow:hidden!important}
body.hitop-route-product-category .product-grid .image a,
body.hitop-route-product-category .product-grid .front-image,
body.hitop-route-product-category .product-grid .back-image{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important}
body.hitop-route-product-category .product-grid .image img{display:block!important;width:auto!important;height:auto!important;max-width:92%!important;max-height:98px!important;margin:auto!important;object-fit:contain!important}
body.hitop-route-product-category .product-grid .name,
body.hitop-route-product-category .product-grid.hitop-list-view .name{position:static!important;float:none!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;flex:0 0 28px!important;width:100%!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin:0 0 2px!important;padding:0!important;overflow:hidden!important;color:#0c315f!important;font-size:10.5px!important;line-height:12px!important;font-weight:800!important;text-align:left!important}
body.hitop-route-product-category .product-grid .name a{color:#0c315f!important;text-decoration:none!important}
body.hitop-route-product-category .product-grid .description,
body.hitop-route-product-category .product-grid .rating,
body.hitop-route-product-category .product-grid .price-tax{display:none!important}
body.hitop-route-product-category .product-grid .hitop-card-price-row,
body.hitop-route-product-category .product-grid.hitop-list-view .hitop-card-price-row{position:static!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;flex:0 0 51px!important;width:100%!important;height:51px!important;min-height:51px!important;margin:0!important;padding:0!important;overflow:visible!important}
/* Stock first visually, then prices — matches approved reference */
body.hitop-route-product-category .product-grid .hitop-stock{position:static!important;float:none!important;display:inline-flex!important;align-items:center!important;order:1!important;width:auto!important;height:14px!important;margin:0 0 1px!important;padding:0!important;color:#07953e!important;font-size:9.5px!important;line-height:14px!important;font-weight:700!important;white-space:nowrap!important}
body.hitop-route-product-category .product-grid .hitop-stock i{margin-right:2px!important;font-size:9px!important}
body.hitop-route-product-category .product-grid .price{position:static!important;float:none!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;order:2!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;color:#0c3265!important;font-size:17px!important;line-height:19px!important;font-weight:850!important;white-space:nowrap!important}
body.hitop-route-product-category .product-grid .price-old{display:block!important;order:1!important;height:13px!important;margin:0!important;color:#82909a!important;font-size:9px!important;line-height:12px!important;font-weight:500!important;text-decoration:line-through!important}
body.hitop-route-product-category .product-grid .price-new{display:block!important;order:2!important;margin:0!important;color:#ed2535!important;font-size:17px!important;line-height:19px!important;font-weight:850!important}
body.hitop-route-product-category .product-grid .cart,
body.hitop-route-product-category .product-grid.hitop-list-view .cart{position:static!important;float:none!important;display:block!important;flex:0 0 30px!important;width:100%!important;height:30px!important;margin:auto 0 0!important;padding:0!important}
body.hitop-route-product-category .product-grid .cart:before{display:none!important;content:none!important}
body.hitop-route-product-category .product-grid .cart .button{display:block!important;width:100%!important;min-width:0!important;height:30px!important;margin:0!important;padding:0 3px!important;overflow:hidden!important;border:0!important;border-radius:5px!important;background:#078dcc!important;color:#fff!important;font-size:9px!important;line-height:30px!important;font-weight:800!important;text-align:center!important;text-overflow:clip!important;white-space:nowrap!important;box-shadow:none!important}
body.hitop-route-product-category .product-grid .cart .button:before{content:'\f07a'!important;font-family:FontAwesome!important;display:inline-block!important;margin-right:7px!important;font-size:11px!important;font-weight:normal!important}
body.hitop-route-product-category .product-grid .hitop-card-wishlist{position:absolute!important;top:7px!important;right:7px!important;z-index:12!important;display:flex!important;align-items:center!important;justify-content:center!important;width:25px!important;height:25px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#fff!important;color:#003f82!important;font-size:15px!important;line-height:25px!important;text-decoration:none!important;box-shadow:none!important}
body.hitop-route-product-category .product-grid .onsale.hitop-discount-badge{position:absolute!important;top:7px!important;left:6px!important;z-index:12!important;display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:45px!important;max-width:none!important;height:20px!important;margin:0!important;padding:0 6px!important;border:0!important;border-radius:9px!important;background:#ed2636!important;color:#fff!important;font-size:10px!important;line-height:20px!important;font-weight:800!important;text-align:center!important;white-space:nowrap!important;box-shadow:none!important}
body.hitop-route-product-category .product-grid .onsale.hitop-discount-badge:before,
body.hitop-route-product-category .product-grid .onsale.hitop-discount-badge:after{display:none!important;content:none!important}
body.hitop-route-product-category .pagination{margin:16px 0 8px!important;text-align:center!important}
}
@media only screen and (max-width:360px){
body.hitop-route-product-category .hitop-category-page{padding-left:7px!important;padding-right:7px!important}
body.hitop-route-product-category .product-grid{gap:6px!important}
body.hitop-route-product-category .hitop-category-toolbar{grid-template-columns:80px 90px 1fr 36px!important;gap:5px!important}
body.hitop-route-product-category .hitop-mobile-filter-trigger{width:80px!important}
body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control),body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control) select{width:90px!important}
body.hitop-route-product-category .product-grid .cart .button{font-size:8.5px!important}
}
@media only screen and (min-width:992px){body.hitop-route-product-category .hitop-mobile-filter-trigger{display:none!important}}

/* HiTop Mobile Category V13 — dedicated mobile product DOM */
@media only screen and (max-width:991px){
body.hitop-route-product-category .hitop-desktop-product-listing{display:none!important}
body.hitop-route-product-category .hitop-mobile-product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:0!important;padding:0!important}
body.hitop-route-product-category .hitop-mobile-product-card{position:relative!important;display:flex!important;flex-direction:column!important;min-width:0!important;margin:0!important;padding:8px!important;border:1px solid #dbe6ee!important;border-radius:10px!important;background:#fff!important;box-shadow:0 2px 8px rgba(20,65,95,.06)!important;overflow:hidden!important}
body.hitop-route-product-category .hitop-mobile-card-media{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:154px!important;margin:0 0 7px!important;padding:3px!important;overflow:hidden!important}
body.hitop-route-product-category .hitop-mobile-product-image{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important}
body.hitop-route-product-category .hitop-mobile-product-image img{display:block!important;width:auto!important;height:auto!important;max-width:96%!important;max-height:148px!important;margin:auto!important;object-fit:contain!important}
body.hitop-route-product-category .hitop-mobile-discount{position:absolute!important;z-index:3!important;top:0!important;left:0!important;min-width:50px!important;height:25px!important;padding:0 9px!important;border-radius:13px!important;background:#ed2636!important;color:#fff!important;font-size:12px!important;line-height:25px!important;font-weight:800!important;text-align:center!important;white-space:nowrap!important}
body.hitop-route-product-category .hitop-mobile-wishlist{position:absolute!important;z-index:3!important;top:0!important;right:0!important;display:flex!important;align-items:center!important;justify-content:center!important;width:31px!important;height:31px!important;border:0!important;background:transparent!important;color:#003e7d!important;font-size:22px!important;line-height:31px!important;text-decoration:none!important}
body.hitop-route-product-category .hitop-mobile-card-info{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important}
body.hitop-route-product-category .hitop-mobile-product-name{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;width:100%!important;min-height:34px!important;max-height:34px!important;margin:0 0 4px!important;overflow:hidden!important;color:#0b3264!important;font-size:14px!important;line-height:17px!important;font-weight:800!important;text-align:left!important;text-decoration:none!important}
body.hitop-route-product-category .hitop-mobile-stock{display:flex!important;align-items:center!important;gap:4px!important;height:18px!important;margin:0 0 2px!important;color:#07953e!important;font-size:12px!important;line-height:18px!important;font-weight:700!important;white-space:nowrap!important}
body.hitop-route-product-category .hitop-mobile-stock span{display:block!important;width:8px!important;height:8px!important;flex:0 0 8px!important;border-radius:50%!important;background:#07953e!important}
body.hitop-route-product-category .hitop-mobile-price{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-end!important;min-height:45px!important;margin:0 0 7px!important}
body.hitop-route-product-category .hitop-mobile-price del{display:block!important;height:16px!important;color:#7e8b96!important;font-size:11px!important;line-height:16px!important;font-weight:500!important;white-space:nowrap!important}
body.hitop-route-product-category .hitop-mobile-price strong{display:block!important;color:#0b3264!important;font-size:20px!important;line-height:23px!important;font-weight:800!important;white-space:nowrap!important}
body.hitop-route-product-category .hitop-mobile-price strong.special{color:#ed2535!important}
body.hitop-route-product-category .hitop-mobile-add-cart{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;height:38px!important;min-height:38px!important;margin:auto 0 0!important;padding:0 5px!important;border:0!important;border-radius:6px!important;background:#078dcc!important;color:#fff!important;font-size:12px!important;line-height:38px!important;font-weight:800!important;text-align:center!important;white-space:nowrap!important;box-shadow:none!important}
body.hitop-route-product-category .hitop-mobile-add-cart i{font-size:15px!important;font-weight:normal!important}
}
@media only screen and (max-width:360px){
body.hitop-route-product-category .hitop-mobile-product-grid{gap:6px!important}
body.hitop-route-product-category .hitop-mobile-product-card{padding:6px!important}
body.hitop-route-product-category .hitop-mobile-card-media{height:140px!important}
body.hitop-route-product-category .hitop-mobile-product-image img{max-height:134px!important}
body.hitop-route-product-category .hitop-mobile-product-name{font-size:13px!important;line-height:16px!important;min-height:32px!important;max-height:32px!important}
body.hitop-route-product-category .hitop-mobile-price strong{font-size:18px!important}
body.hitop-route-product-category .hitop-mobile-add-cart{font-size:11px!important;gap:6px!important}
}
@media only screen and (min-width:992px){
body.hitop-route-product-category .hitop-mobile-product-grid{display:none!important}
body.hitop-route-product-category .hitop-desktop-product-listing{display:block!important}
}


/* HiTop Mobile Category V14 — remove legacy outer category container */
@media only screen and (max-width:991px){
  body.hitop-route-product-category #content,
  body.hitop-route-product-category #content.span9,
  body.hitop-route-product-category #content.span12,
  body.hitop-route-product-category .row-fluid > #content{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  body.hitop-route-product-category #content > .row-fluid,
  body.hitop-route-product-category #content .product-listing,
  body.hitop-route-product-category #content .hitop-mobile-product-grid{
    max-width:none!important;
  }
}


/* ============================================================
   HiTop Mobile Category V15 — remove REAL Sellegance outer shell
   LIVE audit: header.tpl wraps page in:
   .centralbox > .container > .container-inner
   Bootstrap + Sellegance add 15px + 15px side padding there.
   Category keeps only its own intentional mobile gutter.
   ============================================================ */
@media only screen and (max-width:991px){
  body.hitop-route-product-category .centralbox{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }

  body.hitop-route-product-category .centralbox > .container{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  body.hitop-route-product-category .centralbox > .container > .container-inner{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
    padding-bottom:0!important;
    border:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }

  body.hitop-route-product-category .hitop-category-page{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
}


/* HiTop Mobile Category V16 — remove remaining left/right shell shadow */
@media only screen and (max-width:991px){
  body.hitop-route-product-category .centralbox,
  body.hitop-route-product-category .centralbox > .container,
  body.hitop-route-product-category .centralbox > .container > .container-inner{
    -webkit-box-shadow:none!important;
    -moz-box-shadow:none!important;
    box-shadow:none!important;
    border-left:0!important;
    border-right:0!important;
  }
}


/* ============================================================
   HiTop Mobile Category V19 — approved single-row controls
   Filtre | Sortează | product count | Grid
   Also neutralizes the old hitop_mobile.css pseudo "Filtre".
   ============================================================ */
@media only screen and (max-width:991px){

  /* Old mobile.css creates a fake first Filtre button. Remove it. */
  body.hitop-route-product-category .hitop-category-toolbar:before{
    content:none!important;
    display:none!important;
  }

  body.hitop-route-product-category .hitop-category-toolbar{
    display:grid!important;
    grid-template-columns:minmax(92px,1.05fr) minmax(108px,1.18fr) auto 42px!important;
    grid-template-rows:42px!important;
    align-items:center!important;
    column-gap:8px!important;
    row-gap:0!important;
    width:100%!important;
    min-height:42px!important;
    margin:0 0 10px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  /* REAL filter button */
  body.hitop-route-product-category .hitop-mobile-filter-trigger{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    width:100%!important;
    height:42px!important;
    margin:0!important;
    padding:0 10px!important;
    border:1px solid #138fd0!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#0877b9!important;
    font-size:13px!important;
    line-height:40px!important;
    font-weight:800!important;
    box-shadow:0 1px 3px rgba(18,71,104,.05)!important;
  }
  body.hitop-route-product-category .hitop-mobile-filter-trigger i{
    display:inline-block!important;
    font-size:15px!important;
  }

  /* SORT control — keep the real select functional, but show approved label */
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control){
    grid-column:2!important;
    grid-row:1!important;
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:42px!important;
    margin:0!important;
    padding:0!important;
  }
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control) label,
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control) .hitop-control-icon{
    display:none!important;
  }
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control):before{
    content:'↕'!important;
    position:absolute!important;
    z-index:2!important;
    left:14px!important;
    top:0!important;
    height:42px!important;
    line-height:42px!important;
    color:#0877b9!important;
    font-size:20px!important;
    font-weight:500!important;
    pointer-events:none!important;
  }
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control):after{
    content:'Sortează'!important;
    position:absolute!important;
    z-index:2!important;
    left:42px!important;
    right:8px!important;
    top:0!important;
    height:42px!important;
    line-height:42px!important;
    color:#0877b9!important;
    font-size:13px!important;
    font-weight:800!important;
    text-align:left!important;
    pointer-events:none!important;
  }
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control) select{
    position:absolute!important;
    z-index:3!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:42px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #138fd0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:transparent!important;
    font-size:13px!important;
    line-height:40px!important;
    box-shadow:0 1px 3px rgba(18,71,104,.05)!important;
    opacity:.001!important;
    cursor:pointer!important;
  }

  body.hitop-route-product-category .hitop-limit-control,
  body.hitop-route-product-category .hitop-toolbar-spacer{
    display:none!important;
  }

  body.hitop-route-product-category .hitop-toolbar-count{
    grid-column:3!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:76px!important;
    height:42px!important;
    margin:0!important;
    padding:0 2px!important;
    border:0!important;
    background:transparent!important;
    text-align:center!important;
  }
  body.hitop-route-product-category .hitop-toolbar-count strong{
    display:block!important;
    margin:0!important;
    color:#242b32!important;
    font-size:12px!important;
    line-height:42px!important;
    font-weight:600!important;
    white-space:nowrap!important;
  }
  body.hitop-route-product-category .hitop-toolbar-count span{
    display:none!important;
  }

  body.hitop-route-product-category .hitop-view-switch{
    grid-column:4!important;
    grid-row:1!important;
    display:block!important;
    width:42px!important;
    height:42px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #d7e4ed!important;
    border-radius:8px!important;
    background:#fff!important;
    overflow:hidden!important;
    box-shadow:0 1px 3px rgba(18,71,104,.05)!important;
  }
  body.hitop-route-product-category .hitop-view-btn{
    display:none!important;
  }
  body.hitop-route-product-category .hitop-view-btn[data-view="grid"]{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:40px!important;
    height:40px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:#fff!important;
    color:#123f77!important;
    font-size:17px!important;
    line-height:40px!important;
    box-shadow:none!important;
  }
}

@media only screen and (max-width:360px){
  body.hitop-route-product-category .hitop-category-toolbar{
    grid-template-columns:minmax(78px,1fr) minmax(96px,1.1fr) auto 38px!important;
    column-gap:5px!important;
  }
  body.hitop-route-product-category .hitop-mobile-filter-trigger{
    padding:0 6px!important;
    gap:5px!important;
    font-size:12px!important;
  }
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control):before{
    left:9px!important;
  }
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control):after{
    left:33px!important;
    font-size:12px!important;
  }
  body.hitop-route-product-category .hitop-toolbar-count{
    min-width:66px!important;
  }
  body.hitop-route-product-category .hitop-toolbar-count strong{
    font-size:11px!important;
  }
  body.hitop-route-product-category .hitop-view-switch{
    width:38px!important;
  }
  body.hitop-route-product-category .hitop-view-btn[data-view="grid"]{
    width:36px!important;
  }
}

/* ============================================================
   HiTop Mobile Category V25 — isolated functional toolbar
   MOBILE ONLY. No header or desktop selectors.
   ============================================================ */
@media only screen and (max-width:991px){
  html.hitop-mobile-category-panel-open,body.hitop-mobile-category-panel-open{overflow:hidden!important}
  body.hitop-route-product-category .hitop-mobile-category-panels{display:block!important}
  body.hitop-route-product-category .hitop-mobile-filter-overlay,
  body.hitop-route-product-category .hitop-mobile-sort-overlay{position:fixed!important;z-index:10040!important;inset:0!important;background:rgba(12,39,59,.40)!important;opacity:0!important;visibility:hidden!important;transition:.2s!important}
  body.hitop-route-product-category .hitop-mobile-filter-overlay.is-open,
  body.hitop-route-product-category .hitop-mobile-sort-overlay.is-open{opacity:1!important;visibility:visible!important}
  body.hitop-route-product-category .hitop-mobile-filter-drawer,
  body.hitop-route-product-category .hitop-mobile-sort-sheet{position:fixed!important;z-index:10050!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:18px 18px 0 0!important;background:#fff!important;box-shadow:0 -8px 30px rgba(15,52,78,.18)!important;transform:translateY(105%)!important;transition:transform .22s ease!important;overflow:hidden!important}
  body.hitop-route-product-category .hitop-mobile-filter-drawer{display:flex!important;flex-direction:column!important;max-height:82vh!important}
  body.hitop-route-product-category .hitop-mobile-sort-sheet{display:block!important;max-height:72vh!important}
  body.hitop-route-product-category .hitop-mobile-filter-drawer.is-open,
  body.hitop-route-product-category .hitop-mobile-sort-sheet.is-open{transform:translateY(0)!important}
  body.hitop-route-product-category .hitop-mobile-filter-head,
  body.hitop-route-product-category .hitop-mobile-sort-head{display:flex!important;align-items:center!important;justify-content:space-between!important;height:58px!important;padding:0 16px!important;border-bottom:1px solid #e5edf3!important}
  body.hitop-route-product-category .hitop-mobile-filter-head strong,
  body.hitop-route-product-category .hitop-mobile-sort-head strong{font-size:20px!important;font-weight:800!important;color:#0b3264!important}
  body.hitop-route-product-category .hitop-mobile-panel-close{display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#f2f7fa!important;color:#0b5f94!important;font-size:18px!important}
  body.hitop-route-product-category .hitop-mobile-filter-body{flex:1 1 auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:4px 16px 14px!important}
  body.hitop-route-product-category .hitop-mobile-filter-group{padding:14px 0 10px!important;border-bottom:1px solid #edf2f5!important}
  body.hitop-route-product-category .hitop-mobile-filter-group h3{margin:0 0 8px!important;font-size:15px!important;line-height:20px!important;font-weight:800!important;color:#173b58!important}
  body.hitop-route-product-category .hitop-mobile-filter-option{display:flex!important;align-items:center!important;gap:10px!important;min-height:40px!important;margin:0!important;padding:5px 0!important;font-size:14px!important;font-weight:600!important;color:#27465d!important}
  body.hitop-route-product-category .hitop-mobile-filter-option input{width:20px!important;height:20px!important;margin:0!important;flex:0 0 20px!important}
  body.hitop-route-product-category .hitop-mobile-filter-option em{font-style:normal!important;color:#8092a0!important}
  body.hitop-route-product-category .hitop-mobile-filter-empty{padding:18px 0!important;margin:0!important;color:#60798c!important;font-size:14px!important}
  body.hitop-route-product-category .hitop-mobile-filter-actions{display:grid!important;grid-template-columns:1fr 1.6fr!important;gap:10px!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;border-top:1px solid #e5edf3!important;background:#fff!important}
  body.hitop-route-product-category .hitop-mobile-filter-reset,
  body.hitop-route-product-category .hitop-mobile-filter-apply{display:flex!important;align-items:center!important;justify-content:center!important;height:46px!important;margin:0!important;padding:0 10px!important;border-radius:8px!important;font-size:14px!important;font-weight:800!important;text-decoration:none!important}
  body.hitop-route-product-category .hitop-mobile-filter-reset{border:1px solid #bfd3df!important;background:#fff!important;color:#23678e!important}
  body.hitop-route-product-category .hitop-mobile-filter-apply{border:1px solid #078dcc!important;background:#078dcc!important;color:#fff!important}
  body.hitop-route-product-category .hitop-mobile-sort-options{max-height:calc(72vh - 58px)!important;overflow-y:auto!important;padding:6px 16px 16px!important}
  body.hitop-route-product-category .hitop-mobile-sort-option{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;padding:8px 4px!important;border-bottom:1px solid #edf2f5!important;color:#24455e!important;font-size:14px!important;font-weight:650!important;text-decoration:none!important}
  body.hitop-route-product-category .hitop-mobile-sort-option.is-active{color:#078dcc!important;font-weight:800!important}

  /* Stop the native SELECT from opening the broken full-height browser menu on mobile. */
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control){cursor:pointer!important}
  body.hitop-route-product-category .hitop-toolbar-control:not(.hitop-limit-control) select{pointer-events:none!important}

  /* Right grid icon becomes one real Grid/List toggle. */
  body.hitop-route-product-category .hitop-view-switch{cursor:pointer!important}
  body.hitop-route-product-category .hitop-view-switch .hitop-view-btn[data-view="grid"]{display:flex!important}
  body.hitop-route-product-category .hitop-view-switch .hitop-view-btn[data-view="list"]{display:none!important}
  body.hitop-route-product-category .hitop-view-switch.is-list-view .hitop-view-btn[data-view="grid"]{display:none!important}
  body.hitop-route-product-category .hitop-view-switch.is-list-view .hitop-view-btn[data-view="list"]{display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;border:0!important;background:#fff!important;color:#123f77!important;font-size:17px!important}

  /* One product per row in List mode. */
  body.hitop-route-product-category .hitop-mobile-product-grid.is-list-view{display:block!important;width:100%!important}
  body.hitop-route-product-category .hitop-mobile-product-grid.is-list-view .hitop-mobile-product-card{display:grid!important;grid-template-columns:42% minmax(0,58%)!important;grid-template-rows:auto 42px!important;column-gap:9px!important;row-gap:4px!important;width:100%!important;min-height:205px!important;margin:0 0 10px!important;padding:9px!important}
  body.hitop-route-product-category .hitop-mobile-product-grid.is-list-view .hitop-mobile-card-media{grid-column:1!important;grid-row:1 / span 2!important;width:100%!important;height:185px!important;margin:0!important;padding:4px!important}
  body.hitop-route-product-category .hitop-mobile-product-grid.is-list-view .hitop-mobile-product-image img{max-width:96%!important;max-height:178px!important}
  body.hitop-route-product-category .hitop-mobile-product-grid.is-list-view .hitop-mobile-card-info{grid-column:2!important;grid-row:1!important;align-self:center!important;padding:2px 2px 0!important}
  body.hitop-route-product-category .hitop-mobile-product-grid.is-list-view .hitop-mobile-product-name{min-height:0!important;max-height:40px!important;font-size:15px!important;line-height:19px!important;margin-bottom:7px!important}
  body.hitop-route-product-category .hitop-mobile-product-grid.is-list-view .hitop-mobile-add-cart{grid-column:2!important;grid-row:2!important;align-self:end!important;width:100%!important;height:40px!important;margin:0!important}
}
@media only screen and (min-width:992px){
  body.hitop-route-product-category .hitop-mobile-category-panels{display:none!important}
}


/* HITOP product code — mobile category */
@media (max-width:991px){
 body.hitop-route-product-category .hitop-mobile-product-code{display:block!important;height:16px!important;margin:0 0 1px!important;overflow:hidden!important;color:#526879!important;font-size:11px!important;line-height:16px!important;font-weight:700!important;white-space:nowrap!important;text-overflow:ellipsis!important}
 body.hitop-route-product-category .hitop-mobile-product-code span{color:#8797a4!important;font-weight:400!important}
}

/* ============================================================
   HiTop Mobile Category V26 — Lighthouse accessibility fixes
   MOBILE ONLY. No desktop layout changes.
   ============================================================ */
@media only screen and (max-width:991px){
  /* WCAG AA contrast on white backgrounds. */
  body.hitop-route-product-category .breadcrumb,
  body.hitop-route-product-category .breadcrumb a,
  body.hitop-route-product-category .breadcrumb span{
    color:#526879!important;
  }
  body.hitop-route-product-category .hitop-mobile-product-code span{
    color:#526879!important;
    font-weight:600!important;
  }
  body.hitop-route-product-category .hitop-mobile-stock{
    color:#067a32!important;
  }
  body.hitop-route-product-category .hitop-mobile-stock span{
    background:#067a32!important;
  }
  body.hitop-route-product-category .hitop-mobile-add-cart{
    background:#006fa6!important;
  }
  body.hitop-route-product-category .category-info,
  body.hitop-route-product-category .category-info p,
  body.hitop-route-product-category .category-info li,
  body.hitop-route-product-category .category-info span{
    color:#334e62!important;
  }
  body.hitop-route-product-category .category-info a{
    color:#0b5f94!important;
    text-decoration:underline!important;
  }

  /* The group itself is not a touch target; the real buttons are >=44px. */
  body.hitop-route-product-category .hitop-category-toolbar{
    grid-template-columns:minmax(92px,1.05fr) minmax(108px,1.18fr) auto 46px!important;
    grid-template-rows:46px!important;
  }
  body.hitop-route-product-category .hitop-view-switch{
    width:46px!important;
    height:46px!important;
  }
  body.hitop-route-product-category .hitop-view-btn[data-view="grid"],
  body.hitop-route-product-category .hitop-view-switch.is-list-view .hitop-view-btn[data-view="list"]{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    line-height:44px!important;
  }
}
@media only screen and (max-width:360px){
  body.hitop-route-product-category .hitop-category-toolbar{
    grid-template-columns:minmax(76px,1fr) minmax(92px,1.08fr) auto 46px!important;
  }
  body.hitop-route-product-category .hitop-view-switch{
    width:46px!important;
  }
  body.hitop-route-product-category .hitop-view-btn[data-view="grid"],
  body.hitop-route-product-category .hitop-view-switch.is-list-view .hitop-view-btn[data-view="list"]{
    width:44px!important;
  }
}



/* ============================================================
   HITOP V19 — remaining mobile category contrast only
   ============================================================ */
@media only screen and (max-width:991px){
  body.hitop-route-product-category .hitop-category-page a[href*="route=product/search"][href*="tag="],
  body.hitop-route-product-category .category-info a[href*="route=product/search"][href*="tag="]{
    color:#064f7a!important;
    font-weight:600!important;
    text-decoration:underline!important;
    text-decoration-thickness:1px!important;
    text-underline-offset:2px!important;
  }
}
