/* Catalog menu hierarchy: categories vs subcategories (Aaron, 30 Oct). Written by tools/regfix/patch_regfix.py.
   Categories: bold green heading, larger tile, light tinted band, divider. Subcategories: indented, grey #4a5548,
   smaller tiles, zebra rows, thin guide line on the start edge (left in EN, right in AR). Active: clear highlight. */
.cat-wrapper{--jm-band:#f1f7f2;--jm-band-on:#dcefe0;border-bottom:1px solid #e2e8df!important}
#wrapper-irrigation{--jm-band:#eef6f6;--jm-band-on:#d8ece9}
#wrapper-machinery{--jm-band:#f5f5ec;--jm-band-on:#e7ead3}
#wrapper-greenhouse{--jm-band:#f0f6ef;--jm-band-on:#dbecd8}
#wrapper-plants{--jm-band:#eef7ef;--jm-band-on:#d6eed9}
#wrapper-fertilizers{--jm-band:#f6f3ec;--jm-band-on:#ebe3cf}
#wrapper-welding{--jm-band:#f5f2f0;--jm-band-on:#e8dfda}
.cat-wrapper .cat-item{background:#f4f8f5!important}
.cat-wrapper .cat-item:hover{background:#e7f3ea!important}
.cat-wrapper .cat-item .cat-name,.cat-wrapper .cat-item .cat-name span{color:#15803d!important;font-weight:700!important}
.cat-wrapper .cat-item.active{background:#16a34a!important;box-shadow:none!important}
.cat-wrapper .cat-item.active .jm-tile{background:#fff!important;box-shadow:none!important}
.cat-wrapper .cat-item.active .cat-name,.cat-wrapper .cat-item.active .cat-name span{color:#fff!important;font-weight:800!important}
@media (min-width:768px){
  .cat-wrapper .cat-item{padding-block:13px!important;border-left:0!important;border-right:0!important;border-radius:0!important}
  .cat-wrapper .cat-item.active{background:#e7f3ea!important;box-shadow:none!important}
  .cat-wrapper .cat-item.active .jm-tile{background:#fff!important;box-shadow:none!important}
  .cat-wrapper .cat-item.active .cat-name,.cat-wrapper .cat-item.active .cat-name span{color:#0f5f2c!important;font-weight:800!important}
  .subcat-tree .subcat-row.active .jm-tile{background:#fff!important;box-shadow:none!important}
  .cat-wrapper .cat-item .cat-name{font-size:15px!important;line-height:19px!important}
  .cat-wrapper .jm-tile--cat{width:56px;height:56px}
  .subcat-tree{padding:4px 0 10px!important;background:#fff!important;border-bottom:0!important}
  .subcat-tree .subcat-row{margin-inline-start:40px!important;padding-block:9px!important;padding-inline:14px 12px!important;
    border-inline-start:2px solid #cfe2d3!important;background:#fff!important;border-radius:0!important}
  .subcat-tree .subcat-row:nth-child(even){background:#f6f8f4!important}
  .subcat-tree .subcat-row:hover{background:#eaf4ec!important}
  .subcat-tree .subcat-row .subcat-name-text{color:#4a5548!important;font-size:14.5px!important;font-weight:400!important;line-height:18px!important}
  .subcat-tree .jm-tile--sub{width:34px;height:34px;padding:2px;border-radius:9px;margin-inline-end:11px}
  .subcat-tree .subcat-row.active{background:#dcefe0!important;border-inline-start:4px solid #15803d!important;padding-inline-start:12px!important}
  .subcat-tree .subcat-row.active .subcat-name-text{color:#15803d!important;font-weight:700!important}
}
.jm-sub-chip{-webkit-appearance:none!important;appearance:none!important;background:#fff!important;color:#4a5548!important;border:0!important;border-radius:10px!important;transition:background-color .2s ease,color .2s ease}
.jm-sub-chip:nth-child(even){background:#f6f8f4!important}
.jm-sub-chip span:not(.jm-tile){font-size:10.5px!important;color:#4a5548}
.jm-sub-chip .jm-tile--chip{width:48px;height:48px}
button.jm-sub-chip.is-active,
button.jm-sub-chip.is-active:nth-child(even),
.jm-sub-strip .jm-sub-chip.is-active,
.jm-cat-subs .jm-sub-chip.is-active{background:#16a34a!important;background-color:#16a34a!important;box-shadow:none!important;color:#fff!important}
button.jm-sub-chip.is-active .jm-tile,
.jm-sub-strip .jm-sub-chip.is-active .jm-tile,
.jm-cat-subs .jm-sub-chip.is-active .jm-tile{background:#fff!important;box-shadow:none!important}
button.jm-sub-chip.is-active span:not(.jm-tile),
.jm-sub-strip .jm-sub-chip.is-active span:not(.jm-tile),
.jm-cat-subs .jm-sub-chip.is-active span:not(.jm-tile){color:#fff!important;font-weight:700!important}
@media (max-width:767px){
  .cat-wrapper .cat-item{margin:0!important;border-radius:0!important;padding-block:10px!important}
  .cat-wrapper .cat-item .cat-name,.cat-wrapper .cat-item .cat-name span{font-size:10px!important;letter-spacing:-.02em!important;overflow:visible!important}
  .cat-wrapper .cat-item.active{box-shadow:none!important}
}
