/* Subcategory thumbnails in the catalog sidebar (generated rows: tools/i18n/patch_subthumbs.py; tiles: jm-sidetiles.css) */
/* Desktop uses the left subcategory tree. Phone uses a sticky chip row only (no Explore title). */
.jm-sub-strip{display:none}
.jm-cat-subs{display:none}
/* Category is already in the left rail — no second cat banner. Keep as scroll anchor only. */
.jm-cat-break{padding:0!important;margin:0!important;border:0!important;height:0!important;min-height:0!important;overflow:hidden!important}
@media (min-width:768px){
  .jm-cat-subs{display:none!important}
  .subcat-tree .subcat-row{justify-content:flex-start!important;padding-block:9px!important;padding-inline:30px 14px!important;line-height:18px!important}
  .subcat-tree .subcat-name-text{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal;word-break:normal;hyphens:manual}
}
.jm-sub-chip{-webkit-appearance:none;appearance:none;flex:0 0 84px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 2px;border:0;background:#f1f5f9;border-radius:12px;cursor:pointer;font:inherit;color:#475569;touch-action:manipulation;transition:background-color .28s ease,color .28s ease,transform .2s ease,box-shadow .28s ease}
.jm-sub-chip:active,.jm-sub-chip.jm-sub-chip--tapped{transform:scale(0.94)}
.jm-sub-chip span:not(.jm-tile){font-size:11px;line-height:13px;text-align:center;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:normal;word-break:normal;hyphens:manual}
.jm-sub-chip.is-active,
.jm-sub-chip.is-active:nth-child(even){background:#16a34a!important;color:#fff!important;font-weight:700;box-shadow:0 4px 14px rgba(22,163,74,.32);transform:scale(1.02)}
.jm-sub-chip.is-active .jm-tile,
.jm-sub-chip.is-active:nth-child(even) .jm-tile{background:#fff!important;box-shadow:none!important}
.jm-sub-chip.is-active span:not(.jm-tile){color:#fff!important}
@media (max-width:767px){
  .jm-cat-subs{display:none!important}
  .jm-cat-heading-bar{align-items:center!important;padding:6px 0 8px!important;margin-bottom:0!important;border-bottom-color:#f1f5f9!important}
  .jm-cat-heading-bar h1,
  #grid-cat-title{display:none!important;height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
  .jm-sub-strip{display:flex!important;flex:1 1 auto;width:100%;gap:8px;overflow-x:auto;padding:4px 12px 2px;margin:0;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;scroll-snap-type:x proximity}
  .jm-sub-strip::-webkit-scrollbar{display:none}
  .jm-sub-strip .jm-sub-chip{scroll-snap-align:center;transition:background-color .25s ease,color .25s ease}
  .jm-sub-group{scroll-margin-top:200px}
}
