/* TOPX_CATEGORY_SWIPE_V1 — Only the homepage's category cards. */
#categories .topx-category-rail-shell{position:relative;min-width:0}
#categories .topx-category-track.category-grid{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  grid-template-columns:none!important;
  gap:14px;
  direction:rtl;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:3px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding:5px 3px 15px;
  margin:0;
}
#categories .topx-category-track::-webkit-scrollbar{display:none}
#categories .topx-category-track .category-card{
  flex:0 0 clamp(175px,17vw,222px)!important;
  width:clamp(175px,17vw,222px)!important;
  min-width:0;
  max-width:none;
  scroll-snap-align:start;
  scroll-snap-stop:normal;
  box-sizing:border-box;
}
#categories .topx-category-track:focus-visible,
#categories .topx-category-arrow:focus-visible{outline:3px solid var(--teal,#20b5a4);outline-offset:3px}
#categories .topx-category-rail-controls{display:flex;align-items:center;justify-content:flex-start;gap:7px;margin:4px 0 11px;direction:rtl}
#categories .topx-category-arrow{
  width:34px;height:34px;display:grid;place-items:center;
  border:1px solid #d7eae6;border-radius:10px;
  background:#f1faf8;color:#23887b;
  font:700 20px/1 sans-serif;cursor:pointer;transition:background .15s,opacity .15s;
}
#categories .topx-category-arrow:hover:not(:disabled){background:#d9f4ed}
#categories .topx-category-arrow:disabled{opacity:.30;cursor:default}
#categories .topx-category-hint{font-size:11px;color:#75918e;margin-inline-start:7px}
@media(max-width:850px){
  #categories .topx-category-track.category-grid{gap:11px}
  #categories .topx-category-track .category-card{flex-basis:clamp(160px,28vw,210px)!important;width:clamp(160px,28vw,210px)!important}
}
@media(max-width:600px){
  #categories .topx-category-track.category-grid{gap:10px;padding:4px 2px 13px}
  #categories .topx-category-track .category-card{
    flex:0 0 clamp(140px,42vw,184px)!important;
    width:clamp(140px,42vw,184px)!important;
    min-height:159px;
    padding:15px 13px;
    border-radius:15px;
  }
  #categories .topx-category-rail-controls{margin:3px 0 9px;gap:6px}
  #categories .topx-category-arrow{width:30px;height:30px;font-size:17px;border-radius:8px}
  #categories .topx-category-hint{font-size:10px}
}
@media(prefers-reduced-motion:reduce){#categories .topx-category-track{scroll-behavior:auto}}
